Changeset 447 for trunk/src/series/ima_levels.m
- Timestamp:
- Jun 11, 2012, 9:35:38 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/ima_levels.m
r442 r447 16 16 %requests for the visibility of input windows in the GUI series (activated directly by the selection in the menu ACTION) 17 17 if ~exist('Param','var') 18 GUI_input={ };18 GUI_input={'OutputDirExt';'.lev'}; 19 19 return %exit the function 20 20 end … … 90 90 case {'video','mmreader'} 91 91 A=read(MovieObject,i1_series{1}(jfile,ifile)); 92 if strcmp(NomType,'*') 93 A=read(MovieObject,i1_series{1}(jfile,ifile)); 94 NomType_out='_1'; 95 else 96 A=imread(filename,j1_series{1}(jfile,ifile)); 97 NomType_out='_1_1'; 98 end 92 99 case {'vol','image'} 93 100 A=imread(filename); 101 NomType_out='_1'; 94 102 case 'multimage' 95 A=imread(filename,i1_series{1}(jfile,ifile)); 103 if strcmp(NomType,'*') 104 A=imread(filename,i1_series{1}(jfile,ifile)); 105 NomType_out='_1'; 106 else 107 A=imread(filename,j1_series{1}(jfile,ifile)); 108 NomType_out='_1_1'; 109 end 96 110 end 97 111 C=levels(A); 98 filename_new=fullfile_uvmat(RootPath,SubdirResult,RootFile,'.png',NomType ,i1_series{1}(jfile,ifile),[],j1_series{1}(jfile,ifile));112 filename_new=fullfile_uvmat(RootPath,SubdirResult,RootFile,'.png',NomType_out,i1_series{1}(jfile,ifile),[],j1_series{1}(jfile,ifile)); 99 113 imwrite(C,filename_new) 100 114 display([filename_new ' written'])
Note: See TracChangeset
for help on using the changeset viewer.