当前位置:网站首页>halcon之区域:多种区域(Region)生成(3)
halcon之区域:多种区域(Region)生成(3)
2022-06-25 04:01:00 【无水先生】
一、提要
某些区域生成,初学者需要每个都试试,这不仅是个加强映像问题,而且是了解Halcon能力的过程。本篇介绍几个在数值图像分析中,较为有用的区域算子。请学友们共享!
二、生成区域
2.1 gen_checker_region算子
功能:创建一个方格式区域。
gen_checker_region( : RegionChecker : WidthRegion, HeightRegion, WidthPattern, HeightPattern : )
操作符 gen_checker_region 返回一个方格区域。棋盘的每个黑色区域都属于该区域。区域的水平和垂直扩展分别受 WidthRegion、HeightRegion 限制,棋盘格的字段大小受 WidthPattern * HeightPattern 限制。
测试代码:
get_system ('neighborhood', Information)
gen_checker_region (RegionChecker, 511, 511, 32, 32)
set_system ('neighborhood', 4)
dev_set_colored (6)
connection (RegionChecker, ConnectedRegions)
set_system ('neighborhood', Information)
2.2 gen_grid_region
4. gen_grid_region 功能:根据行或像素数创建一个区域_。
gen_grid_region(RegionGrid, 10, 10, 'lines', 512, 512)
生成格边缘构成的区域。
注意: gen_checker_region和gen_grid_region是两种相互互补的网格区域。
2.3 随机点区域
gen_random_region 产生矩形区域,区域内是随机点。
gen_random_region(RegionRandom, 256, 256)
2.4 随机图形对象区域
gen_random_regions 功能:创建随机区域如圆周,矩形和椭圆。
gen_random_regions(Regions, 'circle', 10, 20, 10, 30, -0.7854, 0.7854, 100, 512, 512)
2.5 图形区域生成算子
1. gen_circle 功能:创建一个圆周。
2. gen_ellipse 功能:创建一个椭圆。
3. gen_empty_region 功能:创建一个空的区域。
4. gen_rectangle1 功能:创建一个与坐标轴平行的长方形。
5. gen_rectangle2 功能:创建任意方向的矩形。
6. gen_region_contour_xld 功能:从XLD元组中创建一个区域。
7. gen_region_histo 功能:将一个直方图转换为一个区域。
8. gen_region_hline 功能:将Hesse正规形状中描述的输入线存储为区域。
边栏推荐
- Value transfer between parent and child components of wechat applet
- CTF_ Web: deserialization of learning notes (II) CTF classic test questions from shallow to deep
- 冰冰学习笔记:循环队列的实现
- Use of deferred environment variable in gbase 8s
- Introduction to intstream API
- Can Navicat directly operate the Android database SQLite
- Unit test coverage
- What is data persistence?
- 无法安装redis接口
- Trigger for gbase 8s
猜你喜欢
CTF_ Web:8-bit controllable character getshell
Basic use of OBS browser+ browser
Office macro virus bounce shell experiment
单元测试覆盖率
【esp32学习之路6——flash加密】
English Grammar - pronunciation rules
深度学习——几种学习类型
GBASE 8s 总体架构
Nodejs 通过Heidisql连接mysql出现ER_BAD_DB_ERROR: Unknown database 'my_db_books'
cnpm : 无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\cnpm.ps1,因为在此系统上禁止运行脚本。
随机推荐
Record small knowledge points
515. 在每个树行中找最大值 / 剑指 Offer II 095. 最长公共子序列
Classification of gbase 8s locks
php开发支付宝支付功能之扫码支付流程图
sql_ mode=only_ full_ group_ By's pit
Can Navicat directly operate the Android database SQLite
mongodb集群
Gbase 8s parallel operation problem scenario description
GBASE 8s活锁、死锁问题的解决
LabVIEW开发气体调节器
Gbase 8s memory management
GBase 8s的封锁技术的基本介绍
单元测试覆盖率
如何筛选出和产品相关的词,精准排除掉无效词
SQL injection details
What is data persistence?
jsz中的join()
JS arrow function
CTF_ Web: Advanced questions of attack and defense world expert zone WP (9-14)
js的arguments