필터 지우기
필터 지우기

How do I plot a trajectory of an object in video.

조회 수: 13 (최근 30일)
Shachar Givon
Shachar Givon 2017년 12월 4일
답변: Lucy Davidson 2020년 4월 3일
I have a video of a test subject moving around and I need to plot it's where abouts over a time period. The subject has a distinctive red color while the background is mostly white. How can I record it's (x,y) whereabouts and then plot them?
  댓글 수: 2
KSSV
KSSV 2017년 12월 4일
Not clear...you have a video and you want to plot the trajectory of the object from video...or you want to make a video of the trajectory?
Shachar Givon
Shachar Givon 2017년 12월 4일
I have the video and want to plot the trajectory of the object from the video

댓글을 달려면 로그인하십시오.

답변 (2개)

Image Analyst
Image Analyst 2017년 12월 4일
Find the red object first. The Color Thresholder app on the Apps tab of the tool ribbon might be helpful. Or else see my File Exchange. https://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862&sort=downloads_desc
Then save the (row, column) or (x, y) location of the red object in a loop over frames and plot it.
x(frameNumber) = column;
y(frameNumber) = row;
cla;
plot(x, y, 'r-', 'LineWidth', 2);
grid on;

Lucy Davidson
Lucy Davidson 2020년 4월 3일
Did you manage to do this?? I am trying to do a smililar thing and I am quite confused. I had made the back ground white and the animal i am tracking black

카테고리

Help CenterFile Exchange에서 Tracking and Motion Estimation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by