From: Lirui on
I'm working on a GUI through GUIDE, I want to open an image in an axes, use radio button group to specify an input ICC profile and a popupmenu to specify an output profile, and when I click a pushbutton, the profile will be assigned to the image and display the converted image in a new axes.

However, I got the problem to collect all the handles object so I check the handles I defined, and got
handles =

figure1: 179.0031
File: 0.0068
pushbutton_Conv: 216.0029
uipanel5: 195.0032
InputProfile: 192.0032
uipanel2: 186.0031
uipanel1: 180.0031
Quit: 3.0050
Save: 2.0050
Open: 1.0050
popupmenu1: 196.0032
radiobutton_s90: 194.0032
radiobutton_sRGB: 193.0032
axes_Proof: 187.0031
axes_Input: 181.0031
output: 179.0031

Which I thought it would be the name of variables I specified, how to do with this case?

Many thanks for any help..
From: us on
"Lirui " <elffromprague(a)googlemail.com> wrote in message <hq2t78$hfb$1(a)fred.mathworks.com>...
> I'm working on a GUI through GUIDE, I want to open an image in an axes, use radio button group to specify an input ICC profile and a popupmenu to specify an output profile, and when I click a pushbutton, the profile will be assigned to the image and display the converted image in a new axes.
>
> However, I got the problem to collect all the handles object so I check the handles I defined, and got
> handles =
>
> figure1: 179.0031
> File: 0.0068
> pushbutton_Conv: 216.0029
> axes_Input: 181.0031
> output: 179.0031
>
> Which I thought it would be the name of variables I specified, how to do with this case?
>
> Many thanks for any help..

i guess most CSSMers don't quite understand your problem...
WHY do you have to ...collect all the handles object... (?)...
WHAT do you want to do with them(?)...
in order to see what they represent, look at, eg,

get(handles.output)

us
From: Lirui on
"us " <us(a)neurol.unizh.ch> wrote in message <hq2tkg$m4h$1(a)fred.mathworks.com>...
> "Lirui " <elffromprague(a)googlemail.com> wrote in message <hq2t78$hfb$1(a)fred.mathworks.com>...
> > I'm working on a GUI through GUIDE, I want to open an image in an axes, use radio button group to specify an input ICC profile and a popupmenu to specify an output profile, and when I click a pushbutton, the profile will be assigned to the image and display the converted image in a new axes.
> >
> > However, I got the problem to collect all the handles object so I check the handles I defined, and got
> > handles =
> >
> > figure1: 179.0031
> > File: 0.0068
> > pushbutton_Conv: 216.0029
> > axes_Input: 181.0031
> > output: 179.0031
> >
> > Which I thought it would be the name of variables I specified, how to do with this case?
> >
> > Many thanks for any help..
>
> i guess most CSSMers don't quite understand your problem...
> WHY do you have to ...collect all the handles object... (?)...
> WHAT do you want to do with them(?)...
> in order to see what they represent, look at, eg,
>
> get(handles.output)
>
> us

Sorry for not being clear.

Basically, I want to pass two sets of values to a pushbutton function, one is from a radio button group and the other is from popupmenu, both of them are string, let's say, I select 'sRGb.icc' from radio button group, and 'SWOP.icc' from popupmenu, when I click a push button, the tow strings will be used by iccread and conform a filter to apply to an open image.

My question is how to pass these strings to the push button callback funciton..

many thanks
From: ImageAnalyst on
You could just declare them "global" in every function that mentions
them. Then they'll be available. That's probably the simplest way.
Or attach them to the handles object as an additional field but then
you may have to return the handles structure to the calling routine or
mess around with guidata().