当前位置:网站首页>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正规形状中描述的输入线存储为区域。
边栏推荐
- Retrofit source code analysis
- 我的IC之旅——资深芯片设计验证工程师成长——“胡”说IC工程师完美进阶
- Summary of various problems encountered by cocos2d-x
- Classification of gbase 8s locks
- GBASE 8s的触发器
- php封装curl发送get、post请求方法,并使用
- Gbase 8s stored procedure flow control
- 使用文本分析识别一段文本中的主要性别
- jsz中的join()
- Cnpm: unable to load file c:\users\administrator\appdata\roaming\npm\cnpm PS1 because running scripts is prohibited on this system.
猜你喜欢

js的arguments

UCLA | generative pre training for black box optimization

Unit test coverage

What is the storage engine and the three common database storage engines for MySQL
![[esp32 learning path 6 - Flash encryption]](/img/4c/f317ca4823dca50a9bccd285967ab0.png)
[esp32 learning path 6 - Flash encryption]

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

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

Finereport displays and hides column data according to conditions

CTF_ Web: Advanced questions of attack and defense world expert zone WP (1-4)

PHP extracts and analyzes table contents, and collects bidding information
随机推荐
Gbase 8s memory management
CTF_ Web: basic 12 questions WP of attack and defense world novice zone
GbASE 8s中的Blob 页(Blobspace page)
2021.8.29 notes: register, bit operation, pointer, structure
Anaconda安装+TensorFlow安装+Keras安装+numpy安装(包含镜像和版本信息兼容问题)
彻底理解数据库事务
Finereport displays and hides column data according to conditions
Read lsd-slam: large scale direct monolithic slam
Easyrecovery15 very easy to use computer data recovery software
GBASE 8s活锁、死锁问题的解决
Gbase 8s stored procedure execution and deletion
Unity Quad culls shaders with back faces and transparent parts
Multithreading structure of gbase 8s
Should I use on or where for the left join
Win10 environment phpstudy2016 startup failure record
GBASE 8s的隔离级别介绍
Laravel document sorting 8. Middleware
UCLA | 用于黑盒优化的生成式预训练
CTF_ Web: advanced problem WP (5-8) of attack and defense world expert zone
Laravel document sorting 11. System architecture