フィルターのクリア

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

6 ビュー (過去 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
  1 件のコメント
jaeyoung gwak
jaeyoung gwak 2023 年 2 月 28 日
移動済み: Image Analyst 2023 年 2 月 28 日
oh my god. thank you so much!
i was having headache because of this!!!!!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by