本文整理了Java中org.opencv.core.Core.polylines_1()
方法的一些代码示例,展示了Core.polylines_1()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Core.polylines_1()
方法的具体详情如下:
包路径:org.opencv.core.Core
类名称:Core
方法名:polylines_1
暂无
代码示例来源:origin: ytai/IOIOPlotter
/**
* <p>Draws several polygonal curves.</p>
*
* <p>The function <code>polylines</code> draws one or more polygonal curves.</p>
*
* @param img Image.
* @param pts Array of polygonal curves.
* @param isClosed Flag indicating whether the drawn polylines are closed or
* not. If they are closed, the function draws a line from the last vertex of
* each curve to its first vertex.
* @param color Polyline color.
* @param thickness Thickness of the polyline edges.
*
* @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#polylines">org.opencv.core.Core.polylines</a>
*/
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;
}
代码示例来源:origin: jtsky/EasyPR_Android
/**
* <p>Draws several polygonal curves.</p>
*
* <p>The function <code>polylines</code> draws one or more polygonal curves.</p>
*
* @param img Image.
* @param pts Array of polygonal curves.
* @param isClosed Flag indicating whether the drawn polylines are closed or
* not. If they are closed, the function draws a line from the last vertex of
* each curve to its first vertex.
* @param color Polyline color.
* @param thickness Thickness of the polyline edges.
*
* @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#polylines">org.opencv.core.Core.polylines</a>
*/
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;
}
代码示例来源:origin: com.sikulix/sikulixapi
/**
* <p>Draws several polygonal curves.</p>
*
* <p>The function <code>polylines</code> draws one or more polygonal curves.</p>
*
* @param img Image.
* @param pts Array of polygonal curves.
* @param isClosed Flag indicating whether the drawn polylines are closed or
* not. If they are closed, the function draws a line from the last vertex of
* each curve to its first vertex.
* @param color Polyline color.
* @param thickness Thickness of the polyline edges.
*
* @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#polylines">org.opencv.core.Core.polylines</a>
*/
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;
}
代码示例来源:origin: nu.pattern/opencv
/**
* <p>Draws several polygonal curves.</p>
*
* <p>The function <code>polylines</code> draws one or more polygonal curves.</p>
*
* @param img Image.
* @param pts Array of polygonal curves.
* @param isClosed Flag indicating whether the drawn polylines are closed or
* not. If they are closed, the function draws a line from the last vertex of
* each curve to its first vertex.
* @param color Polyline color.
* @param thickness Thickness of the polyline edges.
*
* @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#polylines">org.opencv.core.Core.polylines</a>
*/
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;
}
代码示例来源:origin: abhn/marvel
/**
* <p>Draws several polygonal curves.</p>
*
* <p>The function <code>polylines</code> draws one or more polygonal curves.</p>
*
* @param img Image.
* @param pts Array of polygonal curves.
* @param isClosed Flag indicating whether the drawn polylines are closed or
* not. If they are closed, the function draws a line from the last vertex of
* each curve to its first vertex.
* @param color Polyline color.
* @param thickness Thickness of the polyline edges.
*
* @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#polylines">org.opencv.core.Core.polylines</a>
*/
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;
}
内容来源于网络,如有侵权,请联系作者删除!