C# 클래스 Accord.Imaging.Filters.HistogramEqualization

Histogram equalization filter.

The filter does histogram equalization increasing local contrast in images. The effect of histogram equalization can be better seen on images, where pixel values have close contrast values. Through this adjustment, pixels intensities can be better distributed on the histogram. This allows for areas of lower local contrast to gain a higher contrast without affecting the global contrast.

The filter accepts 8 bpp grayscale images and 24/32 bpp color images for processing.

For color images the histogram equalization is applied to each color plane separately.

Sample usage:

// create filter HistogramEqualization filter = new HistogramEqualization( ); // process image filter.ApplyInPlace( sourceImage );

Source image:

Result image:

상속: BaseInPlacePartialFilter
파일 보기 프로젝트 열기: accord-net/framework 1 사용 예제들

공개 메소드들

메소드 설명
HistogramEqualization ( ) : System

Initializes a new instance of the HistogramEqualization class.

보호된 메소드들

메소드 설명
ProcessFilter ( UnmanagedImage image, Rectangle rect ) : void

Process the filter on the specified image.

비공개 메소드들

메소드 설명
Equalize ( int histogram, long numPixel ) : byte[]

메소드 상세

HistogramEqualization() 공개 메소드

Initializes a new instance of the HistogramEqualization class.
public HistogramEqualization ( ) : 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