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.

채택된 답변

chrisw23
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 CenterFile Exchange에서 Display and Exploration에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by