Changeset 790 for trunk/src/get_file_info.m
- Timestamp:
- Jul 2, 2014, 9:30:32 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_file_info.m
r784 r790 32 32 case {'.xml','.xls','.dat','.bin'} 33 33 FileInfo.FileType=regexprep(FileExt,'^.','');% eliminate the dot of the extension; 34 case '.seq' 35 FileInfo=ini2struct(fileinput); 36 if isfield(FileInfo,'sequenceSettings')&& isfield(FileInfo.sequenceSettings,'numberoffiles') 37 FileInfo.NumberOfFrames=str2double(FileInfo.sequenceSettings.numberoffiles); 38 FileInfo.FrameRate=str2double(FileInfo.sequenceSettings.framepersecond); 39 FileInfo.ColorType='grayscale'; 40 else 41 FileInfo.FileType=''; 42 return 43 end 44 FileInfo.FileType='rdvision'; % file used to store info from image acquisition systems of rdvision 45 nbfield=numel(fieldnames(FileInfo)); 46 FileInfo=orderfields(FileInfo,[nbfield nbfield-1 nbfield-2 (1:nbfield-3)]); %reorder the fields of fileInfo for clarity 34 case {'.seq','.sqb'} 35 [A,FileInfo,timestamps,errormsg]=read_rdvision(fileinput,[]); 36 47 37 otherwise 48 38 if ~isempty(FileExt)% exclude empty extension … … 120 110 end 121 111 end 112 switch FileInfo.FileType 113 case {'image','multimage','mmreader','video','netcdf','civdata'} 114 FileInfo.FileIndexing='on'; % allow to detect file index for scanning series 115 end
Note: See TracChangeset
for help on using the changeset viewer.