How to get pixel's position of an image in app.Image or app.UIAxes in AppDesigner?
4 次查看(过去 30 天)
显示 更早的评论
I'm using MATLAB R2022a
Here's the scrrenshot i took.
I get the image by using 'Select image' button. (uigetfile)
What i want is if i click the app.Image or app.UIaxes after getting the image, i want to get the coordinate of the clickpoint and rgb data variable.
I also want to draw the circle using the coordinates.
I tried using datacursormode and drawcircle.
but it didn't work.
0 个评论
采纳的回答
chrisw23
2023-2-28
移动:Image Analyst
2023-2-28
first step
% Image clicked function: Image
function ImageClicked(app, event)
get(0, 'PointerLocation')
end
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Display and Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!