Linear correction of RGB channels for images, which have 16 bpp planes (16 bit gray images or 48/64 bit colour images).

Namespace:  AForge.Imaging.Filters
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public class LevelsLinear16bpp : BaseInPlacePartialFilter

Remarks

The filter performs linear correction of RGB channels by mapping specified channels' input ranges to output ranges. This version of the filter processes only images with 16 bpp colour planes. See LevelsLinear for 8 bpp version.

The filter accepts 16 bpp grayscale and 48/64 bpp colour images for processing.

Sample usage:

CopyC#
// create filter
LevelsLinear16bpp filter = new LevelsLinear16bpp( );
// set ranges
filter.InRed   = new IntRange( 3000, 42000 );
filter.InGreen = new IntRange( 5000, 37500 );
filter.InBlue  = new IntRange( 1000, 60000 );
// apply the filter
filter.ApplyInPlace( image );

Inheritance Hierarchy

System..::.Object
  AForge.Imaging.Filters..::.BaseInPlacePartialFilter
    AForge.Imaging.Filters..::.LevelsLinear16bpp

See Also