Display JPEG file in GUI

4 ビュー (過去 30 日間)
Cheng Yoong
Cheng Yoong 2011 年 12 月 15 日
I want to display an image in my GUI.
An example given by Matlab on how to do this is by using imshow command:
imshow('board.tif')
now i want to display an image i've created.
how am i going to do that?
Do i have to place the file into specific folder?

採用された回答

Chandra Kurniawan
Chandra Kurniawan 2011 年 12 月 15 日
Fisrt you need to read your image that saved in your drive.
Eq :
I = imread('C:\My Document\Filename.jpg');
imshow(I);
  1 件のコメント
Walter Roberson
Walter Roberson 2011 年 12 月 15 日
Right.
And No, it does not need to go in any particular folder.

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

その他の回答 (1 件)

Hamrit
Hamrit 2012 年 5 月 22 日
creat Axe in your gui
then =======
I=imread('yourfile');
axes(handles.axe1);
imshow(I);

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by