Negative values in binary byte arrary viewed in Netbeans
Posted by nellypledge on
URL: http://imagej.273.s1.nabble.com/Negative-values-in-binary-byte-arrary-viewed-in-Netbeans-tp5016033.html
Hi,
I'm debugging a plugin and I see that the values of the byte array of an ImageProcessor (using both get() and getPixels()) are 0's and -1's... I think the -1's are the true values (what are 255 in the image when you mouse-over), but haven't gone to lengths to figure that out.
When I assign a value of 255 to the image during the code it behaves as it should, and I'm curious to know the reason for the -1's?
Using get() and put() works well, but when I getPixels() and edit the values in that referenced array it does appear to change, and wondered if there are subtleties between the two and if the -1's are related.
Thanks in advance for your time.
Neil