using Emgu.CV; using Emgu.CV.Structure; double arcLength = CvInvoke.ArcLength(contour, true);
using Emgu.CV; using Emgu.CV.Structure; double perimeter = CvInvoke.ArcLength(contour, true); double area = Math.Pow(perimeter, 2) / (4 * Math.PI);The package library used in these examples is Emgu.CV, which is a cross-platform .NET wrapper for the OpenCV image processing library.