comparison Problems/generateImageDenoiseProblem.m @ 224:fd0b5d36f6ad danieleb

Updated the contents of this branch with the contents of the default branch.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Thu, 12 Apr 2012 13:52:28 +0100
parents 9c418bea7f6a
children
comparison
equal deleted inserted replaced
196:82b0d3f982cb 224:fd0b5d36f6ad
61 %% prompt user for image %% 61 %% prompt user for image %%
62 %ask for file name 62 %ask for file name
63 FS=filesep; 63 FS=filesep;
64 TMPpath=pwd; 64 TMPpath=pwd;
65 if ~ exist( 'im', 'var' ) || isempty(im) 65 if ~ exist( 'im', 'var' ) || isempty(im)
66 [pathstr1, name, ext, versn] = fileparts(which('SMALLboxSetup.m')); 66 [pathstr1, name, ext] = fileparts(which('SMALLboxSetup.m'));
67 cd([pathstr1,FS,'data',FS,'images']); 67 cd([pathstr1,FS,'data',FS,'images']);
68 [filename,pathname] = uigetfile({'*.png;'},'Select an image'); 68 [filename,pathname] = uigetfile({'*.png;'},'Select an image');
69 [pathstr, name, ext, versn] = fileparts(filename); 69 [pathstr, name, ext] = fileparts(filename);
70 data.name=name; 70 data.name=name;
71 im = imread(filename); 71 im = imread(filename);
72 %im = double(im); 72 %im = double(im);
73 end; 73 end;
74 im = double(im); 74 im = double(im);