Mercurial > hg > smallbox
comparison examples/Image Denoising/SMALL_ImgDenoise_DL_test_Training_size.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 | 8b3c71bb44eb |
children |
comparison
equal
deleted
inserted
replaced
196:82b0d3f982cb | 224:fd0b5d36f6ad |
---|---|
31 % published by the Free Software Foundation; either version 2 of the | 31 % published by the Free Software Foundation; either version 2 of the |
32 % License, or (at your option) any later version. See the file | 32 % License, or (at your option) any later version. See the file |
33 % COPYING included with this distribution for more information.%% | 33 % COPYING included with this distribution for more information.%% |
34 %% | 34 %% |
35 | 35 |
36 clear all; | 36 clear; |
37 | 37 |
38 %% Load an image | 38 %% Load an image |
39 TMPpath=pwd; | 39 TMPpath=pwd; |
40 FS=filesep; | 40 FS=filesep; |
41 [pathstr1, name, ext, versn] = fileparts(which('SMALLboxSetup.m')); | 41 [pathstr1, name, ext] = fileparts(which('SMALLboxSetup.m')); |
42 cd([pathstr1,FS,'data',FS,'images']); | 42 cd([pathstr1,FS,'data',FS,'images']); |
43 [filename,pathname] = uigetfile({'*.png;'},'Select a file containin pre-calculated notes'); | 43 [filename,pathname] = uigetfile({'*.png;'},'Select a file containin pre-calculated notes'); |
44 [pathstr, name, ext, versn] = fileparts(filename); | 44 [pathstr, name, ext] = fileparts(filename); |
45 test_image = imread(filename); | 45 test_image = imread(filename); |
46 test_image = double(test_image); | 46 test_image = double(test_image); |
47 cd(TMPpath); | 47 cd(TMPpath); |
48 | 48 |
49 % number of different values we want to test | 49 % number of different values we want to test |