MIP of frames from a video

4 次查看(过去 30 天)
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.

采纳的回答

Walter Roberson
Walter Roberson 2021-7-9
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)

更多回答(0 个)

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by