C# 클래스 AForge.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
파일 보기 프로젝트 열기: holisticware-admin/MonoVersal.AForgeNET

공개 메소드들

메소드 설명
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