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


相关推荐

  • 高等数学导数公式、微分公式和积分公式大全[通俗易懂]

    高等数学导数公式、微分公式和积分公式大全感谢观看期待关注知乎:叄贰壹简书:带只拖鞋去流浪关注我,带你一起写bugwarning:未经授权,不得转载有问题的小伙伴请在下方留言,喜欢就点个赞吧…

    2022年4月14日
  • json对象与json字符串_字符数组与字符串的区别

    json对象与json字符串_字符数组与字符串的区别JSON对象有时候在做项目的时候时常将这两个概念弄混淆,尤其是在使用springmvc的时候,后台@RequestBody接受的是一个json格式的字符串,一定是一个字符串。先介绍一下json对象,首先说到对象的概念,对象的属性是可以用:对象.属性进行调用的。例如:varperson={“name”:”tom”,”sex”:”男”,”age”:”24″}//json对象console.l

    2022年10月7日
  • 浅析C语言之uint8_t / uint16_t / uint32_t /uint64_t[通俗易懂]

    浅析C语言之uint8_t / uint16_t / uint32_t /uint64_t[通俗易懂]一、C语言基本数据类型回顾在C语言中有6种基本数据类型:short、int、long、float、double、char1、数值类型1)整型:short、int、long2)浮点型:float、double2、字符类型:char二、typedef回顾typedef用来定义关键字或标识符的别名,例如:typedefdoublewages;typedefwage

    2022年9月7日
  • 细说Spring——AOP详解(AOP概览)

    细说Spring——AOP详解(AOP概览)一、对AOP的初印象首先先给出一段比较专业的术语(来自百度):在软件业,AOP为AspectOrientedProgramming的缩写,意为:面向切面编程,通过预编译方式和运行期动态代理实现程序功能的统一维护的一种技术。AOP是OOP的延续,是软件开发中的一个热点,也是Spring框架中的一个重要内容,是函数式编程的一种衍生范型。利用AOP可以对业务逻辑的各个部分进行隔离,从而…

    2022年7月27日
  • c语言之选择排序法

    c语言之选择排序法c语言之选择排序法啊,这是我第一次写文章,可能会有很多不足,希望大家可以给我指出。问题:选择法排序题目描述输入一个正整数n,再输入n个整数,将他们从大到小排序后输出。样例输入525134样例输出54321//精髓就是要交换数值大小;#include<stdio.h>intmain(){ intn; scanf(“%d”,&n);//定义有多少数; inti,a[n]; for(i=0;i<n;i++) { s

    2022年6月25日
  • GridView编辑删除操作

    GridView编辑删除操作

    2021年12月15日

发表回复

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

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