Ignore:
Timestamp:
Nov 6, 2025, 7:03:02 PM (4 weeks ago)
Author:
sommeria
Message:

bed-scan updated and many updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/index2filename.m

    r1180 r1184  
    1 % get the file name and frame index from a 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)
    22%------------------------------------------------------------------------
    3 % [RootFile,FileIndexString,FrameIndex]=index2filename(FileSeries,i1,j1,NbField_j)
     3% [RootFile,FrameIndex]=index2filename(FileSeries,i1,j1,NbField_j)
    44%
    55% 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   
    88%
    99% INPUT:
    10 % FileSeries: structure read from the xml file, defining the the multifile organisation of images 
    11 % i1: global frame index i, or  single concatenated index vector (then no further input j1 and NbField_j
     10% 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
    1212% j1: j index
    1313% NbField_j: nbre of j indices in the index matrix
     
    5555        FileName=FileSeries.FileName{FileIndex};
    5656    end
    57 
    58     % switch FileSeries.Convention
    59     %     case 'PCO'
    60     %         RootFile=FileSeries.RootName;
    61     %         FileIndex=floor(i_vector/FileSeries.NbFramePerFile);
    62     %         if FileIndex>0
    63     %             RootFile=[RootFile '@'];
    64     %            FileIndexString=num2str(FileIndex,'%04d');
    65     %         end
    6657    FrameIndex=mod(i_vector-1,FileSeries.NbFramePerFile)+1;
    6758end
Note: See TracChangeset for help on using the changeset viewer.