| Moments Constructor (IEnumerablePoint2f, 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 Moments(
IEnumerable<Point2f> array,
bool binaryImage = false
)
Public Sub New (
array As IEnumerable(Of Point2f),
Optional binaryImage As Boolean = false
)
public:
Moments(
IEnumerable<Point2f>^ array,
bool binaryImage = false
)
new :
array : IEnumerable<Point2f> *
?binaryImage : bool
(* Defaults:
let _binaryImage = defaultArg binaryImage false
*)
-> Moments
Parameters
- array
- Type: System.Collections.GenericIEnumerablePoint2f
Array of 2D points - binaryImage (Optional)
- Type: SystemBoolean
If it is true, then all the non-zero image pixels are treated as 1’s
Return Value
Type:
See Also