Changeset 551
- Timestamp:
- Oct 11, 2012, 10:44:35 PM (12 years ago)
- Location:
- trunk/src/series
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/ima_levels.m
r478 r551 79 79 NomType=Param.InputTable(:,4); 80 80 FileExt=Param.InputTable(:,5); 81 OutputSubDir=[Param.OutputSubDir Param.OutputDirExt];% subdirectory for output files 81 82 82 83 % get the set of input file names (cell array filecell), and the lists of … … 170 171 % operation on images 171 172 A=levels(A); 172 filename_new=fullfile_uvmat(RootPath{1},Param.OutputSubDir,RootFile{1},FileExtOut,NomTypeOut,i1_series{1}(ifile),[],j1); 173 filename_new=fullfile_uvmat(RootPath{1},OutputSubDir,RootFile{1},FileExtOut,NomTypeOut,i1_series{1}(ifile),[],j1); 174 % OutputFile=fullfile_uvmat(RootPath{1},OutputSubDir,RootFile{1},FileExtOut,NomType{1},i1,i2,j1,j2); 173 175 imwrite(A,filename_new) 174 176 display([filename_new ' written']) -
trunk/src/series/merge_proj.m
r550 r551 83 83 Param.InputFields.FieldName=''; 84 84 end 85 OutputSubDir=[Param.OutputSubDir Param.OutputDirExt];86 85 87 86 %% root input file(s) and type … … 91 90 NomType=Param.InputTable(:,4); 92 91 FileExt=Param.InputTable(:,5); 92 OutputSubDir=[Param.OutputSubDir Param.OutputDirExt];% subdirectory for output files 93 93 [filecell,i1_series,i2_series,j1_series,j2_series]=get_file_series(Param); 94 94 %%%%%%%%%%%% … … 195 195 nbtime=0; 196 196 for iview=1:nbview 197 % reading input file(s)197 %% reading input file(s) 198 198 [Data{iview},tild,errormsg] = read_field(filecell{iview,index},FileType{iview},Param.InputFields,frame_index{iview}(index)); 199 199 if ~isempty(errormsg) … … 211 211 end 212 212 213 % transform the input field (e.g; phys) if requested213 %% transform the input field (e.g; phys) if requested 214 214 if ~isempty(transform_fct) 215 switch nargin(transform_fct) 216 case {2,3,4} 217 Data{iview}=transform_fct(Data{iview},XmlData{iview}); 218 case 1 219 Data{iview}=transform_fct(Data{iview}); 215 if nargin(transform_fct)>=2 216 Data{iview}=transform_fct(Data{iview},XmlData{iview}); 217 else 218 Data{iview}=transform_fct(Data{iview}); 220 219 end 221 220 end … … 236 235 check_proj_tps= ~isempty(Param.ProjObject)&& strcmp(Param.ProjObject.ProjMode,'filter')&&~isfield(Data{iview},'Coord_tps'); 237 236 Data{iview}=calc_tps(Data{iview},check_proj_tps); 238 239 % % field calculation (vort, div...) 240 % if strcmp(FileType{iview},'civx')||strcmp(FileType{iview},'civdata') 241 % if isfield(Data{iview},'Coord_tps') 242 % Data{iview}.FieldList=Param.InputFields.FieldName; 243 % else 244 % Data{iview}=calc_field(Param.InputFields.FieldName,Data{iview});%calculate field (vort..) 245 % end 246 % end 247 248 %projection on object (gridded plane) 237 238 %% projection on object (gridded plane) 249 239 if Param.CheckObject 250 240 [Data{iview},errormsg]=proj_field(Data{iview},Param.ProjObject);
Note: See TracChangeset
for help on using the changeset viewer.