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

Homogenity edge detector.

The filter finds objects' edges by calculating maximum difference of processing pixel with neighboring pixels in 8 direction.

Suppose 3x3 square element of the source image (x - is currently processed pixel): P1 P2 P3 P8 x P4 P7 P6 P5 The corresponding pixel of the result image equals to: max( |x-P1|, |x-P2|, |x-P3|, |x-P4|, |x-P5|, |x-P6|, |x-P7|, |x-P8| )

The filter accepts 8 bpp grayscale images for processing.

Sample usage:

// create filter HomogenityEdgeDetector filter = new HomogenityEdgeDetector( ); // apply the filter filter.ApplyInPlace( image );

Initial image:

Result image:

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

공개 메소드들

메소드 설명
HomogenityEdgeDetector ( ) : System

Initializes a new instance of the HomogenityEdgeDetector class.

보호된 메소드들

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

Process the filter on the specified image.

메소드 상세

HomogenityEdgeDetector() 공개 메소드

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

ProcessFilter() 보호된 메소드

Process the filter on the specified image.
protected ProcessFilter ( UnmanagedImage sourceData, UnmanagedImage destinationData, Rectangle rect ) : void
sourceData UnmanagedImage Source image data.
destinationData UnmanagedImage Destination image data.
rect System.Drawing.Rectangle Image rectangle for processing by the filter.
리턴 void