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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!