C# 클래스 Accord.Imaging.Filters.Grayscale.CommonAlgorithms

Set of predefined common grayscaling algorithms, which have already initialized grayscaling coefficients.
파일 보기 프로젝트 열기: accord-net/framework

공개 프로퍼티들

프로퍼티 타입 설명
BT709 Grayscale
RMY Grayscale
Y Grayscale

프로퍼티 상세

BT709 공개적으로 정적으로 프로퍼티

Grayscale image using BT709 algorithm.

The instance uses BT709 algorithm to convert color image to grayscale. The conversion coefficients are: Red: 0.2125; Green: 0.7154; Blue: 0.0721.

Sample usage:

// apply the filter Bitmap grayImage = Grayscale.CommonAlgorithms.BT709.Apply( image );
public static Grayscale,Accord.Imaging.Filters BT709
리턴 Grayscale

RMY 공개적으로 정적으로 프로퍼티

Grayscale image using R-Y algorithm.

The instance uses R-Y algorithm to convert color image to grayscale. The conversion coefficients are: Red: 0.5; Green: 0.419; Blue: 0.081.

Sample usage:

// apply the filter Bitmap grayImage = Grayscale.CommonAlgorithms.RMY.Apply( image );
public static Grayscale,Accord.Imaging.Filters RMY
리턴 Grayscale

Y 공개적으로 정적으로 프로퍼티

Grayscale image using Y algorithm.

The instance uses Y algorithm to convert color image to grayscale. The conversion coefficients are: Red: 0.299; Green: 0.587; Blue: 0.114.

Sample usage:

// apply the filter Bitmap grayImage = Grayscale.CommonAlgorithms.Y.Apply( image );
public static Grayscale,Accord.Imaging.Filters Y
리턴 Grayscale