Docsity

Factorization and Decomposition of Matrices in 2D and 3D Transformations, Schemes and Mind Maps of Engineering

Partial preview of the text

Download Factorization and Decomposition of Matrices in 2D and 3D Transformations and more Schemes and Mind Maps Engineering in PDF only on Docsity!

CS436/CS5310/EE

Computer Vision Fundamentals

Murtaza Taj

[email protected]

Lecture 12 & 13: Factorizing Transformation

Wed, 12th^ Oct 2022

Mon 17th^ Oct 2022

Factorizing Transformations

! Opposite of Concatenation of Transformations

! Given a transformation matrix, decompose it into a

sequence of simpler transformations

! Example:

! Question: How to factorize the multiplicative part?

! Is the factorization unique?

3 4

1 2

2

1

3 4 2

1 2 1

a a

a a

b

b

a a b

a a b

3 4

1 2

a a

a a

Decomposition of 2D TransformsDecomposition of Transforms

! A vector is defined by:

! Magnitude

! Direction

! Transformation

! Can either change

! magnitude of a vector

! direction of a vector

! Or both

x

y

(x ,y) θ

x

y

(x ,y)

(x’ ,y’)

θ

Decomposition of 2D TransformsDecomposition of Transforms

! A vector is defined by:

! Magnitude

! Direction

! Transformation

! Can either change

! magnitude of a vector

! direction of a vector

! Or both

x

y

(x ,y) θ

x

y

(x ,y)

(x’ ,y’)

θ

Decomposition of 2D TransformsDecomposition of Transforms

! Transformation

! Rotation

! Non-uniform Scaling

! Rotation + Scaling | Non-uniform scaling

x

y

(x ,y)

(x’ ,y’)

θ

x

y

(x ,y)

(x’ ,y’)

x

y

(x ,y)

(x’ ,y’)

θ

Decomposition of 2D TransformsDecomposition of Transforms

! Transformation

! Rotation

! Non-uniform Scaling

! Rotation + Scaling | Non-uniform scaling

x

y

(x ,y)

(x’ ,y’)

θ

x

y

(x ,y)

(x’ ,y’)

x

y

(x ,y)

(x’ ,y’)

θ

Eigenvalues and Eigenvectors

! (^) A matrix act on a vector by changing both its

magnitude and direction

! (^) However, same matrix may act on certain

vectors by changing only their magnitudes and

leaving their directions unchanged (or possibly

reversing it).

! (^) These vectors are the eigenvectors of the matrix

! (^) A matrix act on an eigenvector u by multiply its

magnitude by a factor. This factor is the

eigenvalue λ associated with that eigenvector

x

y

(x 1

,y 1

(x’ ,y’)

x

y

(x 2

,y 2

(x’ ,y’)

Eigenvalues and Eigenvectors

! (^) A matrix act on a vector by changing both its

magnitude and direction

! (^) However, same matrix may act on certain

vectors by changing only their magnitudes and

leaving their directions unchanged (or possibly

reversing it).

! (^) These vectors are the eigenvectors of the matrix

! (^) A matrix act on an eigenvector u by multiply its

magnitude by a factor. This factor is the

eigenvalue λ associated with that eigenvector

x

y

(x 1

,y 1

(x’ ,y’)

x

y

(x 2

,y 2

(x’ ,y’)

Eigenvalues and Eigenvectors

! How to find eigenvalues?

! How to find eigenvectors

! For example for a 2x2 matrix

Eigenvalues and Eigenvectors

Eigenvalues and Eigenvectors

! Example

! Eigenvalues

! Eigenvectors ( A - λ I ) u =

Eigenvalues and Eigenvectors

Eigenvalues and Eigenvectors

! Example

! Eigenvalues

! Eigenvectors ( A - λ I ) u =

Factorizing Transformations

! Given a transformation matrix M

! Decompose it into

! If transformation matrix is symmetric

! (M=MT)

! Eigen Value decomposition

! If transformation matrix is not symmetric

! Singular Value decomposition

M = -2.5981 1.5000 0

[U S V] = svd(M)

M = -0.4330 2.2500 0

[V D] = eig(M)

Factorizing Transformations

! Given a transformation matrix M

! Decompose it into

! If transformation matrix is symmetric

! (M=MT)

! Eigen Value decomposition

! If transformation matrix is not symmetric

! Singular Value decomposition

M = -2.5981 1.5000 0

[U S V] = svd(M)

M = -0.4330 2.2500 0

[V D] = eig(M)