Re: 32 bit images * -1
Posted by
dscho on
May 07, 2010; 12:46pm
URL: http://imagej.273.s1.nabble.com/32-bit-images-1-tp3688384p3688385.html
Hi,
On Fri, 7 May 2010, Gabriel Landini wrote:
> If I multiply a 32 bit image by -1, the values that were originally 0 are
> returned as -0 with the macro function getPixel() e.g.:
>
> print (getPixel(3,0));
This is the so-called "signed zero"
(
http://en.wikipedia.org/wiki/Signed_zero) that is a side-effect of the
way floating point numbers are stored in Java.
Ciao,
Dscho