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

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

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

Core.arrowedLine_0介绍

暂无

代码示例

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

  1. /**
  2. * <p>Draws a arrow segment pointing from the first point to the second one.</p>
  3. *
  4. * <p>The function <code>arrowedLine</code> draws an arrow between <code>pt1</code>
  5. * and <code>pt2</code> points in the image. See also "line".</p>
  6. *
  7. * @param img Image.
  8. * @param pt1 The point the arrow starts from.
  9. * @param pt2 The point the arrow points to.
  10. * @param color Line color.
  11. * @param thickness Line thickness.
  12. * @param line_type a line_type
  13. * @param shift Number of fractional bits in the point coordinates.
  14. * @param tipLength The length of the arrow tip in relation to the arrow length
  15. *
  16. * @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#arrowedline">org.opencv.core.Core.arrowedLine</a>
  17. */
  18. public static void arrowedLine(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int line_type, int shift, double tipLength)
  19. {
  20. arrowedLine_0(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.val[3], thickness, line_type, shift, tipLength);
  21. return;
  22. }

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

  1. /**
  2. * <p>Draws a arrow segment pointing from the first point to the second one.</p>
  3. *
  4. * <p>The function <code>arrowedLine</code> draws an arrow between <code>pt1</code>
  5. * and <code>pt2</code> points in the image. See also "line".</p>
  6. *
  7. * @param img Image.
  8. * @param pt1 The point the arrow starts from.
  9. * @param pt2 The point the arrow points to.
  10. * @param color Line color.
  11. * @param thickness Line thickness.
  12. * @param line_type a line_type
  13. * @param shift Number of fractional bits in the point coordinates.
  14. * @param tipLength The length of the arrow tip in relation to the arrow length
  15. *
  16. * @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#arrowedline">org.opencv.core.Core.arrowedLine</a>
  17. */
  18. public static void arrowedLine(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int line_type, int shift, double tipLength)
  19. {
  20. arrowedLine_0(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.val[3], thickness, line_type, shift, tipLength);
  21. return;
  22. }

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

  1. /**
  2. * <p>Draws a arrow segment pointing from the first point to the second one.</p>
  3. *
  4. * <p>The function <code>arrowedLine</code> draws an arrow between <code>pt1</code>
  5. * and <code>pt2</code> points in the image. See also "line".</p>
  6. *
  7. * @param img Image.
  8. * @param pt1 The point the arrow starts from.
  9. * @param pt2 The point the arrow points to.
  10. * @param color Line color.
  11. * @param thickness Line thickness.
  12. * @param line_type Type of the line:
  13. * <ul>
  14. * <li> 8 (or omitted) - 8-connected line.
  15. * <li> 4 - 4-connected line.
  16. * <li> CV_AA - antialiased line.
  17. * </ul>
  18. * @param shift Number of fractional bits in the point coordinates.
  19. * @param tipLength The length of the arrow tip in relation to the arrow length
  20. *
  21. * @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#arrowedline">org.opencv.core.Core.arrowedLine</a>
  22. */
  23. public static void arrowedLine(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int line_type, int shift, double tipLength)
  24. {
  25. arrowedLine_0(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.val[3], thickness, line_type, shift, tipLength);
  26. return;
  27. }

相关文章

Core类方法