Cv2Moments Method (Single, Boolean)
|
Calculates all of the moments
up to the third order of a polygon or rasterized shape.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic static Moments Moments(
float[,] array,
bool binaryImage = false
)
Public Shared Function Moments (
array As Single(,),
Optional binaryImage As Boolean = false
) As Moments
public:
static Moments^ Moments(
array<float,2>^ array,
bool binaryImage = false
)
static member Moments :
array : float32[,] *
?binaryImage : bool
(* Defaults:
let _binaryImage = defaultArg binaryImage false
*)
-> Moments
OpenCvSharp.Cv2.Moments = function(array, binaryImage);
Parameters
- array
- Type: SystemSingle
A raster image (floating-point) 2D array - 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