How to use the edge function to extract a curve from the photo, and then draw this curve on the coordinate system, and finally smooth the curve.

9 次查看(过去 30 天)
How to use the edge function to extract a curve from the photo, and then draw this curve on the coordinate system, and finally smooth the curve.I am very grateful to everyone for helping me solve this problem.
  4 个评论

请先登录,再进行评论。

采纳的回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2020-11-18
编辑:KALYAN ACHARJYA 2020-11-18
data=imbinarize(imread('image.jpeg'));
result=edge(data);
figure,imshow(result);
[r,c]=find(result==1);
figure,plot(c,r,'.');
  9 个评论
Wesley
Wesley 2020-11-19
I found the source of the problem. The reason is that the MATLAB software draws the line with the point in the upper left corner as the origin, so we see the image in the opposite direction to the original image.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by