当前位置:网站首页>Halcon knowledge: gray_ Tophat transform and bottom cap transform
Halcon knowledge: gray_ Tophat transform and bottom cap transform
2022-07-06 12:43:00 【Mr anhydrous】
One 、 Basic concepts
For the situation that the light change of the image is large , There are problems in binarization ; This effect can be eliminated by using the top hat principle and then binarized , It can eliminate this light effect .
The principle is as follows :
Region open operation , It only produces complex results at places with many edges or lines . In the open area, the data remains unchanged . therefore , Subtract from the original , Can eliminate the gray scale of open areas , Uneven illumination will offset each other .
The remaining subtraction retains information , It can be almost in the background 0 Under the condition of , Perform binary segmentation .
Two 、 Introduction to parameters and operators
gray_tophat Have structural elements for SE The input image of Image Apply gray value top hat transformation .
Structural elements SE The image type of must be the same as the input image Image Match the image type of .
Have structural elements s Image i The gray value top hat transformation of is defined as :
That is, the difference between images and s The open operation of ( See gray_opening). About the generation of structural elements , Please see the read_gray_se. Top hat transformation is particularly fast for planar structural elements , That is, the structural element with constant gray level in its domain .
- gray_opening( Image, SE : ImageOpening : : )
- gen_disc_se (SE, 'real', 30, 30, 0)
3、 ... and 、 Reference code
read_image (MreutDem, 'mreut_dgm_2.0')
gen_disc_se (SE, 'real', 30, 30, 0)
gray_tophat (MreutDem, SE, ImageTopHat)
threshold (ImageTopHat, High, 4, 1000)
zoom_region (High, HighZoomed, 8, 8)
move_region (HighZoomed, HighZoomedMoved, -250, -600)
clip_region (HighZoomedMoved, HighAreas, 0, 0, 511, 511)
dev_display (Mreut)
dev_display (HighAreas)
disp_continue_message (WindowHandle, 'black', 'true')
stop ()Four 、 Experimental results



边栏推荐
- [Clickhouse kernel principle graphic explanation] about the collaborative work of partitioning, indexing, marking and compressed data
- Office prompts that your license is not genuine pop-up box solution
- 1041 be unique (20 points (s)) (hash: find the first number that occurs once)
- The master of double non planning left the real estate company and became a programmer with an annual salary of 25W. There are too many life choices at the age of 25
- Symbolic representation of functions in deep learning papers
- (5) Introduction to R language bioinformatics -- ORF and sequence analysis
- (core focus of software engineering review) Chapter V detailed design exercises
- 如何给Arduino项目添加音乐播放功能
- [offer78] merge multiple ordered linked lists
- Fabrication d'un sac à dos simple fairygui
猜你喜欢

(5) Introduction to R language bioinformatics -- ORF and sequence analysis

NRF24L01 troubleshooting

(四)R语言的数据可视化——矩阵图、柱状图、饼图、散点图与线性回归、带状图

Vulnhub target: hacknos_ PLAYER V1.1

Stm32f1+bc20+mqtt+freertos system is connected to Alibaba cloud to transmit temperature and humidity and control LED lights

Easy to use shortcut keys in idea

基于Redis的分布式ID生成器

基于Redis的分布式锁 以及 超详细的改进思路

MySQL时间、时区、自动填充0的问题

Redis based distributed ID generator
随机推荐
Latex learning
Guided package method in idea
Gravure sans fil Bluetooth sur micro - ordinateur à puce unique
level16
Gateway 根据服务名路由失败,报错 Service Unavailable, status=503
[offer78] merge multiple ordered linked lists
Redis 缓存更新策略,缓存穿透、雪崩、击穿问题
NRF24L01 troubleshooting
[offer18] delete the node of the linked list
Knowledge summary of request
PT OSC deadlock analysis
js 变量作用域和函数的学习笔记
Unity3d camera, the keyboard controls the front and rear left and right up and down movement, and the mouse controls the rotation, zoom in and out
History object
FairyGUI复选框与进度条的组合使用
FairyGUI簡單背包的制作
(五)R语言入门生物信息学——ORF和序列分析
如何给Arduino项目添加音乐播放功能
Particle system for introduction to unity3d Foundation (attribute introduction + case production of flame particle system)
编译原理:源程序的预处理及词法分析程序的设计与实现(含代码)