当前位置:网站首页>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
边栏推荐
- 2022.2.12 resumption
- Expected value (EV)
- Common DOS commands
- JS變量類型以及常用類型轉換
- 编译原理:源程序的预处理及词法分析程序的设计与实现(含代码)
- Easy to use shortcut keys in idea
- Get the position of the nth occurrence of the string
- JS Title: input array, exchange the largest with the first element, exchange the smallest with the last element, and output array.
- Esp8266 connect onenet (old mqtt mode)
- Gateway fails to route according to the service name, and reports an error service unavailable, status=503
猜你喜欢
Fabrication d'un sac à dos simple fairygui
Unity3D,阿里云服务器,平台配置
Unity3D基础入门之粒子系统(属性介绍+火焰粒子系统案例制作)
Problèmes avec MySQL time, fuseau horaire, remplissage automatique 0
记一次云服务器被密码爆破的经历——关小黑屋、改密码、改端口
Pat 1097 duplication on a linked list (25 points)
(一)R语言入门指南——数据分析的第一步
Remember an experience of ECS being blown up by passwords - closing a small black house, changing passwords, and changing ports
Office prompts that your license is not genuine pop-up box solution
JS regular expression basic knowledge learning
随机推荐
FairyGUI摇杆
2021.11.10汇编考试
Office提示您的许可证不是正版弹框解决
Stm32f1+bc20+mqtt+freertos system is connected to Alibaba cloud to transmit temperature and humidity and control LED lights
JS 函数提升和var变量的声明提升
The dolphin scheduler remotely executes shell scripts through the expect command
FairyGUI循环列表
Unity3d makes the registration login interface and realizes the scene jump
JUC forkjoin and completable future
[offer18] delete the node of the linked list
There is no red exclamation mark after SVN update
[golang] leetcode intermediate - fill in the next right node pointer of each node & the k-smallest element in the binary search tree
Flink late data processing (3)
[Offer29] 排序的循环链表
2022.2.12 resumption
idea问题记录
[leetcode15] sum of three numbers
Who says that PT online schema change does not lock the table, or deadlock
(一)R语言入门指南——数据分析的第一步
Get the position of the nth occurrence of the string