当前位置:网站首页>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. Count binary substring
- [three tier architecture and JDBC summary]
- Example 006: Fibonacci series
- Is the security account given by Yixue school safe? Where can I open an account
- My university
- 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?
- Arrangement of some library files
- 猜谜语啦(6)
- 猜谜语啦(8)
- Example 009: pause output for one second
猜你喜欢
猜谜语啦(11)
Typescript hands-on tutorial, easy to understand
leetcode - 445. 两数相加 II
STM32 single chip microcomputer -- volatile keyword
One question per day - replace spaces
Guess riddles (5)
Guess riddles (3)
Bluebridge cup internet of things competition basic graphic tutorial - clock selection
Guess riddles (142)
实例009:暂停一秒输出
随机推荐
Esp8266 interrupt configuration
Example 002: the bonus paid by the "individual income tax calculation" enterprise is based on the profit commission. When the profit (I) is less than or equal to 100000 yuan, the bonus can be increase
2022.7.4-----leetcode.1200
How can fresh students write resumes to attract HR and interviewers
STM32 single chip microcomputer -- debug in keil5 cannot enter the main function
EA introduction notes
Arduino operation stm32
Business modeling of software model | stakeholders
Bluebridge cup internet of things competition basic graphic tutorial - clock selection
Lori remote control LEGO motor
Five design details of linear regulator
Old Wang's esp8266 and old Wu's ws2818 light strip
关于线性稳压器的五个设计细节
Sword finger offer 09 Implementing queues with two stacks
leetcode - 445. Add two numbers II
319. Bulb switch
Bluebridge cup internet of things basic graphic tutorial - GPIO input key control LD5 on and off
暑假第一周
剑指 Offer 05. 替换空格
Is the security account given by Yixue school safe? Where can I open an account