ImageTColor, TDepthGetMoments Method |
http://www.emgu.com
Calculates spatial and central moments up to the third order and writes them to moments. The moments may be used then to calculate gravity center of the shape, its area, main axises and various shape characteristics including 7 Hu invariants.
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic Moments GetMoments(
bool binary
)
Public Function GetMoments (
binary As Boolean
) As Moments
public:
Moments^ GetMoments(
bool binary
)
member GetMoments :
binary : bool -> Moments
Parameters
- binary
- Type: SystemBoolean
If the flag is true, all the zero pixel values are treated as zeroes, all the others are treated as 1's
Return Value
Type:
Momentsspatial and central moments up to the third order
See Also