当前位置:网站首页>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 .
边栏推荐
- 简单的恶意样本行文分析-入门篇
- Office macro virus bounce shell experiment
- PHP encapsulates curl to send get and post request methods, and uses
- Why is the TCP handshake just 3 times?
- 写shell脚本报错总结
- A detailed summary of TCP connection triple handshake
- Paper notes: multi label learning ESMC (I don't understand it, but I haven't written it yet, so I'll put it here for a place temporarily)
- Kotlin Compose 监听软键盘 点击enter提交事件
- SQL injection details
- Chapter IX app project test (2) test tools
猜你喜欢

Separation of storage and computing in Dahua cloud native database

Easyrecovery15 very easy to use computer data recovery software

Efficient NoSQL database service Amazon dynamodb experience sharing

执行SQL响应比较慢,你有哪些排查思路?

"Daily practice, happy water" 1108 IP address invalidation

Unit test coverage

CTF_ Web: advanced problem WP (5-8) of attack and defense world expert zone

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

【FLink】access closed classloader classloader.check-leaked-classloader

GBASE 8s 索引B+树
随机推荐
How to apply for software
Musk released humanoid robot. Why is AI significant to musk?
Separation of storage and computing in Dahua cloud native database
Gbase 8s stored procedure syntax structure
Gbase 8s overall architecture
CTF_ Web: file contains pseudo protocol with PHP
Bingbing's learning notes: implementation of circular queue
「 每日一练,快乐水题 」1108. IP 地址无效化
Upgrade PHP to php7 X (III) failure of wechat payment callback
多睡觉,能减肥,芝加哥大学最新研究:每天多睡1小时,等于少吃一根炸鸡腿...
At the age of 30, I began to learn programming by myself. Is it still time for me to have difficulties at home?
高效的NoSQL数据库服务Amozon DynamoDB体验分享
OpenSea PHP开发包
Part I Verilog quick start
Basic introduction of gbase 8s blocking technology
Php7.2 add JPEG extension
Use of deferred environment variable in gbase 8s
CTF_ Web:8-bit controllable character getshell
GBASE 8s 总体架构
How to screen out words related to products and eliminate invalid words accurately