comparison SMALLboxSetup.m @ 143:8d866d96f006

changes to the merge
author Ivan <ivan.damnjanovic@eecs.qmul.ac.uk>
date Tue, 26 Jul 2011 15:13:29 +0100
parents a4e255cfb113
children 19e0af570914
comparison
equal deleted inserted replaced
135:5a5e54f733c9 143:8d866d96f006
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 %% fast omp for Gabor dictionary
286
287 if ~(exist('omp2Gabor')==3)
288 cd([SMALL_path,FS,'solvers', FS,'SMALL_ompGabor']);
289 make
290 cd(SMALL_path);
291 end
292 %%
278 if ~exist('ksvdver.m','file') 293 if ~exist('ksvdver.m','file')
279 fprintf('\n ******************************************************************'); 294 fprintf('\n ******************************************************************');
280 fprintf('\n\n Initialising OMPbox and KSVDBox Setup'); 295 fprintf('\n\n Initialising OMPbox and KSVDBox Setup');
281 296
282 try 297 try
298 else 313 else
299 KSVD_zip='http://www.cs.technion.ac.il/%7Eronrubin/Software/ksvdbox13.zip'; 314 KSVD_zip='http://www.cs.technion.ac.il/%7Eronrubin/Software/ksvdbox13.zip';
300 fprintf('\n\n Downloading toolbox, please be patient\n\n'); 315 fprintf('\n\n Downloading toolbox, please be patient\n\n');
301 end 316 end
302 unzip(KSVD_zip,[KSVD_path, FS, 'ksvdbox']); 317 unzip(KSVD_zip,[KSVD_path, FS, 'ksvdbox']);
303 % cd([KSVD_path, FS, 'ksvdbox', FS, 'private']); 318 cd([KSVD_path, FS, 'ksvdbox', FS, 'private']);
304 % make; 319 make;
305 % cd(SMALL_path); 320 cd(SMALL_path);
306 KSVD_p=genpath(KSVD_path); 321 KSVD_p=genpath(KSVD_path);
307 addpath(KSVD_p); 322 addpath(KSVD_p);
308 fprintf('\n KSVDBox and OMPBox Installation Successful\n'); 323 fprintf('\n KSVDBox and OMPBox Installation Successful\n');
309 catch 324 catch
310 fprintf('\n KSVDBox and OMPBox Installation Failed'); 325 fprintf('\n KSVDBox and OMPBox Installation Failed');
390 else 405 else
391 fprintf('\n ******************************************************************'); 406 fprintf('\n ******************************************************************');
392 fprintf('\n\n matlab_midi (http://www.kenschutte.com/midi/) is already installed'); 407 fprintf('\n\n matlab_midi (http://www.kenschutte.com/midi/) is already installed');
393 end 408 end
394 409
395 %% KSVD utils setup 410
396
397 if ~(exist('addtocols')==3)
398 cd([SMALL_path,FS,'util',FS,'ksvd utils']);
399 make
400 cd(SMALL_path);
401 end
402 411
403 %% RWT setup 412 %% RWT setup
404 if ~(exist('mdwt')==3) 413 if ~(exist('mdwt')==3)
405 cd([SMALL_path, FS, 'util', FS, 'Rice Wavelet Toolbox']) 414 cd([SMALL_path, FS, 'util', FS, 'Rice Wavelet Toolbox'])
406 fprintf('Compiling the Rice Wavelet Toolbox MEX interfaces...'); 415 fprintf('Compiling the Rice Wavelet Toolbox MEX interfaces...');