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



边栏推荐
- (课设第一套)1-5 317号子任务 (100 分)(Dijkstra:重边自环)
- By v$rman_ backup_ job_ Oracle "bug" caused by details
- (一)R语言入门指南——数据分析的第一步
- MySQL replacement field part content
- JS数组常用方法的分类、理解和运用
- JS variable types and common type conversions
- Gateway fails to route according to the service name, and reports an error service unavailable, status=503
- Teach you to release a DeNO module hand in hand
- Remember an experience of ECS being blown up by passwords - closing a small black house, changing passwords, and changing ports
- MySQL performance tuning - dirty page refresh
猜你喜欢

程序设计大作业:教务管理系统(C语言)

Learning notes of JS variable scope and function

Guided package method in idea

Classification, understanding and application of common methods of JS array

In 2020, the average salary of IT industry exceeded 170000, ranking first

JS 函数提升和var变量的声明提升

Unity scene jump and exit

(3) Introduction to bioinformatics of R language - function, data Frame, simple DNA reading and analysis

Custom view puzzle getcolor r.color The color obtained by colorprimary is incorrect

Page performance optimization of video scene
随机推荐
idea中好用的快捷键
[offer29] sorted circular linked list
[Offer29] 排序的循环链表
Mysql database reports an error: row size too large (> 8126) Changing some columns to TEXT or BLOB or using ROW_ FORMAT=DY
js 变量作用域和函数的学习笔记
Office提示您的许可证不是正版弹框解决
基於Redis的分布式ID生成器
(课设第一套)1-5 317号子任务 (100 分)(Dijkstra:重边自环)
MySQL时间、时区、自动填充0的问题
Get the position of the nth occurrence of the string
[leetcode622]设计循环队列
Lock wait timeout exceeded try restarting transaction
Minio file download problem - inputstream:closed
There is no red exclamation mark after SVN update
数据库课程设计:高校教务管理系统(含代码)
About using @controller in gateway
Fairygui joystick
[Clickhouse kernel principle graphic explanation] about the collaborative work of partitioning, indexing, marking and compressed data
Learning notes of JS variable scope and function
Fabrication of fairygui simple Backpack