当前位置:网站首页>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正规形状中描述的输入线存储为区域。
边栏推荐
猜你喜欢

单元测试覆盖率

Anaconda installation +tensorflow installation +keras installation +numpy installation (including image and version information compatibility issues)

冰冰学习笔记:循环队列的实现

CTF_ Web:8-bit controllable character getshell

Finereport (sail soft) handling the problem that the histogram data label is blocked

php开发支付宝支付功能之扫码支付流程图

Record small knowledge points

Anaconda安装+TensorFlow安装+Keras安装+numpy安装(包含镜像和版本信息兼容问题)

Nodejs connects to MySQL through heidisql, and ER appears_ BAD_ DB_ ERROR: Unknown database 'my_ db_ books'

记录小知识点
随机推荐
Gbase 8s parallel operation problem scenario description
使用文本分析识别一段文本中的主要性别
What is persistence? What are RDB and AOF in redis persistence?
GBASE 8s的并行操作问题场景描述
SQL注入详解
Gbase 8s index b+ tree
GBASE 8s的多线程结构
Retrofit source code analysis
Communication problems in parent and child components of uniapp
CTF_ Web: file contains pseudo protocol with PHP
L'épée leetcode fait référence au chemin leetcode de l'offre II 091 pour peindre la maison [planification dynamique] heroding
GBASE 8s的包
GBASE 8s存储过程流程控制
Sourcetree pulls the code and prompts to fill in authentic, but the configuration cannot change the user
机器学习深度学习——向量化
Leetcode points to the leetcode road of offering II 091 house painting [dynamic planning] heroding
2.0SpingMVC使用RESTful
什么是持久化?redis 持久化中的RDB和AOF是什么?
领导:谁再用 Redis 过期监听实现关闭订单,立马滚蛋!
Coinlist how to operate the middle lot number security tutorial