[BioC] handling 12 bit tiffs in EBImage
gregoire.pau at embl.de
Fri Jun 11 22:39:51 CEST 2010
In the TIFF format, 12-bit images are stored in 16-bit. EBImage supports
these images but they have to be scaled by a factor of 16 (2^4), to
adjust the dynamic range.
The following commands should work:
> x = readImage('image.tiff')*16
If the signal is too faint, images have to be rescaled before being
displayed, e.g. using normalize(), which performs the linear scaling (x
- min(x))/ (max(x) - min(x)).
Hope this helps,
EMBL Research Officer
Rajarshi Guha wrote:
> Hi, I have a collection of 12 bit tiffs that I would like to analyze
> using EBImage. However, for the images to show via display() I need to
> convert them to 8 bit (say by using convert on the command line). Is
> EBImage capable of handling these types of directly? Or do I always
> need to sale down to 8 bit outside of R?
More information about the Bioconductor