From: Royi Avital on 20 May 2010 10:35 Hello. I built a GUI for Image Restoration. I want to let the user use the imcontrast tool: http://www.mathworks.com/access/helpdesk/help/toolbox/images/imcontrast.html What I couldn't do is getting back the adjusted values after the user applied the his choice using the imcontrast tool. Let's say I have an Image - I. I open an a window displaying it: imshow(I, []); Then letting the user play with the imcontrast tool: imcontrast; Now I want to get back the adjusted Matrix. How can I do that? Thanks.
From: Walter Roberson on 20 May 2010 15:42 "Royi Avital" <RoyiREMOVEAvital(a)yahoo.com> wrote in message <ht3haq$fkf$1(a)fred.mathworks.com>... > I built a GUI for Image Restoration. > I want to let the user use the imcontrast tool: > http://www.mathworks.com/access/helpdesk/help/toolbox/images/imcontrast.html > > What I couldn't do is getting back the adjusted values after the user applied the his choice using the imcontrast tool. get() the CData property of the image after you have adjusted its contrast.
From: Royi Avital on 21 May 2010 05:33 "Walter Roberson" <roberson(a)ibd.nrc-cnrc.gc.ca> wrote in message <ht43ac$ddq$1(a)fred.mathworks.com>... > "Royi Avital" <RoyiREMOVEAvital(a)yahoo.com> wrote in message <ht3haq$fkf$1(a)fred.mathworks.com>... > > > I built a GUI for Image Restoration. > > I want to let the user use the imcontrast tool: > > http://www.mathworks.com/access/helpdesk/help/toolbox/images/imcontrast.html > > > > What I couldn't do is getting back the adjusted values after the user applied the his choice using the imcontrast tool. > > get() the CData property of the image after you have adjusted its contrast. Hello. Thanks for the answer. The problem is I only have the Figure handler. How can I extract the image object handler out of the figure handler? Thanks.
From: Walter Roberson on 21 May 2010 10:58 Royi Avital wrote: > The problem is I only have the Figure handler. > How can I extract the image object handler out of the figure handler? ImageHandle = findobj(FigureHandle, 'Type', 'image');
From: Royi Avital on 22 May 2010 05:13 Walter Roberson <roberson(a)hushmail.com> wrote in message <ZbxJn.8880$%u7.5776(a)newsfe14.iad>... > Royi Avital wrote: > > > The problem is I only have the Figure handler. > > How can I extract the image object handler out of the figure handler? > > ImageHandle = findobj(FigureHandle, 'Type', 'image'); Worked like a charm. Thank you.
|
Pages: 1 Prev: Image Stack in GUI Next: how to open a file named "*.rpt"? |