Changeset 1007 for trunk/src/series/civ_series.m
- Timestamp:
- Jul 3, 2017, 9:55:48 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/civ_series.m
r997 r1007 224 224 225 225 %% check the first image pair 226 % try227 226 if Param.ActionInput.CheckCiv1% Civ1 is performed 228 % ImageName_A=fullfile_uvmat(RootPath_A,SubDir_A,RootFile_A,FileExt_A,NomType_A,i1_series_Civ1(1),[],j1_series_Civ1(1));229 % [FileInfo_A,VideoObject_A]=get_file_info(ImageName_A);230 % FileType_A=FileInfo_A.FileType;231 % if strcmp(FileInfo_A.FileType,'netcdf')232 % FieldName_A=Param.InputFields.FieldName;233 % [DataIn,tild,tild,errormsg]=nc2struct(ImageName_A,{FieldName_A});234 % par_civ1.ImageA=DataIn.(FieldName_A);235 % else236 % [par_civ1.ImageA,VideoObject_A] = read_image(ImageName_A,FileType_A,VideoObject_A,FrameIndex_A_Civ1(1));237 % end238 % ImageName_B=fullfile_uvmat(RootPath_B,SubDir_B,RootFile_B,FileExt_B,NomType_B,i2_series_Civ1(1),[],j2_series_Civ1(1));239 % if ~exist(ImageName_B,'file')240 % disp_uvmat('ERROR',['first input image ' ImageName_B ' does not exist'],checkrun)241 % return242 % end243 % [FileInfo_B,VideoObject_B]=get_file_info(ImageName_B);244 % FileType_B=FileInfo_B.FileType;245 % if strcmp(FileInfo_B.FileType,'netcdf')246 % FieldName_B=Param.InputFields.FieldName;247 % [DataIn,tild,tild,errormsg]=nc2struct(ImageName_B,{FieldName_B});248 % par_civ1.ImageB=DataIn.(FieldName_B);249 % else250 % [par_civ1.ImageB,VideoObject_B] = read_image(ImageName_B,FileType_B,VideoObject_B,FrameIndex_B_Civ1(1));251 % end252 227 NbField=numel(i1_series_Civ1); 253 228 elseif Param.ActionInput.CheckCiv2 % Civ2 is performed without Civ1 254 % ImageName_A=fullfile_uvmat(RootPath_A,SubDir_A,RootFile_A,FileExt_A,NomType_A,i1_series_Civ2(1),[],j1_series_Civ2(1)); 255 % if ~exist(ImageName_A,'file') 256 % disp_uvmat('ERROR',['first input image ' ImageName_A ' does not exist'],checkrun) 257 % return 258 % end 259 % [FileInfo_A,VideoObject_A]=get_file_info(ImageName_A); 260 % FileType_A=FileInfo_A.FileType; 261 % [par_civ1.ImageA,VideoObject_A] = read_image(ImageName_A,FileInfo_A.FileType,VideoObject_A,FrameIndex_A_Civ2(1)); 262 % ImageName_B=fullfile_uvmat(RootPath_B,SubDir_B,RootFile_B,FileExt_B,NomType_B,i2_series_Civ2(1),[],j2_series_Civ2(1)); 263 % if ~exist(ImageName_B,'file') 264 % disp_uvmat('ERROR',['first input image ' ImageName_B ' does not exist'],checkrun) 265 % return 266 % end 267 % [FileInfo_B,VideoObject_B]=get_file_info(ImageName_B); 268 % FileType_B=FileInfo_B.FileType; 269 % [par_civ1.ImageB,VideoObject_B] = read_image(ImageName_B,FileType_B,VideoObject_B,FrameIndex_B_Civ2(1)); 229 270 230 NbField=numel(i1_series_Civ2); 271 231 else 272 232 NbField=numel(i1_series_Civ1);% no image used (only fix or patch) TO CHECK 273 233 end 274 % catch ME 275 % if ~isempty(ME.message) 276 % disp_uvmat('ERROR', ['error reading input image: ' ME.message],checkrun) 277 % return 278 % end 279 % end 234 280 235 281 236
Note: See TracChangeset
for help on using the changeset viewer.