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)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 网络基础之网络协议

    一.操作系统基础操作系统:(OperatingSystem,简称OS)是管理和控制计算机硬件与软件资源的计算机程序,是直接运行在“裸机”上的最基本的系统软件,任何其他软件都必须在操作系统的支持下才

    2022年3月29日
    37
  • idea2021.4.13 mac版本激活码【在线破解激活】「建议收藏」

    idea2021.4.13 mac版本激活码【在线破解激活】,https://javaforall.net/100143.html。详细ieda激活码不妨到全栈程序员必看教程网一起来了解一下吧!

    2022年3月17日
    66
  • c语言里面的枚举有啥作用,C语言枚举enum

    c语言里面的枚举有啥作用,C语言枚举enumC 语言枚举 enum 教程枚举是枚举的作用就是给我们常用的 C 语言枚举 enum 定义详解语法 enum 枚举名 枚举元素 1 枚举元素 2 枚举元素 3 参数参数描述 enum 定义枚举类型所使用的关键字 枚举名枚举的变量名 枚举元素 1 枚举元素 2 枚举元素 3 枚举的元素列表 说明我们使用 enum 关键字 定义了一个枚举变量 该枚举变量有三个元素 C 语言枚举 enum 变量定义详解语法 enum 枚举名 varn

    2025年7月12日
    2
  • onshow和onload的区别

    onshow和onload的区别onshow在每次打开页面都会加载数据,可用于数据在需要刷新的情况下。onload只是在第一次进入页面时会刷新数据,从二级页面回来不会重新加载数据。

    2022年6月21日
    106
  • DatabaseMetaData获取数据库信息 .「建议收藏」

    DatabaseMetaData获取数据库信息 .「建议收藏」importjava.sql.Connection;importjava.sql.DriverManager;importjava.sql.Statement;importjava.sql.DatabaseMetaData;publicclassDataConn{ publicDataConn(){ } publicstaticvoidma

    2022年6月19日
    44
  • Java–链表ListNode

    今天我们来介绍一下Java中的链表,作者依旧尽量用白话解释,希望能帮到大家链表链表是一种物理存储单元上非连续、非顺序的存储结构,数据元素的逻辑顺序是通过链表中的指针链接次序实现的。链表由一系列结点(链表中每一个元素称为结点)组成,结点可以在运行时动态生成。每个结点包括两个部分:一个是存储数据元素的数据域,另一个是存储下一个结点地址的指针域。上面是链表的定义,那么我们用通俗点的语言…

    2022年4月6日
    160

发表回复

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

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