Re: Reading pixel value
Posted by
Gabriel Landini on
Jan 06, 2010; 7:15pm
URL: http://imagej.273.s1.nabble.com/Reading-pixel-value-tp3689806p3689811.html
On Wednesday 06 January 2010 17:32:53 you wrote:
> float fValue = ip.getPixelValue(x, y); for this do i still further need to
> look-up the calibrated value in the calibration table.
Hi,
Have a look at the api here:
http://rsb.info.nih.gov/ij/developer/api/This is the one you want:
http://rsb.info.nih.gov/ij/developer/api/ij/process/ImageProcessor.html#getPixelValue(int,
int)
(sorry if the link gets truncated)
public abstract float getPixelValue(int x, int y)
Returns the value of the pixel at (x,y). For byte and short images, returns a
calibrated value if a calibration table has been set using
setCalibraionTable(). For RGB images, returns the luminance value.
Cheers
G.