当前位置:网站首页>【Halcon视觉】形态学腐蚀
【Halcon视觉】形态学腐蚀
2022-07-26 10:15:00 【文布斯】
目录
- 概念
- 算子
- 代码
- 实例
1.概念
形态学腐蚀:对于图像中突出部分,边缘毛刺部分,进行腐蚀,可呈现良好的平滑效果。
2.算子
腐蚀分类:根据结构元的形状,可分为圆形腐蚀,和矩形腐蚀。
erosion_circle () 圆形腐蚀
erosion_rectangle () 矩形腐蚀
3.代码
*读取图像
read_image (Image, 'printer_chip/printer_chip_01')
*阈值分割
threshold (Image, Region, 150, 255)
*圆形腐蚀
erosion_circle (Region, RegionErosion, 5)
*矩形腐蚀
erosion_rectangle1 (RegionErosion, RegionErosion1, 11, 11)
*圆形膨胀
dilation_circle (RegionErosion1, RegionDilation, 5)
*两区域做差,获取边缘轮廓
difference (RegionDilation, RegionErosion1, RegionDifference)
4.实例
边栏推荐
- [information system project manager] summary of essence of high-level series for the first time
- Jpg to EPS
- 数通基础-二层交换原理
- Uniapp common error [wxml file compilation error]./pages/home/home Wxml and using MySQL front provided by phpstudy to establish an independent MySQL database and a detailed tutorial for independent da
- Azkaban [basic knowledge 01] core concepts + features +web interface + Architecture +job type (you can get started with Azkaban workflow scheduling system in one article)
- Leetcode 504. 七进制数
- About automatic operation on Web pages
- Server memory failure prediction can actually do this!
- Interview shock 68: why does TCP need three handshakes?
- Flask框架初学-03-模板
猜你喜欢
数通基础-TCPIP参考模型
regular expression
Sqoop [environment setup 01] CentOS Linux release 7.5 installation configuration sqoop-1.4.7 resolve warnings and verify (attach sqoop 1 + sqoop 2 Latest installation package +mysql driver package res
Wechat applet learning notes 1
Introduction to latex, EPS picture bounding box
Production of a-modal drag function in antui
Common errors when starting projects in uniapp ---appid
Meeting OA project (III) -- my meeting (meeting seating and submission for approval)
Flask框架初学-04-flask蓝图及代码抽离
Okaleido生态核心权益OKA,尽在聚变Mining模式
随机推荐
Interview shock 68: why does TCP need three handshakes?
About automatic operation on Web pages
SQL Server 2008 R2 installation problems
[datawhale] [machine learning] Diabetes genetic risk detection challenge
Phpexcel export Emoji symbol error
Nodejs service background execution (forever)
How to use Gmail to pick up / send mail on Foxmail
如何写一篇百万阅读量的文章
2022 zhongkepan cloud - server internal information acquisition and analysis flag
SPARK中 DS V2 push down(下推)的一些说明
Cause: couldn‘t make a guess for 解决方法
Why does new public chain Aptos meet market expectations?
INSTALL_FAILED_SHARED_USER_INCOMPATIBLE错误解决方式
Basics of data communication - basic knowledge of network
Interview shock 68: why does TCP need three handshakes?
Vectortilelayer replacement style
Tableviewcell highly adaptive
Wechat applet development
Data communication foundation telnet remote management equipment
Flask框架初学-03-模板