ConvertToPolygon() 공개 메소드

Convert a chain code contour to a polygon.
public ConvertToPolygon ( ) : CvContourPolygon
리턴 CvContourPolygon
예제 #1
0
 /// <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());
 }
예제 #2
0
 /// <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();
 }