Calculates area of the whole contour or contour section.

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.2.1.1150 (2.2.1.1150)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static double cvContourArea(
	IntPtr contour,
	MCvSlice slice,
	int oriented
)
Public Shared Function cvContourArea ( _
	contour As IntPtr, _
	slice As MCvSlice, _
	oriented As Integer _
) As Double
public:
static double cvContourArea(
	IntPtr contour, 
	MCvSlice slice, 
	int oriented
)

Parameters

contour
IntPtr
Seq (sequence or array of vertices).
slice
MCvSlice
Starting and ending points of the contour section of interest, by default area of the whole contour is calculated
oriented
Int32
If zero, the absolute area will be returned. Otherwise the returned value mighted be negative

Return Value

The area of the whole contour or contour section

See Also