The imaging collection is totally new to me but I have a user who needs to convert 12-bit tif to 8-bit tif. I assume this can be done because PP can do everything right? Any hints on where to look / how to approach this?
The imaging collection is totally new to me but I have a user who needs to convert 12-bit tif to 8-bit tif. I assume this can be done because PP can do everything right? Any hints on where to look / how to approach this?
Hi Jennifer. The simplest way to do this is with the 'Convert Pixel Type' component. After reading the images with the 'Image Record Reader', change their Pixel Type to unsigned char (which is 8-bits).
If the intensities are not correct there are additional steps as outlined in the help text:
Transforms the input image into pixels of type Pixel Type. When increasing the size of integral pixel types, zeros are appended. When decreasing the size of integral pixel types, the least significant bits are rounded and the most significant bits are kept. When converting from a floating type to an integral type, data is rounded to the nearest integer.
When converting to a pixel type with a value range smaller than the original type, intensity values are not scaled, ie. a large proportion of pixels will have intensity values that represent that maximum/minimum of the new pixel type. Use the Rescale Image Intensities component to prepare the image for type conversion.
You can even do different color channels separately if you need to...
Thanks Leo!