CvInvokeContourArea Method |
http://www.emgu.com
Calculates area of the whole contour or contour section.
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic static double ContourArea(
IInputArray contour,
bool oriented = false
)
Public Shared Function ContourArea (
contour As IInputArray,
Optional oriented As Boolean = false
) As Double
public:
static double ContourArea(
IInputArray^ contour,
bool oriented = false
)
static member ContourArea :
contour : IInputArray *
?oriented : bool
(* Defaults:
let _oriented = defaultArg oriented false
*)
-> float
Parameters
- contour
- Type: Emgu.CVIInputArray
Input vector of 2D points (contour vertices), stored in std::vector or Mat. - oriented (Optional)
- Type: SystemBoolean
Oriented area flag. If it is true, the function returns a signed area value, depending on the contour orientation (clockwise or counter-clockwise).
Using this feature you can determine orientation of a contour by taking the sign of an area.
By default, the parameter is false, which means that the absolute value is returned.
Return Value
Type:
DoubleThe area of the whole contour or contour section
See Also