Image type converter
Description
Change the bit-depth of an image stack. This module provides multiple ways to handle the intensity transformation from one bit-depth to another.Note: Different scaling modes currently only apply when reducing the bit-depth of an image. As such, converting from 8-bit to 16-bit will always result in direct conversion of intensities.
Parameters
- Input image
- Description: Input image to be converted to another bit-depth.
- Type: InputImageP
- Apply to input image
- Description: If selected, the converted image will replace the input image in the workspace. All measurements associated with the input image will be transferred to the converted image.
- Type: BooleanP
- Default value: true
- Output image
- Description: Name of the output converted image.
- Type: OutputImageP
- Output image type
- Description: Target bit-depth to convert the image to. Pixel intensities will lie within the following ranges for each bit-depth: 8-bit (0-255), 16-bit (0-65535), 32-bit (floating point precision).
- Type: ChoiceP
- Default value: 8-bit integer
- Choices:
- 8-bit integer
- 16-bit integer
- 32-bit float
- Scaling mode
- Description: Method for calculating the intensity transformation between the input and output bit-depths
- "Clip (direct conversion)" will convert directly from the input to output bit-depth without performing any intensity scaling. As such, any input intensities outside the available range of the output bit-depth will be clipped to the closest possible value. For example, an input 16-bit image with intensity range 234-34563 converted to 8-bit will have an output range of 234-255.
- "Fill target range (normalise)" will stretch the input intensity range to fill the available output intensity range. For example, an input 16-bit image with intensity range 234-34563 converted to 8-bit will have an output range of 0-255. Images converted to 32-bit will be scaled to the range 0-1.
- "Scale proportionally" will proportionately scale intensities such that the input and output intensity ranges fill their respective bit-depths by equal amounts. For example, an input 16-bit image with intensity range 234-34563 converted to 8-bit will have an output range of 1-135. - Type: ChoiceP
- Default value: Clip (direct conversion)
- Choices:
- Clip (direct conversion)
- Fill target range (normalise)
- Scale proportionally
- Description: Method for calculating the intensity transformation between the input and output bit-depths