Re: calculation on 32bit pictures
Posted by Gabriel Landini on
URL: http://imagej.273.s1.nabble.com/calculation-on-32bit-pictures-tp3691981p3691982.html
On Friday 26 June 2009 09:31:20 Alex Ruhl wrote:
> int p = ip.getPixel(u,v);
> if (p<0) {ip.putPixel(u,v,(p+180));}
You are trying to store a 32bit value in an integer.
You also need to look at the API, I think that for 32bits the method is called
getPixelValue.
Cheers
G.