How to find the coordinates of to points in a image?
조회 수: 3 (최근 30일)
이전 댓글 표시
I have two points in a image. I want to fix coordinates of the two points and convert them into polar coordinates. My intention is to find the angle made by the vector joining these two points.
댓글 수: 1
답변 (1개)
Image Analyst
2013년 11월 15일
angle = atan2d((y2-y1)/(x2-x1));
댓글 수: 3
Walter Roberson
2013년 11월 16일
How do you tell where the points are? Is there something distinctive about the points that you search for in the image? Or are you wanting the user to click on the points? If that is the case look at ginput()
Image Analyst
2013년 11월 16일
You said "I have two points in a image" so I assume that you already specified them in some way that you did not tell us about.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!