フィルターのクリア

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

1 回表示 (過去 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.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by