フィルターのクリア

imshow - Stretching image to fill axis

26 ビュー (過去 30 日間)
Matt
Matt 2013 年 1 月 13 日
I'm trying to display an image on an axis within a GUI. I'm using the imshow function, but it keeps the dimension ratio of the image. I would like to stretch the image, ignoring the dimension ratio, to fill the axis. Any suggestions?
Thanks, Matt

採用された回答

Image Analyst
Image Analyst 2013 年 1 月 13 日
編集済み: Image Analyst 2013 年 1 月 14 日
You can display with imshow() and use the 'XData' and 'YData' property. For example:
imshow(grayImage, [], 'XData', [0 .5], 'YData', [0 .1]);
  2 件のコメント
Walter Roberson
Walter Roberson 2013 年 1 月 14 日
You can pass in coordinates to image() and imagesc()
Matt
Matt 2013 年 1 月 14 日
Xdata and Ydata worked great, thanks!

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

その他の回答 (1 件)

Jurgen
Jurgen 2013 年 1 月 13 日
Have you tried image or imagesc? Or the 'axis image' command?

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by