MIP of frames from a video
2 views (last 30 days)
Show older comments
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.
0 Comments
Accepted Answer
Walter Roberson
on 9 Jul 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)
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!