Mercurial > hg > smallbox
comparison Problems/generateImageDenoiseProblem.m @ 17:ec86452113ed
(none)
author | idamnjanovic |
---|---|
date | Fri, 26 Mar 2010 11:33:56 +0000 |
parents | 207a6ae9a76f |
children | 0211faef9add |
comparison
equal
deleted
inserted
replaced
16:41a5a3c26961 | 17:ec86452113ed |
---|---|
53 FS=filesep; | 53 FS=filesep; |
54 TMPpath=pwd; | 54 TMPpath=pwd; |
55 if ~ exist( 'im', 'var' ) || isempty(im) | 55 if ~ exist( 'im', 'var' ) || isempty(im) |
56 [pathstr1, name, ext, versn] = fileparts(which('SMALLboxSetup.m')); | 56 [pathstr1, name, ext, versn] = fileparts(which('SMALLboxSetup.m')); |
57 cd([pathstr1,FS,'data',FS,'images']); | 57 cd([pathstr1,FS,'data',FS,'images']); |
58 [filename,pathname] = uigetfile({'*.png;'},'Select a file containin pre-calculated notes'); | 58 [filename,pathname] = uigetfile({'*.png;'},'Select an image'); |
59 [pathstr, name, ext, versn] = fileparts(filename); | 59 [pathstr, name, ext, versn] = fileparts(filename); |
60 data.name=name; | 60 data.name=name; |
61 im = imread(filename); | 61 im = imread(filename); |
62 im = double(im); | 62 im = double(im); |
63 end; | 63 end; |