how can i browse an image using matlab gui?

can u send me a tutorial for solving my problem

7 comentarios

go through the uigetifle function.
doc uigetfile
Jan
Jan el 10 de Jul. de 2013
Editada: Jan el 10 de Jul. de 2013
@Ashitha: "send me" is a command, while we usually ask friendly and polite questions in this forum.
It is not clear what "browse and image" exactly means. The more specific the question, the easier is the creation of a useful answer. The tags "pushbutton", "axes" and "textbox" seems to imply, that you have tried something by your own already. But the text of the message does not show this effort, unfortunately.
Ashitha
Ashitha el 10 de Jul. de 2013
can u send me a tutorial
Ashitha
Ashitha el 10 de Jul. de 2013
@jan simon: sorry.. Thank u for ur suggestion.. i changed it.. my question is how can i browse an image using pushbutton & its file name should be in text box
Jan
Jan el 10 de Jul. de 2013
@Ashitha: What should happen when the pushbutton is pressed?
Ashitha
Ashitha el 10 de Jul. de 2013
@Dishant Arora: How to get path of uigetfile?
You do not need the path of uigetfile. If you want to know how the path is replied by uigetfile, look at David's answer and read the documentation:
doc uigetfile

Iniciar sesión para comentar.

 Respuesta aceptada

David Sanchez
David Sanchez el 10 de Jul. de 2013
Add the following to the pushbutton callback function
[filename, pathname, filterindex] = uigetfile('*.png', 'Pick a .PNG image');
You can change, of course, the extension of your images. Go to:
help uigetfile
or
doc uigetfile
for more options.

3 comentarios

Ashitha
Ashitha el 10 de Jul. de 2013
@jansimon: image will be loaded
Ashitha
Ashitha el 11 de Jul. de 2013
path is displayed in the text box.. but image is not displayed.. why it so??
fileName = uigetfile('*.jpg');
imshow(fileName)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Environment and Settings en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 10 de Jul. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by