/// <summary> /// Convert a chain code contour to a polygon. /// </summary> /// <param name="cc">Chain code contour.</param> /// <returns>A polygon.</returns> public static CvContourPolygon ConvertChainCodesToPolygon(CvContourChainCode cc) { if (cc == null) { throw new ArgumentNullException("cc"); } return(cc.ConvertToPolygon()); }
/// <summary> /// Convert a chain code contour to a polygon. /// </summary> /// <param name="cc">Chain code contour.</param> /// <returns>A polygon.</returns> public static CvContourPolygon ConvertChainCodesToPolygon(CvContourChainCode cc) { if (cc == null) throw new ArgumentNullException(nameof(cc)); return cc.ConvertToPolygon(); }