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/series/sub_background.m

    r1032 r1033  
    107107
    108108    %% check the validity of  input file types
    109     ImageTypeOptions={'image','multimage','mmreader','video','cine_phantom','image_DaVis'};%allowed input file types(images)
    110109    FileInfo=get_file_info(FirstFileName);
    111110    FileType=FileInfo.FileType;
    112     CheckImage=~isempty(find(strcmp(FileType,ImageTypeOptions), 1));% =1 for images
     111    CheckImage=strcmp(FileInfo.FieldType,'image');% =1 for images
    113112    if ~CheckImage
    114113        msgbox_uvmat('ERROR',['invalid file type input: ' FileType ' not an image'])
Note: See TracChangeset for help on using the changeset viewer.