Sum of 5 consecutive video frames
1 回表示 (過去 30 日間)
古いコメントを表示
Hello! How can I sum, e.g, 5 consecutive video frames to visualize the trajectory of the objects in a video? Thank you!
0 件のコメント
回答 (2 件)
Walter Roberson
2022 年 7 月 5 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Computer Vision with Simulink についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!