Thursday, May 11, 2006

Perspective Rectification

I was coding up perspective transformation for my research and it turns out to be quite handy at doing my own photos.

When you take a photo of a painting or some flat pattern on the wall or on the floor, it's never easy to line up perfectly perpendicular to the object, so the result is usually a slightly side-on view. The square is slightly skewed and circle not really round.

Here's what it does.

Original photo:


Rectified and cropped version of the artwork from my grandma.


It's very useful for getting texture to put on 3D models. More on this later.

I shall post the matlab source code to my matlab page when it's up to release standard.

No comments: