Mercurial > hg > smallbox
comparison examples/Image Denoising/SMALL_ImgDenoise_DL_test_SPAMS_lambda.m @ 220:0d30f9074dd9
Merge
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 11 Apr 2012 15:56:39 +0100 |
parents | 8b3c71bb44eb |
children |
comparison
equal
deleted
inserted
replaced
165:775caafd5651 | 220:0d30f9074dd9 |
---|---|
20 % published by the Free Software Foundation; either version 2 of the | 20 % published by the Free Software Foundation; either version 2 of the |
21 % License, or (at your option) any later version. See the file | 21 % License, or (at your option) any later version. See the file |
22 % COPYING included with this distribution for more information. | 22 % COPYING included with this distribution for more information. |
23 %% | 23 %% |
24 | 24 |
25 clear all; | 25 clear; |
26 | 26 |
27 %% Load an image | 27 %% Load an image |
28 TMPpath=pwd; | 28 TMPpath=pwd; |
29 FS=filesep; | 29 FS=filesep; |
30 [pathstr1, name, ext, versn] = fileparts(which('SMALLboxSetup.m')); | 30 [pathstr1, name, ext] = fileparts(which('SMALLboxSetup.m')); |
31 cd([pathstr1,FS,'data',FS,'images']); | 31 cd([pathstr1,FS,'data',FS,'images']); |
32 [filename,pathname] = uigetfile({'*.png;'},'Select a file containin pre-calculated notes'); | 32 [filename,pathname] = uigetfile({'*.png;'},'Select a file containin pre-calculated notes'); |
33 [pathstr, name, ext, versn] = fileparts(filename); | 33 [pathstr, name, ext] = fileparts(filename); |
34 test_image = imread(filename); | 34 test_image = imread(filename); |
35 test_image = double(test_image); | 35 test_image = double(test_image); |
36 cd(TMPpath); | 36 cd(TMPpath); |
37 %% | 37 %% |
38 | 38 |