Ignore:
Timestamp:
Apr 9, 2013, 8:20:00 PM (11 years ago)
Author:
sommeria
Message:

various bugs corrected after tests with Windows OS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/find_file_series.m

    r599 r609  
    55% OUTPUT:
    66% RootFile: root file detected in fileinput, possibly modified for movies (indexing is then done on image view, not file)
    7 % i1_series(ref_i+1, ref_j+1,pair),i2_series,j1_series,j2_series: set of indices (i1,i2,j1,j2) sorted by ref index ref_i, ref_j, and pairindex in case of multiple pairs with the same ref
     7% i1_series(pair,ref_j+1, ref_i+1),i2_series,j1_series,j2_series: set of indices (i1,i2,j1,j2) sorted by ref index ref_i, ref_j, and pairindex in case of multiple pairs with the same ref
    88%  (ref_i+1 is used to deal with the image index zero sometimes used)
    99% NomType: nomenclature type corrected after checking the first file (problem of 0 before the number string)
     
    244244if isfield(FileInfo,'NumberOfFrames') && FileInfo.NumberOfFrames >1
    245245    if isempty(i1_series)
    246         i1_series=(1:FileInfo.NumberOfFrames)';
     246        i1_series=zeros(FileInfo.NumberOfFrames+1,2);% first column =0
     247        i1_series(:,2)=(0:FileInfo.NumberOfFrames)'; % second column=frame index -1
    247248        i1_input=1;
    248249        NomType='*';
    249250    else
    250         i1_series=i1_series(:,2)*ones(1,FileInfo.NumberOfFrames);
     251        i1_series=i1_series(:,2)*ones(0,FileInfo.NumberOfFrames);
    251252        i1_series=[i1_series(:,1) i1_series];
    252253        j1_series=ones(size(i1_series,1),1)*(0:FileInfo.NumberOfFrames);
Note: See TracChangeset for help on using the changeset viewer.