Changeset 1033 for trunk/src/get_file_info.m
- Timestamp:
- Apr 30, 2018, 8:01:35 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_file_info.m
r1032 r1033 6 6 % FileInfo: structure containing info on the file (case of images or video), in particular 7 7 % .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' 8 24 % .FileIndexing='on' for data files (when series of indexed files are expected) 9 25 % .Height: image height in pixels … … 54 70 case {'.seq','.sqb'} 55 71 [A,FileInfo,timestamps,errormsg]=read_rdvision(fileinput,[]); 56 % %%%%%57 % FileInfo.NumberOfFrame=24000;58 % %%%%%%%%59 72 case '.im7' 60 73 try … … 66 79 FileInfo.Width=size(Image,1); 67 80 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 70 89 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'}) 72 91 return 73 92 end … … 166 185 end 167 186 end 168 switch FileInfo.FileType 169 case {'image','image_DaVis','multimage','mmreader','cine_phantom','video','netcdf','civdata'} 187 if ismember (FileInfo.FileType,{'image','image_DaVis','multimage','mmreader','cine_phantom','video','netcdf','civdata'}) 170 188 FileInfo.FileIndexing='on'; % allow to detect file index for scanning series 171 189 end 190 FileInfo.FieldType=FileInfo.FileType;%default 191 switch FileInfo.FileType 192 case {'image','multimage','video','mmreader','rdvision','image_DaVis','cine_phantom'} 193 FileInfo.FieldType='image'; 194 end 195
Note: See TracChangeset
for help on using the changeset viewer.