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

Calculate difference between two images and threshold it.

The filter produces similar result as applying Difference filter and then Threshold filter - thresholded difference between two images. Result of this image processing routine may be useful in motion detection applications or finding areas of significant difference.

The filter accepts 8 and 24/32color images for processing. In the case of color images, the image processing routine differences sum over 3 RGB channels (Manhattan distance), i.e. |diffR| + |diffG| + |diffB|.

Sample usage:

// create filter ThresholdedDifference filter = new ThresholdedDifference( 60 ); // apply the filter filter.OverlayImage = backgroundImage; Bitmap resultImage = filter.Apply( sourceImage );

Source image:

Background image:

Result image:

상속: AForge.Imaging.Filters.BaseFilter2
파일 보기 프로젝트 열기: holisticware-admin/MonoVersal.AForgeNET

공개 메소드들

메소드 설명
ThresholdedDifference ( ) : System

Initializes a new instance of the ThresholdedDifference class.

ThresholdedDifference ( int threshold ) : System

Initializes a new instance of the ThresholdedDifference class.

보호된 메소드들

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

Process the filter on the specified image.

메소드 상세

ProcessFilter() 보호된 메소드

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

ThresholdedDifference() 공개 메소드

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

ThresholdedDifference() 공개 메소드

Initializes a new instance of the ThresholdedDifference class.
public ThresholdedDifference ( int threshold ) : System
threshold int Difference threshold (see ).
리턴 System