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.

#Opencv

cvCircle and cvRectangle相关推荐

  1. opencv 绘图 cvLine cvRectangle cvCircle cvEllipse cvEllipseBox cvFillPoly cvConvexPoly cvPolyLine

    常用宏定义: #define CV_RGB( r, g, b ) cvScalar( (b), (g), (r), 0 ) #define CV_FILLED -1#define CV_AA 16 # ...

  2. cvCircle函数

    功能:绘制或填充一个给定圆心和半径的圆. 函数形式:  void cvCircle ( CvArr * img, CvPoint center, int radius, CvScalar color, ...

  3. [opencv] cvline cvcircle cvEllipse等画图操作

    1.cvline cvLine(image,p1,p2,CV_RGB(255,255,255),3,8,0); //p1,p2分别为起点和终点 为Tcvpoint类型数据,3表示线宽,8表示线条类型 ...

  4. OpenCV繪圖的實作-cvCircle,cvEllipse,cvEllipseBox

    转自:http://www.90in.net/space-4-do-blog-id-10218.html OpenCV繪圖的實作-cvCircle,cvEllipse,cvEllipseBox 圓的製 ...

  5. Opencv cvCircle()函数

    Circle,即圆形.cvCircle是指绘制圆形的一个程序函数. 定义 void cvCircle( CvArr* img, CvPoint center, int radius, CvScalar ...

  6. opencv中cvCircle的使用方法

    Circle ,中文含义指:即圆形.cvCircle是指绘制圆形的一个程序函数. 定义 void cvCircle( CvArr* img, CvPoint center, int radius, C ...

  7. Opencv cvCircle函数

    cvCircle(CvArr* img, CvPoint center, int radius, CvScalar color, int thickness=1, int lineType=8, in ...

  8. opencv中的cvCircle函数

    定义 void cvCircle( CvArr* img, CvPoint center, int radius, CvScalar color, int thickness=1, int line_ ...

  9. opencv在电脑屏幕上画_opencv平滑处理?opencv 画实心圆?OpenCV繪圖的實作-cvCircle,cvEllipse,cvElli...

    你是否正在寻找关于cvcircle的内容?让我把最吸引人的东西奉献给你: 转自: OpenCV繪圖的實作-cvcircle,cvEllipse,cvEllipseBox 圓的製作,要給他目標圖片,圓心 ...

最新文章

  1. LeetCode 152. Maximum Product Subarray--动态规划--C++,Python解法
  2. 空洞卷积aspp 学习笔记
  3. application/x-www-form-urlencoded与application/json区别以及遇到的坑
  4. PHP学习笔记4:字符串与正则
  5. (Application下)组件(所在的)进程创建时,创建Application
  6. PE文件格式和ELF文件格式(上)----PE文件
  7. Python学习-集合的常见用法
  8. 怎么创建PHP函数,如何创建 PHP 函数
  9. 计算机系应用,近距离看专业 计算机专业应用篇
  10. 渗透测试岗位面试题(渗透思路)
  11. java 双倍长密钥3des_用Java实现的单倍长密钥DES、双倍长密钥3DES和Mac计算
  12. vue.js的生命周期
  13. 设计并搭建Python容器化项目的CI/CD流水线
  14. 孙鑫VC学习笔记:第二十讲 (二) ado数据库编程
  15. 【mybatis】mybatis基础知识总结
  16. AIScanner文字识别软件 OCR
  17. CM源码(CyanogenMod)源码编译
  18. 手把手教你如何在Innovus中解决local congestion问题
  19. 瞎扯:修仙文明VS科技文明发展潜力
  20. 常见的的水生植物图像

热门文章

  1. JavaEE——HTML
  2. CDC在OnPaint函数中采用TextOut函数初始化静态文本框
  3. 面朝大海,春暖花开,庆幸自己挺过来了17-----19
  4. [ WARN] : Topic ‘/rviz_visual_tools‘ unable to connect to any subscribers with 0.5 sec.解决办法
  5. matlab中conj语句是什么意思,conj(conj的用法)
  6. 同时掌握c 和java_怎么在必须同时学习C语言和Java时把两者学好?
  7. 使用AspectJ LTW(Load Time Weaving)
  8. 手工AD Safe去广告教程
  9. 虚拟机链接克隆和完整克隆区别
  10. Windows使用mingw64编译生成dll动态库