Changeset 1033 for trunk/src/set_grid.m


Ignore:
Timestamp:
Apr 30, 2018, 8:01:35 PM (3 years ago)
Author:
sommeria
Message:

miscellaneous updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/set_grid.m

    r1027 r1033  
    241241end
    242242[FileInfo,VideoObject]=get_file_info(GUI.ImageA);
    243 switch FileInfo.FileType
    244     case {'image','multimage','video','mmreader'}% case of input image or movie OK
    245     otherwise
    246         msgbox_uvmat('ERROR',['error: ' GUI.ImageA ' is not an image type recognized by Matlab '])
    247         return
    248 end
     243if ~strcmp(FileInfo.FieldType,'image');% =1 for images
     244    msgbox_uvmat('ERROR',['error: ' GUI.ImageA ' is not an image type recognized by Matlab '])
     245    return
     246end
     247
    249248[RootPath,SubDir,RootFile,tild,tild,tild,tild,FileExt]=fileparts_uvmat(GUI.ImageA);
    250249
     
    336335        ImageB=fullfile(PathName,FileName);
    337336        [FileInfo,tild,VideoObject]=get_file_info(ImageB);
    338     switch FileInfo.FileType
    339         case {'image','multimage','video','mmreader'}% case of input image or movie OK
    340             set(handles.ImageB,'String',ImageB)
    341         otherwise
    342             msgbox_uvmat('ERROR',['error: ' imageB ' is not an image type recognized by Matlab '])
     337        if ~strcmp(FileInfo.FieldType,'image');% =1 for images
     338            msgbox_uvmat('ERROR',['error: ' imageB ' is not an image type recognised by Matlab '])
    343339            return
    344340    end
Note: See TracChangeset for help on using the changeset viewer.