Changeset 1007 for trunk/src/series


Ignore:
Timestamp:
Jul 3, 2017, 9:55:48 PM (7 years ago)
Author:
sommeria
Message:

functions to read DaVis? images added

Location:
trunk/src/series
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/civ_input.m

    r979 r1007  
    111111iview_image=1;%line # for the input images
    112112switch FileType
    113     case {'image','multimage','video','mmreader','cine_phantom','netcdf'}
     113    case {'image','image_DaVis','multimage','video','mmreader','cine_phantom','netcdf'}
    114114%         NomTypeImaA=NomTypeInput;
    115115%         iview_image=1;%line # for the input images
  • trunk/src/series/civ_series.m

    r997 r1007  
    224224   
    225225    %% check the first image pair
    226 %     try
    227226        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 %             else
    236 %                 [par_civ1.ImageA,VideoObject_A] = read_image(ImageName_A,FileType_A,VideoObject_A,FrameIndex_A_Civ1(1));
    237 %             end
    238 %             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 %                 return
    242 %             end
    243 %             [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 %             else
    250 %                 [par_civ1.ImageB,VideoObject_B] = read_image(ImageName_B,FileType_B,VideoObject_B,FrameIndex_B_Civ1(1));
    251 %             end
    252227            NbField=numel(i1_series_Civ1);
    253228        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
    270230            NbField=numel(i1_series_Civ2);
    271231        else
    272232            NbField=numel(i1_series_Civ1);% no image used (only fix or patch) TO CHECK
    273233        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
    280235   
    281236   
Note: See TracChangeset for help on using the changeset viewer.