C# 클래스 AForge.Imaging.Filters.ExtractNormalizedRGBChannel

Extract normalized RGB channel from color image.

Extracts specified normalized RGB channel of color image and returns it as grayscale image.

Normalized RGB color space is defined as: r = R / (R + G + B ), g = G / (R + G + B ), b = B / (R + G + B ), where R, G and B are components of RGB color space and r, g and b are components of normalized RGB color space.

The filter accepts 24, 32, 48 and 64 bpp color images and produces 8 (if source is 24 or 32 bpp image) or 16 (if source is 48 or 64 bpp image) bpp grayscale image.

Sample usage:

// create filter ExtractNormalizedRGBChannel filter = new ExtractNormalizedRGBChannel( RGB.G ); // apply the filter Bitmap channelImage = filter.Apply( image );
상속: BaseFilter
파일 보기 프로젝트 열기: holisticware-admin/MonoVersal.AForgeNET

공개 메소드들

메소드 설명
ExtractNormalizedRGBChannel ( ) : System

Initializes a new instance of the ExtractNormalizedRGBChannel class.

ExtractNormalizedRGBChannel ( short channel ) : System

Initializes a new instance of the ExtractNormalizedRGBChannel class.

보호된 메소드들

메소드 설명
ProcessFilter ( UnmanagedImage sourceData, UnmanagedImage destinationData ) : void

Process the filter on the specified image.

메소드 상세

ExtractNormalizedRGBChannel() 공개 메소드

Initializes a new instance of the ExtractNormalizedRGBChannel class.
public ExtractNormalizedRGBChannel ( ) : System
리턴 System

ExtractNormalizedRGBChannel() 공개 메소드

Initializes a new instance of the ExtractNormalizedRGBChannel class.
public ExtractNormalizedRGBChannel ( short channel ) : System
channel short Normalized RGB channel to extract.
리턴 System

ProcessFilter() 보호된 메소드

Process the filter on the specified image.
protected ProcessFilter ( UnmanagedImage sourceData, UnmanagedImage destinationData ) : void
sourceData UnmanagedImage Source image data.
destinationData UnmanagedImage Destination image data.
리턴 void