Re: Reading pixel value
Posted by
Muqeet Khan on
Jan 07, 2010; 8:08pm
URL: http://imagej.273.s1.nabble.com/Reading-pixel-value-tp3689806p3689812.html
Hi!
Instead of setting the calibration table can i subtract 32768
float iValue = getPixelValue(int x, int y) - 32768
Thanks!
Gabriel Landini wrote
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.