Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

silvermace

finding transition matrix given transformed points

This topic is 5207 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi, im currently writing a quick program which will figure out the transofmation matrix, given the original points & the transformed output, right now im only concerned with 2D and 2x2 matricies. eg. given these points:
original:
(0, 0)  (0, 1)  ( 1, 1)  ( 1, 0)

transformed:
(0, 0)  (3, 2)  (-1, 4)  (-4, 2)
 
is this possible? any help would be appreciated.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
with a 2x2 matrix you''ve got 4 unknowns so you need 4 equations.
that means you can get the matrix if you''ve got 2 points

M*p0 = p0''
M*p1 = p1''

if you write this in components you get a system of 4 linear equations with 4 unknowns which is easy to solve.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!