comparison SMALLboxSetup.m @ 140:31d2864dfdd4 ivand_dev

Audio Impainting additional constraints with cvx added
author Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk>
date Mon, 25 Jul 2011 17:27:05 +0100
parents a4e255cfb113
children b8db4285e0ca
comparison
equal deleted inserted replaced
139:4bd6856a7128 140:31d2864dfdd4
272 fprintf('\n ******************************************************************'); 272 fprintf('\n ******************************************************************');
273 fprintf('\n\n CVX is already installed'); 273 fprintf('\n\n CVX is already installed');
274 end 274 end
275 275
276 %% 276 %%
277 277 %% KSVD utils setup
278
279 if ~(exist('addtocols')==3)
280 cd([SMALL_path,FS,'util',FS,'ksvd utils']);
281 make
282 cd(SMALL_path);
283 end
284
285 %%
278 if ~exist('ksvdver.m','file') 286 if ~exist('ksvdver.m','file')
279 fprintf('\n ******************************************************************'); 287 fprintf('\n ******************************************************************');
280 fprintf('\n\n Initialising OMPbox and KSVDBox Setup'); 288 fprintf('\n\n Initialising OMPbox and KSVDBox Setup');
281 289
282 try 290 try
298 else 306 else
299 KSVD_zip='http://www.cs.technion.ac.il/%7Eronrubin/Software/ksvdbox13.zip'; 307 KSVD_zip='http://www.cs.technion.ac.il/%7Eronrubin/Software/ksvdbox13.zip';
300 fprintf('\n\n Downloading toolbox, please be patient\n\n'); 308 fprintf('\n\n Downloading toolbox, please be patient\n\n');
301 end 309 end
302 unzip(KSVD_zip,[KSVD_path, FS, 'ksvdbox']); 310 unzip(KSVD_zip,[KSVD_path, FS, 'ksvdbox']);
303 % cd([KSVD_path, FS, 'ksvdbox', FS, 'private']); 311 cd([KSVD_path, FS, 'ksvdbox', FS, 'private']);
304 % make; 312 make;
305 % cd(SMALL_path); 313 cd(SMALL_path);
306 KSVD_p=genpath(KSVD_path); 314 KSVD_p=genpath(KSVD_path);
307 addpath(KSVD_p); 315 addpath(KSVD_p);
308 fprintf('\n KSVDBox and OMPBox Installation Successful\n'); 316 fprintf('\n KSVDBox and OMPBox Installation Successful\n');
309 catch 317 catch
310 fprintf('\n KSVDBox and OMPBox Installation Failed'); 318 fprintf('\n KSVDBox and OMPBox Installation Failed');
390 else 398 else
391 fprintf('\n ******************************************************************'); 399 fprintf('\n ******************************************************************');
392 fprintf('\n\n matlab_midi (http://www.kenschutte.com/midi/) is already installed'); 400 fprintf('\n\n matlab_midi (http://www.kenschutte.com/midi/) is already installed');
393 end 401 end
394 402
395 %% KSVD utils setup 403
396
397 if ~(exist('addtocols')==3)
398 cd([SMALL_path,FS,'util',FS,'ksvd utils']);
399 make
400 cd(SMALL_path);
401 end
402 404
403 %% RWT setup 405 %% RWT setup
404 if ~(exist('mdwt')==3) 406 if ~(exist('mdwt')==3)
405 cd([SMALL_path, FS, 'util', FS, 'Rice Wavelet Toolbox']) 407 cd([SMALL_path, FS, 'util', FS, 'Rice Wavelet Toolbox'])
406 fprintf('Compiling the Rice Wavelet Toolbox MEX interfaces...'); 408 fprintf('Compiling the Rice Wavelet Toolbox MEX interfaces...');