org.opencv.core.Core.fillConvexPoly_0()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(180)

本文整理了Java中org.opencv.core.Core.fillConvexPoly_0()方法的一些代码示例,展示了Core.fillConvexPoly_0()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Core.fillConvexPoly_0()方法的具体详情如下:
包路径:org.opencv.core.Core
类名称:Core
方法名:fillConvexPoly_0

Core.fillConvexPoly_0介绍

暂无

代码示例

代码示例来源:origin: jtsky/EasyPR_Android

  1. /**
  2. * <p>Fills a convex polygon.</p>
  3. *
  4. * <p>The function <code>fillConvexPoly</code> draws a filled convex polygon.
  5. * This function is much faster than the function <code>fillPoly</code>. It can
  6. * fill not only convex polygons but any monotonic polygon without
  7. * self-intersections, that is, a polygon whose contour intersects every
  8. * horizontal line (scan line) twice at the most (though, its top-most and/or
  9. * the bottom edge could be horizontal).</p>
  10. *
  11. * @param img Image.
  12. * @param points a points
  13. * @param color Polygon color.
  14. * @param lineType Type of the polygon boundaries. See the "line" description.
  15. * @param shift Number of fractional bits in the vertex coordinates.
  16. *
  17. * @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#fillconvexpoly">org.opencv.core.Core.fillConvexPoly</a>
  18. */
  19. public static void fillConvexPoly(Mat img, MatOfPoint points, Scalar color, int lineType, int shift)
  20. {
  21. Mat points_mat = points;
  22. fillConvexPoly_0(img.nativeObj, points_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3], lineType, shift);
  23. return;
  24. }

代码示例来源:origin: com.sikulix/sikulixapi

  1. /**
  2. * <p>Fills a convex polygon.</p>
  3. *
  4. * <p>The function <code>fillConvexPoly</code> draws a filled convex polygon.
  5. * This function is much faster than the function <code>fillPoly</code>. It can
  6. * fill not only convex polygons but any monotonic polygon without
  7. * self-intersections, that is, a polygon whose contour intersects every
  8. * horizontal line (scan line) twice at the most (though, its top-most and/or
  9. * the bottom edge could be horizontal).</p>
  10. *
  11. * @param img Image.
  12. * @param points a points
  13. * @param color Polygon color.
  14. * @param lineType Type of the polygon boundaries. See the "line" description.
  15. * @param shift Number of fractional bits in the vertex coordinates.
  16. *
  17. * @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#fillconvexpoly">org.opencv.core.Core.fillConvexPoly</a>
  18. */
  19. public static void fillConvexPoly(Mat img, MatOfPoint points, Scalar color, int lineType, int shift)
  20. {
  21. Mat points_mat = points;
  22. fillConvexPoly_0(img.nativeObj, points_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3], lineType, shift);
  23. return;
  24. }

代码示例来源:origin: ytai/IOIOPlotter

  1. /**
  2. * <p>Fills a convex polygon.</p>
  3. *
  4. * <p>The function <code>fillConvexPoly</code> draws a filled convex polygon.
  5. * This function is much faster than the function <code>fillPoly</code>. It can
  6. * fill not only convex polygons but any monotonic polygon without
  7. * self-intersections, that is, a polygon whose contour intersects every
  8. * horizontal line (scan line) twice at the most (though, its top-most and/or
  9. * the bottom edge could be horizontal).</p>
  10. *
  11. * @param img Image.
  12. * @param points a points
  13. * @param color Polygon color.
  14. * @param lineType Type of the polygon boundaries. See the "line" description.
  15. * @param shift Number of fractional bits in the vertex coordinates.
  16. *
  17. * @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#fillconvexpoly">org.opencv.core.Core.fillConvexPoly</a>
  18. */
  19. public static void fillConvexPoly(Mat img, MatOfPoint points, Scalar color, int lineType, int shift)
  20. {
  21. Mat points_mat = points;
  22. fillConvexPoly_0(img.nativeObj, points_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3], lineType, shift);
  23. return;
  24. }

代码示例来源:origin: nu.pattern/opencv

  1. /**
  2. * <p>Fills a convex polygon.</p>
  3. *
  4. * <p>The function <code>fillConvexPoly</code> draws a filled convex polygon.
  5. * This function is much faster than the function <code>fillPoly</code>. It can
  6. * fill not only convex polygons but any monotonic polygon without
  7. * self-intersections, that is, a polygon whose contour intersects every
  8. * horizontal line (scan line) twice at the most (though, its top-most and/or
  9. * the bottom edge could be horizontal).</p>
  10. *
  11. * @param img Image.
  12. * @param points a points
  13. * @param color Polygon color.
  14. * @param lineType Type of the polygon boundaries. See the "line" description.
  15. * @param shift Number of fractional bits in the vertex coordinates.
  16. *
  17. * @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#fillconvexpoly">org.opencv.core.Core.fillConvexPoly</a>
  18. */
  19. public static void fillConvexPoly(Mat img, MatOfPoint points, Scalar color, int lineType, int shift)
  20. {
  21. Mat points_mat = points;
  22. fillConvexPoly_0(img.nativeObj, points_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3], lineType, shift);
  23. return;
  24. }

代码示例来源:origin: abhn/marvel

  1. /**
  2. * <p>Fills a convex polygon.</p>
  3. *
  4. * <p>The function <code>fillConvexPoly</code> draws a filled convex polygon.
  5. * This function is much faster than the function <code>fillPoly</code>. It can
  6. * fill not only convex polygons but any monotonic polygon without
  7. * self-intersections, that is, a polygon whose contour intersects every
  8. * horizontal line (scan line) twice at the most (though, its top-most and/or
  9. * the bottom edge could be horizontal).</p>
  10. *
  11. * @param img Image.
  12. * @param points a points
  13. * @param color Polygon color.
  14. * @param lineType Type of the polygon boundaries. See the "line" description.
  15. * @param shift Number of fractional bits in the vertex coordinates.
  16. *
  17. * @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#fillconvexpoly">org.opencv.core.Core.fillConvexPoly</a>
  18. */
  19. public static void fillConvexPoly(Mat img, MatOfPoint points, Scalar color, int lineType, int shift)
  20. {
  21. Mat points_mat = points;
  22. fillConvexPoly_0(img.nativeObj, points_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3], lineType, shift);
  23. return;
  24. }

相关文章

Core类方法