HuMoments Class |
Namespace: Accord.Imaging.Moments
The HuMoments type exposes the following members.
Name | Description | |
---|---|---|
HuMoments(Int32) |
Initializes a new instance of the HuMoments class.
| |
HuMoments(Bitmap, Int32) |
Initializes a new instance of the HuMoments class.
| |
HuMoments(Single, Int32) |
Initializes a new instance of the HuMoments class.
|
Name | Description | |
---|---|---|
I1 |
Hu moment of order 1.
| |
I2 |
Hu moment of order 2.
| |
I3 |
Hu moment of order 3.
| |
I4 |
Hu moment of order 4.
| |
I5 |
Hu moment of order 5.
| |
I6 |
Hu moment of order 6.
| |
I7 |
Hu moment of order 7.
| |
Order |
Gets or sets the maximum order of the moments.
(Inherited from MomentsBase.) |
Name | Description | |
---|---|---|
Compute(Bitmap) |
Computes the moments for the specified image.
(Inherited from MomentsBase.) | |
Compute(BitmapData) |
Computes the moments for the specified image.
(Inherited from MomentsBase.) | |
Compute(CentralMoments) |
Computes the Hu moments from the specified central moments.
| |
Compute(UnmanagedImage) |
Computes the moments for the specified image.
(Inherited from MomentsBase.) | |
Compute(Single, Rectangle) |
Computes the center moments for the specified image.
(Overrides MomentsBaseCompute(Single, Rectangle).) | |
Compute(Bitmap, Rectangle) |
Computes the moments for the specified image.
(Inherited from MomentsBase.) | |
Compute(BitmapData, Rectangle) |
Computes the moments for the specified image.
(Inherited from MomentsBase.) | |
Compute(UnmanagedImage, Rectangle) |
Computes the center moments for the specified image.
(Overrides MomentsBaseCompute(UnmanagedImage, Rectangle).) | |
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.) | |
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.) |
In image processing, computer vision and related fields, an image moment is a certain particular weighted average (moment) of the image pixels' intensities, or a function of such moments, usually chosen to have some attractive property or interpretation.
Image moments are useful to describe objects after segmentation. Simple properties of the image which are found via image moments include area (or total intensity), its centroid, and information about its orientation.
Hu's set of invariant moments are invariant under translation, changes in scale, and also rotation. The first moment, I1, is analogous to the moment of inertia around the image's centroid, where the pixels' intensities are analogous to physical density. The last one, I7, is skew invariant, which enables it to distinguish mirror images of otherwise identical images.
References:
Bitmap image = ...; // Compute the Hu moments of up to third order HuMoments hu = new HuMoments(image, order: 3);