Saving imshow() image as frames in one .tiff file

조회 수: 3 (최근 30일)
Sergey Makovkin
Sergey Makovkin 2016년 4월 1일
댓글: Joachim Schlosser 2016년 4월 4일
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

답변 (1개)

Joachim Schlosser
Joachim Schlosser 2016년 4월 1일
  댓글 수: 2
Sergey Makovkin
Sergey Makovkin 2016년 4월 1일
As I understand getframe() can only capture the current image (or the part of image). But how can I save my frames in multislice .tiff file?
Joachim Schlosser
Joachim Schlosser 2016년 4월 4일
getframe itself does not yet save any file, it just gets the frame.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by