필터 지우기
필터 지우기

Sum of 5 consecutive video frames

조회 수: 3 (최근 30일)
Joana Teixeira
Joana Teixeira 2022년 7월 5일
답변: Walter Roberson 2022년 7월 5일
Hello! How can I sum, e.g, 5 consecutive video frames to visualize the trajectory of the objects in a video? Thank you!

답변 (2개)

Anurag Kurle
Anurag Kurle 2022년 7월 5일
Hello Joana,
This can be solved by first generating the frames of the video and then adding any frames in any desired order we want.
Here's the link to extract frames from a video and here's the link to the documentation for adding images.
Hope this solves the question.

Walter Roberson
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 .

카테고리

Help CenterFile Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by