Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to handle uploaded image in Gui
Date: Wed, 13 May 2009 09:59:16 -0400
Organization: The MathWorks, Inc.
Lines: 29
Message-ID: <guejni$c08$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> <gueg93$jj1$1@fred.mathworks.com>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1242223154 12296 144.212.105.187 (13 May 2009 13:59:14 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 13 May 2009 13:59:14 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Xref: news.mathworks.com comp.soft-sys.matlab:539588



"Pulkit " <pulkit.audacious1.remove1tomail@gmail.com> wrote in message 
news:gueg93$jj1$1@fred.mathworks.com...
> 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.

I think from this description that you want either IMPROFILE or IMPIXEL from 
Image Processing Toolbox.

> 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.

Take a look at these documents from the support website:

http://www.mathworks.com/support/solutions/en/data/1-3K8R2L/

http://www.mathworks.com/support/solutions/en/data/1-1B03X/

-- 
Steve Lord
slord@mathworks.com