Affine Transformation: Unlocking Visual Perspectives: Exploring Affine Transformation in Computer Vision
By Fouad Sabry
()
About this ebook
What is Affine Transformation
In Euclidean geometry, an affine transformation or affinity is a geometric transformation that preserves lines and parallelism, but not necessarily Euclidean distances and angles.
How you will benefit
(I) Insights, and validations about the following topics:
Chapter 1: Affine Transformation
Chapter 2: Linear Map
Chapter 3: Translation (Geometry)
Chapter 4: Affine Group
Chapter 5: Affine Space
Chapter 6: Transformation Matrix
Chapter 7: Barycentric Coordinate System
Chapter 8: Real Coordinate Space
Chapter 9: Eigenvalues and Eigenvectors
Chapter 10: Eigendecomposition of a Matrix
(II) Answering the public top questions about affine transformation.
(III) Real world examples for the usage of affine transformation in many fields.
Who this book is for
Professionals, undergraduate and graduate students, enthusiasts, hobbyists, and those who want to go beyond basic knowledge or information for any kind of Affine Transformation.
Read more from Fouad Sabry
Related to Affine Transformation
Titles in the series (100)
Image Histogram: Unveiling Visual Insights, Exploring the Depths of Image Histograms in Computer Vision Rating: 0 out of 5 stars0 ratingsComputer Stereo Vision: Exploring Depth Perception in Computer Vision Rating: 0 out of 5 stars0 ratingsGamma Correction: Enhancing Visual Clarity in Computer Vision: The Gamma Correction Technique Rating: 0 out of 5 stars0 ratingsHistogram Equalization: Enhancing Image Contrast for Enhanced Visual Perception Rating: 0 out of 5 stars0 ratingsHarris Corner Detector: Unveiling the Magic of Image Feature Detection Rating: 0 out of 5 stars0 ratingsColor Appearance Model: Understanding Perception and Representation in Computer Vision Rating: 0 out of 5 stars0 ratingsColor Model: Understanding the Spectrum of Computer Vision: Exploring Color Models Rating: 0 out of 5 stars0 ratingsAffine Transformation: Unlocking Visual Perspectives: Exploring Affine Transformation in Computer Vision Rating: 0 out of 5 stars0 ratingsColor Management System: Optimizing Visual Perception in Digital Environments Rating: 0 out of 5 stars0 ratingsUnderwater Computer Vision: Exploring the Depths of Computer Vision Beneath the Waves Rating: 0 out of 5 stars0 ratingsComputer Vision: Exploring the Depths of Computer Vision Rating: 0 out of 5 stars0 ratingsHadamard Transform: Unveiling the Power of Hadamard Transform in Computer Vision Rating: 0 out of 5 stars0 ratingsNoise Reduction: Enhancing Clarity, Advanced Techniques for Noise Reduction in Computer Vision Rating: 0 out of 5 stars0 ratingsRetinex: Unveiling the Secrets of Computational Vision with Retinex Rating: 0 out of 5 stars0 ratingsColor Space: Exploring the Spectrum of Computer Vision Rating: 0 out of 5 stars0 ratingsHomography: Homography: Transformations in Computer Vision Rating: 0 out of 5 stars0 ratingsAnisotropic Diffusion: Enhancing Image Analysis Through Anisotropic Diffusion Rating: 0 out of 5 stars0 ratingsOriented Gradients Histogram: Unveiling the Visual Realm: Exploring Oriented Gradients Histogram in Computer Vision Rating: 0 out of 5 stars0 ratingsVisual Perception: Insights into Computational Visual Processing Rating: 0 out of 5 stars0 ratingsTone Mapping: Tone Mapping: Illuminating Perspectives in Computer Vision Rating: 0 out of 5 stars0 ratingsInpainting: Bridging Gaps in Computer Vision Rating: 0 out of 5 stars0 ratingsRadon Transform: Unveiling Hidden Patterns in Visual Data Rating: 0 out of 5 stars0 ratingsHuman Visual System Model: Understanding Perception and Processing Rating: 0 out of 5 stars0 ratingsJoint Photographic Experts Group: Unlocking the Power of Visual Data with the JPEG Standard Rating: 0 out of 5 stars0 ratingsHough Transform: Unveiling the Magic of Hough Transform in Computer Vision Rating: 0 out of 5 stars0 ratingsColor Mapping: Exploring Visual Perception and Analysis in Computer Vision Rating: 0 out of 5 stars0 ratingsActive Contour: Advancing Computer Vision with Active Contour Techniques Rating: 0 out of 5 stars0 ratingsContour Detection: Unveiling the Art of Visual Perception in Computer Vision Rating: 0 out of 5 stars0 ratingsEdge Detection: Exploring Boundaries in Computer Vision Rating: 0 out of 5 stars0 ratingsColor Matching Function: Understanding Spectral Sensitivity in Computer Vision Rating: 0 out of 5 stars0 ratings
Related ebooks
Homography: Homography: Transformations in Computer Vision Rating: 0 out of 5 stars0 ratingsDirect Linear Transformation: Practical Applications and Techniques in Computer Vision Rating: 0 out of 5 stars0 ratingsOrthographic Projection: Exploring Orthographic Projection in Computer Vision Rating: 0 out of 5 stars0 ratingsThe Book of Mathematics: Volume 2 Rating: 0 out of 5 stars0 ratingsBilinear Interpolation: Enhancing Image Resolution and Clarity through Bilinear Interpolation Rating: 0 out of 5 stars0 ratingsA Short Course in Automorphic Functions Rating: 0 out of 5 stars0 ratingsExercises of Distributions Rating: 0 out of 5 stars0 ratingsExercises of Multi-Variable Functions Rating: 0 out of 5 stars0 ratingsExercises of Vectors and Vectorial Spaces Rating: 0 out of 5 stars0 ratingsModern Multidimensional Calculus Rating: 0 out of 5 stars0 ratingsRadon Transform: Unveiling Hidden Patterns in Visual Data Rating: 0 out of 5 stars0 ratingsUnderstanding Vector Calculus: Practical Development and Solved Problems Rating: 0 out of 5 stars0 ratingsTrifocal Tensor: Exploring Depth, Motion, and Structure in Computer Vision Rating: 0 out of 5 stars0 ratingsTwo Dimensional Geometric Model: Understanding and Applications in Computer Vision Rating: 0 out of 5 stars0 ratingsA-level Maths Revision: Cheeky Revision Shortcuts Rating: 4 out of 5 stars4/5Invariants of Quadratic Differential Forms Rating: 0 out of 5 stars0 ratingsRelativity, decays and electromagnetic fields Rating: 0 out of 5 stars0 ratingsIntroduction to Advanced Mathematical Analysis Rating: 0 out of 5 stars0 ratingsBresenham Line Algorithm: Efficient Pixel-Perfect Line Rendering for Computer Vision Rating: 0 out of 5 stars0 ratingsTensor Analysis and Its Applications Rating: 0 out of 5 stars0 ratingsAn Introduction to Differential Geometry - With the Use of Tensor Calculus Rating: 4 out of 5 stars4/5Exercises of Tensors Rating: 0 out of 5 stars0 ratingsImage Based Modeling and Rendering: Exploring Visual Realism: Techniques in Computer Vision Rating: 0 out of 5 stars0 ratingsMaster the Fundamentals of Electromagnetism and EM-Induction Rating: 0 out of 5 stars0 ratingsExercises of Basic Analytical Geometry Rating: 0 out of 5 stars0 ratingsCalculus Refresher Rating: 3 out of 5 stars3/5Elgenfunction Expansions Associated with Second Order Differential Equations Rating: 0 out of 5 stars0 ratingsDeterminants and Matrices Rating: 3 out of 5 stars3/5Theory of Approximation Rating: 0 out of 5 stars0 ratingsSquare Summable Power Series Rating: 5 out of 5 stars5/5
Intelligence (AI) & Semantics For You
101 Midjourney Prompt Secrets Rating: 3 out of 5 stars3/5Midjourney Mastery - The Ultimate Handbook of Prompts Rating: 5 out of 5 stars5/5Killer ChatGPT Prompts: Harness the Power of AI for Success and Profit Rating: 2 out of 5 stars2/5ChatGPT Rating: 3 out of 5 stars3/5AI for Educators: AI for Educators Rating: 5 out of 5 stars5/5How To Become A Data Scientist With ChatGPT: A Beginner's Guide to ChatGPT-Assisted Programming Rating: 5 out of 5 stars5/5ChatGPT For Dummies Rating: 0 out of 5 stars0 ratingsCreating Online Courses with ChatGPT | A Step-by-Step Guide with Prompt Templates Rating: 4 out of 5 stars4/5Mastering ChatGPT: 21 Prompts Templates for Effortless Writing Rating: 5 out of 5 stars5/5Artificial Intelligence: A Guide for Thinking Humans Rating: 4 out of 5 stars4/5Chat-GPT Income Ideas: Pioneering Monetization Concepts Utilizing Conversational AI for Profitable Ventures Rating: 4 out of 5 stars4/5TensorFlow in 1 Day: Make your own Neural Network Rating: 4 out of 5 stars4/5ChatGPT For Fiction Writing: AI for Authors Rating: 5 out of 5 stars5/5ChatGPT Ultimate User Guide - How to Make Money Online Faster and More Precise Using AI Technology Rating: 0 out of 5 stars0 ratingsMake Money with ChatGPT: Your Guide to Making Passive Income Online with Ease using AI: AI Wealth Mastery Rating: 0 out of 5 stars0 ratingsThe Secrets of ChatGPT Prompt Engineering for Non-Developers Rating: 5 out of 5 stars5/5A Quickstart Guide To Becoming A ChatGPT Millionaire: The ChatGPT Book For Beginners (Lazy Money Series®) Rating: 4 out of 5 stars4/5Enterprise AI For Dummies Rating: 3 out of 5 stars3/5Dark Aeon: Transhumanism and the War Against Humanity Rating: 5 out of 5 stars5/5Summary of Super-Intelligence From Nick Bostrom Rating: 5 out of 5 stars5/5ChatGPT: The Future of Intelligent Conversation Rating: 4 out of 5 stars4/5
Reviews for Affine Transformation
0 ratings0 reviews
Book preview
Affine Transformation - Fouad Sabry
Chapter 1: Affine transformation
An affine transformation (from the Latin affinis, connected with
) is a geometric transformation in Euclidean geometry that maintains straight lines and parallelism but changes the lengths and directions of the angles and distances involved.
A more general definition of an affine transformation is an automorphism of an affine space (Euclidean spaces are special cases of affine spaces), that is, a function which maps an affine space onto itself while maintaining the ratio of the lengths of parallel line segments. Therefore, after an affine transformation, sets of parallel affine subspaces retain their parallelism. Distances and angles between lines are not always preserved by an affine transformation, but distance ratios along a straight line are preserved.
Assuming X is the point set of some affine space, we can write every affine transformation on X as the combination of a linear transformation on X and a translation of X. The starting point of the affine space is not required to be kept the same during an affine transformation, unlike a linear one. Accordingly, every affine transformation is linear, but not every linear transformation is affine.
Affine transformations include translation, enlargement, reduction, homology, similarity, reflection, rotation, shear mapping, and any combination or sequence of these.
Affine transformations are those projective transformations of a projective space that preserve the invariance of the hyperplane at infinity, defining the affine space as the complement of the hyperplane at infinity.
An affine map is a more general form of an affine transformation.
Imagine a field k and an affine space X, Let V denote the vector space to which it belongs.
A bijection f from X onto itself is called an affine transformation; this means that a linear map g from V to V is well defined by the equation {\displaystyle g(y-x)=f(y)-f(x);} here, as usual, The free vector from point 2 to point 1 is denoted by the difference of these two points, and well-defined
means that {\displaystyle y-x=y'-x'} implies that
If X has at least two dimensions, then there exists a bijection from X onto itself, denoted by f, such that:
If S is an affine subspace of X in dimension d, then f (S) is also an affine subspace of X in dimension d.
It follows that f (S) and f (T) are parallel if and only if S and T are parallel affine subspaces of X.
Affine transformations satisfy these two conditions, which precisely express what is meant by the phrase f preserves parallelism.
.
The second condition follows logically from the first, so they cannot be considered separate.
An affine space, by definition,, V acts on X, so that, for each set of two (x, v) in X × V there is associated a point y in X.
We can denote this action by v→(x) = y.
Here we use the convention that v→ = v are two interchangeable notations for an element of V.
By fixing a point c in X one can define a function mc : X → V by mc(x) = cx→.
Assuming a c, It's a one-to-one mapping with this function, and so, has an inverse function mc−1 : V → X given by mc−1(v) = v→(c).
By defining these operations, we can transform X into a vector space (with respect to c)::
{\displaystyle x+y=m_{c}^{-1}\left(m_{c}(x)+m_{c}(y)\right),{\text{ for all }}x,y{\text{ in }}X,}and
{\displaystyle rx=m_{c}^{-1}\left(rm_{c}(x)\right),{\text{ for all }}r{\text{ in }}k{\text{ and }}x{\text{ in }}X.}Despite the fact that this vector space with origin c should be formally distinguished from the affine space X, in practice it is usually denoted by the same symbol and only after an origin has been specified is it mentioned that it is a vector space. This recognition enables the transformation from vector to point representation and back again.
For any linear transformation λ of V, L(c) is a function that can be defined, λ) : X → X by
{\displaystyle L(c,\lambda )(x)=m_{c}^{-1}\left(\lambda (m_{c}(x))\right)=c+\lambda ({\vec {cx}}).}If so, L(c), λ) is an affine transformation of X which leaves the point c fixed.
It's a linear map from X to another variable, represented by a vector space with c as its center.
Let σ be any affine transformation of X.
Pick a point c in X and consider the translation of X by the vector {\displaystyle {\mathbf {w}}={\overrightarrow {c\sigma (c)}}} , denoted by Tw.
Affine transformations include translations, and affine transformations include their composition.
In light of this specific c, there exists a unique linear transformation λ of V such that
{\displaystyle \sigma (x)=T_{\mathbf {w}}\left(L(c,\lambda )(x)\right).}In other words, if we consider X to be a vector space, then any arbitrary affine transformation of X can be written as the composition of a linear transformation of X and a translation of X.
Affine transformations are typically defined in terms of this representation (with the choice of origin being implicit).
Given the foregoing, Affine maps are constructed by combining a translation function with a linear map.
Multiplication of matrices is used to represent linear maps in standard vector algebra, to represent translations via vector addition.
Formally, in the limit of finite dimensions, if the linear map is represented as a multiplication by an invertible matrix A and the translation as the addition of a vector \mathbf {b} , an affine map f acting on a vector \mathbf {x} can be represented as
{\displaystyle \mathbf {y} =f(\mathbf {x} )=A\mathbf {x} +\mathbf {b} .}With the help of an enhanced matrix and enhanced vector, Multiple matrix multiplications are not required to represent the translation and linear map.
The method necessitates adding a final 1
to all vectors, and that the bottom row of all matrices be filled in with zeros, added right-most column (translation vector), plus a single number in the bottom right corner.
If A is a matrix,
{\displaystyle {\begin{bmatrix}\mathbf {y} \\1\end{bmatrix}}=\left[{\begin{array}{ccc|c}&A&&\mathbf {b} \\0&\cdots &0&1\end{array}}\right]{\begin{bmatrix}\mathbf {x} \\1\end{bmatrix}}}means the same thing as
{\displaystyle \mathbf {y} =A\mathbf {x} +\mathbf {b} .}Affine transformation matrix is another name for the augmented matrix shown above.
In most situations, when the last row vector is not restricted to be {\displaystyle \left[{\begin{array}{ccc|c}0&\cdots &0&1\end{array}}\right]} , The matrix is converted into a matrix of projective transformations (as it can also be used to perform projective transformations).
This representation exhibits the set of all invertible affine transformations as the semidirect product of K^{n} and {\displaystyle \operatorname {GL} (n,K)} .
The law of the composition of functions defines this group, referred to as the affine group.
When multiplying matrices and vectors, the origin is always transferred to the origin, and thus never stand in for a translation, where the starting point must be moved to another location.
Adding the extra digit 1
to the end of each vector, This additional dimension can be thought of as a subset of the space being mapped.
At that point, When the extra coordinate is 1, the original space is contained in that smaller region.
Thus the origin of the original space can be found at {\displaystyle (0,0,\dotsc ,0,1)} .
By applying a linear transformation to the higher-dimensional space, we can perform a translation within the original space (more precisely,, a deformation in shear).
Homogeneous coordinates include, for instance, the ones used to describe the higher-dimensional space.
Assuming a Euclidean starting point, True projective space exists in the higher dimensions.
By multiplying the corresponding matrices, any number of affine transformations can be combined into a single one when working with homogeneous coordinates. Numerous applications in robotics, computer vision, and computer graphics rely on this property.
If the vectors {\displaystyle \mathbf {x} _{1},\dotsc ,\mathbf {x} _{n+1}} are a basis of the domain's projective vector space and if {\displaystyle \mathbf {y} _{1},\dotsc ,\mathbf {y} _{n+1}} are the corresponding vectors in the codomain vector space then the augmented matrix M that achieves this affine transformation
{\displaystyle {\begin{bmatrix}\mathbf {y} \\1\end{bmatrix}}=M{\begin{bmatrix}\mathbf {x} \\1\end{bmatrix}}}is
{\displaystyle M={\begin{bmatrix}\mathbf {y} _{1}&\cdots &\mathbf {y} _{n+1}\\1&\cdots &1\end{bmatrix}}{\begin{bmatrix}\mathbf {x} _{1}&\cdots &\mathbf {x} _{n+1}\\1&\cdots &1\end{bmatrix}}^{-1}.}Whether or not the domain, codomain, and image vector spaces all have the same number of dimensions, this formulation still applies.
For example, the affine transformation of a vector plane is uniquely determined from the knowledge of where the three vertices ( {\displaystyle \mathbf {x} _{1},\mathbf {x} _{2},\mathbf {x} _{3}} ) of a non-degenerate triangle are mapped to ( {\displaystyle \mathbf {y} _{1},\mathbf {y} _{2},\mathbf {y} _{3}} ), regardless of whether or not the triangle is non-degenerate in the codomain and the number of dimensions of the codomain.
Preserves affine structure during:
When three or more points lie along the same line, they are said to be collinear, and this property survives transformation.
When two or more lines undergo a transformation, their parallelism is preserved.
A set that is convex before a transformation remains convex after the transformation. In addition, the transformed set's extreme points correspond to the original set's extreme points.
ratios of lengths of parallel line segments: for distinct parallel segments defined by points p_{1} and p_{2} , p_{3} and p_4 , the ratio of {\overrightarrow {p_{1}p_{2}}} and {\displaystyle {\overrightarrow {p_{3}p_{4}}}} is the same as that of {\overrightarrow {f(p_{1})f(p_{2})}} and {\displaystyle {\overrightarrow {f(p_{3})f(p_{4})}}} .
barycenters for sets of points with different weights.
Considering that affine transformations can be inverted, the square matrix A appearing in its matrix representation is invertible.
Therefore, the inverse transformation's matrix representation is
{\displaystyle \left[{\begin{array}{ccc|c}&A^{-1}&&-A^{-1}{\vec {b}}\ \\0&\ldots &0&1\end{array}}\right].}The affine group is the set of invertible affine transformations (from one affine space to another), which has the general linear group of degree n as subgroup and is itself a subgroup of the general linear group of degree n+1 .
The similarity transformations form the subgroup where A is a scalar times an orthogonal matrix.
For example, if the affine transformation acts on the plane and if the determinant of A is 1 or −1 then the transformation is an equiareal mapping.
The group formed by such transformations is known as the equi-affine group.
An isometry of the plane in terms of Euclidean distance is a transformation that is both equi-affine and a similarity.
Each of these groups has a subgroup of orientation-preserving or positive affine transformations: those where the determinant of A is positive.
Last but not least, this is the class of rigid transformations in three dimensions (proper rotations and pure translations).
In the presence of a fixed point, the affine transformation simplifies to a linear one. This could improve our ability to categorize and comprehend the change. For instance, it may be easier to visualize the overall behavior of a transformation if it is described as a rotation by a certain angle with respect to a certain axis, rather than as a combination of a translation and a rotation. However, this is situationally and contextually dependent.
An affine map {\displaystyle f\colon {\mathcal {A}}\to {\mathcal {B}}} between two affine spaces is a map on the points that acts linearly on the vectors (that is, the space's connecting