How to get pixel's position of an image in app.Image or app.UIAxes in AppDesigner?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
jaeyoung gwak
il 28 Feb 2023
Spostato: Image Analyst
il 28 Feb 2023
I'm using MATLAB R2022a
Here's the scrrenshot i took.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1309725/image.png)
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 Commenti
Risposta accettata
chrisw23
il 28 Feb 2023
Spostato: Image Analyst
il 28 Feb 2023
first step
% Image clicked function: Image
function ImageClicked(app, event)
get(0, 'PointerLocation')
end
1 Commento
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Display and Exploration in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!