How to get pixel's position of an image in app.Image or app.UIAxes in AppDesigner?

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.

 Accepted Answer

first step
% Image clicked function: Image
function ImageClicked(app, event)
get(0, 'PointerLocation')
end

1 Comment

oh my god. thank you so much!
i was having headache because of this!!!!!

Sign in to comment.

More Answers (0)

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products

Release

R2022a

Asked:

on 28 Feb 2023

Moved:

on 28 Feb 2023

Community Treasure Hunt

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

Start Hunting!