C# Class Accord.Imaging.Filters.LevelsLinear

Linear correction of RGB channels.

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:

// 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: BaseInPlacePartialFilter
Datei anzeigen Open project: accord-net/framework Class Usage Examples

Private Methods

Method Description
CalculateMap ( IntRange inRange, IntRange outRange, byte map ) : void

Calculate conversion map.