当前位置:网站首页>Region of Halcon: generation of multiple regions (3)
Region of Halcon: generation of multiple regions (3)
2022-06-25 04:43:00 【Mr anhydrous】
One 、 summary
Some areas generate , Beginners need everyone to try , This is not just a matter of enhancing the image , And understand Halcon The process of ability . This paper introduces several applications in numerical image analysis , More useful domain operators . Please share !
Two 、 Generating area
2.1 gen_checker_region operator
function : Create a square format area .
gen_checker_region( : RegionChecker : WidthRegion, HeightRegion, WidthPattern, HeightPattern : )
The operator gen_checker_region Returns a square area . Each black area of the chessboard belongs to this area . The horizontal and vertical expansion of the area are affected by WidthRegion、HeightRegion Limit , The field size of the checkerboard is affected by WidthPattern * HeightPattern Limit .
Test code :
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 function : Create an area based on the number of lines or pixels _.
gen_grid_region(RegionGrid, 10, 10, 'lines', 512, 512)
The area formed by the edge of the generated lattice .

Be careful : gen_checker_region and gen_grid_region Are two complementary grid regions .
2.3 Random point area
gen_random_region Generate a rectangular area , There are random points in the region .
gen_random_region(RegionRandom, 256, 256)
2.4 Random drawing object area
gen_random_regions function : Create random areas such as circles , Rectangles and ellipses .
gen_random_regions(Regions, 'circle', 10, 20, 10, 30, -0.7854, 0.7854, 100, 512, 512)

2.5 Graph region generation operator
1. gen_circle function : Create a circle .
2. gen_ellipse function : Create an ellipse .
3. gen_empty_region function : Create an empty area .
4. gen_rectangle1 function : Create a rectangle parallel to the axis .
5. gen_rectangle2 function : Create rectangles in any direction .
6. gen_region_contour_xld function : from XLD Create an area in the tuple .
7. gen_region_histo function : Convert a histogram to an area .
8. gen_region_hline function : take Hesse The input lines described in the normal shape are stored as areas .
边栏推荐
- 重磅直播 | 相移法+多频外差之数学原理推导+实现
- Chapter IX app project test (2) test tools
- Cnpm: unable to load file c:\users\administrator\appdata\roaming\npm\cnpm PS1 because running scripts is prohibited on this system.
- GBASE 8s 索引R树
- Calculate student grade (virtual function and polymorphism)
- 【FLink】access closed classloader classloader.check-leaked-classloader
- Package for gbase 8s
- Office macro virus bounce shell experiment
- Data view for gbase 8s
- GBASE 8s存储过程流程控制
猜你喜欢

Simple text analysis of malicious samples - Introduction

Php7.2 add JPEG extension

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

dotnet-exec 0.4.0 released
![[untitled]](/img/68/5e711f7c473dcea54a56f7b7e48604.png)
[untitled]

CTF_ Web:php weak type bypass and MD5 collision

Chapter IX app project test (2) test tools

Separation of storage and computing in Dahua cloud native database

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

重磅直播 | 相移法+多频外差之数学原理推导+实现
随机推荐
Anaconda installation +tensorflow installation +keras installation +numpy installation (including image and version information compatibility issues)
为什么TCP握手刚刚好是3次呢?
《牛客刷verilog》Part I Verilog快速入门
A detailed summary of four handshakes (or four waves) over TCP connections
CTF_ Web: how to recognize and evaluate a regular expression
CTF_ Web: Learn flask template injection (SSTI) from 0
Easyrecovery15 very easy to use computer data recovery software
Office macro virus bounce shell experiment
CTF_ Web: basic 12 questions WP of attack and defense world novice zone
Solution of gbase 8s livelock and deadlock
leetcode1221. 分割平衡字符串
Codeforces Round #802 (Div. 2) C D
js中的concat()
The solution of wechat applet switchtab unable to take parameters
Data view for gbase 8s
Multithreading structure of gbase 8s
GBASE 8s的触发器
LabVIEW development gas regulator
A detailed summary of TCP connection triple handshake
Upgrade PHP to php7 The impact of X (I). The problem of session retention. Keep login