how to read the image in gui?

1 回表示 (過去 30 日間)
norfaizayu
norfaizayu 2012 年 1 月 29 日
hi.. i have problem to read my image in gui.i mean that i want to read the image from the folder to place in gui at spacific place that mean in place that i already create for that.anyone can help me?

採用された回答

Walter Roberson
Walter Roberson 2012 年 1 月 29 日
axes() to create and position the axes.
uigetfile() to select the file. imread() to read the image. imshow() with the 'Parent' option to display the image in the specific axes.
  3 件のコメント
Image Analyst
Image Analyst 2012 年 1 月 29 日
I did not understand this: "if i use "axes" its view at gui not in place that i create in gui" The image will appear in the axes control at the location you placed that control on the gui (figure). However the default behavior is to auto-size the image to fit into the axes while maintaining the original aspect ratio, so it won't "stretch to fill" the entire axes, if that's what you were thinking of.
Walter Roberson
Walter Roberson 2012 年 1 月 29 日
Please read my notes in http://www.mathworks.com/matlabcentral/answers/22208-show-figure

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

その他の回答 (1 件)

Image Analyst
Image Analyst 2012 年 1 月 29 日

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by