text image conversion

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

text image conversion

Morgiane Richard
Dear all,
 
I am converting text images that contain 7 numbers in tiff format, and then read them as stack.
 
I have noticed that when images are converted one after another in 8-bits images, all of them have 7 integers values shown in the histogram. However, on the histogram of the all stack, values become floating values.
 
Is this because when reading the histogram of a stack, ImageJ allows for the use of floating numbers but not when reading the histogram of a single slice?
 
Thanks,
 
Morgiane
Reply | Threaded
Open this post in threaded view
|

Re: text image conversion

Wayne Rasband
> I am converting text images that contain 7 numbers in tiff format, and
> then read them as stack.
>  
> I have noticed that when images are converted one after another in
> 8-bits images, all of them have 7 integers values shown in the
> histogram. However, on the histogram of the all stack, values become
> floating values.
>
>   Is this because when reading the histogram of a stack, ImageJ allows
> for the use of floating numbers but not when reading the histogram of
> a single slice?

This is because the bin width of the stack histogram is not 1. You can
work around this problem by running the Histogram command by pressing
alt-h and then setting  "X Min" to 0 and "X Max" to 256 in the
"Histogram" dialog.

-wayne