SlideShare a Scribd company logo
The Geometry of Perspective Projection

• Pinhole camera and perspective projection

- This is the simplest imaging device which, however, captures accurately the geome-
try of perspective projection.

- Rays of light enters the camera through an infinitesimally small aperture.

- The intersection of the light rays with the image plane form the image of the object.

- Such a mapping from three dimensions onto two dimensions is called perspective
projection.
-2-

• A simplified geometric arrangement

- In general, the world and camera coordinate systems are not aligned.




- To simplify the derivation of the perspective projection equations, we will make the
following assumptions:

    (1) the center of projection coincides with the origin of the world.

    (2) the camera axis (optical axis) is aligned with the world’s z-axis.
-3-

    (3) avoid image inversion by assuming that the image plane is in front of the cen-
    ter of projection.




• Some terminology

- The model consists of a plane (image plane) and a 3D point O (center of projection).

- The distance f between the image plane and the center of projection O is the focal
length (e.g., the distance between the lens and the CCD array).

- The line through O and perpendicular to the image plane is the optical axis.

- The intersection of the optical axis with the image place is called principal point or
image center.

(note: the principal point is not always the "actual" center of the image)
-4-

• The equations of perspective projection




       (notation: (x, y, z) → (X, Y , Z), r → R, (x′, y′, z′) → (x, y, z), r′ → r)

- Using the following similar triangles:

                                                         f   r
                            (1) from OA′B′ and OAB:        =
                                                         Z   R
                                                       x  y  r
                       (2) from A′B′C′ and ABC:          = =
                                                       X Y   R

                                                  Xf              Yf
              perspective proj. eqs:         x=            y=              z= f
                                                  Z               Z
- Using matrix notation:
                              xh   f     0     0    0  X 
                              yh   0     f     0    0 Y 
                              =                       
                              zh   0     0     f    0  Z 
                              w  0       0     1    0  1 

- Verify the correctness of the above matrix (homogenize using w = Z):

                           xh   fX          yh   fY               zh
                    x=        =        y=      =           z=        = f
                           w    Z           w    Z                w
-5-

• Properties of perspective projection

Many-to-one mapping

   - The projection of a point is not unique (any point on the line OP has the same
   projection).




Scaling/Foreshor tening

   - The distance to an object is inversely proportional to its image size.
-6-

    - When a line (or surface) is parallel to the image plane, the effect of perspective
    projection is scaling.

    - When an line (or surface) is not parallel to the image plane, we use the term
    foreshortening to describe the projective distortion (i.e., the dimension parallel to
    the optical axis is compressed relative to the frontal dimension).




Effect of focal length

    - As f gets smaller, more points project onto the image plane (wide-angle cam-
    era).

    - As f gets larger, the field of view becomes smaller (more telescopic).

Lines, distances, angles

    - Lines in 3D project to lines in 2D.

    - Distances and angles are not preserved.

    - Parallel lines do not in general project to parallel lines (unless they are parallel
    to the image plane).
-7-

Vanishing point

    * parallel lines in space project perspectively onto lines that on extension inter-
    sect at a single point in the image plane called vanishing point or point at infinity.

    * (alternative definition) the vanishing point of a line depends on the orientation
    of the line and not on the position of the line.

    * the vanishing point of any given line in space is located at the point in the
    image where a parallel line through the center of projection intersects the image
    plane.

Vanishing line

    * the vanishing points of all the lines that lie on the same plane form the vanish-
    ing line.

    * also defined by the intersection of a parallel plane through the center of projec-
    tion with the image plane.
-8-

                             Orthographic Projection
- It is the projection of a 3D object onto a plane by a set of parallel rays orthogonal to
the image plane.

- It is the limit of perspective projection as f − > ∞ (i.e., f /Z − > 1)




               orthographic proj. eqs:            x = X,       y=Y   (drop Z)

- Using matrix notation:
                                xh   1     0     0    0  X 
                                yh   0     1     0    0 Y 
                                =                       
                                zh   0     0     0    0  Z 
                                w  0       0     0    1  1 

- Verify the correctness of the above matrix (homogenize using w=1):
                                      xh                 yh
                                 x=      =X         y=      =Y
                                      w                  w
• Properties of orthographic projection

- Parallel lines project to parallel lines.

- Size does not change with distance from the camera.
-9-

                         Weak Perspective Projection
- Perspective projection is a non-linear transformation.

- We can approximate perspective by scaled orthographic projection (i.e., linear trans-
formation) if:

    (1) the object lies close to the optical axis.

    (2) the object’s dimensions are small compared to its average distance Z from the
    camera (i.e., z < Z/20)
                    




                                                 Xf   Xf            Yf   Yf
    weak perspective proj. eqs:          x=         ≈          y=      ≈      (drop Z)
                                                 Z    Z             Z    Z
             f
- The term     is a scale factor now (e.g., every point is scaled by the same factor).
             Z
- Using matrix notation:
                               xh   f     0     0    0X
                               yh   0     f     0    0  Y 
                               =                        
                               zh   0     0     0    0Z
                               w  0       0     0    Z1

- Verify the correctness of the above matrix (homogenize using w = Z):

                                   xh   fX              yh   fY
                              x=      =            y=      =
                                   w    Z               w    Z

More Related Content

What's hot

Advance image processing
Advance image processingAdvance image processing
Advance image processing
AAKANKSHA JAIN
 
Hough Transform By Md.Nazmul Islam
Hough Transform By Md.Nazmul IslamHough Transform By Md.Nazmul Islam
Hough Transform By Md.Nazmul Islam
Nazmul Islam
 
Log Transformation in Image Processing with Example
Log Transformation in Image Processing with ExampleLog Transformation in Image Processing with Example
Log Transformation in Image Processing with Example
Mustak Ahmmed
 
Curves and surfaces
Curves and surfacesCurves and surfaces
Curves and surfaces
Mohammed Mahmoud
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logic
Amey Kerkar
 
Visual surface detection i
Visual surface detection   iVisual surface detection   i
Visual surface detection ielaya1984
 
Artificial Neural Networks for NIU session 2016 17
Artificial Neural Networks for NIU session 2016 17 Artificial Neural Networks for NIU session 2016 17
Artificial Neural Networks for NIU session 2016 17
Prof. Neeta Awasthy
 
Back face detection
Back face detectionBack face detection
Back face detection
Pooja Dixit
 
Operations in Digital Image Processing + Convolution by Example
Operations in Digital Image Processing + Convolution by ExampleOperations in Digital Image Processing + Convolution by Example
Operations in Digital Image Processing + Convolution by Example
Ahmed Gad
 
Clipping in Computer Graphics
Clipping in Computer Graphics Clipping in Computer Graphics
Clipping in Computer Graphics
Barani Tharan
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSING
muthu181188
 
Bit plane slicing
Bit plane slicingBit plane slicing
Bit plane slicing
Asad Ali
 
weak slot and filler structure
weak slot and filler structureweak slot and filler structure
weak slot and filler structure
Amey Kerkar
 
COMPUTER GRAPHICS-"Projection"
COMPUTER GRAPHICS-"Projection"COMPUTER GRAPHICS-"Projection"
COMPUTER GRAPHICS-"Projection"
Ankit Surti
 
Liang barsky Line Clipping Algorithm
Liang barsky Line Clipping AlgorithmLiang barsky Line Clipping Algorithm
Liang barsky Line Clipping Algorithm
Arvind Kumar
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
Mostafa G. M. Mostafa
 
Computer vision lane line detection
Computer vision lane line detectionComputer vision lane line detection
Computer vision lane line detection
Jonathan Mitchell
 
Clipping Algorithm In Computer Graphics
Clipping Algorithm In Computer GraphicsClipping Algorithm In Computer Graphics
Clipping Algorithm In Computer Graphicsstudent(MCA)
 

What's hot (20)

Advance image processing
Advance image processingAdvance image processing
Advance image processing
 
Hough Transform By Md.Nazmul Islam
Hough Transform By Md.Nazmul IslamHough Transform By Md.Nazmul Islam
Hough Transform By Md.Nazmul Islam
 
Log Transformation in Image Processing with Example
Log Transformation in Image Processing with ExampleLog Transformation in Image Processing with Example
Log Transformation in Image Processing with Example
 
Curves and surfaces
Curves and surfacesCurves and surfaces
Curves and surfaces
 
Image Segmentation
 Image Segmentation Image Segmentation
Image Segmentation
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logic
 
3 d viewing
3 d viewing3 d viewing
3 d viewing
 
Visual surface detection i
Visual surface detection   iVisual surface detection   i
Visual surface detection i
 
Artificial Neural Networks for NIU session 2016 17
Artificial Neural Networks for NIU session 2016 17 Artificial Neural Networks for NIU session 2016 17
Artificial Neural Networks for NIU session 2016 17
 
Back face detection
Back face detectionBack face detection
Back face detection
 
Operations in Digital Image Processing + Convolution by Example
Operations in Digital Image Processing + Convolution by ExampleOperations in Digital Image Processing + Convolution by Example
Operations in Digital Image Processing + Convolution by Example
 
Clipping in Computer Graphics
Clipping in Computer Graphics Clipping in Computer Graphics
Clipping in Computer Graphics
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSING
 
Bit plane slicing
Bit plane slicingBit plane slicing
Bit plane slicing
 
weak slot and filler structure
weak slot and filler structureweak slot and filler structure
weak slot and filler structure
 
COMPUTER GRAPHICS-"Projection"
COMPUTER GRAPHICS-"Projection"COMPUTER GRAPHICS-"Projection"
COMPUTER GRAPHICS-"Projection"
 
Liang barsky Line Clipping Algorithm
Liang barsky Line Clipping AlgorithmLiang barsky Line Clipping Algorithm
Liang barsky Line Clipping Algorithm
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
 
Computer vision lane line detection
Computer vision lane line detectionComputer vision lane line detection
Computer vision lane line detection
 
Clipping Algorithm In Computer Graphics
Clipping Algorithm In Computer GraphicsClipping Algorithm In Computer Graphics
Clipping Algorithm In Computer Graphics
 

Viewers also liked

2 basic imaging and radiometry
2 basic imaging and radiometry2 basic imaging and radiometry
2 basic imaging and radiometry
zjnsrbt
 
Cricket Management System
Cricket Management SystemCricket Management System
Cricket Management System
Sohel Sarker
 
The Business of IPL Cricket
The Business of IPL CricketThe Business of IPL Cricket
The Business of IPL Cricketsureshshan1
 
Project Report on IPL - Indian Premier League
Project Report on IPL - Indian Premier LeagueProject Report on IPL - Indian Premier League
Project Report on IPL - Indian Premier League
Kaustubh Barve
 
Algorithms and Flowcharts
Algorithms and FlowchartsAlgorithms and Flowcharts
Algorithms and Flowcharts
Deva Singh
 

Viewers also liked (6)

2 basic imaging and radiometry
2 basic imaging and radiometry2 basic imaging and radiometry
2 basic imaging and radiometry
 
Cricket Management System
Cricket Management SystemCricket Management System
Cricket Management System
 
The Business of IPL Cricket
The Business of IPL CricketThe Business of IPL Cricket
The Business of IPL Cricket
 
Ipl as a business model
Ipl as a business modelIpl as a business model
Ipl as a business model
 
Project Report on IPL - Indian Premier League
Project Report on IPL - Indian Premier LeagueProject Report on IPL - Indian Premier League
Project Report on IPL - Indian Premier League
 
Algorithms and Flowcharts
Algorithms and FlowchartsAlgorithms and Flowcharts
Algorithms and Flowcharts
 

Similar to The geometry of perspective projection

Cg
CgCg
Unit1
Unit1Unit1
Engg. mathematics iii
Engg. mathematics iiiEngg. mathematics iii
Engg. mathematics iii
manoj302009
 
Hidden Surface Removal using Z-buffer
Hidden Surface Removal using Z-bufferHidden Surface Removal using Z-buffer
Hidden Surface Removal using Z-buffer
Raj Sikarwar
 
Lecture9 camera calibration
Lecture9 camera calibrationLecture9 camera calibration
Lecture9 camera calibrationzukun
 
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphics
SHIVANI SONI
 
CG OpenGL surface detection+illumination+rendering models-course 9
CG OpenGL surface detection+illumination+rendering models-course 9CG OpenGL surface detection+illumination+rendering models-course 9
CG OpenGL surface detection+illumination+rendering models-course 9
fungfung Chen
 
Computer Graphic - Projections
Computer Graphic - ProjectionsComputer Graphic - Projections
Computer Graphic - Projections
2013901097
 
Computer Graphics - Projections
Computer Graphics - ProjectionsComputer Graphics - Projections
Computer Graphics - Projections
Hisham Al Kurdi, EAVA, DMC-D-4K, HCCA-P, HCAA-D
 
Hidden lines & surfaces
Hidden lines & surfacesHidden lines & surfaces
Hidden lines & surfaces
Ankur Kumar
 
Visible surface determination
Visible  surface determinationVisible  surface determination
Visible surface determinationPatel Punit
 
Computer Vision transformations
Computer Vision  transformationsComputer Vision  transformations
Computer Vision transformations
Wael Badawy
 
Lesson 14 centroid of volume
Lesson 14 centroid of volumeLesson 14 centroid of volume
Lesson 14 centroid of volume
Lawrence De Vera
 
Area Under Curves Basic Concepts - JEE Main 2015
Area Under Curves Basic Concepts - JEE Main 2015 Area Under Curves Basic Concepts - JEE Main 2015
Area Under Curves Basic Concepts - JEE Main 2015
Ednexa
 
Kinematics_final.pdf
Kinematics_final.pdfKinematics_final.pdf
Kinematics_final.pdf
YGBala
 
1533 game mathematics
1533 game mathematics1533 game mathematics
1533 game mathematics
Dr Fereidoun Dejahang
 

Similar to The geometry of perspective projection (20)

Cg
CgCg
Cg
 
Unit1
Unit1Unit1
Unit1
 
Engg. mathematics iii
Engg. mathematics iiiEngg. mathematics iii
Engg. mathematics iii
 
Hidden Surface Removal using Z-buffer
Hidden Surface Removal using Z-bufferHidden Surface Removal using Z-buffer
Hidden Surface Removal using Z-buffer
 
Lecture9 camera calibration
Lecture9 camera calibrationLecture9 camera calibration
Lecture9 camera calibration
 
Lecture9
Lecture9Lecture9
Lecture9
 
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphics
 
CG OpenGL surface detection+illumination+rendering models-course 9
CG OpenGL surface detection+illumination+rendering models-course 9CG OpenGL surface detection+illumination+rendering models-course 9
CG OpenGL surface detection+illumination+rendering models-course 9
 
Computer Graphic - Projections
Computer Graphic - ProjectionsComputer Graphic - Projections
Computer Graphic - Projections
 
Computer Graphics - Projections
Computer Graphics - ProjectionsComputer Graphics - Projections
Computer Graphics - Projections
 
Hidden lines & surfaces
Hidden lines & surfacesHidden lines & surfaces
Hidden lines & surfaces
 
Chapter 4
Chapter 4Chapter 4
Chapter 4
 
Visible surface determination
Visible  surface determinationVisible  surface determination
Visible surface determination
 
iTute Notes MM
iTute Notes MMiTute Notes MM
iTute Notes MM
 
Interpolation
InterpolationInterpolation
Interpolation
 
Computer Vision transformations
Computer Vision  transformationsComputer Vision  transformations
Computer Vision transformations
 
Lesson 14 centroid of volume
Lesson 14 centroid of volumeLesson 14 centroid of volume
Lesson 14 centroid of volume
 
Area Under Curves Basic Concepts - JEE Main 2015
Area Under Curves Basic Concepts - JEE Main 2015 Area Under Curves Basic Concepts - JEE Main 2015
Area Under Curves Basic Concepts - JEE Main 2015
 
Kinematics_final.pdf
Kinematics_final.pdfKinematics_final.pdf
Kinematics_final.pdf
 
1533 game mathematics
1533 game mathematics1533 game mathematics
1533 game mathematics
 

More from Tarun Gehlot

Materials 11-01228
Materials 11-01228Materials 11-01228
Materials 11-01228
Tarun Gehlot
 
Binary relations
Binary relationsBinary relations
Binary relations
Tarun Gehlot
 
Continuity and end_behavior
Continuity and  end_behaviorContinuity and  end_behavior
Continuity and end_behavior
Tarun Gehlot
 
Continuity of functions by graph (exercises with detailed solutions)
Continuity of functions by graph   (exercises with detailed solutions)Continuity of functions by graph   (exercises with detailed solutions)
Continuity of functions by graph (exercises with detailed solutions)
Tarun Gehlot
 
Factoring by the trial and-error method
Factoring by the trial and-error methodFactoring by the trial and-error method
Factoring by the trial and-error method
Tarun Gehlot
 
Introduction to finite element analysis
Introduction to finite element analysisIntroduction to finite element analysis
Introduction to finite element analysis
Tarun Gehlot
 
Finite elements : basis functions
Finite elements : basis functionsFinite elements : basis functions
Finite elements : basis functions
Tarun Gehlot
 
Finite elements for 2‐d problems
Finite elements  for 2‐d problemsFinite elements  for 2‐d problems
Finite elements for 2‐d problems
Tarun Gehlot
 
Error analysis statistics
Error analysis   statisticsError analysis   statistics
Error analysis statistics
Tarun Gehlot
 
Matlab commands
Matlab commandsMatlab commands
Matlab commands
Tarun Gehlot
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
Tarun Gehlot
 
Linear approximations and_differentials
Linear approximations and_differentialsLinear approximations and_differentials
Linear approximations and_differentials
Tarun Gehlot
 
Local linear approximation
Local linear approximationLocal linear approximation
Local linear approximation
Tarun Gehlot
 
Interpolation functions
Interpolation functionsInterpolation functions
Interpolation functions
Tarun Gehlot
 
Propeties of-triangles
Propeties of-trianglesPropeties of-triangles
Propeties of-triangles
Tarun Gehlot
 
Gaussian quadratures
Gaussian quadraturesGaussian quadratures
Gaussian quadratures
Tarun Gehlot
 
Basics of set theory
Basics of set theoryBasics of set theory
Basics of set theory
Tarun Gehlot
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
Tarun Gehlot
 
Applications of set theory
Applications of  set theoryApplications of  set theory
Applications of set theory
Tarun Gehlot
 
Miscellneous functions
Miscellneous  functionsMiscellneous  functions
Miscellneous functions
Tarun Gehlot
 

More from Tarun Gehlot (20)

Materials 11-01228
Materials 11-01228Materials 11-01228
Materials 11-01228
 
Binary relations
Binary relationsBinary relations
Binary relations
 
Continuity and end_behavior
Continuity and  end_behaviorContinuity and  end_behavior
Continuity and end_behavior
 
Continuity of functions by graph (exercises with detailed solutions)
Continuity of functions by graph   (exercises with detailed solutions)Continuity of functions by graph   (exercises with detailed solutions)
Continuity of functions by graph (exercises with detailed solutions)
 
Factoring by the trial and-error method
Factoring by the trial and-error methodFactoring by the trial and-error method
Factoring by the trial and-error method
 
Introduction to finite element analysis
Introduction to finite element analysisIntroduction to finite element analysis
Introduction to finite element analysis
 
Finite elements : basis functions
Finite elements : basis functionsFinite elements : basis functions
Finite elements : basis functions
 
Finite elements for 2‐d problems
Finite elements  for 2‐d problemsFinite elements  for 2‐d problems
Finite elements for 2‐d problems
 
Error analysis statistics
Error analysis   statisticsError analysis   statistics
Error analysis statistics
 
Matlab commands
Matlab commandsMatlab commands
Matlab commands
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
Linear approximations and_differentials
Linear approximations and_differentialsLinear approximations and_differentials
Linear approximations and_differentials
 
Local linear approximation
Local linear approximationLocal linear approximation
Local linear approximation
 
Interpolation functions
Interpolation functionsInterpolation functions
Interpolation functions
 
Propeties of-triangles
Propeties of-trianglesPropeties of-triangles
Propeties of-triangles
 
Gaussian quadratures
Gaussian quadraturesGaussian quadratures
Gaussian quadratures
 
Basics of set theory
Basics of set theoryBasics of set theory
Basics of set theory
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
 
Applications of set theory
Applications of  set theoryApplications of  set theory
Applications of set theory
 
Miscellneous functions
Miscellneous  functionsMiscellneous  functions
Miscellneous functions
 

The geometry of perspective projection

  • 1. The Geometry of Perspective Projection • Pinhole camera and perspective projection - This is the simplest imaging device which, however, captures accurately the geome- try of perspective projection. - Rays of light enters the camera through an infinitesimally small aperture. - The intersection of the light rays with the image plane form the image of the object. - Such a mapping from three dimensions onto two dimensions is called perspective projection.
  • 2. -2- • A simplified geometric arrangement - In general, the world and camera coordinate systems are not aligned. - To simplify the derivation of the perspective projection equations, we will make the following assumptions: (1) the center of projection coincides with the origin of the world. (2) the camera axis (optical axis) is aligned with the world’s z-axis.
  • 3. -3- (3) avoid image inversion by assuming that the image plane is in front of the cen- ter of projection. • Some terminology - The model consists of a plane (image plane) and a 3D point O (center of projection). - The distance f between the image plane and the center of projection O is the focal length (e.g., the distance between the lens and the CCD array). - The line through O and perpendicular to the image plane is the optical axis. - The intersection of the optical axis with the image place is called principal point or image center. (note: the principal point is not always the "actual" center of the image)
  • 4. -4- • The equations of perspective projection (notation: (x, y, z) → (X, Y , Z), r → R, (x′, y′, z′) → (x, y, z), r′ → r) - Using the following similar triangles: f r (1) from OA′B′ and OAB: = Z R x y r (2) from A′B′C′ and ABC: = = X Y R Xf Yf perspective proj. eqs: x= y= z= f Z Z - Using matrix notation:  xh   f 0 0 0  X   yh   0 f 0 0 Y   =    zh   0 0 f 0  Z   w  0 0 1 0  1  - Verify the correctness of the above matrix (homogenize using w = Z): xh fX yh fY zh x= = y= = z= = f w Z w Z w
  • 5. -5- • Properties of perspective projection Many-to-one mapping - The projection of a point is not unique (any point on the line OP has the same projection). Scaling/Foreshor tening - The distance to an object is inversely proportional to its image size.
  • 6. -6- - When a line (or surface) is parallel to the image plane, the effect of perspective projection is scaling. - When an line (or surface) is not parallel to the image plane, we use the term foreshortening to describe the projective distortion (i.e., the dimension parallel to the optical axis is compressed relative to the frontal dimension). Effect of focal length - As f gets smaller, more points project onto the image plane (wide-angle cam- era). - As f gets larger, the field of view becomes smaller (more telescopic). Lines, distances, angles - Lines in 3D project to lines in 2D. - Distances and angles are not preserved. - Parallel lines do not in general project to parallel lines (unless they are parallel to the image plane).
  • 7. -7- Vanishing point * parallel lines in space project perspectively onto lines that on extension inter- sect at a single point in the image plane called vanishing point or point at infinity. * (alternative definition) the vanishing point of a line depends on the orientation of the line and not on the position of the line. * the vanishing point of any given line in space is located at the point in the image where a parallel line through the center of projection intersects the image plane. Vanishing line * the vanishing points of all the lines that lie on the same plane form the vanish- ing line. * also defined by the intersection of a parallel plane through the center of projec- tion with the image plane.
  • 8. -8- Orthographic Projection - It is the projection of a 3D object onto a plane by a set of parallel rays orthogonal to the image plane. - It is the limit of perspective projection as f − > ∞ (i.e., f /Z − > 1) orthographic proj. eqs: x = X, y=Y (drop Z) - Using matrix notation:  xh   1 0 0 0  X   yh   0 1 0 0 Y   =    zh   0 0 0 0  Z   w  0 0 0 1  1  - Verify the correctness of the above matrix (homogenize using w=1): xh yh x= =X y= =Y w w • Properties of orthographic projection - Parallel lines project to parallel lines. - Size does not change with distance from the camera.
  • 9. -9- Weak Perspective Projection - Perspective projection is a non-linear transformation. - We can approximate perspective by scaled orthographic projection (i.e., linear trans- formation) if: (1) the object lies close to the optical axis. (2) the object’s dimensions are small compared to its average distance Z from the camera (i.e., z < Z/20)   Xf Xf Yf Yf weak perspective proj. eqs: x= ≈ y= ≈ (drop Z) Z Z Z Z f - The term is a scale factor now (e.g., every point is scaled by the same factor). Z - Using matrix notation:  xh   f 0 0 0X  yh   0 f 0 0  Y   =    zh   0 0 0 0Z  w  0 0 0 Z1 - Verify the correctness of the above matrix (homogenize using w = Z): xh fX yh fY x= = y= = w Z w Z