Posted by
Andy Puckett on
May 14, 2008; 10:16pm
URL: http://imagej.273.s1.nabble.com/16-bit-FITS-automatic-conversion-tp3696219p3696220.html
Thanks Wayne, I was beginning to realize that this was the case. However, there is a bug in
getPixelValue(x,y), or at least a bug in my understanding of how to use it. I am finding that it
incorrectly returns the raw (parenthetical) value, except after I have done a "Show Info..." on the
image. Then it does what you say it should do, returning the calibrated (first) value.
I have tried to use getCalibrationTable, thinking that this is what "Show Info..." is doing to help
getPixelValue(x,y) along. However, the resulting float array is null. Here is what I'm trying, in
ImageJ 1.40a:
float[] cTable = imageProcessor.getCalibrationTable();
IJ.error(""+cTable);
double value = imageProcessor.getPixelValue ( currX, currY );
So what am I doing wrong?
Andy
On Wed, 14 May 2008 17:28:09 -0400, Wayne Rasband <
[hidden email]> wrote:
>The getPixelValue(x,y) method returns the calibrated (first) value and
>getPixel(x,y) returns the raw value (the one in parenthesis).
>
>-wayne