当前位置:网站首页>(27) Open operation, close operation, morphological gradient, top hat, black hat
(27) Open operation, close operation, morphological gradient, top hat, black hat
2022-07-01 16:57:00 【Li Sanhe】
First, the main purpose of morphology is to obtain object topology and result information , Through some operations of objects and structural elements , Get the more essential form of the object , The main applications in image processing are :
(1) Use the basic operations of morphology to observe and process the image , So as to improve the image quality
(2) Describe and define various geometric parameters and features of the image, such as area 、 Perimeter 、 connected 、 Particle size 、 Skeleton and directivity
1、 Open operation
The operation is realized by first etching the image and then expanding , The principle expression is as follows :
dst=open(src,element)=dilate(erode(src,element))
It can exclude small lumps ( Suppose the object is brighter than the background ), The result of the open operation deletes the object area that cannot contain structural elements , Smoothed the outline of the object , Broke the narrow connection , Removed the small protrusions , As shown in the figure below : The image on the left is the original image , The figure on the right is the result of the open operation conversion , You can find that the white space at the corner of the letter disappears .
2、 Closed operation
Mathematically, closed operation is the result of expansion and then corrosion , The principle expression is as follows :
dst=close(src,element)=erode(dilate(src,element))
It can exclude small black holes ( Black areas ), It can smooth the outline of the object , But unlike the open operation, the closed operation generally connects narrow gaps to form slender bends , And fill holes smaller than structural elements .
3、 Morphological gradient
The morphological gradient is the difference between the expansion diagram and the corrosion diagram , The operation principle expression is as follows :
dst=morph(src,element)=dilate(src,element)-erode(src,element)
Morphological gradient operation can preserve the edge contour of the object
4、 Top hat
The top hat operation is the difference between the original image and the result of the open operation , The principle expression is as follows :
dst=tophat(src,element)=src-open(src,element)
The result of the open operation is to enlarge the crack or locally reduce the brightness of the area , Therefore, the effect image obtained by subtracting the calculated image from the original image can highlight the area brighter than the area around the outline of the original image , And this operation is related to the size of the selected core . The top hat operation is often used to separate the plates that are lit next to each other , When an image has a large background and small objects are regular , The top hat operation can be used for background extraction .
5、 Black hat
Black hat operation is the difference between the result of closed operation and the original image , The principle expression is as follows :
dst=blackhat(src,element)=close(src,element)-src
The effect image after black hat operation highlights the darker area than the area around the outline of the original image , This operation is also related to the selected core size . So the black hat operation is used to separate the patches darker than the adjacent points , The rendering has a very perfect outline .
边栏推荐
- Iommu/smmuv3 code analysis (10) page table operation
- 美国国家安全局(NSA)“酸狐狸”漏洞攻击武器平台技术分析报告
- 嗨 FUN 一夏,与 StarRocks 一起玩转 SQL Planner!
- [wrung Ba wrung Ba is 20] [essay] why should I learn this in college?
- [flask introduction series] cookies and session
- 荣威 RX5 的「多一点」产品策略
- 模板引擎Velocity 基础
- [live broadcast appointment] database obcp certification comprehensive upgrade open class
- Stegano in the world of attack and defense
- Tutorial on the principle and application of database system (001) -- MySQL installation and configuration: installation of MySQL software (Windows Environment)
猜你喜欢
Shenyu gateway development: enable and run locally
ACL 2022 | 分解的元学习小样本命名实体识别
【C补充】【字符串】按日期排序显示一个月的日程
Pytest learning notes (13) -allure of allure Description () and @allure title()
博睿数据一体化智能可观测平台入选中国信通院2022年“云原生产品名录”
6月刊 | AntDB数据库参与编写《数据库发展研究报告》 亮相信创产业榜单
【C语言基础】12 字符串
嗨 FUN 一夏,与 StarRocks 一起玩转 SQL Planner!
【直播预约】数据库OBCP认证全面升级公开课
[C language foundation] 12 strings
随机推荐
Tutorial on the principle and application of database system (002) -- MySQL installation and configuration: MySQL software uninstallation (Windows Environment)
存在安全隐患 起亚召回部分K3新能源
String class
mysql -- explain性能优化
判断一棵二叉树是否为平衡二叉树
Leetcode records - sort -215, 347, 451, 75
走进微信小程序
Free lottery | explore the future series of blind box digital copyright works of "abadou" will be launched on the whole network!
Babbitt | yuan universe daily must read: Naixue coin, Yuan universe paradise, virtual stock game Do you understand Naixue's tea's marketing campaign of "operation pull full"
C语言输入/输出流和文件操作
如何写出好代码 — 防御式编程指南
重磅披露!上百个重要信息系统被入侵,主机成为重点攻击目标
越来越多地使用 SLO 来实现可观测性|DevOps
P2592 [zjoi2008] birthday party (DP)
The amazing open source animation library is not only awesome, but also small
【C补充】【字符串】按日期排序显示一个月的日程
巴比特 | 元宇宙每日必读:奈雪币、元宇宙乐园、虚拟股票游戏...奈雪的茶这波“操作拉满”的营销活动你看懂了吗?...
China sorbitol Market Forecast and investment strategy report (2022 Edition)
判断二叉树是否为二叉搜索树
智能运维实战:银行业务流程及单笔交易追踪