Ignore:
Timestamp:
Mar 13, 2016, 6:29:07 PM (8 years ago)
Author:
sommeria
Message:

various

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/extract_multitif.m

    r930 r931  
    142142ImagesPerLevel=100;%100;
    143143count=0;
    144 %count=933;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%CORRECTION EXP08: 67->_11_1
    145 %count=1934%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%CORRECTION EXP07:
     144%count=316;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%CORRECTION EXP08: 4684 images -> start at 316 start 67->_11_1
     145%count=1934%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%CORRECTION EXP07: 3066 images
    146146%% loop on the files
    147147for ifile=1:numel(ListFile)
     
    156156    for iframe=1:NbFrames     
    157157        A=imread(ImageName,iframe);
    158         count=count+1;
     158
    159159        if isequal(ImagesPerLevel,1)% mode series
    160160           
    161             OutputFile=fullfile(OutputDir,['img_' num2str(count) '.png']);
     161            OutputFile=fullfile(OutputDir,['img_' num2str(count+1) '.png']);
    162162        else % mode multilevel or volume (indices i and j)
    163163            i_index=fix(count/ImagesPerLevel)+1;
     
    166166        end
    167167        imwrite(A,OutputFile,'BitDepth',16)
     168        count=count+1;
    168169    end
    169170end
Note: See TracChangeset for help on using the changeset viewer.