Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
OpenCV Android Programming By Example

You're reading from   OpenCV Android Programming By Example Leverage OpenCV to develop vision-aware and intelligent Android applications.

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher
ISBN-13 9781783550593
Length 202 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Image transformations and perspective correction

Images can go through a set of transformations. The simplest ones are listed here.

Translation

Basically, in image coordinates translation, what we do is shift every pixel, p=[x,y], with an amount, t=[Translation,Translation]. For example, we can write the translation for pixel p as Translation.

Rotation and translation

In this transformation, we apply rotation to every pixel followed by a translation. This transformation is also known as two-dimensional Euclidean transformation as Euclidean distances are preserved.

We can write this transformation as Rotation and translation, where R is a 2-by-2 matrix, which equals Rotation and translation and Rotation and translation is the angle used for rotation.

Scaled rotation

This is also known as similarity transformation, and in this transformation, we add a scaling factor Scaled rotation so that the transformation can be expressed as Scaled rotation. This transformation preserves the angles between the lines.

Affine

In the Affine transformation, parallel lines remain parallel and it can be expressed as Affine, where Affine and A=Affine.

Perspective transformation...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image