You are here: Start » AVL.NET » AVL.ApplyPixelLut(AvlNet.Image, AvlNet.Region, AvlNet.PixelLut, AvlNet.Image)
AVL.ApplyPixelLut(AvlNet.Image, AvlNet.Region, AvlNet.PixelLut, AvlNet.Image)
Applies previously created Look Up transformation to provided image.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void ApplyPixelLut( AvlNet.Image inImage, AvlNet.Region inRoi, AvlNet.PixelLut inLut, out AvlNet.Image outImage )
Parameters
- inImage
- Type: AvlNet.Image
Image to which LUT transformation will be applied - inRoi
- Type: AvlNet.Region
Range of pixels to be processed, or null. - inLut
- Type: AvlNet.PixelLut
LUT object, which defines transformation - outImage
- Type: AvlNet.Image
Transformed image
Description
This filter will apply previously created (by i.e. CreatePixelLut or CreatePowerLut) LookUp Table transformation to inImage. Type and depth of resulting outImage are determined by properties of inLut, which were fixed during creation of LUT.
Generally speaking, LookUp transform should only be applied to monochromatic images. However, ApplyPixelLut allows for transformation of color images, under special conditions:
- inLut has to be created for single channel output
- inImage has to be multichannel (its depth has to be greater than 1)
If those conditions are met, processing steps are as follows: input image is being split into separate channels, every channel is processed by inLut, resulting processed channels are being merged into outImage.
ApplyPixelLut can work only with images of type: INT8, UINT8, INT16, UINT16.
Remarks
Standard operations like PowerImage, CorrectGamma and LogarithmImage for images of type Int32 and Real are available in ImagePointTransforms category.
Errors
| Error type | Description |
|---|---|
| RuntimeError | Not initialized PixelLut object passed to ApplyPixelLut. |
