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


相关推荐

  • Redis(2.8版本)配置文件参数中文详解

    Redis(2.8版本)配置文件参数中文详解

    2021年9月2日
    71
  • java 设置代理服务器_网络代理

    java 设置代理服务器_网络代理importjava.io.BufferedReader;importjava.io.InputStreamReader;importjava.io.PrintWriter;importjava.net.*;importjava.util.Base64;publicclassTest{publicstaticvoidmain(String[]arg…

    2025年10月19日
    2
  • Word域切换及更新快捷键域代码「建议收藏」

    Word域切换及更新快捷键域代码「建议收藏」Word域切换及更新快捷键“Alt+F9”切换所有域代码,选中域后“Shift+F9”切换选中的域代码。“Ctrl+A”后“F9”更新所有域代码,选中域后“F9”更新选中的域代码。更新域:单个域选中按F9,整个文档则“CTAL+A”后按F9。查看域:单个域选中按SHIFT+F9,整个文档则“ALT+F9”。

    2022年6月5日
    375
  • NFV相关术语解释[通俗易懂]

    NFV相关术语解释[通俗易懂]NFV词汇1)0~9无。2)A~B无。3)==C==(1)CPU(CentralProcessingUnit,中央处理器):一种NFV计算域设备,用以提供主要的容器接口。(2)computedomain(计算域):一种NFVI(笔者注:NFVI即NFVInfrastructure——NFV基础设施)内的域,其中包括各种服务器与存储(设备)。(3)computenod…

    2025年10月14日
    4
  • 10款Java小游戏(详解+源码)

    10款Java小游戏(详解+源码)开源Java小游戏前言下面就给大家介绍十几个开源的Java小游戏,供大家学习交流。资源都下载好共享到我的交流群了,需要的在群内自取862461829不收取任何资源费,毕竟开源才是我们的宗旨。【群里还含有:Java80g学习资料包+Java学习书籍+Java项目实战源码+安装软件等】各类资源都有哦~1.数字彩虹雨这是我比较喜欢的一个小应用,虽然代码比较简单但是喜欢那种简单的美。下面是运行截图,就是我们在黑客帝国里面见到的那种数字雨,运行时是全屏的。下面说说下载链接里面的东西.

    2022年7月9日
    19
  • 电气设计心得体会_原理图设计规范

    电气设计心得体会_原理图设计规范本博客将简述中兴通讯股份有限公司在原理图设计中需要注意的一些事项,其中包含了中兴设计开发部积累的大量硬件开发知识和经验,可以作为学习使用。硬件工程师可以学习并掌握检查条目的内容以及对条目的详细说明,学习部门经验。

    2025年9月18日
    5

发表回复

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

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