bit-depth for Analyze format

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

bit-depth for Analyze format

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
Reply | Threaded
Open this post in threaded view
|

Re: bit-depth for Analyze format

Karsten Rodenacker
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