Monday 30 January 2012

Rotation Matrix

One of the issues with the camera is that the table will not be parrallel to the edge of the image unless the person can take a perfect image.

This means the image needs to be rotated to make it straight.

One way of doing this is by using a rotation matrix :

http://en.wikipedia.org/wiki/Rotation_matrix

The co-ordinates also needed to be scaled so that they match the co-ordinates and size in the physics engine.

A class was to be written  which would rotate and scale the image so that the co-ordinates could match the physics model.