ThresholdedEuclideanDifference Class |
Namespace: Accord.Imaging.Filters
The ThresholdedEuclideanDifference type exposes the following members.
Name | Description | |
---|---|---|
ThresholdedEuclideanDifference |
Initializes a new instance of the ThresholdedEuclideanDifference class.
| |
ThresholdedEuclideanDifference(Int32) |
Initializes a new instance of the ThresholdedEuclideanDifference class.
|
Name | Description | |
---|---|---|
FormatTranslations |
Format translations dictionary.
(Overrides BaseFilterFormatTranslations.) | |
OverlayImage |
Overlay image.
(Inherited from BaseFilter2.) | |
Threshold |
Difference threshold.
| |
UnmanagedOverlayImage |
Unmanaged overlay image.
(Inherited from BaseFilter2.) | |
WhitePixelsCount |
Number of pixels which were set to white in destination image during last image processing call.
|
Name | Description | |
---|---|---|
Apply(Bitmap) |
Apply filter to an image.
(Inherited from BaseFilter.) | |
Apply(BitmapData) |
Apply filter to an image.
(Inherited from BaseFilter.) | |
Apply(UnmanagedImage) |
Apply filter to an image in unmanaged memory.
(Inherited from BaseFilter.) | |
Apply(UnmanagedImage, UnmanagedImage) |
Apply filter to an image in unmanaged memory.
(Inherited from BaseFilter.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ProcessFilter(UnmanagedImage, UnmanagedImage) |
Process the filter on the specified image.
(Inherited from BaseFilter2.) | |
ProcessFilter(UnmanagedImage, UnmanagedImage, UnmanagedImage) |
Process the filter on the specified image.
(Overrides BaseFilter2ProcessFilter(UnmanagedImage, UnmanagedImage, UnmanagedImage).) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
HasMethod |
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.) | |
IsEqual |
Compares two objects for equality, performing an elementwise
comparison if the elements are vectors or matrices.
(Defined by Matrix.) | |
To(Type) | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) | |
ToT | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) |
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: