Hello everyone. For example, how to identify a specific point in an image in a moving video as follows. The required video is also uploaded in zip format. If you are interested, you can discuss with me. Thank you all very much.
조회 수: 1 (최근 30일)
이전 댓글 표시
The video screenshot is as follows:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/566091/image.png)
댓글 수: 4
답변 (2개)
darova
2021년 3월 31일
Here is an example for extreme points: find points where derivative changes it's sign
clc,clear
x = 0:0.2:10;
y = sin(x);
dy = sign(diff(y)); % sign of derivative
c1 = abs(diff(dy)); % change of sign
ix1 = 1 + find(c1);
plot(x(ix1),y(ix1),'or')
line(x,y)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/568674/image.png)
Read about curvature to find inflection points: LINK
Inflection point is a point where curvature changes its sign
댓글 수: 2
Image Analyst
2021년 4월 1일
You have to be able to describe in words what is unique about the point(s) you want to find. Then you can develop an algorithm to find it(them). For example, the blob looks roughly like an upside down V and I want to find the highest point (lowest line or row number) of the dent in the bottom middle of the blob. If you have that, you can make an algorithm.
Image Analyst
2021년 3월 31일
The bounding box and centroid are easy - just call regionprops()
props = regionprops(binaryImage, 'Centroid', 'BoundingBox');
If you want any other locations, you'd have to somehow precisely define where they are. It depends on the shape. Are all the shapes like that arrowhead shape?
댓글 수: 4
Image Analyst
2021년 4월 1일
OK, so the shape changes but is the thing you want to record the location of there in every shape? Post a few shapes and indicate the point(s) that you want to find.
Sure you can write a video from images or figures or axes. I'm attaching several demos that make videos.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!