Changeset 1184 for trunk/src/index2filename.m
- Timestamp:
- Nov 6, 2025, 7:03:02 PM (4 weeks ago)
- File:
-
- 1 edited
-
trunk/src/index2filename.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/index2filename.m
r1180 r1184 1 % get the file name and frame index froma set of multimage files (e.g. from PCO camera)1 % translate logical indices i1, j1, into file name and frame index in a set of multimage files (e.g. from PCO camera) 2 2 %------------------------------------------------------------------------ 3 % [RootFile,F ileIndexString,FrameIndex]=index2filename(FileSeries,i1,j1,NbField_j)3 % [RootFile,FrameIndex]=index2filename(FileSeries,i1,j1,NbField_j) 4 4 % 5 5 % OUTPUT: 6 % RootFile, FileIndexString: name of the multimage file = [RootFile FileIndexString FileExt]7 % FrameIndex: index in the multimage file 6 % FileName: name of the multimage file = [RootFile FileIndexString FileExt] 7 % FrameIndex: index in the multimage file FileName 8 8 % 9 9 % INPUT: 10 % FileSeries: structure read from the xml file, defining the themultifile organisation of images11 % i1: global frame index i, or single concatenated index vector (then no furtherinput j1 and NbField_j10 % FileSeries: structure read from the xml file, defining the multifile organisation of images 11 % i1: global frame index i, or single concatenated index vector (then no input j1 and NbField_j 12 12 % j1: j index 13 13 % NbField_j: nbre of j indices in the index matrix … … 55 55 FileName=FileSeries.FileName{FileIndex}; 56 56 end 57 58 % switch FileSeries.Convention59 % case 'PCO'60 % RootFile=FileSeries.RootName;61 % FileIndex=floor(i_vector/FileSeries.NbFramePerFile);62 % if FileIndex>063 % RootFile=[RootFile '@'];64 % FileIndexString=num2str(FileIndex,'%04d');65 % end66 57 FrameIndex=mod(i_vector-1,FileSeries.NbFramePerFile)+1; 67 58 end
Note: See TracChangeset
for help on using the changeset viewer.
