C# 클래스 AForge.Imaging.HorizontalIntensityStatistics

Horizontal intensity statistics.

The class provides information about horizontal distribution of pixel intensities, which may be used to locate objects, their centers, etc.

The class accepts grayscale (8 bpp indexed and 16 bpp) and color (24, 32, 48 and 64 bpp) images. In the case of 32 and 64 bpp color images, the alpha channel is not processed - statistics is not gathered for this channel.

Sample usage:

// collect statistics HorizontalIntensityStatistics his = new HorizontalIntensityStatistics( sourceImage ); // get gray histogram (for grayscale image) Histogram histogram = his.Gray; // output some histogram's information System.Diagnostics.Debug.WriteLine( "Mean = " + histogram.Mean ); System.Diagnostics.Debug.WriteLine( "Min = " + histogram.Min ); System.Diagnostics.Debug.WriteLine( "Max = " + histogram.Max );

Sample grayscale image with its horizontal intensity histogram:

파일 보기 프로젝트 열기: holisticware-admin/MonoVersal.AForgeNET 1 사용 예제들

공개 메소드들

메소드 설명
HorizontalIntensityStatistics ( Bitmap image ) : System

Initializes a new instance of the HorizontalIntensityStatistics class.

HorizontalIntensityStatistics ( BitmapData imageData ) : System

Initializes a new instance of the HorizontalIntensityStatistics class.

HorizontalIntensityStatistics ( UnmanagedImage image ) : System

Initializes a new instance of the HorizontalIntensityStatistics class.

비공개 메소드들

메소드 설명
ProcessImage ( UnmanagedImage image ) : void

Gather horizontal intensity statistics for specified image.

메소드 상세

HorizontalIntensityStatistics() 공개 메소드

Initializes a new instance of the HorizontalIntensityStatistics class.
Unsupported pixel format of the source image.
public HorizontalIntensityStatistics ( Bitmap image ) : System
image System.Drawing.Bitmap Source image.
리턴 System

HorizontalIntensityStatistics() 공개 메소드

Initializes a new instance of the HorizontalIntensityStatistics class.
Unsupported pixel format of the source image.
public HorizontalIntensityStatistics ( BitmapData imageData ) : System
imageData System.Drawing.Imaging.BitmapData Source image data.
리턴 System

HorizontalIntensityStatistics() 공개 메소드

Initializes a new instance of the HorizontalIntensityStatistics class.
Unsupported pixel format of the source image.
public HorizontalIntensityStatistics ( UnmanagedImage image ) : System
image UnmanagedImage Source unmanaged image.
리턴 System