Azzera filtri
Azzera filtri

Display JPEG file in GUI

3 visualizzazioni (ultimi 30 giorni)
Cheng Yoong
Cheng Yoong il 15 Dic 2011
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?

Risposta accettata

Chandra Kurniawan
Chandra Kurniawan il 15 Dic 2011
Fisrt you need to read your image that saved in your drive.
Eq :
I = imread('C:\My Document\Filename.jpg');
imshow(I);
  1 Commento
Walter Roberson
Walter Roberson il 15 Dic 2011
Right.
And No, it does not need to go in any particular folder.

Accedi per commentare.

Più risposte (1)

Hamrit
Hamrit il 22 Mag 2012
creat Axe in your gui
then =======
I=imread('yourfile');
axes(handles.axe1);
imshow(I);

Categorie

Scopri di più su Display Image in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by