MIP of frames from a video

조회 수: 7 (최근 30일)
AAS
AAS 2021년 7월 9일
답변: Walter Roberson 2021년 7월 9일
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개)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by