RawMoments Class |
Namespace: Accord.Imaging.Moments
The RawMoments type exposes the following members.
Name | Description | |
---|---|---|
RawMoments(Int32) |
Initializes a new instance of the Accord.Imaging.Moments class.
| |
RawMoments(Bitmap, Int32) |
Initializes a new instance of the Accord.Imaging.Moments class.
| |
RawMoments(Single, Int32) |
Initializes a new instance of the Accord.Imaging.Moments class.
| |
RawMoments(UnmanagedImage, Int32) |
Initializes a new instance of the Accord.Imaging.Moments class.
| |
RawMoments(Bitmap, Rectangle, Int32) |
Initializes a new instance of the Accord.Imaging.Moments class.
| |
RawMoments(Single, Rectangle, Int32) |
Initializes a new instance of the Accord.Imaging.Moments class.
| |
RawMoments(UnmanagedImage, Rectangle, Int32) |
Initializes a new instance of the Accord.Imaging.Moments class.
|
Name | Description | |
---|---|---|
Area |
Gets the area (for binary images) or sum of
gray level (for grayscale images).
| |
CenterX |
Gets the X centroid of the image.
| |
CenterY |
Gets the Y centroid of the image.
| |
InvM00 |
Inverse raw moment of order (0,0).
| |
M00 |
Raw moment of order (0,0).
| |
M01 |
Raw moment of order (0,1).
| |
M02 |
Raw moment of order (0,2).
| |
M03 |
Raw moment of order (0,3).
| |
M10 |
Raw moment of order (1,0).
| |
M11 |
Raw moment of order (1,1).
| |
M12 |
Raw moment of order (1,2).
| |
M20 |
Raw moment of order (2,0).
| |
M21 |
Raw moment of order (2,1).
| |
M30 |
Raw moment of order (3,0).
| |
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(UnmanagedImage) |
Computes the moments for the specified image.
(Inherited from MomentsBase.) | |
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(Single, Rectangle) |
Computes the raw moments for the specified image.
(Overrides MomentsBaseCompute(Single, Rectangle).) | |
Compute(UnmanagedImage, Rectangle) |
Computes the raw moments for the specified image.
(Overrides MomentsBaseCompute(UnmanagedImage, Rectangle).) | |
Compute(Single, Rectangle, Boolean) | Obsolete.
Computes the raw moments for the specified image.
| |
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.) | |
Reset |
Resets all moments to zero.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
DefaultOrder |
Gets the default maximum moment order.
|
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.
The raw moments are the most basic moments which can be computed from an image, and can then be further processed to achieve CentralMoments or even HuMoments.
References:
Bitmap image = ...; // Compute the raw moments of up to third order RawMoments m = new RawMoments(image, order: 3);