How can I define multiple points on a structural part, then track them in a video and plot displacement vs time graph.

1 次查看(过去 30 天)
I want to plot displacement of various points on the finger boundary from their mean position and plot the displacement vs point graph (or histogram say).

采纳的回答

Sharad
Sharad 2023-6-25
Hi,
As per my understanding, you are interested in tracking a certain number of points on the finger boundary as shown in the image, and plot the displacement of these points from their mean position.
Here are some steps that you may want to follow;
  • Install the computer vision toolbox from the MATLAB add on explorer.
  • Read the video file using VideoReader().
video = VideoReader('video.mp4');
  • Use 'ginput()' or image segmentation techniques to locate points of interest along the finger boundary.
numPoints = 5;
points = ginput(numPoints);
  • You can use the PointTracker object from the computer vision toolbox to keep track of these points, and store them.
% initialize tracker
tracker = vision.PointTracker();
initialize(tracker, points, frame);
for i = 1:video.NumFrames
% Login implementation
end
  • Use MATLAB functions like plot() to plot the displacements.
Here are some links that you might like to follow.

更多回答(0 个)

类别

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