cvCircle and cvRectangle

cvCircle and cvRectangleOpenCV中的cvCircle和cvRectangle函数void cvCircle(CvArr* img,CvPoint center,int radius,CvScalar color,int thickness=1,int lineType=8,int shift=0)Drawsacircle.Parameters:img –Image

大家好,又见面了,我是你们的朋友全栈君。

OpenCV 中的cvCircle和cvRectangle函数

void 
cvCircle(CvArr*
 img, CvPoint
 center, int
 radius, CvScalar
 color, int
 thickness=1, int
 lineType=8, int
 shift=0)

Draws a circle.

Parameters:

  • img – Image where the circle is drawn
  • center – Center of the circle
  • radius – Radius of the circle
  • color – Circle color
  • thickness – Thickness of the circle outline if positive, otherwise this indicates that a filled circle is to be drawn
  • lineType – Type of the circle boundary, see Line description
  • shift – Number of fractional bits in the center coordinates and radius value

The function draws a simple or filled circle with a given center and radius.

Rectangle

void 
cvRectangle(CvArr*
 img, CvPoint
 pt1, CvPoint
 pt2, CvScalar
 color, int
 thickness=1, int
 lineType=8, int
 shift=0)

Draws a simple, thick, or filled rectangle.

Parameters:

  • img – Image
  • pt1 – One of the rectangle’s vertices
  • pt2 – Opposite rectangle vertex
  • color – Line color (RGB) or brightness (grayscale image)
  • thickness – Thickness of lines that make up the rectangle. Negative values, e.g., CV_FILLED, cause the function to draw a filled rectangle.
  • lineType – Type of the line, see Line description
  • shift – Number of fractional bits in the point coordinates

The function draws a rectangle with two opposite corners pt1 and pt2.

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/161521.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • WIN7系统安装MySQL5.6

    WIN7系统安装MySQL5.6

    2021年5月30日
    108
  • gpio引脚介绍 树莓派3b_树莓派3bgpio引脚介绍[通俗易懂]

    gpio引脚介绍 树莓派3b_树莓派3bgpio引脚介绍[通俗易懂]第4章GPIO接口本章内容:?GPIO接口时通用输入输出端口,通俗的说,就是一些引脚,可以通过它们输出高低电平或者通过它们读入引脚状态——是高电平还是低电平。…更强的“盒子”树莓派3B型主板性能、功能增强,带来更广泛的应用领域。树莓派3B保持了B型树莓派的外形尺寸和接口布局,而性能升级是它最大的变化,……树莓派3B系列的人脸识别实验室门禁系统朱琳,…

    2022年6月25日
    33
  • Django(46)drf序列化类的使用(ModelSerializer)「建议收藏」

    Django(46)drf序列化类的使用(ModelSerializer)「建议收藏」前言我们上篇文章使用到了Serializer类,可能有小伙伴说太过复杂,那么本篇就为大家带来更加简便的序列化类ModelSerializerModelSerializer先来看下ModelSer

    2022年7月30日
    10
  • 等价类划分法用例设计「建议收藏」

    等价类划分法用例设计「建议收藏」等价类划分法等价类划分法是一种常用的、典型的黑盒测试方法。由于做到穷举测试不可能,因此需要从大量的数据中选取一部分数据用于测试,这也是等价类划分法的意义所在。用尽可能少的测试用例覆盖尽可能多的数据,以发现尽可能多的软件缺陷。等价类划分法概述(1)等价类概念等价类指输入域的某个互不相交的子集,所有等价类的集便是整个输入域。等价类中的元素有一些共同的特点,即在该子集合中,各个输入数据对于发现程序中的错误都是等效的,并合理地假定,测试某个等价类的代表值就等于对这一类其他值的测试。也

    2022年10月18日
    5
  • docker 实战—部署tomcat\weblogic集群 (二)

    docker 实战—部署tomcat\weblogic集群 (二)

    2022年2月2日
    50
  • 下载安装 Python ,含详细步骤[通俗易懂]

    下载安装 Python ,含详细步骤[通俗易懂]1、到官网下载python安装包官网地址:https://www.python.org/downloads/点击“Windows”点击“DownloadWindowsinstaller

    2022年7月3日
    29

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号