comparison examples/Image Denoising/SMALL_ImgDenoise_DL_test_KSVDvsRLSDLAvsTwoStepMOD.m @ 153:af307f247ac7 ivand_dev

Example scripts for Two Step Dictionary Learning - Image Denoising experiments.
author Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk>
date Fri, 29 Jul 2011 12:35:52 +0100
parents 485747bf39e0
children f42aa8bcb82f
comparison
equal deleted inserted replaced
152:485747bf39e0 153:af307f247ac7
45 45
46 noise_level=[10 20 25 50 100]; 46 noise_level=[10 20 25 50 100];
47 47
48 % Here we loop through different noise levels and images 48 % Here we loop through different noise levels and images
49 49
50 for noise_ind=2:2 50 for noise_ind=4:4
51 for im_num=1:1 51 for im_num=1:1
52 52
53 % Defining Image Denoising Problem as Dictionary Learning 53 % Defining Image Denoising Problem as Dictionary Learning
54 % Problem. As an input we set the number of training patches. 54 % Problem. As an input we set the number of training patches.
55 55
169 SMALL.DL(2).param=struct(... 169 SMALL.DL(2).param=struct(...
170 'solver', SMALL.solver(2),... 170 'solver', SMALL.solver(2),...
171 'initdict', SMALL.Problem.initdict,... 171 'initdict', SMALL.Problem.initdict,...
172 'dictsize', SMALL.Problem.p,... 172 'dictsize', SMALL.Problem.p,...
173 'iternum', 40,... 173 'iternum', 40,...
174 'mu', 0.7,...
175 'show_dict', 1); 174 'show_dict', 1);
176 175
177 % Learn the dictionary 176 % Learn the dictionary
178 177
179 SMALL.DL(2) = SMALL_learn(SMALL.Problem, SMALL.DL(2)); 178 SMALL.DL(2) = SMALL_learn(SMALL.Problem, SMALL.DL(2));