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 characeteristics 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 static Moments Moments(
IInputArray arr,
bool binaryImage = false
)
Public Shared Function Moments (
arr As IInputArray,
Optional binaryImage As Boolean = false
) As Moments
public:
static Moments^ Moments(
IInputArray^ arr,
bool binaryImage = false
)
static member Moments :
arr : IInputArray *
?binaryImage : bool
(* Defaults:
let _binaryImage = defaultArg binaryImage false
*)
-> Moments
Parameters
- arr
- Type: Emgu.CVIInputArray
Image (1-channel or 3-channel with COI set) or polygon (CvSeq of points or a vector of points) - binaryImage (Optional)
- Type: SystemBoolean
(For images only) If the flag is true, all the zero pixel values are treated as zeroes, all the others are treated as 1s
Return Value
Type:
MomentsThe moment
See Also