Saving imshow() image as frames in one .tiff file
2 次查看(过去 30 天)
显示 更早的评论
Please, help me with saving frames in .tiff file.
Here is my code:
nframe = 5;
nrow = 128;
ncol = 128;
clearvars A;
A(1:nrow, 1:ncol) = 0;
A = uint16(A);
for frame = 1:nframe
tic;
for row = 1:nrow
for col = 1:ncol
A(row, col) = fix(rand * 10);
end
imshow(A, 'DisplayRange',[0 10]);
hold on;
%drawnow;
pause(0.001);
end
stt = toc;
% here is a place for saving frames (imshow) in one tiff file
end
0 个评论
回答(1 个)
Joachim Schlosser
2016-4-1
2 个评论
Joachim Schlosser
2016-4-4
getframe itself does not yet save any file, it just gets the frame.
See https://www.mathworks.com/matlabcentral/answers/94582-does-matlab-support-writing-multipage-tiff-files on how to save as TIFF.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!