当前位置:网站首页>Find the maximum inscribed circle of the contour
Find the maximum inscribed circle of the contour
2022-07-02 14:36:00 【thequitesunshine007】
1 Principle introduction
1.1 The whole principle
For binary images S Some outline of C for . Every pixel in the image Point(col, row),col<S.cols, row<S.rows.
Calculation Every Point(col, row) To contour C Distance of , Then store each distance value in ⼀ And the original image ruler ⼨ same Mat In the object , This Mat Every element of an object is ⼀ Distance value . Calculate all Point(col, row) To contour C After the distance value of , Get the most ⼤ And the corresponding point coordinates , This distance value is the radius of the maximum inscribed circle , Point coordinates (col, row) Is the center of the largest inscribed circle . Then we can pass through the circle ⼼ And the radius will be the most ⼤ The inscribed circle is drawn .
1.2 Point polygon detection pointPolygonTest explain
/** @brief Conduct contour point test .
This function determines that the point is within the contour 、 Outside , Or on the edge ( Or coincide with a vertex ). It returns positive ( Inside ), negative ( Outside ), Or zero ( edge )
When measureDist=false when , The return values are +1,-1 and 0.
otherwise , The return value is the nearest symbolic distance between the point and the nearest contour edge ( Distinguish between positive and negative values ).
@param InputArray Enter the profile .
@param pt spot .
@param measureDist If it is true ÿ
边栏推荐
- Method of creating linked server for cross server data access
- fatal: unsafe repository is owned by someone else 的解决方法
- PTA question bank== > complex four operations, one for one, examination seat number (7-73)
- 报错:npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
- Fabric. JS dynamically set font size
- ONNX+TensorRT:将预处理操作写入ONNX并完成TRT部署
- Custom events, global event bus, message subscription and publishing, $nexttick
- STM32标准固件库函数名(一)
- 测试框架TestNG的使用(二):testNG xml的使用
- Who is better, Qianyuan projection Xiaoming Q1 pro or Jimi new play? Which configuration is higher than haqu K1?
猜你喜欢
Custom events, global event bus, message subscription and publishing, $nexttick
PHP linked list creation and traversal
【空间&单细胞组学】第1期:单细胞结合空间转录组研究PDAC肿瘤微环境
QT new project
腾讯云 TStor 统一存储通过信通院首批文件存储基础能力评测
fatal: unsafe repository is owned by someone else 的解决方法
uniapp自动化测试学习
Default slot, named slot, scope slot
YoloV6训练:训练自己数据集遇到的各种问题
Chinese science and technology from the Winter Olympics (III): the awakening and evolution of digital people
随机推荐
Tip: SQL Server blocked the state 'openrowset/opendatasource' of component 'ad hoc distributed queries'
Yolov3 & yolov5 output result description
TeamTalk源码分析之win-client
Fabric. JS free drawing ellipse
Fabric. JS upper dash, middle dash (strikethrough), underline
fatal: unsafe repository is owned by someone else 的解决方法
Go operation redis
NLA natural language analysis realizes zero threshold of data analysis
The use of TestNG, the testing framework (II): the use of TestNG XML
jmeter脚本参数化
obsidian安装第三方插件——无法加载插件
Who is better, Qianyuan projection Xiaoming Q1 pro or Jimi new play? Which configuration is higher than haqu K1?
Fabric. JS zoom canvas
What is erdma? Popular science cartoon illustration
taobao.trades.sold.get-查询卖家已卖出的交易数据(根据创建时间),淘宝店铺卖出订单查询API接口,淘宝R2接口,淘宝oAuth2.0交易接口代码分享
Fabric.js 自由绘制圆形
Daily learning 2
STM32 library function for GPIO initialization
什么是 eRDMA?丨科普漫画图解
[development environment] StarUML tool (download software | StarUML installation | StarUML creation project)