| |

VerySource

 Forgot password?
 Register
Search
View: 995|Reply: 5

Ask you a digital image geometric transformation problem. . . .

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-17 12:40:01
| Show all posts |Read mode
If any image is rotated 60 degrees counterclockwise around the point P (x, y) = (100,260), find its geometric transformation formula.
Reply

Use magic Report

0

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-4-9 00:15:01
| Show all posts
First shift the origin to (100, 260)
Ie A = 1 0 -100
    0 1 -260
    0 0 1
Then rotate
B = cos60 -sin60 0
  sin60 cos60 0
  0 0 1
Then pan back
C = 1 0 100
    0 1 260
    0 0 0
Converted to C * B * A
Note that the homogeneous coordinates used [x, y, 1] '
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-6 18:15:01
| Show all posts
Good good
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-6 19:00:01
| Show all posts
Calculate the rotation and translation separately, calculate the coordinates of this point before and after the rotation, and then use it as the basis for translation
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-6 20:45:01
| Show all posts
x,y represent the original image coordinates, and X,Y represent the new image coordinates.

X = (x-100) * cos60-(y-260) * sin60 + 100; (1)
Y = (x-100) * sin60 + (y-260) * cos60 + 260; (2)

Generally, the rotated image will be larger than the original image, and its width and height can be calculated from the four vertices of the original image.
From (1) and (2), we can inversely deduce the corresponding position of each point in the rotated image in the original image.

x = (X-100) * cos60 + (Y-260) * sin60 + 100; (3)
y = (Y-260) * cos60-(X-100) * sin60 + 260; (4)
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-6 21:30:01
| Show all posts
It's not done with the matrix
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list