From: Sowmya on
Hi,
I want to browse and locate my input image files using GUI..Is it possible?Can anyone send me any materials related to this?
From: Shanmugam Kannappan on
"Sowmya " <sowmya_h88(a)yahoo.com> wrote in message <hqoi7d$bvn$1(a)fred.mathworks.com>...
> Hi,
> I want to browse and locate my input image files using GUI..Is it possible?Can anyone send me any materials related to this?

Hi,

Add a push button in the GUI & write a call back for the same.
In call back use the command "uigetfile()".
Get more info in MATLAB help.

Shan...
From: Sowmya on
Hi,
By using uigetfile() i m getting the browser window.. but how to give the image i selected as input to imread() function?

From: Walter Roberson on
Sowmya wrote:
> Hi,
> By using uigetfile() i m getting the browser window.. but how to give
> the image i selected as input to imread() function?
>

uigetfile returns two values, a directory and a filename; make sure you
capture them both. Check the data type of what was returned first: if
they are not character class, then the user canceled out of uigetfile.
If they are character class, then all you have to do to create a
complete file name is to concatenate the filename to the end of the
directory, using (.e.g.)

fullchosenfile = [chosendirectory chosenfile];

and then you can

imread(fullchosenfile)
 | 
Pages: 1
Prev: PSNR
Next: Early stopping in cross Validation