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