当前位置: 首页>>代码示例>>Java>>正文


Java Converters.vector_vector_Point_to_Mat方法代码示例

本文整理汇总了Java中org.opencv.utils.Converters.vector_vector_Point_to_Mat方法的典型用法代码示例。如果您正苦于以下问题:Java Converters.vector_vector_Point_to_Mat方法的具体用法?Java Converters.vector_vector_Point_to_Mat怎么用?Java Converters.vector_vector_Point_to_Mat使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.opencv.utils.Converters的用法示例。


在下文中一共展示了Converters.vector_vector_Point_to_Mat方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: drawContours

import org.opencv.utils.Converters; //导入方法依赖的package包/类
public static void drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness)
{
    List<Mat> contours_tmplm = new ArrayList<Mat>((contours != null) ? contours.size() : 0);
    Mat contours_mat = Converters.vector_vector_Point_to_Mat(contours, contours_tmplm);
    drawContours_1(image.nativeObj, contours_mat.nativeObj, contourIdx, color.val[0], color.val[1], color.val[2], color.val[3], thickness);
    
    return;
}
 
开发者ID:SCHS-Robotics,项目名称:Team9261-2017-2018,代码行数:9,代码来源:Imgproc.java

示例2: polylines

import org.opencv.utils.Converters; //导入方法依赖的package包/类
public static void polylines(Mat img, List<MatOfPoint> pts, boolean isClosed, Scalar color, int thickness, int lineType, int shift)
{
    List<Mat> pts_tmplm = new ArrayList<Mat>((pts != null) ? pts.size() : 0);
    Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
    polylines_0(img.nativeObj, pts_mat.nativeObj, isClosed, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType, shift);
    
    return;
}
 
开发者ID:beast,项目名称:react-native-scan-doc,代码行数:9,代码来源:Imgproc.java

示例3: fillPoly

import org.opencv.utils.Converters; //导入方法依赖的package包/类
public static void fillPoly(Mat img, List<MatOfPoint> pts, Scalar color, int lineType, int shift, Point offset)
{
    List<Mat> pts_tmplm = new ArrayList<Mat>((pts != null) ? pts.size() : 0);
    Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
    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);
    
    return;
}
 
开发者ID:vulovicv23,项目名称:opencv-documentscanner-android,代码行数:9,代码来源:Imgproc.java

示例4: fillPoly

import org.opencv.utils.Converters; //导入方法依赖的package包/类
public static void fillPoly(Mat img, List<MatOfPoint> pts, Scalar color)
{
    List<Mat> pts_tmplm = new ArrayList<Mat>((pts != null) ? pts.size() : 0);
    Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
    fillPoly_1(img.nativeObj, pts_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3]);
    
    return;
}
 
开发者ID:linzuzeng,项目名称:Microsphere,代码行数:9,代码来源:Imgproc.java

示例5: polylines

import org.opencv.utils.Converters; //导入方法依赖的package包/类
public static void polylines(Mat img, List<MatOfPoint> pts, boolean isClosed, Scalar color)
{
    List<Mat> pts_tmplm = new ArrayList<Mat>((pts != null) ? pts.size() : 0);
    Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
    polylines_2(img.nativeObj, pts_mat.nativeObj, isClosed, color.val[0], color.val[1], color.val[2], color.val[3]);
    
    return;
}
 
开发者ID:johnhany,项目名称:MOAAP,代码行数:9,代码来源:Imgproc.java

示例6: drawContours

import org.opencv.utils.Converters; //导入方法依赖的package包/类
public static void drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness, int lineType, Mat hierarchy, int maxLevel, Point offset)
{
    List<Mat> contours_tmplm = new ArrayList<Mat>((contours != null) ? contours.size() : 0);
    Mat contours_mat = Converters.vector_vector_Point_to_Mat(contours, contours_tmplm);
    drawContours_0(image.nativeObj, contours_mat.nativeObj, contourIdx, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType, hierarchy.nativeObj, maxLevel, offset.x, offset.y);
    
    return;
}
 
开发者ID:johnhany,项目名称:MOAAP,代码行数:9,代码来源:Imgproc.java

示例7: polylines

import org.opencv.utils.Converters; //导入方法依赖的package包/类
public static void polylines(Mat img, List<MatOfPoint> pts, boolean isClosed, Scalar color, int thickness)
{
    List<Mat> pts_tmplm = new ArrayList<Mat>((pts != null) ? pts.size() : 0);
    Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
    polylines_1(img.nativeObj, pts_mat.nativeObj, isClosed, color.val[0], color.val[1], color.val[2], color.val[3], thickness);
    
    return;
}
 
开发者ID:ykarim,项目名称:FTC2016,代码行数:9,代码来源:Imgproc.java

示例8: fillPoly

import org.opencv.utils.Converters; //导入方法依赖的package包/类
/**
* <p>Fills the area bounded by one or more polygons.</p>
*
* <p>The function <code>fillPoly</code> fills an area bounded by several polygonal
* contours. The function can fill complex areas, for example, areas with holes,
* contours with self-intersections (some of their parts), and so forth.</p>
*
* @param img Image.
* @param pts Array of polygons where each polygon is represented as an array of
* points.
* @param color Polygon color.
*
* @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#fillpoly">org.opencv.core.Core.fillPoly</a>
*/
   public static void fillPoly(Mat img, List<MatOfPoint> pts, Scalar color)
   {
       List<Mat> pts_tmplm = new ArrayList<Mat>((pts != null) ? pts.size() : 0);
       Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
       fillPoly_1(img.nativeObj, pts_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3]);

       return;
   }
 
开发者ID:hoangphuc3117,项目名称:Android-Crop-Receipt,代码行数:23,代码来源:Core.java


注:本文中的org.opencv.utils.Converters.vector_vector_Point_to_Mat方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。