フィルターのクリア

How to obtain the coordinates in a MATLAB image as I move the cursor of the mouse on it?

12 ビュー (過去 30 日間)
I have obtained the following image (which is the binary matrix M). I would like to know if there is a way to get the coordinates of the pink lines in the matlab plot, so that as I move the mouse cursor in the matlab plot, I get information about the current coordinates that I am pointing with the mouse.

採用された回答

Image Analyst
Image Analyst 2022 年 6 月 4 日
Display your image and then call impixelinfo
imshow(yourImage);
impixelinfo; % Show (x,y) and RGB or gray level as user mouses around over the image.
Look for a "live" status in the lower left of your figure with the information.

その他の回答 (1 件)

Sam Chak
Sam Chak 2022 年 6 月 4 日

カテゴリ

Help Center および File ExchangeImages についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by