| Cv2Moments Method (Byte, 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: 1.0.0
Syntax public static Moments Moments(
byte[,] array,
bool binaryImage = false
)
Public Shared Function Moments (
array As Byte(,),
Optional binaryImage As Boolean = false
) As Moments
public:
static Moments^ Moments(
array<unsigned char,2>^ array,
bool binaryImage = false
)
static member Moments :
array : byte[,] *
?binaryImage : bool
(* Defaults:
let _binaryImage = defaultArg binaryImage false
*)
-> Moments
Parameters
- array
- Type: SystemByte
A raster image (8-bit) 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[Missing <returns> documentation for "M:OpenCvSharp.Cv2.Moments(System.Byte[0:,0:],System.Boolean)"]
See Also