Beispiel #1
0
 /// <summary>
 /// Draw a polygon.
 /// </summary>
 /// <param name="contour">Polygon contour.</param>
 /// <param name="img">Image to draw on.</param>
 /// <param name="color">Color to draw (default, white).</param>
 public static void RenderContourPolygon(CvContourPolygon contour, IplImage img, CvScalar color)
 {
     if (contour == null)
     {
         throw new ArgumentNullException("contour");
     }
     contour.Render(img, color);
 }
Beispiel #2
0
 /// <summary>
 /// Draw a polygon.
 /// </summary>
 /// <param name="contour">Polygon contour.</param>
 /// <param name="img">Image to draw on.</param>
 public static void RenderContourPolygon(CvContourPolygon contour, Mat img)
 {
     if (contour == null)
     {
         throw new ArgumentNullException("contour");
     }
     contour.Render(img);
 }
Beispiel #3
0
 /// <summary>
 /// Draw a polygon.
 /// </summary>
 /// <param name="contour">Polygon contour.</param>
 /// <param name="img">Image to draw on.</param>
 /// <param name="color">Color to draw (default, white).</param>
 public static void RenderContourPolygon(CvContourPolygon contour, Mat img, Scalar color)
 {
     if (contour == null)
     {
         throw new ArgumentNullException(nameof(contour));
     }
     contour.Render(img, color);
 }
Beispiel #4
0
 /// <summary>
 /// Draw a polygon.
 /// </summary>
 /// <param name="contour">Polygon contour.</param>
 /// <param name="img">Image to draw on.</param>
 public static void RenderContourPolygon(CvContourPolygon contour, IplImage img)
 {
     if (contour == null)
     {
         throw new ArgumentNullException(nameof(contour));
     }
     contour.Render(img);
 }