Linear correction of RGB channels.

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

Syntax

C#
public class LevelsLinear : BaseInPlacePartialFilter

Remarks

The filter performs linear correction of RGB channels by mapping specified channels' input ranges to output ranges. It is similar to the ColorRemapping, but the remapping is linear.

The filter accepts 8 bpp grayscale and 24/32 bpp color images for processing.

Sample usage:

CopyC#
// create filter
LevelsLinear filter = new LevelsLinear( );
// set ranges
filter.InRed   = new IntRange( 30, 230 );
filter.InGreen = new IntRange( 50, 240 );
filter.InBlue  = new IntRange( 10, 210 );
// apply the filter
filter.ApplyInPlace( image );

Initial image:

Result image:

Inheritance Hierarchy

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

See Also