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

miscellaneous updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/get_file_info.m

    r1032 r1033  
    66% FileInfo: structure containing info on the file (case of images or video), in particular
    77%      .FileType: type of file, needed as input of read_field.m
     8%               ='figure': Matlab figure
     9%               ='xml': xml file
     10%               ='xls': Excel file
     11%               ='dat': text file for data,
     12%               ='image': image format recognised by Matlab
     13%               ='multimage': image format recognised by Matlab with  multiple frames
     14%               ='video': video movie file
     15%               ='mmreader': video from old versions of Matlab (<2009)
     16%               ='rdvision': images in binary format from company rdvision
     17%               ='image_DaVis': images from softwar DaVis (company LaVision)
     18%               ='cine_phantom': images from fast camera Phantom
     19%               ='bin': binary file without specific organisation
     20%               ='netcdf': netcdf file
     21%               ='civdata': netcdf files provided by civ_series
     22%               ='civx': netcdf files provided by the obsolete program civx (in fortran)
     23%               ='pivdata_fluidimage': PIV data from software 'fluidimage'
    824%      .FileIndexing='on' for data files (when series of indexed files are  expected)
    925%      .Height: image height in pixels
     
    5470    case {'.seq','.sqb'}
    5571        [A,FileInfo,timestamps,errormsg]=read_rdvision(fileinput,[]);
    56 %         %%%%%
    57 %         FileInfo.NumberOfFrame=24000;
    58 %         %%%%%%%%
    5972    case '.im7'
    6073        try
     
    6679             FileInfo.Width=size(Image,1);
    6780             FileInfo.TimeName='timestamp';
    68              DateString=Input.Attributes{60}.Value
    69              TimeString=Input.Attributes{59}.Value
     81             for ilist=1:numel(Input.Attributes)
     82                 if strcmp(Input.Attributes{ilist}.Name,'_Date')
     83                     DateString=Input.Attributes{ilist}.Value;
     84                 end
     85                 if strcmp(Input.Attributes{ilist}.Name,'_Time')
     86                     TimeString=Input.Attributes{ilist}.Value;
     87                 end
     88             end
    7089        catch ME
    71             msgbox_uvmat('ERROR',[ME.message;'reading image from DaVis is possible only with Matlab version 2013 or earlier'])
     90            msgbox_uvmat('ERROR',{ME.message;'reading image from DaVis is possible only with Matlab version 2013 or earlier'})
    7291            return
    7392        end
     
    166185        end
    167186end
    168 switch FileInfo.FileType
    169     case {'image','image_DaVis','multimage','mmreader','cine_phantom','video','netcdf','civdata'}
     187if ismember (FileInfo.FileType,{'image','image_DaVis','multimage','mmreader','cine_phantom','video','netcdf','civdata'})
    170188        FileInfo.FileIndexing='on'; % allow to detect file index for scanning series
    171189end
     190FileInfo.FieldType=FileInfo.FileType;%default
     191switch FileInfo.FileType
     192    case {'image','multimage','video','mmreader','rdvision','image_DaVis','cine_phantom'}
     193    FileInfo.FieldType='image';
     194end
     195
Note: See TracChangeset for help on using the changeset viewer.