当前位置:网站首页>【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.实例

边栏推荐
- Wechat applet learning notes 1
- Map key not configured and uniapp routing configuration and jump are reported by the uniapp < map >< /map > component
- Keeping alive to realize MySQL automatic failover
- 面试突击68:为什么 TCP 需要 3 次握手?
- Cloud native (36) | introduction and installation of harbor in kubernetes
- Learning about tensorflow (I)
- Employee information management system based on Web
- Replay the snake game with C language (II) end
- The charm of SQL optimization! From 30248s to 0.001s
- Study notes at the end of summer vacation
猜你喜欢

Map key not configured and uniapp routing configuration and jump are reported by the uniapp < map >< /map > component

Flask框架初学-03-模板

如何写一篇百万阅读量的文章

Basics of data communication - basic knowledge of network

Session based recommendations with recurrent neural networks

Vs Code configures go locale and successfully installs go related plug-ins in vscode problem: Tools failed to install
![Azkaban [basic knowledge 01] core concepts + features +web interface + Architecture +job type (you can get started with Azkaban workflow scheduling system in one article)](/img/f9/c86ccbb0967894d370498c3a9630eb.png)
Azkaban [basic knowledge 01] core concepts + features +web interface + Architecture +job type (you can get started with Azkaban workflow scheduling system in one article)

Like, "new programmer" e-book is free for a limited time!

Employee information management system based on Web

2021 windows penetration of "Cyberspace Security" B module of Shandong secondary vocational group (analysis)
随机推荐
Data communication foundation telnet remote management equipment
MySQL 5.7.25 source code installation record
IE7 set overflow attribute failure solution
Redis realizes the correct posture of token bucket
AirTest
Mqtt x cli officially released: powerful and easy-to-use mqtt 5.0 command line tool
Vs Code configures go locale and successfully installs go related plug-ins in vscode problem: Tools failed to install
In Net 6.0
Uniapp "no mobile phone or simulator detected, please try again later" and uniapp custom components and communication
Transform between tree and array in JS (hide the children field if the child node of the tree is empty)
Wechat H5 payment on WAP, for non wechat browsers
Distributed network communication framework: how to publish local services into RPC services
Self encapsulated database dbutils universal template
Uni app learning summary
Learning about opencv (3)
在.NET 6.0中配置WebHostBuilder
Mysql5.7.25 master-slave replication (one-way)
Keeping alive to realize MySQL automatic failover
Beginner of flask framework-04-flask blueprint and code separation
SQL优化的魅力!从 30248s 到 0.001s