C# Класс 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 );
Наследование: BaseInPlacePartialFilter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
LevelsLinear16bpp ( ) : System

Initializes a new instance of the LevelsLinear class.

Защищенные методы

Метод Описание
ProcessFilter ( UnmanagedImage image, Rectangle rect ) : void

Process the filter on the specified image.

Приватные методы

Метод Описание
CalculateMap ( IntRange inRange, IntRange outRange, ushort map ) : void

Calculate conversion map.

Описание методов

LevelsLinear16bpp() публичный Метод

Initializes a new instance of the LevelsLinear class.
public LevelsLinear16bpp ( ) : System
Результат System

ProcessFilter() защищенный Метод

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.
Результат void