From: Ana Molina on
Hello,

I would like to know how can I get the pixel value by using impixelinfoval.m

I know I can display the intensity of a pixel by moving the cursor over the image, but I would like to know how I can get this value to use it on my m-file. What I mean is that I would like to use the intensity value displayed with impixelinfoval.m in my m-file.

Any suggestions?

Thanks!
From: ImageAnalyst on
You might look into putting your code into the WindowButtonMotionFcn
callback for the figure that your axes lie on. Just a guess.
Unfortunately MATLAB doesn't expose very many of the events for the
controls, so there is no "MouseMove" event for the axes (at least in
R2008b which I'm using at the moment) like you'd find in Visual Basic.