Method ContourArea
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
ContourArea(InputArray, bool)
Calculates the contour area
public static double ContourArea(InputArray contour, bool oriented = false)
Parameters
contourInputArrayThe contour vertices, represented by CV_32SC2 or CV_32FC2 matrix
orientedbool
Returns
ContourArea(IEnumerable<Point>, bool)
Calculates the contour area
public static double ContourArea(IEnumerable<Point> contour, bool oriented = false)
Parameters
contourIEnumerable<Point>The contour vertices, represented by CV_32SC2 or CV_32FC2 matrix
orientedbool
Returns
ContourArea(IEnumerable<Point2f>, bool)
Calculates the contour area
public static double ContourArea(IEnumerable<Point2f> contour, bool oriented = false)
Parameters
contourIEnumerable<Point2f>The contour vertices, represented by CV_32SC2 or CV_32FC2 matrix
orientedbool