Path: news.mathworks.com!not-for-mail
From: "Pulkit " <pulkit.audacious1.remove1tomail@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to handle uploaded image in Gui
Date: Wed, 13 May 2009 13:00:19 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 30
Message-ID: <gueg93$jj1$1@fred.mathworks.com>
References: <gudb01$51g$1@fred.mathworks.com> <93a98eeb-81dc-408e-8640-3142cc4542ac@u10g2000vbd.googlegroups.com> <gue6bl$cla$1@fred.mathworks.com> <guefah$h41$1@fred.mathworks.com>
Reply-To: "Pulkit " <pulkit.audacious1.remove1tomail@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1242219619 20065 172.30.248.37 (13 May 2009 13:00:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 13 May 2009 13:00:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1206027
Xref: news.mathworks.com comp.soft-sys.matlab:539568


Hi Ben,

Thnx for that.
I meant that, as I move my mouse pointer over the image, i want to get pixel data point by point & then I want to save these data values at certain pixels for future use.

The problem is how do I get the handle of the image in the GUI.
Once I use imshow()  to display the image in the axes , the Buttondownfcn of the axes no longer works, thus i am unable to detect the current location of my mouse pointer on the image.

Thnx for the help.

Regards,
Pulkit


"Ben " <bta7905.nospam@msn.com> wrote in message <guefah$h41$1@fred.mathworks.com>...
> "Pulkit " <pulkit.audacious1.remove1tomail@gmail.com> wrote in message <gue6bl$cla$1@fred.mathworks.com>...
> > Hey, thnx a lot for tht.
> > I could manipulate with the image, but not with the individual pixels, like displaying the pixel value, the RGB value of a pixel etc.
> > Could you help me out with that ??
> > 
> > Regards,
> > Pulkit
> > 
> 
> Is this what you mean?
> 
> colorData= get(hi,'CData');
> %Manipulate colorData as necessary
> % after manipulating the matrix colorData send the changes back to the image.
> set(hi,'CData',colorData)