Moments Constructor (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: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic Moments(
byte[,] array,
bool binaryImage = false
)
Public Sub New (
array As Byte(,),
Optional binaryImage As Boolean = false
)
public:
Moments(
array<unsigned char,2>^ array,
bool binaryImage = false
)
new :
array : byte[,] *
?binaryImage : bool
(* Defaults:
let _binaryImage = defaultArg binaryImage false
*)
-> Moments
OpenCvSharp.Moments = function(array, binaryImage);
Parameters
- array
- Type:System.Byte[,]
A raster image (8-bit) 2D array - binaryImage (Optional)
- Type: System.Boolean
If it is true, then all the non-zero image pixels are treated as 1’s
Return Value
Type:
See Also