You are here: Start » AVL.NET » AVL.ConvertPixelType
Changes the type of pixel components.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void ConvertPixelType ( AvlNet.Image inImage, NullableRef<AvlNet.Region> inRoi, AvlNet.PlainType inNewType, int inDepthDelta, AvlNet.Image outImage )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inImage | AvlNet.Image | Input image. | |||
inRoi | AvlNet.NullableRef<AvlNet.Region> | Range of pixels to be processed. Default value: atl::NIL. | |||
inNewType | AvlNet.PlainType | UInt8 | Type of the output image. Default value: UInt8. | ||
inDepthDelta | int | <-30, 30> | 0 | Pixel values will be multiplied by 2^inDepthDelta. For example, use -4 to convert 12-bit to 8-bit images. Default value: 0. | |
outImage | AvlNet.Image | Output image. |
Description
The operation alters the pixel component format of the inImage. Available formats are listed in the documentation of the Image data type.
If the value of pixel component doesn't fit in the range of the new type, it is clipped to the nearest proper value, which can lead to the significant loss of information, as demonstrated in the example.
Examples
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.
Hardware acceleration settings may be manipulated with Settings class.