本文整理了Java中org.opencv.core.Core.fillConvexPoly_1()
方法的一些代码示例,展示了Core.fillConvexPoly_1()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Core.fillConvexPoly_1()
方法的具体详情如下:
包路径:org.opencv.core.Core
类名称:Core
方法名:fillConvexPoly_1
暂无
代码示例来源:origin: com.sikulix/sikulixapi
/**
* <p>Fills a convex polygon.</p>
*
* <p>The function <code>fillConvexPoly</code> draws a filled convex polygon.
* This function is much faster than the function <code>fillPoly</code>. It can
* fill not only convex polygons but any monotonic polygon without
* self-intersections, that is, a polygon whose contour intersects every
* horizontal line (scan line) twice at the most (though, its top-most and/or
* the bottom edge could be horizontal).</p>
*
* @param img Image.
* @param points a points
* @param color Polygon color.
*
* @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#fillconvexpoly">org.opencv.core.Core.fillConvexPoly</a>
*/
public static void fillConvexPoly(Mat img, MatOfPoint points, Scalar color)
{
Mat points_mat = points;
fillConvexPoly_1(img.nativeObj, points_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3]);
return;
}
代码示例来源:origin: ytai/IOIOPlotter
/**
* <p>Fills a convex polygon.</p>
*
* <p>The function <code>fillConvexPoly</code> draws a filled convex polygon.
* This function is much faster than the function <code>fillPoly</code>. It can
* fill not only convex polygons but any monotonic polygon without
* self-intersections, that is, a polygon whose contour intersects every
* horizontal line (scan line) twice at the most (though, its top-most and/or
* the bottom edge could be horizontal).</p>
*
* @param img Image.
* @param points a points
* @param color Polygon color.
*
* @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#fillconvexpoly">org.opencv.core.Core.fillConvexPoly</a>
*/
public static void fillConvexPoly(Mat img, MatOfPoint points, Scalar color)
{
Mat points_mat = points;
fillConvexPoly_1(img.nativeObj, points_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3]);
return;
}
代码示例来源:origin: jtsky/EasyPR_Android
/**
* <p>Fills a convex polygon.</p>
*
* <p>The function <code>fillConvexPoly</code> draws a filled convex polygon.
* This function is much faster than the function <code>fillPoly</code>. It can
* fill not only convex polygons but any monotonic polygon without
* self-intersections, that is, a polygon whose contour intersects every
* horizontal line (scan line) twice at the most (though, its top-most and/or
* the bottom edge could be horizontal).</p>
*
* @param img Image.
* @param points a points
* @param color Polygon color.
*
* @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#fillconvexpoly">org.opencv.core.Core.fillConvexPoly</a>
*/
public static void fillConvexPoly(Mat img, MatOfPoint points, Scalar color)
{
Mat points_mat = points;
fillConvexPoly_1(img.nativeObj, points_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3]);
return;
}
代码示例来源:origin: nu.pattern/opencv
/**
* <p>Fills a convex polygon.</p>
*
* <p>The function <code>fillConvexPoly</code> draws a filled convex polygon.
* This function is much faster than the function <code>fillPoly</code>. It can
* fill not only convex polygons but any monotonic polygon without
* self-intersections, that is, a polygon whose contour intersects every
* horizontal line (scan line) twice at the most (though, its top-most and/or
* the bottom edge could be horizontal).</p>
*
* @param img Image.
* @param points a points
* @param color Polygon color.
*
* @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#fillconvexpoly">org.opencv.core.Core.fillConvexPoly</a>
*/
public static void fillConvexPoly(Mat img, MatOfPoint points, Scalar color)
{
Mat points_mat = points;
fillConvexPoly_1(img.nativeObj, points_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3]);
return;
}
代码示例来源:origin: abhn/marvel
/**
* <p>Fills a convex polygon.</p>
*
* <p>The function <code>fillConvexPoly</code> draws a filled convex polygon.
* This function is much faster than the function <code>fillPoly</code>. It can
* fill not only convex polygons but any monotonic polygon without
* self-intersections, that is, a polygon whose contour intersects every
* horizontal line (scan line) twice at the most (though, its top-most and/or
* the bottom edge could be horizontal).</p>
*
* @param img Image.
* @param points a points
* @param color Polygon color.
*
* @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#fillconvexpoly">org.opencv.core.Core.fillConvexPoly</a>
*/
public static void fillConvexPoly(Mat img, MatOfPoint points, Scalar color)
{
Mat points_mat = points;
fillConvexPoly_1(img.nativeObj, points_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3]);
return;
}
内容来源于网络,如有侵权,请联系作者删除!