How to find the coordinates of to points in a image?

조회 수: 3 (최근 30일)
Abin Krishnan
Abin Krishnan 2013년 11월 15일
댓글: Image Analyst 2013년 11월 16일
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
Azzi Abdelmalek
Azzi Abdelmalek 2013년 11월 15일
What do you mean by : to fix coordinates of the two points

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

답변 (1개)

Image Analyst
Image Analyst 2013년 11월 15일
angle = atan2d((y2-y1)/(x2-x1));
  댓글 수: 3
Walter Roberson
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
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.

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

카테고리

Help CenterFile Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by