zoukankan      html  css  js  c++  java
  • opencv line

    opencv line

    /** @brief Draws a line segment connecting two points.
    
    The function line draws the line segment between pt1 and pt2 points in the image. The line is
    clipped by the image boundaries. For non-antialiased lines with integer coordinates, the 8-connected
    or 4-connected Bresenham algorithm is used. Thick lines are drawn with rounding endings. Antialiased
    lines are drawn using Gaussian filtering.
    
    @param img Image.
    @param pt1 First point of the line segment.
    @param pt2 Second point of the line segment.
    @param color Line color.
    @param thickness Line thickness.
    @param lineType Type of the line, see cv::LineTypes.
    @param shift Number of fractional bits in the point coordinates.
     */
    CV_EXPORTS_W void line(InputOutputArray img, Point pt1, Point pt2, const Scalar& color,int thickness = 1, int lineType = LINE_8, int shift = 0);

    #############################

  • 相关阅读:
    IDA*算法
    智能指针
    C51模拟I2C,音乐播放(记忆)
    类与对象解剖(虚函数)
    MFC类层次结构
    平面几何
    IDAstar搜索
    MFC程序初始化过程
    放苹果 分治法
    【读后感】编程珠玑 第九章 代码调优
  • 原文地址:https://www.cnblogs.com/herd/p/15406749.html
Copyright © 2011-2022 走看看