Calculates all of the moments
up to the third order of a polygon or rasterized shape.
The input is a raster image (single-channel, 8-bit or floating-point 2D array).
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic Moments Moments(
bool binaryImage = false
)
Public Function Moments (
Optional binaryImage As Boolean = false
) As Moments
public:
Moments^ Moments(
bool binaryImage = false
)
member Moments :
?binaryImage : bool
(* Defaults:
let _binaryImage = defaultArg binaryImage false
*)
-> Moments
function Moments(binaryImage);
Parameters
- binaryImage (Optional)
- Type: SystemBoolean
If it is true, then all the non-zero image pixels are treated as 1’s
Return Value
Type:
Moments
See Also