September 2012
Intermediate to advanced
232 pages
5h 26m
English
Video images can be rotated, as well as scaled. Common applications involve surveillance, heads-up displays, military and industrial usages. Images are rotated about a reference point in the image. This can be seen in the image rotation below. Depending upon the location of the reference point, the rotation may also cause the image to move to a different location.

Figure 10.1 Image rotation.
The mathematical relationship is quite simple. To perform a rotation of θ, with a normalized reference point (0,0), a pixel at location (x,y) is translated to (x’, y’).
x’ = cos(θ) × x – sin(θ) × y
y = sin( ...
Read now
Unlock full access