Assembly: AForge.Imaging (in AForge.Imaging.dll) Version: 126.96.36.199 (188.8.131.52)
public class LevelsLinear : BaseInPlacePartialFilter
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.
// 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 );