当前位置:网站首页>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
边栏推荐
- Unity3D基础入门之粒子系统(属性介绍+火焰粒子系统案例制作)
- ESP8266连接onenet(旧版MQTT方式)
- [leetcode622]设计循环队列
- [offer29] sorted circular linked list
- Problèmes avec MySQL time, fuseau horaire, remplissage automatique 0
- MySQL takes up too much memory solution
- Learning notes of JS variable scope and function
- dosbox第一次使用
- [Leetcode15]三数之和
- Gravure sans fil Bluetooth sur micro - ordinateur à puce unique
猜你喜欢
ORA-02030: can only select from fixed tables/views
(一)R语言入门指南——数据分析的第一步
(四)R语言的数据可视化——矩阵图、柱状图、饼图、散点图与线性回归、带状图
FairyGUI复选框与进度条的组合使用
Particle system for introduction to unity3d Foundation (attribute introduction + case production of flame particle system)
Theoretical derivation of support vector machine
Basic operations of databases and tables ----- view data tables
FairyGUI增益BUFF数值改变的显示
FairyGUI循环列表
[Nodejs] 20. Koa2 onion ring model ----- code demonstration
随机推荐
dosbox第一次使用
SVN更新后不出现红色感叹号
编译原理:源程序的预处理及词法分析程序的设计与实现(含代码)
Theoretical derivation of support vector machine
Conditional probability
PT OSC deadlock analysis
Unity3d makes the registration login interface and realizes the scene jump
Force buckle 1189 Maximum number of "balloons"
1041 be unique (20 points (s)) (hash: find the first number that occurs once)
Basic operations of databases and tables ----- classification of data
(3) Introduction to bioinformatics of R language - function, data Frame, simple DNA reading and analysis
In 2020, the average salary of IT industry exceeded 170000, ranking first
Lock wait timeout exceeded try restarting transaction
MySQL time, time zone, auto fill 0
2022.2.12 resumption
记一次云服务器被密码爆破的经历——关小黑屋、改密码、改端口
Database course design: college educational administration management system (including code)
js 变量作用域和函数的学习笔记
js题目:输入数组,最大的与第一个元素交换,最小的与最后一个元素交换,输出数组。
Expected value (EV)