필터 지우기
필터 지우기

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일
Wen's comments (Image) as an answer has been deleted. Same Image in Attached.

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

채택된 답변

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