C# Класс Accord.Imaging.Filters.ThresholdedEuclideanDifference

Calculate Euclidean difference between two images and threshold it.

The filter produces similar to ThresholdedDifference, however it uses Euclidean distance for finding difference between pixel values instead of Manhattan distance. 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.

Sample usage:

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

Source image:

Background image:

Result image:

Наследование: BaseFilter2
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ThresholdedEuclideanDifference ( ) : System

Initializes a new instance of the ThresholdedEuclideanDifference class.

ThresholdedEuclideanDifference ( int threshold ) : System

Initializes a new instance of the ThresholdedEuclideanDifference 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

ThresholdedEuclideanDifference() публичный Метод

Initializes a new instance of the ThresholdedEuclideanDifference class.
public ThresholdedEuclideanDifference ( ) : System
Результат System

ThresholdedEuclideanDifference() публичный Метод

Initializes a new instance of the ThresholdedEuclideanDifference class.
public ThresholdedEuclideanDifference ( int threshold ) : System
threshold int Difference threshold (see ).
Результат System