Login  Register

Re: bit-depth for Analyze format

Posted by Karsten Rodenacker on Jan 26, 2007; 1:30pm
URL: http://imagej.273.s1.nabble.com/bit-depth-for-Analyze-format-tp3700519p3700520.html

Analyze format allows signed 16bit data!
Try to add with Process->Math...->Add 32768 to your image or try  
Image->Type->32-bit or both. Perhaps your numbers appear than better?

KR

Am 26.01.2007 um 14:03 schrieb Tony Shepherd:

> I'm working with Analyze-format images, which are loaded into  
> ImageJ as
> 16-bit stacks.
>
> My plugin needs to sample pixel values, from ImageProcessor objects  
> created
> using stack.getProcessor(sliceNumber).
>
> ip.getPixel(x,y) returns 0 at all pixels
> Float.intBitsToFloat(ip.getPixel(x,y) returns 0.0
>
> The pixel values displayed in the ImageJ panel (when mouse hovers  
> over image
> window) are strange. There are 2 values, one negative and one in  
> brackets.
>
> For example a lighter pixel is given:
>
> -31837.00 (931)
>
> and a darker pixel is given:
>
> -32536.00 (232)
>
> I think I want the number in brackets, but How do I get it?
>
> ManyThanks,
>
> T

Karsten Rodenacker
-------------------------------------------------------------------- :-)
GSF - Institute of Biomathematics and Biometry
D-85758 Oberschleissheim    Postfach 11 29
Karsten.Rodenacker_AT_gsf.de | http://ibb.gsf.de/
http://ibb.gsf.de/homepage/karsten.rodenacker/
Voice: +49 89 31873401 | Voicemail/FAX: ..193401