当前位置:网站首页>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 .
边栏推荐
猜你喜欢

"Daily practice, happy water" 1108 IP address invalidation

「 每日一练,快乐水题 」1108. IP 地址无效化

Gbase 8s index b+ tree

Machine learning deep learning -- Vectorization
三角形类(构造与析构)

Why is the TCP handshake just 3 times?

Records of ros2/dds/qos/ topics

WPF 使用 MAUI 的自绘制逻辑

CTF_ Web:php weak type bypass and MD5 collision

JS arguments
随机推荐
Why PHP is not safe
GBASE 8s 索引B+树
Why is the TCP handshake just 3 times?
Use text analysis to identify the main gender in a text
CTF_ Variable coverage in web:php
Le chemin de l'apprentissage immutable - - Adieu à la copie traditionnelle
[untitled]
CTF_ Web: deserialization learning notes (I) classes and objects in PHP
What is persistence? What are RDB and AOF in redis persistence?
执行SQL响应比较慢,你有哪些排查思路?
How to apply for software
JS arguments
Triangle class (construction and deconstruction)
【Flink】RocksDB增量模式checkpoint大小持续增长的问题及解决
Excel exports data to SQL and pictures to folder through macro | VBA
Machine learning deep learning -- Vectorization
CTF_ Web:php weak type bypass and MD5 collision
Upgrade PHP to php7 The impact of X (I). The problem of session retention. Keep login
记录小知识点
Unit test coverage