Mercurial > hg > smallbox
comparison Problems/Pierre_Problem.m @ 28:78c1e71cd269
(none)
author | idamnjanovic |
---|---|
date | Mon, 10 May 2010 14:59:59 +0000 |
parents | 0211faef9add |
children | 1b63e6a201a2 |
comparison
equal
deleted
inserted
replaced
27:ea0477392ed9 | 28:78c1e71cd269 |
---|---|
38 % - sparse - if 1 SMALL_solve will keep solution matrix in sparse form, | 38 % - sparse - if 1 SMALL_solve will keep solution matrix in sparse form, |
39 % due to memory constrains. | 39 % due to memory constrains. |
40 | 40 |
41 %% prompt user for images %% | 41 %% prompt user for images %% |
42 | 42 |
43 %ask for source file name | 43 % ask for source file name |
44 | 44 |
45 TMPpath=pwd; | 45 TMPpath=pwd; |
46 FS=filesep; | 46 FS=filesep; |
47 if ~ exist( 'src', 'var' ) || isempty(src) | 47 if ~ exist( 'src', 'var' ) || isempty(src) |
48 [pathstr1, name, ext, versn] = fileparts(which('SMALLboxSetup.m')); | 48 [pathstr1, name, ext, versn] = fileparts(which('SMALLboxSetup.m')); |
52 data.srcname=name; | 52 data.srcname=name; |
53 src = imread(filename); | 53 src = imread(filename); |
54 src = double(src); | 54 src = double(src); |
55 end; | 55 end; |
56 | 56 |
57 %ask for target file name | 57 % ask for target file name |
58 | 58 |
59 if ~ exist( 'trg', 'var' ) || isempty(trg) | 59 if ~ exist( 'trg', 'var' ) || isempty(trg) |
60 [filename,pathname] = uigetfile({'*.png;'},'Select a target image'); | 60 [filename,pathname] = uigetfile({'*.png;'},'Select a target image'); |
61 [pathstr, name, ext, versn] = fileparts(filename); | 61 [pathstr, name, ext, versn] = fileparts(filename); |
62 data.trgname=name; | 62 data.trgname=name; |
111 data.n = size(T,2); | 111 data.n = size(T,2); |
112 data.p = size(data.A,2); | 112 data.p = size(data.A,2); |
113 data.blocksize=blocksize; | 113 data.blocksize=blocksize; |
114 data.maxval=maxval; | 114 data.maxval=maxval; |
115 | 115 |
116 % geting around out of memory problem when converting big matrix from | 116 % keep coefficients matrix in sparse form and do not convert it to full. |
117 % sparse to full... (check SMALL_solve function) | 117 % geting around out of memory problem when converting big matrix from |
118 % sparse to full... (check SMALL_solve function) | |
118 data.sparse=1; | 119 data.sparse=1; |
119 | 120 |
120 | 121 |