/// <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()); }
/// <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(); }