speeding up tiff writing
3 次查看(过去 30 天)
显示 更早的评论
I'm trying to write a large (~18,000) frame image stack to a tiff file. See code below :
imgname=[SubDataFolder,...
'/_BG_',num2str(0),'_BGstd_',num2str(0),'_kappa',num2str(kappa),'_run_',num2str(runNum),'.tiff']; % 0 just sets the image name
imwrite(uint16(BgIm160(:, :,1)),imgname); % - writes the first image
disp(['Starting Image Writing Loop for ',imgname]) % - for trouble shooting
for(k=2:num_images) % - writes the rest of the images
imwrite(uint16(BgIm160(:, :, k)),imgname,'WriteMode','append');
fracdone=round((k./num_images)*100) % - shows hoe much is done
%
end
This is taking a REALLY long time, is it just becuase 18k slices is a lot to write in a file (each slice is 200x500), and I just need to be patient, or is there a better/faster way to write this to a .tif file (for later analysis in ImageJ)
thanks
5 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!