当前位置:网站首页>Halcon affine transformations to regions
Halcon affine transformations to regions
2022-07-05 08:40:00 【Aii parson】
dev_close_window ()
dev_open_window (0, 0, 512, 512, 'white', WindowID)
dev_set_color ('black')
* Draw with the mouse an arbitrary region into the window
draw_region (Region, WindowID)# Draw by hand , Right click OK
hom_mat2d_identity (HomMat2DIdentity)#3 Dimensional unit matrix
hom_mat2d_rotate (HomMat2DIdentity, -0.3, 256, 256, HomMat2DRotate)# Rotation matrix , Clockwise is negative ; Around the (256,256) The coordinates rotate clockwise 0.3 radian .
hom_mat2d_scale (HomMat2DRotate, 1.5, 1.5, 256, 256, HomMat2DScale)# Zoom matrix , Around the (256,256) coordinate ,x Direction and y Zoom in all directions 1.5 times
affine_trans_region (Region, RegionAffineTrans, HomMat2DScale, 'nearest_neighbor')# Perform affine transformation of adjacent interpolation
dev_clear_window ()
dev_set_draw ('margin')
dev_set_color ('red')
dev_display (Region)# The original picture
dev_set_color ('green')
dev_display (RegionAffineTrans)# Affine graph
The original picture
Affine graph
original VS Affine contour
边栏推荐
- STM32---ADC
- Guess riddles (7)
- leetcode - 445. 两数相加 II
- [formation quotidienne - Tencent Selection 50] 557. Inverser le mot III dans la chaîne
- Example 003: a complete square is an integer. It is a complete square after adding 100, and it is a complete square after adding 168. What is the number?
- Stm32--- systick timer
- 实例006:斐波那契数列
- 图解八道经典指针笔试题
- Business modeling of software model | vision
- My university
猜你喜欢
TypeScript手把手教程,简单易懂
实例002:“个税计算” 企业发放的奖金根据利润提成。利润(I)低于或等于10万元时,奖金可提10%;利润高于10万元,低于20万元时,低于10万元的部分按10%提成,高于10万元的部分,可提成7.
Guess riddles (4)
实例008:九九乘法表
Bluebridge cup internet of things basic graphic tutorial - GPIO input key control LD5 on and off
Apaas platform of TOP10 abroad
Example 009: pause output for one second
UE pixel stream, come to a "diet pill"!
Guess riddles (2)
猜谜语啦(7)
随机推荐
【三层架构】
Example 009: pause output for one second
Example 006: Fibonacci series
Arrangement of some library files
Pytorch entry record
轮子1:QCustomPlot初始化模板
Bluebridge cup internet of things competition basic graphic tutorial - clock selection
Digital analog 2: integer programming
STM32 single chip microcomputer -- volatile keyword
Low code platform | apaas platform construction analysis
实例005:三数排序 输入三个整数x,y,z,请把这三个数由小到大输出。
Example 010: time to show
Example 008: 99 multiplication table
Stm32--- systick timer
Sword finger offer 06 Print linked list from end to end
MATLAB小技巧(28)模糊綜合評價
696. 计数二进制子串
Cmder of win artifact
Guess riddles (6)
MATLAB skills (28) Fuzzy Comprehensive Evaluation