MIP of frames from a video
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
AAS
le 9 Juil 2021
Réponse apportée : Walter Roberson
le 9 Juil 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.
0 commentaires
Réponse acceptée
Walter Roberson
le 9 Juil 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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Audio and Video Data dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!