SlideShare a Scribd company logo
1 of 11
Download to read offline
Basic Transformation: Translation, Rotation, Scaling
Subject: Image Procesing & Computer Vision
Dr. Varun Kumar
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 6 1 / 11
Outlines
1 Basic Transformation: Translation, Rotation and Scaling in 2D and 3D
2 Inverse Transformation
3 References
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 6 2 / 11
Basic transformation:
Translation
Mathematical Representation :
x
y
=
1 0
0 1
x
y
+
x0
y0
→ Symmetric (1)
x
y
=
1 0 x0
0 1 y0


x
y
1

 → Non − symmetric (2)
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 6 3 / 11
Continued
Symmetric unified expression


x
y
1

 =


1 0 x0
0 1 y0
0 0 1




x
y
1

 → Unified expression (3)
Rotation
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 6 4 / 11
Continued–
Mathematical expression
x = r cos(α) and y = r sin(α) (4)
Rotation point
x = r cos(α − θ) and y = r sin(α − θ)
x = r cos(α)cos(θ) + r sin(α)sin(θ)
y = r sin(α)cos(θ) − r cos(α)sin(θ)
(5)
Matrix representation
x
y
=
cos(θ) sin(θ)
−sin(θ) cos(θ)
x
y
→ Unified expression (6)
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 6 5 / 11
Scaling–
Scaling
x
y
=
Sx 0
0 Sy
x
y
(7)
Translation operation in 3D
Let p(x, y, z) is translated across a point (x0, y0, z0) then the observed
new point is q(x , y , z ) ⇒ x = x + x0, y = y + y0 and z = z + z0.
Matrix representation:


x
y
z

 =


1 0 0 x0
0 1 0 y0
0 0 1 z0






x
y
z
1



 (8)
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 6 6 / 11
Continued–




x
y
z
1



 =




1 0 0 x0
0 1 0 y0
0 0 1 z0
0 0 0 1








x
y
z
1



 → Unified expression (9)
Unified matrix representation
V = AV (10)
A → transformation matrix, V → column vector of original co-ordinates,
V → column vector of transformed co-ordinates.
Translation of the transformed matrix :
T =




1 0 0 x0
0 1 0 y0
0 0 1 z0
0 0 0 1



 (11)
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 6 7 / 11
Continued–
In case of scaling
S =




Sx 0 0 x0
0 Sy 0 y0
0 0 Sz z0
0 0 0 1



 (12)
In case of rotation α → along x-axis, β → along y-axis, θ → along z-axis
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 6 8 / 11
Concatenation:
Rθ =




cos(θ) sin(θ) 0 0
−sin(θ) cos(θ) 0 0
0 0 1 0
0 0 0 1



 , Rα =




1 0 0 0
0 cos(α) sin(α) 0
0 − sin(α) cos(α) 0
0 0 0 1



 (13)
Rβ =




cos(β) 0 − sin(β) 0
0 1 0 0
sin(β) 0 cos(β) 0
0 0 0 1




Translation, rotation and scaling about z-axis of a point p(x, y, z) can be
expressed as
V = Rθ(STV )
= AV
(14)
where A = RθST
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 6 9 / 11
Continued–
Inversion operation :
It is a process by which original point is recovered back through the
transformed point.
Multiply A−1 on both side in equation (14) ⇒ A−1V = A−1AV = V
Multiply R−1
θ on both side in equation (14) ⇒ R−1
θ V = R−1
θ AV =
STV ⇒ new point is translated and scaled version of original one.
Multiply S−1
on both side in equation (14) ⇒ S−1
V = S−1
AV =
RθTV ⇒ new point is translated and rotated version of original one.
Note: Here S is diagonal matrix ⇒ S−1V = S−1AV = RθTV
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 6 10 / 11
References
M. Sonka, V. Hlavac, and R. Boyle, Image processing, analysis, and machine vision.
Cengage Learning, 2014.
D. A. Forsyth and J. Ponce, “A modern approach,” Computer vision: a modern
approach, vol. 17, pp. 21–48, 2003.
L. Shapiro and G. Stockman, “Computer vision prentice hall,” Inc., New Jersey,
2001.
R. C. Gonzalez, R. E. Woods, and S. L. Eddins, Digital image processing using
MATLAB. Pearson Education India, 2004.
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 6 11 / 11

More Related Content

What's hot

What's hot (7)

Linear dependence(ld) &linear independence(li)
Linear dependence(ld)  &linear independence(li)Linear dependence(ld)  &linear independence(li)
Linear dependence(ld) &linear independence(li)
 
DIP - Image Restoration
DIP - Image RestorationDIP - Image Restoration
DIP - Image Restoration
 
Lagrange's method
Lagrange's methodLagrange's method
Lagrange's method
 
Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)
 
Hopfield Networks
Hopfield NetworksHopfield Networks
Hopfield Networks
 
(2) funciones reales
(2) funciones reales(2) funciones reales
(2) funciones reales
 
A Comparative Study of Histogram Equalization Based Image Enhancement Techniq...
A Comparative Study of Histogram Equalization Based Image Enhancement Techniq...A Comparative Study of Histogram Equalization Based Image Enhancement Techniq...
A Comparative Study of Histogram Equalization Based Image Enhancement Techniq...
 

Similar to Lecture 6 Basic Transform: Translation, Rotation, Scaling

PROJECT EVERYTHNG
PROJECT EVERYTHNGPROJECT EVERYTHNG
PROJECT EVERYTHNG
Falade John
 

Similar to Lecture 6 Basic Transform: Translation, Rotation, Scaling (20)

Lecture 7 (Digital Image Processing)
Lecture 7 (Digital Image Processing)Lecture 7 (Digital Image Processing)
Lecture 7 (Digital Image Processing)
 
Lecture 12 (Image transformation)
Lecture 12 (Image transformation)Lecture 12 (Image transformation)
Lecture 12 (Image transformation)
 
Lecture 8 (Stereo imaging) (Digital Image Processing)
Lecture 8 (Stereo imaging) (Digital Image Processing)Lecture 8 (Stereo imaging) (Digital Image Processing)
Lecture 8 (Stereo imaging) (Digital Image Processing)
 
Linear Smoothing, Median, and Sharpening Filter
Linear Smoothing, Median, and Sharpening FilterLinear Smoothing, Median, and Sharpening Filter
Linear Smoothing, Median, and Sharpening Filter
 
Chapter 3 Image Processing: Basic Transformation
Chapter 3 Image Processing:  Basic TransformationChapter 3 Image Processing:  Basic Transformation
Chapter 3 Image Processing: Basic Transformation
 
Lecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image ProcessingLecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image Processing
 
Lecture 9 (Digital Image Processing)
Lecture 9 (Digital Image Processing)Lecture 9 (Digital Image Processing)
Lecture 9 (Digital Image Processing)
 
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphics
 
Edge linking in image processing
Edge linking in image processingEdge linking in image processing
Edge linking in image processing
 
Image Restoration 2 (Digital Image Processing)
Image Restoration 2 (Digital Image Processing)Image Restoration 2 (Digital Image Processing)
Image Restoration 2 (Digital Image Processing)
 
Chapter 11_0 velocity, acceleration.pdf
Chapter 11_0 velocity, acceleration.pdfChapter 11_0 velocity, acceleration.pdf
Chapter 11_0 velocity, acceleration.pdf
 
2d-transformation
2d-transformation2d-transformation
2d-transformation
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
 
Lecture 14 Properties of Fourier Transform for 2D Signal
Lecture 14 Properties of Fourier Transform for 2D SignalLecture 14 Properties of Fourier Transform for 2D Signal
Lecture 14 Properties of Fourier Transform for 2D Signal
 
Aula i introdução
Aula i  introduçãoAula i  introdução
Aula i introdução
 
Journey to structure from motion
Journey to structure from motionJourney to structure from motion
Journey to structure from motion
 
Lecture 13 (Usage of Fourier transform in image processing)
Lecture 13 (Usage of Fourier transform in image processing)Lecture 13 (Usage of Fourier transform in image processing)
Lecture 13 (Usage of Fourier transform in image processing)
 
PROJECT EVERYTHNG
PROJECT EVERYTHNGPROJECT EVERYTHNG
PROJECT EVERYTHNG
 
PART I.3 - Physical Mathematics
PART I.3 - Physical MathematicsPART I.3 - Physical Mathematics
PART I.3 - Physical Mathematics
 
Theories and Engineering Technics of 2D-to-3D Back-Projection Problem
Theories and Engineering Technics of 2D-to-3D Back-Projection ProblemTheories and Engineering Technics of 2D-to-3D Back-Projection Problem
Theories and Engineering Technics of 2D-to-3D Back-Projection Problem
 

More from VARUN KUMAR

More from VARUN KUMAR (20)

Distributed rc Model
Distributed rc ModelDistributed rc Model
Distributed rc Model
 
Electrical Wire Model
Electrical Wire ModelElectrical Wire Model
Electrical Wire Model
 
Interconnect Parameter in Digital VLSI Design
Interconnect Parameter in Digital VLSI DesignInterconnect Parameter in Digital VLSI Design
Interconnect Parameter in Digital VLSI Design
 
Introduction to Digital VLSI Design
Introduction to Digital VLSI DesignIntroduction to Digital VLSI Design
Introduction to Digital VLSI Design
 
Challenges of Massive MIMO System
Challenges of Massive MIMO SystemChallenges of Massive MIMO System
Challenges of Massive MIMO System
 
E-democracy or Digital Democracy
E-democracy or Digital DemocracyE-democracy or Digital Democracy
E-democracy or Digital Democracy
 
Ethics of Parasitic Computing
Ethics of Parasitic ComputingEthics of Parasitic Computing
Ethics of Parasitic Computing
 
Action Lines of Geneva Plan of Action
Action Lines of Geneva Plan of ActionAction Lines of Geneva Plan of Action
Action Lines of Geneva Plan of Action
 
Geneva Plan of Action
Geneva Plan of ActionGeneva Plan of Action
Geneva Plan of Action
 
Fair Use in the Electronic Age
Fair Use in the Electronic AgeFair Use in the Electronic Age
Fair Use in the Electronic Age
 
Software as a Property
Software as a PropertySoftware as a Property
Software as a Property
 
Orthogonal Polynomial
Orthogonal PolynomialOrthogonal Polynomial
Orthogonal Polynomial
 
Patent Protection
Patent ProtectionPatent Protection
Patent Protection
 
Copyright Vs Patent and Trade Secrecy Law
Copyright Vs Patent and Trade Secrecy LawCopyright Vs Patent and Trade Secrecy Law
Copyright Vs Patent and Trade Secrecy Law
 
Property Right and Software
Property Right and SoftwareProperty Right and Software
Property Right and Software
 
Investigating Data Trials
Investigating Data TrialsInvestigating Data Trials
Investigating Data Trials
 
Gaussian Numerical Integration
Gaussian Numerical IntegrationGaussian Numerical Integration
Gaussian Numerical Integration
 
Censorship and Controversy
Censorship and ControversyCensorship and Controversy
Censorship and Controversy
 
Romberg's Integration
Romberg's IntegrationRomberg's Integration
Romberg's Integration
 
Introduction to Censorship
Introduction to Censorship Introduction to Censorship
Introduction to Censorship
 

Recently uploaded

Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 

Recently uploaded (20)

data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 

Lecture 6 Basic Transform: Translation, Rotation, Scaling

  • 1. Basic Transformation: Translation, Rotation, Scaling Subject: Image Procesing & Computer Vision Dr. Varun Kumar Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 6 1 / 11
  • 2. Outlines 1 Basic Transformation: Translation, Rotation and Scaling in 2D and 3D 2 Inverse Transformation 3 References Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 6 2 / 11
  • 3. Basic transformation: Translation Mathematical Representation : x y = 1 0 0 1 x y + x0 y0 → Symmetric (1) x y = 1 0 x0 0 1 y0   x y 1   → Non − symmetric (2) Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 6 3 / 11
  • 4. Continued Symmetric unified expression   x y 1   =   1 0 x0 0 1 y0 0 0 1     x y 1   → Unified expression (3) Rotation Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 6 4 / 11
  • 5. Continued– Mathematical expression x = r cos(α) and y = r sin(α) (4) Rotation point x = r cos(α − θ) and y = r sin(α − θ) x = r cos(α)cos(θ) + r sin(α)sin(θ) y = r sin(α)cos(θ) − r cos(α)sin(θ) (5) Matrix representation x y = cos(θ) sin(θ) −sin(θ) cos(θ) x y → Unified expression (6) Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 6 5 / 11
  • 6. Scaling– Scaling x y = Sx 0 0 Sy x y (7) Translation operation in 3D Let p(x, y, z) is translated across a point (x0, y0, z0) then the observed new point is q(x , y , z ) ⇒ x = x + x0, y = y + y0 and z = z + z0. Matrix representation:   x y z   =   1 0 0 x0 0 1 0 y0 0 0 1 z0       x y z 1     (8) Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 6 6 / 11
  • 7. Continued–     x y z 1     =     1 0 0 x0 0 1 0 y0 0 0 1 z0 0 0 0 1         x y z 1     → Unified expression (9) Unified matrix representation V = AV (10) A → transformation matrix, V → column vector of original co-ordinates, V → column vector of transformed co-ordinates. Translation of the transformed matrix : T =     1 0 0 x0 0 1 0 y0 0 0 1 z0 0 0 0 1     (11) Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 6 7 / 11
  • 8. Continued– In case of scaling S =     Sx 0 0 x0 0 Sy 0 y0 0 0 Sz z0 0 0 0 1     (12) In case of rotation α → along x-axis, β → along y-axis, θ → along z-axis Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 6 8 / 11
  • 9. Concatenation: Rθ =     cos(θ) sin(θ) 0 0 −sin(θ) cos(θ) 0 0 0 0 1 0 0 0 0 1     , Rα =     1 0 0 0 0 cos(α) sin(α) 0 0 − sin(α) cos(α) 0 0 0 0 1     (13) Rβ =     cos(β) 0 − sin(β) 0 0 1 0 0 sin(β) 0 cos(β) 0 0 0 0 1     Translation, rotation and scaling about z-axis of a point p(x, y, z) can be expressed as V = Rθ(STV ) = AV (14) where A = RθST Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 6 9 / 11
  • 10. Continued– Inversion operation : It is a process by which original point is recovered back through the transformed point. Multiply A−1 on both side in equation (14) ⇒ A−1V = A−1AV = V Multiply R−1 θ on both side in equation (14) ⇒ R−1 θ V = R−1 θ AV = STV ⇒ new point is translated and scaled version of original one. Multiply S−1 on both side in equation (14) ⇒ S−1 V = S−1 AV = RθTV ⇒ new point is translated and rotated version of original one. Note: Here S is diagonal matrix ⇒ S−1V = S−1AV = RθTV Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 6 10 / 11
  • 11. References M. Sonka, V. Hlavac, and R. Boyle, Image processing, analysis, and machine vision. Cengage Learning, 2014. D. A. Forsyth and J. Ponce, “A modern approach,” Computer vision: a modern approach, vol. 17, pp. 21–48, 2003. L. Shapiro and G. Stockman, “Computer vision prentice hall,” Inc., New Jersey, 2001. R. C. Gonzalez, R. E. Woods, and S. L. Eddins, Digital image processing using MATLAB. Pearson Education India, 2004. Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 6 11 / 11