当前位置:网站首页>(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 .
边栏推荐
- Tutorial on the principle and application of database system (002) -- MySQL installation and configuration: MySQL software uninstallation (Windows Environment)
- Redis 分布式鎖
- GaussDB(for MySQL) :Partial Result Cache,通过缓存中间结果对算子进行加速
- Tutorial on the principle and application of database system (001) -- MySQL installation and configuration: installation of MySQL software (Windows Environment)
- Leetcode 77 combination -- backtracking method
- 智能运维实战:银行业务流程及单笔交易追踪
- Redis Distributed Lock
- Rhcsa Road
- [nodemon] app crashed - waiting for file changes before starting... resolvent
- Tutorial on the principle and application of database system (005) -- Yum offline installation of MySQL 5.7 (Linux Environment)
猜你喜欢
模板引擎Velocity 基礎
字节跳动数据平台技术揭秘:基于 ClickHouse 的复杂查询实现与优化
Bugku's file contains
Tutorial on the principle and application of database system (001) -- MySQL installation and configuration: installation of MySQL software (Windows Environment)
嗨 FUN 一夏,与 StarRocks 一起玩转 SQL Planner!
Soft test network engineer full truth simulation question (including answer and analysis)
如何使用 etcd 实现分布式 /etc 目录
想做软件测试的女孩子看这里
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 language input / output stream and file operation
随机推荐
sql刷题586. 订单最多的客户
Transition technology from IPv4 to IPv6
Chinese diosgenin market forecast and investment strategy report (2022 Edition)
How to use F1 to F12 correctly on laptop keyboard
Judge whether a binary tree is a balanced binary tree
Redis6.0 new features
[C language supplement] judge which day tomorrow is (tomorrow's date)
Template engine velocity Foundation
MySQL learning summary
【splishsplash】关于如何在GUI和json上接收/显示用户参数、MVC模式和GenParam
How to maintain the laptop battery
SQL注入漏洞(Mysql与MSSQL特性)
Ring iron pronunciation, dynamic and noiseless, strong and brilliant, magic wave hifiair Bluetooth headset evaluation
National Security Agency (NSA) "sour Fox" vulnerability attack weapon platform technical analysis report
游戏行业安全选择游戏盾,效果怎么样?
SQL question brushing 1050 Actors and directors who have worked together at least three times
【C补充】【字符串】按日期排序显示一个月的日程
机器学习11-聚类,孤立点判别
【PyG】文档总结以及项目经验(持续更新
GameFramework食用指南