Sum of 5 consecutive video frames
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hello! How can I sum, e.g, 5 consecutive video frames to visualize the trajectory of the objects in a video? Thank you!
0 Commenti
Risposte (2)
Walter Roberson
il 5 Lug 2022
If you have the frames already in a 3D array, then you might want to consider using movmean or movmedian
window = 5; dim = 3;
mmf5 = cast(movmean(YourFrames, window, dim), 'like', YourFrames);
The cast() is there because movmean() will take the mean as double precision, but the result would not be something you could display as easily if the original data is uint8 .
0 Commenti
Vedere anche
Categorie
Scopri di più su Computer Vision with Simulink in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!