当前位置:网站首页>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
边栏推荐
- Walk into WPF's drawing Bing Dwen Dwen
- 程序设计大作业:教务管理系统(C语言)
- 燕山大学校园网自动登录问题解决方案
- (五)R语言入门生物信息学——ORF和序列分析
- [Red Treasure Book Notes simplified version] Chapter 12 BOM
- Fairygui joystick
- MySQL replacement field part content
- Programming homework: educational administration management system (C language)
- idea中导包方法
- There is no red exclamation mark after SVN update
猜你喜欢
Learning notes of JS variable scope and function
Fairygui joystick
Easy to use shortcut keys in idea
Stm32f1+bc20+mqtt+freertos system is connected to Alibaba cloud to transmit temperature and humidity and control LED lights
Types de variables JS et transformations de type communes
(5) Introduction to R language bioinformatics -- ORF and sequence analysis
2021.11.10 compilation examination
JS数组常用方法的分类、理解和运用
Guided package method in idea
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
随机推荐
1041 Be Unique (20 point(s))(哈希:找第一个出现一次的数)
Postman 中级使用教程【环境变量、测试脚本、断言、接口文档等】
JS 函数提升和var变量的声明提升
Basic operations of databases and tables ----- modifying data tables
[Leetcode15]三数之和
The dolphin scheduler remotely executes shell scripts through the expect command
Unity3D,阿里云服务器,平台配置
数据库课程设计:高校教务管理系统(含代码)
@The difference between Autowired and @resource
FairyGUI簡單背包的制作
Navigator object (determine browser type)
(一)R语言入门指南——数据分析的第一步
(四)R语言的数据可视化——矩阵图、柱状图、饼图、散点图与线性回归、带状图
Servlet
Page performance optimization of video scene
Easy to use shortcut keys in idea
Who says that PT online schema change does not lock the table, or deadlock
Design and implementation of general interface open platform - (39) simple and crude implementation of API services
About using @controller in gateway
History object