当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
每日一题——输入一个日期,输出它是该年的第几天
C language data type replacement
ABC#237 C
Run菜单解析
PIP installation
Numpy 小坑:维度 (n, 1) 和 维度 (n, ) 数组相加运算后维度变为 (n, n)
Example 008: 99 multiplication table
Example 001: the number combination has four numbers: 1, 2, 3, 4. How many three digits can be formed that are different from each other and have no duplicate numbers? How many are each?
MATLAB小技巧(28)模糊綜合評價
Business modeling | process of software model
Numpy pit: after the addition of dimension (n, 1) and dimension (n,) array, the dimension becomes (n, n)
How can fresh students write resumes to attract HR and interviewers
Guess riddles (8)
Cmder of win artifact
Basic number theory -- Euler function
Bluebridge cup internet of things basic graphic tutorial - GPIO output control LD5 on and off
Reasons for the insecurity of C language standard function scanf
[noi simulation] juice tree (tree DP)
Digital analog 2: integer programming
STM32---ADC