当前位置:网站首页>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
边栏推荐
- 696. 计数二进制子串
- 319. Bulb switch
- Xrosstools tool installation for X-Series
- Sword finger offer 06 Print linked list from end to end
- My university
- Esphone retrofits old fans
- Typescript hands-on tutorial, easy to understand
- Guess riddles (8)
- Digital analog 1: linear programming
- Array integration initialization (C language)
猜你喜欢

Hello everyone, welcome to my CSDN blog!

Sword finger offer 09 Implementing queues with two stacks

STM32---ADC

每日一题——输入一个日期,输出它是该年的第几天
![[牛客网刷题 Day4] JZ55 二叉树的深度](/img/f7/ca8ad43b8d9bf13df949b2f00f6d6c.png)
[牛客网刷题 Day4] JZ55 二叉树的深度

猜谜语啦(4)

实例010:给人看的时间

Sword finger offer 05 Replace spaces

Bluebridge cup internet of things competition basic graphic tutorial - clock selection

STM32 --- NVIC interrupt
随机推荐
Example 008: 99 multiplication table
猜谜语啦(142)
暑假第一周
Example 006: Fibonacci series
The first week of summer vacation
实例004:这天第几天 输入某年某月某日,判断这一天是这一年的第几天?
Classification of plastic surgery: short in long long long
MATLAB小技巧(28)模糊综合评价
如何写Cover Letter?
MATLAB小技巧(28)模糊綜合評價
Various types of questions judged by prime numbers within 100 (C language)
剑指 Offer 05. 替换空格
Guess riddles (142)
每日一题——替换空格
leetcode - 445. 两数相加 II
An enterprise information integration system
剑指 Offer 06. 从尾到头打印链表
Arduino+a4988 control stepper motor
My university
關於線性穩壓器的五個設計細節