MATLAB Answers

0

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

Asked by Sergey Makovkin on 1 Apr 2016
Latest activity Commented on by Joachim Schlosser on 4 Apr 2016
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 Comments

Sign in to comment.

Tags

1 Answer

Answer by Joachim Schlosser on 1 Apr 2016

  2 Comments

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?

Sign in to comment.