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.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 3.0.0.2161 (3.0.0.2161)
Syntaxpublic static MCvMoments Moments(
IInputArray arr,
bool binaryImage = false
)
Public Shared Function Moments (
arr As IInputArray,
Optional binaryImage As Boolean = false
) As MCvMoments
public:
static MCvMoments Moments(
IInputArray^ arr,
bool binaryImage = false
)
static member Moments :
arr : IInputArray *
?binaryImage : bool
(* Defaults:
let _binaryImage = defaultArg binaryImage false
*)
-> MCvMoments
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:
MCvMomentsThe moment
See Also