SlideShare a Scribd company logo
3
Most read
4
Most read
5
Most read
CHAPTER3
BASIC TRANSFORMATION
Dr. Varun Kumar Ojha
and
Prof. (Dr.) Paramartha Dutta
Visva Bharati University
Santiniketan, West Bengal, India
Basic Transformation
 Basic Transformation- Translation, Rotation &
Scaling in 2D and 3D
 Inverse Transformation
 Perspective Transformation
 Relationship Between Cartesian Co-ordinate
System and Homogeneous Co-ordinate System
Back to Course Content Page
Click Here
Basic Transformation- Translation
2D
y
x
p
p’
(x,y)
(x’,y’)
Translation from point p to p’
x’ = x + x0
y’ = y + y0
Where x0 & y0 are translation vector
Asymmetric Form
Unified Expression
Basic Transformation- Rotation
2D
y
x
p(x,y) Rotation from point p to p’
x = r cos α
y = r sin α
Hence
x’ = r cos (α – θ)
y’ = r sin (α – θ)
θ
α
x’
y’
r
P’(x’,y’)
x’ = r cos (α – θ)
= r cos α cos θ + r sin α sin θ
= x cos θ + y sin θ
y’ = r sin (α – θ)
= r sin α cos θ - r cos α sin θ
= y cos θ - y sin θ
(cos (A – B) = cosA cosB + sinA sinB)
(sin (A – B) = sinA cosB – cosA sin )
B
Basic Transformation- Scaling
2D
 Scaling is simple process
 Rotation around arbitrary point q
 It is quite complex so one solution by translation point q to
assign by vector (x0,y0) and translation of point p by same
vector
y
p(x,y)
θ
r
q x
Rotation around
arbitrary point q
T(-r) (Rθ ( Tr(p)))
Basic Transformation – Translation
3D
 Cartesian coordinate system (x,yz)
 A new point (x,y,z) is translated to a
coordinate (x*,y*,z*) using a displacement
vector (x0,y0,z0)x* = x + x0
y* = y + y0
z* = z + z0
Asymmetric Form
Unified Expression
Unified matrix representation is of the
form
V* = A V
Where
A is 4x4 Transformation matrix
V is the column vector of original co-
ordinate
V* is the column vector of transformed
co-ordinate
Basic Transformation –
Rotation 3D
θ
β
α
x
y
z
There are three rotation in
3coordinate system, θ, β and α
rotation
In θ rotation z co-ordinate remains
fixed and rotation is only viewed
in the x,y plane as indicated by
arrows
Similarly in β rotation y axis
remains same and rotation is only
viewed in the x,z plane
In α rotation the the x axis remains
same and the rotation is viewed in
y,z plane only
Basic Transformation –
Rotation 3D
Concentration
 Several transformation can be represented by
a single 4 x 4 transformation matrix
 Translation, scaling, rotation about a point z
axis of a point V can be represented as
V* = Rθ(S(T(V)) = A V
 Where A = RθS T ( is a 4 x 4 matrix)
 Matrix multiplication order is important
because matrix operation are not commutative
Concentration Cont..
 Concentration in non commutative
z
y
x
V V1
V2
About the point V we first do
Translation and then Rotation then
we get the point V1
V1 = R(T(V))
About the point V we do first
rotation and then Translation we
get the point V2
V2 = T(R(V))
From the picture it is clear that V1
& V2 are not the same point so
concentration is non commutative
Back to the chapter content
Click Here
Inverse Transformation
 The Inverse Transformation can be obtained
by the following observation
Inverse Translation
Inverse Rotation
Back to the chapter content
Click Here
Perspective Transformation
 A perspective transformation is also called
imaging transformation
 A imaging transformation project 3D point onto
a plane
 A perspective transformation is the
approximation of the image formation.
Image Formation Process
y,Y
x,X
z,Z
λ
Image Plane
Lens Center (0,0,λ)
(x,y,z) → Camera Co-ordinate System
(0,0,λ) → Center of lens
(X,Y,Z) → World Co-ordinate System aligned with
camera co-ordinate system in 3D scene
(X,Y,Z)
(x,y)
We are interested in (x,y) which is projection of (X,Y,Z) onto image plane
For both camera &
3D image z axis are
aligned and have
same origin
Image Formation Cont..
 By using similar triangular
 x/λ = – X/(Z – λ) = X/(λ – Z)
 y/λ = – Y/(Z – λ) = Y/(λ – Z)
 Now
 X = λX/ λ – Z
 Y = λY/ λ – Z
 It can be expressed as matrix expression in Homogeneous
Co-ordinates
 Cartesian coordinate system to homogeneous coordinate
system
(X,Y,Z) → (K.X, K.Y, K.Z, K)
 K is an arbitrary nonzero constant
Image Formation Cont..
 Conversion from Homogeneous to Cartesian coordinate
system is a simple process
 In Vector Form
 A perspective transformation matrix P is defined as
 The element of Ch are the camera co-ordinate in
homogeneous form corresponding to Cartesian Co-
ordinate
Image Formation Cont..
 The camera co-ordinate in Cartesian Co-
ordinate System is as follows
 Finally x = λX/(λ-Z)) and y = λY/(λ-Z)
coordinate in the image plane of projected 3-D
point (X,Y,Z)
Back to the chapter content
Click Here

More Related Content

PPTX
Line Detection using Hough transform .pptx
PPT
Spatial domain and filtering
PPTX
Noise filtering
PPTX
PPTX
Basic Relationships between Pixels- Digital Image Processing
PPTX
Log Transformation in Image Processing with Example
PPT
Chapter 5
PPT
Chapter 6 Image Processing: Image Enhancement
Line Detection using Hough transform .pptx
Spatial domain and filtering
Noise filtering
Basic Relationships between Pixels- Digital Image Processing
Log Transformation in Image Processing with Example
Chapter 5
Chapter 6 Image Processing: Image Enhancement

What's hot (20)

PPTX
Image Filtering in the Frequency Domain
PDF
Digital Image Fundamentals
PPTX
Unit 2. Image Enhancement in Spatial Domain.pptx
PDF
Image processing, Noise, Noise Removal filters
PPTX
Chapter 9 morphological image processing
PPTX
Image Enhancement - Point Processing
PPTX
Chapter 3 image enhancement (spatial domain)
PPT
Digital Image Processing_ ch2 enhancement spatial-domain
PPTX
Region based segmentation
PPTX
Transform coding
PPT
Image enhancement
PPT
Image segmentation ppt
PPT
Image segmentation
PPTX
Image enhancement lecture
PPTX
digital image processing
PPTX
Psuedo color
PDF
Edge linking in image processing
PDF
Image Segmentation
PDF
Image Registration (Digital Image Processing)
Image Filtering in the Frequency Domain
Digital Image Fundamentals
Unit 2. Image Enhancement in Spatial Domain.pptx
Image processing, Noise, Noise Removal filters
Chapter 9 morphological image processing
Image Enhancement - Point Processing
Chapter 3 image enhancement (spatial domain)
Digital Image Processing_ ch2 enhancement spatial-domain
Region based segmentation
Transform coding
Image enhancement
Image segmentation ppt
Image segmentation
Image enhancement lecture
digital image processing
Psuedo color
Edge linking in image processing
Image Segmentation
Image Registration (Digital Image Processing)
Ad

Similar to Chapter 3 Image Processing: Basic Transformation (20)

PPTX
3 d scaling and translation in homogeneous coordinates
PPT
GeometricTransformations.ppt
PPTX
Transformations.pptx
PPT
09transformation3d
PPT
transformation 3d
PPT
Computer graphics
PPTX
Part 2- Transformation 2D to 3D in CAD.pptx
PDF
3D transformation and viewing
PPT
06.Transformation.ppt
PPT
2d transformation
PPTX
Transformations computer graphics
PPTX
Computer Graphic - Transformations in 2D
PPTX
Computer Graphics - transformations in 2d
PPT
Modeling Transformations
PPT
“Transformations are the operations applied to geometrical description of an ...
PDF
GGE 5107_Coords Transformation using least squares_.pdf
PDF
Unit-3 overview of transformations
PPT
3 d geometric transformations
PPTX
B. SC CSIT Computer Graphics Unit 2 By Tekendra Nath Yogi
PPT
Transformations in Computer Graphics
3 d scaling and translation in homogeneous coordinates
GeometricTransformations.ppt
Transformations.pptx
09transformation3d
transformation 3d
Computer graphics
Part 2- Transformation 2D to 3D in CAD.pptx
3D transformation and viewing
06.Transformation.ppt
2d transformation
Transformations computer graphics
Computer Graphic - Transformations in 2D
Computer Graphics - transformations in 2d
Modeling Transformations
“Transformations are the operations applied to geometrical description of an ...
GGE 5107_Coords Transformation using least squares_.pdf
Unit-3 overview of transformations
3 d geometric transformations
B. SC CSIT Computer Graphics Unit 2 By Tekendra Nath Yogi
Transformations in Computer Graphics
Ad

More from Varun Ojha (11)

PPT
Chapter 5 Image Processing: Fourier Transformation
PPT
Chapter 4 Image Processing: Image Transformation
PPT
Chapter 2 Image Processing: Pixel Relation
PPT
Chapter 1 introduction (Image Processing)
PDF
Neural Tree for Estimating the Uniaxial Compressive Strength of Rock Materials
PDF
Metaheuristic Tuning of Type-II Fuzzy Inference System for Data Mining
PDF
A Framework of Secured and Bio-Inspired Image Steganography Using Chaotic Enc...
PDF
Dimensionality Reduction and Prediction of the Protein Macromolecule Dissolut...
PPTX
Ensemble of Heterogeneous Flexible Neural Tree for the approximation and feat...
PPTX
Simultaneous optimization of neural network weights and active nodes using me...
PDF
Design and analysis of algorithm
Chapter 5 Image Processing: Fourier Transformation
Chapter 4 Image Processing: Image Transformation
Chapter 2 Image Processing: Pixel Relation
Chapter 1 introduction (Image Processing)
Neural Tree for Estimating the Uniaxial Compressive Strength of Rock Materials
Metaheuristic Tuning of Type-II Fuzzy Inference System for Data Mining
A Framework of Secured and Bio-Inspired Image Steganography Using Chaotic Enc...
Dimensionality Reduction and Prediction of the Protein Macromolecule Dissolut...
Ensemble of Heterogeneous Flexible Neural Tree for the approximation and feat...
Simultaneous optimization of neural network weights and active nodes using me...
Design and analysis of algorithm

Recently uploaded (20)

PPTX
climate analysis of Dhaka ,Banglades.pptx
PPTX
Business Acumen Training GuidePresentation.pptx
PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PPTX
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
PPTX
Introduction to Knowledge Engineering Part 1
PPTX
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
PPTX
1_Introduction to advance data techniques.pptx
PPTX
Data_Analytics_and_PowerBI_Presentation.pptx
PDF
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”
PDF
annual-report-2024-2025 original latest.
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PDF
.pdf is not working space design for the following data for the following dat...
PDF
Fluorescence-microscope_Botany_detailed content
PPT
ISS -ESG Data flows What is ESG and HowHow
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PPTX
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
PPTX
oil_refinery_comprehensive_20250804084928 (1).pptx
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
PDF
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
climate analysis of Dhaka ,Banglades.pptx
Business Acumen Training GuidePresentation.pptx
Galatica Smart Energy Infrastructure Startup Pitch Deck
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
Introduction to Knowledge Engineering Part 1
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
1_Introduction to advance data techniques.pptx
Data_Analytics_and_PowerBI_Presentation.pptx
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”
annual-report-2024-2025 original latest.
Acceptance and paychological effects of mandatory extra coach I classes.pptx
.pdf is not working space design for the following data for the following dat...
Fluorescence-microscope_Botany_detailed content
ISS -ESG Data flows What is ESG and HowHow
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
oil_refinery_comprehensive_20250804084928 (1).pptx
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf

Chapter 3 Image Processing: Basic Transformation

  • 1. CHAPTER3 BASIC TRANSFORMATION Dr. Varun Kumar Ojha and Prof. (Dr.) Paramartha Dutta Visva Bharati University Santiniketan, West Bengal, India
  • 2. Basic Transformation  Basic Transformation- Translation, Rotation & Scaling in 2D and 3D  Inverse Transformation  Perspective Transformation  Relationship Between Cartesian Co-ordinate System and Homogeneous Co-ordinate System Back to Course Content Page Click Here
  • 3. Basic Transformation- Translation 2D y x p p’ (x,y) (x’,y’) Translation from point p to p’ x’ = x + x0 y’ = y + y0 Where x0 & y0 are translation vector Asymmetric Form Unified Expression
  • 4. Basic Transformation- Rotation 2D y x p(x,y) Rotation from point p to p’ x = r cos α y = r sin α Hence x’ = r cos (α – θ) y’ = r sin (α – θ) θ α x’ y’ r P’(x’,y’) x’ = r cos (α – θ) = r cos α cos θ + r sin α sin θ = x cos θ + y sin θ y’ = r sin (α – θ) = r sin α cos θ - r cos α sin θ = y cos θ - y sin θ (cos (A – B) = cosA cosB + sinA sinB) (sin (A – B) = sinA cosB – cosA sin ) B
  • 5. Basic Transformation- Scaling 2D  Scaling is simple process  Rotation around arbitrary point q  It is quite complex so one solution by translation point q to assign by vector (x0,y0) and translation of point p by same vector y p(x,y) θ r q x Rotation around arbitrary point q T(-r) (Rθ ( Tr(p)))
  • 6. Basic Transformation – Translation 3D  Cartesian coordinate system (x,yz)  A new point (x,y,z) is translated to a coordinate (x*,y*,z*) using a displacement vector (x0,y0,z0)x* = x + x0 y* = y + y0 z* = z + z0 Asymmetric Form Unified Expression Unified matrix representation is of the form V* = A V Where A is 4x4 Transformation matrix V is the column vector of original co- ordinate V* is the column vector of transformed co-ordinate
  • 7. Basic Transformation – Rotation 3D θ β α x y z There are three rotation in 3coordinate system, θ, β and α rotation In θ rotation z co-ordinate remains fixed and rotation is only viewed in the x,y plane as indicated by arrows Similarly in β rotation y axis remains same and rotation is only viewed in the x,z plane In α rotation the the x axis remains same and the rotation is viewed in y,z plane only
  • 9. Concentration  Several transformation can be represented by a single 4 x 4 transformation matrix  Translation, scaling, rotation about a point z axis of a point V can be represented as V* = Rθ(S(T(V)) = A V  Where A = RθS T ( is a 4 x 4 matrix)  Matrix multiplication order is important because matrix operation are not commutative
  • 10. Concentration Cont..  Concentration in non commutative z y x V V1 V2 About the point V we first do Translation and then Rotation then we get the point V1 V1 = R(T(V)) About the point V we do first rotation and then Translation we get the point V2 V2 = T(R(V)) From the picture it is clear that V1 & V2 are not the same point so concentration is non commutative
  • 11. Back to the chapter content Click Here
  • 12. Inverse Transformation  The Inverse Transformation can be obtained by the following observation Inverse Translation Inverse Rotation
  • 13. Back to the chapter content Click Here
  • 14. Perspective Transformation  A perspective transformation is also called imaging transformation  A imaging transformation project 3D point onto a plane  A perspective transformation is the approximation of the image formation.
  • 15. Image Formation Process y,Y x,X z,Z λ Image Plane Lens Center (0,0,λ) (x,y,z) → Camera Co-ordinate System (0,0,λ) → Center of lens (X,Y,Z) → World Co-ordinate System aligned with camera co-ordinate system in 3D scene (X,Y,Z) (x,y) We are interested in (x,y) which is projection of (X,Y,Z) onto image plane For both camera & 3D image z axis are aligned and have same origin
  • 16. Image Formation Cont..  By using similar triangular  x/λ = – X/(Z – λ) = X/(λ – Z)  y/λ = – Y/(Z – λ) = Y/(λ – Z)  Now  X = λX/ λ – Z  Y = λY/ λ – Z  It can be expressed as matrix expression in Homogeneous Co-ordinates  Cartesian coordinate system to homogeneous coordinate system (X,Y,Z) → (K.X, K.Y, K.Z, K)  K is an arbitrary nonzero constant
  • 17. Image Formation Cont..  Conversion from Homogeneous to Cartesian coordinate system is a simple process  In Vector Form  A perspective transformation matrix P is defined as  The element of Ch are the camera co-ordinate in homogeneous form corresponding to Cartesian Co- ordinate
  • 18. Image Formation Cont..  The camera co-ordinate in Cartesian Co- ordinate System is as follows  Finally x = λX/(λ-Z)) and y = λY/(λ-Z) coordinate in the image plane of projected 3-D point (X,Y,Z)
  • 19. Back to the chapter content Click Here