C# Class Accord.Imaging.Filters.LevelsLinear16bpp

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

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:

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

Public Methods

Method Description
LevelsLinear16bpp ( ) : System

Initializes a new instance of the LevelsLinear class.

Protected Methods

Method Description
ProcessFilter ( UnmanagedImage image, Rectangle rect ) : void

Process the filter on the specified image.

Private Methods

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

Calculate conversion map.

Method Details

LevelsLinear16bpp() public method

Initializes a new instance of the LevelsLinear class.
public LevelsLinear16bpp ( ) : System
return System

ProcessFilter() protected method

Process the filter on the specified image.
protected ProcessFilter ( UnmanagedImage image, Rectangle rect ) : void
image UnmanagedImage Source image data.
rect System.Drawing.Rectangle Image rectangle for processing by the filter.
return void