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

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

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

Core.fillPoly_0介绍

暂无

代码示例

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

  1. /**
  2. * <p>Fills the area bounded by one or more polygons.</p>
  3. *
  4. * <p>The function <code>fillPoly</code> fills an area bounded by several polygonal
  5. * contours. The function can fill complex areas, for example, areas with holes,
  6. * contours with self-intersections (some of their parts), and so forth.</p>
  7. *
  8. * @param img Image.
  9. * @param pts Array of polygons where each polygon is represented as an array of
  10. * points.
  11. * @param color Polygon color.
  12. * @param lineType Type of the polygon boundaries. See the "line" description.
  13. * @param shift Number of fractional bits in the vertex coordinates.
  14. * @param offset Optional offset of all points of the contours.
  15. *
  16. * @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#fillpoly">org.opencv.core.Core.fillPoly</a>
  17. */
  18. public static void fillPoly(Mat img, List<MatOfPoint> pts, Scalar color, int lineType, int shift, Point offset)
  19. {
  20. List<Mat> pts_tmplm = new ArrayList<Mat>((pts != null) ? pts.size() : 0);
  21. Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
  22. fillPoly_0(img.nativeObj, pts_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3], lineType, shift, offset.x, offset.y);
  23. return;
  24. }

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

  1. /**
  2. * <p>Fills the area bounded by one or more polygons.</p>
  3. *
  4. * <p>The function <code>fillPoly</code> fills an area bounded by several polygonal
  5. * contours. The function can fill complex areas, for example, areas with holes,
  6. * contours with self-intersections (some of their parts), and so forth.</p>
  7. *
  8. * @param img Image.
  9. * @param pts Array of polygons where each polygon is represented as an array of
  10. * points.
  11. * @param color Polygon color.
  12. * @param lineType Type of the polygon boundaries. See the "line" description.
  13. * @param shift Number of fractional bits in the vertex coordinates.
  14. * @param offset Optional offset of all points of the contours.
  15. *
  16. * @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#fillpoly">org.opencv.core.Core.fillPoly</a>
  17. */
  18. public static void fillPoly(Mat img, List<MatOfPoint> pts, Scalar color, int lineType, int shift, Point offset)
  19. {
  20. List<Mat> pts_tmplm = new ArrayList<Mat>((pts != null) ? pts.size() : 0);
  21. Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
  22. fillPoly_0(img.nativeObj, pts_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3], lineType, shift, offset.x, offset.y);
  23. return;
  24. }

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

  1. /**
  2. * <p>Fills the area bounded by one or more polygons.</p>
  3. *
  4. * <p>The function <code>fillPoly</code> fills an area bounded by several polygonal
  5. * contours. The function can fill complex areas, for example, areas with holes,
  6. * contours with self-intersections (some of their parts), and so forth.</p>
  7. *
  8. * @param img Image.
  9. * @param pts Array of polygons where each polygon is represented as an array of
  10. * points.
  11. * @param color Polygon color.
  12. * @param lineType Type of the polygon boundaries. See the "line" description.
  13. * @param shift Number of fractional bits in the vertex coordinates.
  14. * @param offset Optional offset of all points of the contours.
  15. *
  16. * @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#fillpoly">org.opencv.core.Core.fillPoly</a>
  17. */
  18. public static void fillPoly(Mat img, List<MatOfPoint> pts, Scalar color, int lineType, int shift, Point offset)
  19. {
  20. List<Mat> pts_tmplm = new ArrayList<Mat>((pts != null) ? pts.size() : 0);
  21. Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
  22. fillPoly_0(img.nativeObj, pts_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3], lineType, shift, offset.x, offset.y);
  23. return;
  24. }

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

  1. /**
  2. * <p>Fills the area bounded by one or more polygons.</p>
  3. *
  4. * <p>The function <code>fillPoly</code> fills an area bounded by several polygonal
  5. * contours. The function can fill complex areas, for example, areas with holes,
  6. * contours with self-intersections (some of their parts), and so forth.</p>
  7. *
  8. * @param img Image.
  9. * @param pts Array of polygons where each polygon is represented as an array of
  10. * points.
  11. * @param color Polygon color.
  12. * @param lineType Type of the polygon boundaries. See the "line" description.
  13. * @param shift Number of fractional bits in the vertex coordinates.
  14. * @param offset Optional offset of all points of the contours.
  15. *
  16. * @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#fillpoly">org.opencv.core.Core.fillPoly</a>
  17. */
  18. public static void fillPoly(Mat img, List<MatOfPoint> pts, Scalar color, int lineType, int shift, Point offset)
  19. {
  20. List<Mat> pts_tmplm = new ArrayList<Mat>((pts != null) ? pts.size() : 0);
  21. Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
  22. fillPoly_0(img.nativeObj, pts_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3], lineType, shift, offset.x, offset.y);
  23. return;
  24. }

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

  1. /**
  2. * <p>Fills the area bounded by one or more polygons.</p>
  3. *
  4. * <p>The function <code>fillPoly</code> fills an area bounded by several polygonal
  5. * contours. The function can fill complex areas, for example, areas with holes,
  6. * contours with self-intersections (some of their parts), and so forth.</p>
  7. *
  8. * @param img Image.
  9. * @param pts Array of polygons where each polygon is represented as an array of
  10. * points.
  11. * @param color Polygon color.
  12. * @param lineType Type of the polygon boundaries. See the "line" description.
  13. * @param shift Number of fractional bits in the vertex coordinates.
  14. * @param offset Optional offset of all points of the contours.
  15. *
  16. * @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#fillpoly">org.opencv.core.Core.fillPoly</a>
  17. */
  18. public static void fillPoly(Mat img, List<MatOfPoint> pts, Scalar color, int lineType, int shift, Point offset)
  19. {
  20. List<Mat> pts_tmplm = new ArrayList<Mat>((pts != null) ? pts.size() : 0);
  21. Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
  22. fillPoly_0(img.nativeObj, pts_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3], lineType, shift, offset.x, offset.y);
  23. return;
  24. }

相关文章

Core类方法