You are here: Home > Affine geometric transforms

Affine geometric transforms

Short tutorial

In geometric image transforms the pixel coordinates themselves are mapped. This applet lets you change the parameters of a class of mappings called affine transforms. They include scaling, rotation and translation. More specifically the transform is given as:

Affine transform equation

where (x',y') is where the point/pixel (x,y) is mapped, and a0,a1,a2,b0,b1 and b2 are real-valued parameters. These equations can be expressed as a simple matrix multiplication:

Affine transform equation matrix

After changing the pixel coordinates, the image must be resampled back into a square grid of pixel values. Common techniques are nearest neighbor and bilinear interpolation. Nearest neighbor simply chooses the pixel value of the closest neihboring pixel, while bilinear interpolation does a weighted averaging of the 4 nearest pixels. Higher-order interpolation techniques are also an option, but they are more computationally expensive.

Related links:
Geometric image transforms at University of Edinburgh
Slides on geometric image transforms from MIT

Applet instructions

Click the images on the upper right to change the image being processed. You can edit the number in the transformation matrix directly, or you can chose to alter the slidebars. The slidebars give a transform which first does the rotation, the scaling and then finally the x/y translation. If the "bilinear" checkbox is not checked, a simple nearest-neighbor interpolation is used.

Comments

Yi-Ho Kim on April 19, 2010 at 3:02
Hi My name is Yi-ho.
I will study about image processing with Satellite and Photogrammetry.

So, I thinks I will take many help to me this website.

Thank you
Want to comment?

Name (required)

Email (required/will not be published)

Website (optional)

ImageProcessingBasics.com © 2008-2010