how to click a point in an image
1 次查看(过去 30 天)
显示 更早的评论
Is there any function which can be used to click a point and save the point's location aside from impoint?
Thanks,
Zhong
0 个评论
采纳的回答
Image Analyst
2012-4-18
You can also use impixel(). It gives you the image intensity or color as well as the x,y coordinate(s). From the help:
"
Description
impixel returns the red, green, and blue color values of specified image pixels. In the syntax below, impixel displays the input image and waits for you to specify the pixels with the mouse.
P = impixel(I)
P = impixel(X,map)
P = impixel(RGB)
[xi,yi,P] = impixel(x,y,...)"
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!