Perimeter() public method

Calculates perimeter of a polygonal contour.
public Perimeter ( ) : double
return double
Beispiel #1
0
 /// <summary>
 /// Calculates perimeter of a chain code contour.
 /// </summary>
 /// <param name="cc">Contour (chain code type).</param>
 /// <returns>Perimeter of the contour.</returns>
 public static double ContourChainCodePerimeter(CvContourChainCode cc)
 {
     if (cc == null)
     {
         throw new ArgumentNullException("cc");
     }
     return(cc.Perimeter());
 }
Beispiel #2
0
 /// <summary>
 /// Calculates perimeter of a chain code contour.
 /// </summary>
 /// <param name="cc">Contour (chain code type).</param>
 /// <returns>Perimeter of the contour.</returns>
 public static double ContourChainCodePerimeter(CvContourChainCode cc)
 {
     if (cc == null)
         throw new ArgumentNullException(nameof(cc));
     return cc.Perimeter();
 }