How do I play a multiframe TIFF file as a video in matlab?
19 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
AM
am 10 Dez. 2018
Kommentiert: Walter Roberson
am 8 Jan. 2019
I want to detect features that show up in different frames.
2 Kommentare
Mark Sherstan
am 10 Dez. 2018
Should not be a problem. Please post your file so we can verify. Most likely the tiff file will be a 4 dimensional matrix where the first 3 matrices are some color space and the 4th one relates to the frame or time. You will just have to loop through that final index.
Akzeptierte Antwort
Walter Roberson
am 11 Dez. 2018
filename = '0024_MMStack_Pos0.ome-2.tif';
info = imfinfo(filename);
numframe = length(info);
for K = 1 : numframe
rawframes(:,:,:,K) = imread(filename, K);
end
cookedframes = mat2gray(rawframes);
implay(cookedframes)
3 Kommentare
Walter Roberson
am 8 Jan. 2019
You can use insertShape from the Computer Vision toolbox to draw the circles into the arrays.
Weitere Antworten (1)
KSSV
am 11 Dez. 2018
tifffiles = dir('*.tiff') ;
N = length(tifffiles) ;
for i = 1:N
tifffile = tifffiles(i).name ;
imshow(tifffile) ;
pause(0.1)
end
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!