MIP of frames from a video

6 visualizaciones (últimos 30 días)
AAS
AAS el 9 de Jul. de 2021
Respondida: Walter Roberson el 9 de Jul. de 2021
I have a bunch of frames from a video and would like to output the maximum intensity projection of all the frames in a single image.

Respuesta aceptada

Walter Roberson
Walter Roberson el 9 de Jul. de 2021
vidObj = VideoReader('xylophone.mp4');
gotdata = false;
mip = [];
% Read video frames until not available
while hasFrame(vidObj)
vidFrame = readFrame(vidObj);
if ~gotdata
mip = vidFrame;
gotdata = true;
else
mip = max(mip, vidFrame);
end
end
clear vidObj
imshow(mip)

Más respuestas (0)

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by