フィルターのクリア

How to insert axes manually in a RGB image?

13 ビュー (過去 30 日間)
Jhon Gray
Jhon Gray 2020 年 11 月 19 日
回答済み: Image Analyst 2020 年 11 月 19 日
I want to use manual axes information in an image. I tried axes image and edit axes after imshow. Both times failed to show the x or y axes. I am uploading the image. Please someone help.
  1 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2020 年 11 月 19 日
Can you share any pictorial representation image (You can use any Image Editing tool)?

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

回答 (1 件)

Image Analyst
Image Analyst 2020 年 11 月 19 日
After calling imshow(), try this:
axis('on', 'image');
You can also set the default for axes visible on the Tool ribbon: Home/Preferences/Image Processing Toolbox/Axes Visible.
If you want the axes to be in custom units rather than in pixels, set the 'XData' and 'YData' properties to whatever numbers you want the first and last pixel to be in each direction. For example if you wanted the image to be 19 wide and 10 high, you could do this:
imshow(yourImage, 'XData', [0, 19], 'YData', [0, 10]);
The axes will show those numbers instead of the pixel values.

カテゴリ

Help Center および File ExchangeExplore and Edit Images with Image Viewer App についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by