当前位置:网站首页>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 ÿ
边栏推荐
- Do you know that there is an upper limit on the size of Oracle data files?
- 删除元素(带过渡动画)
- Convolutional neural network (Introduction)
- <口算練習機 方案開發原理圖>口算練習機/口算寶/兒童數學寶/兒童計算器 LCD液晶顯示驅動IC-VK1621B,提供技術支持
- taobao.trades.sold.get-查询卖家已卖出的交易数据(根据创建时间),淘宝店铺卖出订单查询API接口,淘宝R2接口,淘宝oAuth2.0交易接口代码分享
- Methods of software testing
- docker mysql
- 关于Flink框架窗口(window)函数最全解析
- How kaggle uses utility script
- Analysis of CPU surge in production environment service
猜你喜欢

Thoroughly master prototype__ proto__、 Relationship before constructor (JS prototype, prototype chain)

The most complete analysis of Flink frame window function

Use of swagger

php链表创建和遍历

Method of creating linked server for cross server data access

MQ tutorial | exchange (switch)

HMS core machine learning service helps zaful users to shop conveniently

Yolov3 & yolov5 output result description

Fabric. JS free draw circle

Daily learning 2
随机推荐
每日学习3
Federated Search: all requirements in search
fatal: unsafe repository is owned by someone else 的解决方法
STM32 library function for GPIO initialization
Stm32-dac Experiment & high frequency DAC output test
Thymeleaf dependency
taobao.trades.sold.get-查询卖家已卖出的交易数据(根据创建时间),淘宝店铺卖出订单查询API接口,淘宝R2接口,淘宝oAuth2.0交易接口代码分享
Certik released the defi security report in 2021, disclosing key data of industry development (PDF download link attached)
Fabric. JS zoom canvas
STM32标准固件库函数名记忆(二)
STM32标准固件库函数名(一)
String matching problem
Makefile separates file names and suffixes
ONNX+TensorRT:将预处理操作写入ONNX并完成TRT部署
删除元素(带过渡动画)
QT new project
mongodb的认识
Fabric.js 自由绘制圆形
Fabric. JS free draw circle
3. Function pointers and pointer functions