CVB.Net 14.0
Lut Class Reference

Lookup table functions. More...

Static Public Member Functions

static Image Apply (ImagePlane plane, byte[] values)
 Apply a lookup table to an 8 bit per pixel input image plane. More...
 
static Image Apply (ImagePlane plane, int[] values)
 Apply a lookup table to an 8 bit per pixel input image plane. More...
 
static Image Apply (ImagePlane plane, IEnumerable< LutLevel > levels, LutInterpolation interpolation)
 Apply a lookup table that is the result of interpolation between a series of levels and values to an input image. More...
 
static Image Apply (ImagePlane plane, IList< LutLevel > levels, LutInterpolation interpolation)
 Apply a lookup table that is the result of interpolation between a series of levels and values to an input image. More...
 

Detailed Description

Lookup table functions.

Member Function Documentation

◆ Apply() [1/4]

static Image Apply ( ImagePlane  plane,
byte[]  values 
)
static

Apply a lookup table to an 8 bit per pixel input image plane.

Parameters
planePlane to which the lookup table is to be applied.
valuesThe lookup table (must have at least 256 entries). Exceed is ignored.
Returns
The result image.
Exceptions
ObjectDisposedExceptionIf plane has been disposed.
FormatExceptionIf the plane has not 8 bits per pixel.
ArgumentNullExceptionIf values is null.
ArgumentExceptionIf values has less than 256 entries.

◆ Apply() [2/4]

static Image Apply ( ImagePlane  plane,
IEnumerable< LutLevel levels,
LutInterpolation  interpolation 
)
static

Apply a lookup table that is the result of interpolation between a series of levels and values to an input image.

Parameters
planePlane to which the lookup table is to be applied.
levelsLevels defining the lookup table.
interpolationInterpolation mode between the levels .
Returns
The result image.
Exceptions
ObjectDisposedExceptionIf plane has been disposed.
ArgumentNullExceptionIf levels is null.
ArgumentExceptionIf interpolation is invalid.

◆ Apply() [3/4]

static Image Apply ( ImagePlane  plane,
IList< LutLevel levels,
LutInterpolation  interpolation 
)
static

Apply a lookup table that is the result of interpolation between a series of levels and values to an input image.

Parameters
planePlane to which the lookup table is to be applied.
levelsLevels defining the lookup table.
interpolationInterpolation mode between the levels .
Returns
The result image.
Exceptions
ObjectDisposedExceptionIf plane has been disposed.
ArgumentNullExceptionIf levels is null.
ArgumentExceptionIf interpolation is invalid.

◆ Apply() [4/4]

static Image Apply ( ImagePlane  plane,
int[]  values 
)
static

Apply a lookup table to an 8 bit per pixel input image plane.

Parameters
planePlane to which the lookup table is to be applied.
valuesThe lookup table (must have at least 256 entries). Exceed is ignored.
Returns
The result image.
Exceptions
ObjectDisposedExceptionIf plane has been disposed.
FormatExceptionIf the plane has not 8 bits per pixel.
ArgumentNullExceptionIf values is null.
ArgumentExceptionIf values has less than 256 entries.