10

Video Rotation

Chapter Outline

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.

image

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( ...

Get Digital Video Processing for Engineers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.