Changeset 931 for trunk/src/series/extract_multitif.m
- Timestamp:
- Mar 13, 2016, 6:29:07 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/extract_multitif.m
r930 r931 142 142 ImagesPerLevel=100;%100; 143 143 count=0; 144 %count= 933;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%CORRECTION EXP08:67->_11_1145 %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 146 146 %% loop on the files 147 147 for ifile=1:numel(ListFile) … … 156 156 for iframe=1:NbFrames 157 157 A=imread(ImageName,iframe); 158 count=count+1; 158 159 159 if isequal(ImagesPerLevel,1)% mode series 160 160 161 OutputFile=fullfile(OutputDir,['img_' num2str(count ) '.png']);161 OutputFile=fullfile(OutputDir,['img_' num2str(count+1) '.png']); 162 162 else % mode multilevel or volume (indices i and j) 163 163 i_index=fix(count/ImagesPerLevel)+1; … … 166 166 end 167 167 imwrite(A,OutputFile,'BitDepth',16) 168 count=count+1; 168 169 end 169 170 end
Note: See TracChangeset
for help on using the changeset viewer.