MIP of frames from a video
3 ビュー (過去 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.
0 件のコメント
採用された回答
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 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!