SlideShare uma empresa Scribd logo
1 de 51
Computer vision: models,
 learning and inference
          Chapter 14
      The pinhole camera



   Please send errata to s.prince@cs.ucl.ac.uk
Structure
•   Pinhole camera model
•   Three geometric problems
•   Homogeneous coordinates
•   Solving the problems
    – Exterior orientation problem
    – Camera calibration
    – 3D reconstruction
• Applications
           Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   2
Motivation




Sparse stereo reconstruction

Compute the depth at a set
of sparse matching points



      Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   3
Pinhole camera




Real camera image                   Instead model impossible but more
    is inverted                          convenient virtual image

         Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   4
Pinhole camera terminology




  Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   5
Normalized Camera




By similar triangles:




               Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   6
Focal length parameters




Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   7
Focal length parameters
Can model both
   • the effect of the distance to the focal plane
   • the density of the receptors
with a single focal length parameter




In practice, the receptors may not be square:



So use different focal length parameter for x and y dirns
          Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   8
Offset parameters
• Current model assumes that pixel (0,0) is
  where the principal ray strikes the image
  plane (i.e. the center)
• Model offset to center




         Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   9
Skew parameter
• Finally, add skew parameter
• Accounts for image plane being not exactly perpendicular to
  the principal ray




           Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   10
Position and orientation of camera
• Position w=(u,v,w)T of point in the world is generally not
  expressed in the frame of reference of the camera.
• Transform using 3D transformation




  or



         Point in frame of                           Point in frame of
       reference of camera                          reference of world
              Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   11
Complete pinhole camera model




• Intrinsic parameters                                 (stored as intrinsic matrix)



• Extrinsic parameters



           Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   12
Complete pinhole camera model



For short:



Add noise – uncertainty in localizing feature in image




             Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   13
Radial distortion




Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   14
Structure
•   Pinhole camera model
•   Three geometric problems
•   Homogeneous coordinates
•   Solving the problems
    – Exterior orientation problem
    – Camera calibration
    – 3D reconstruction
• Applications
           Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   15
Problem 1: Learning extrinsic
     parameters (exterior orientation)




Use maximum likelihood:



            Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   16
Problem 2 – Learning intrinsic
           parameters (calibration)




Use maximum likelihood:




            Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   17
Calibration




• Use 3D target with known 3D points
        Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   18
Problem 3 – Inferring 3D points
      (triangulation / reconstruction)




Use maximum likelihood:




            Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   19
Solving the problems
• None of these problems can be solved in closed form

• Can apply non-linear optimization to find best solution but
  slow and prone to local minima

• Solution – convert to a new representation (homogeoneous
  coordinates) where we can solve in closed form.

• Caution! We are not solving the true problem – finding
  global minimum of wrong problem. But can use as starting
  point for non-linear optimization of true problem


           Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   20
Structure
•   Pinhole camera model
•   Three geometric problems
•   Homogeneous coordinates
•   Solving the problems
    – Exterior orientation problem
    – Camera calibration
    – 3D reconstruction
• Applications
           Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   21
Homogeneous coordinates
Convert 2D coordinate to 3D




To convert back




        Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   22
Geometric interpretation of
homogeneous coordinates




 Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   23
Pinhole camera in
       homogeneous coordinates
Camera model:




In homogeneous coordinates:


                                                                                    (linear!)



         Computer vision: models, learning and inference. ©2011 Simon J.D. Prince          24
Pinhole camera in
        homogeneous coordinates



Writing out these three equations




Eliminate to retrieve original equations

          Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   25
Adding in extrinsic parameters



Or for short:




Or even shorter:



           Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   26
Structure
•   Pinhole camera model
•   Three geometric problems
•   Homogeneous coordinates
•   Solving the problems
    – Exterior orientation problem
    – Camera calibration
    – 3D reconstruction
• Applications
           Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   27
Problem 1: Learning extrinsic
     parameters (exterior orientation)




Use maximum likelihood:



            Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   28
Exterior orientation
Start with camera equation in homogeneous coordinates




Pre-multiply both sides by inverse of camera calibration matrix




         Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   29
Exterior orientation
Start with camera equation in homogeneous coordinates




Pre-multiply both sides by inverse of camera calibration matrix




         Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   30
Exterior orientation



The third equation gives us an expression for



Substitute back into first two lines




          Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   31
Exterior orientation


Linear equation – two equations per point –
form system of equations




        Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   32
Exterior orientation




Minimum direction problem of the form
, Find minimum of       subject to                                                 .

To solve, compute the SVD                                                   and then
set     to the last column of                          .

        Computer vision: models, learning and inference. ©2011 Simon J.D. Prince       33
Exterior orientation
Now we extract the values of                             and            from      .
Problem: the scale is arbitrary and the rows and
columns of the rotation matrix may not be orthogonal.

Solution: compute SVD                                                  and then
choose              .

Use the ratio between the rotation matrix before and
after to rescale



Use these estimates for start of non-linear optimisation.
       Computer vision: models, learning and inference. ©2011 Simon J.D. Prince       34
Structure
•   Pinhole camera model
•   Three geometric problems
•   Homogeneous coordinates
•   Solving the problems
    – Exterior orientation problem
    – Camera calibration
    – 3D reconstruction
• Applications
           Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   35
Problem 2 – Learning intrinsic
           parameters (calibration)




Use maximum likelihood:




            Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   36
Calibration


One approach (not very efficient) is to alternately
•   Optimize extrinsic parameters for fixed intrinsic



•   Optimize intrinsic parameters for fixed extrinsic



                                                      Then use non-linear optimization.
         Computer vision: models, learning and inference. ©2011 Simon J.D. Prince         37
Intrinsic parameters


Maximum likelihood approach




This is a least squares problem.



         Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   38
Intrinsic parameters


The function                     is linear w.r.t. intrinsic
parameters. Can be written in form




Now solve least squares problem



          Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   39
Structure
•   Pinhole camera model
•   Three geometric problems
•   Homogeneous coordinates
•   Solving the problems
    – Exterior orientation problem
    – Camera calibration
    – 3D reconstruction
• Applications
           Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   40
Problem 3 – Inferring 3D points
      (triangulation / reconstruction)




Use maximum likelihood:




            Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   41
Reconstruction


Write jth pinhole camera in homogeneous coordinates:




Pre-multiply with inverse of intrinsic matrix




         Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   42
Reconstruction


Last equations gives

Substitute back into first two equations



Re-arranging get two linear equations for [u,v,w]



Solve using >1 cameras and then use non-linear optimization
          Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   43
Structure
•   Pinhole camera model
•   Three geometric problems
•   Homogeneous coordinates
•   Solving the problems
    – Exterior orientation problem
    – Camera calibration
    – 3D reconstruction
• Applications
           Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   44
Depth from structured light




  Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   45
Depth from structured light




  Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   46
Depth from structured light




  Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   47
Shape from silhouette




Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   48
Shape from silhouette




Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   49
Shape from silhouette




Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   50
Conclusion
• Pinhole camera model is a non-linear function
  who takes points in 3D world and finds where
  they map to in image
• Parameterized by intrinsic and extrinsic
  matrices
• Difficult to estimate intrinsic/extrinsic/depth
  because non-linear
• Use homogeneous coordinates where we can
  get closed from solutions (initial solns only)
         Computer vision: models, learning and inference. ©2011 Simon J.D. Prince   51

Mais conteúdo relacionado

Mais procurados

Face Recognition using OpenCV
Face Recognition using OpenCVFace Recognition using OpenCV
Face Recognition using OpenCVVasile Chelban
 
Conferencia Elizabeth Sanders
Conferencia Elizabeth SandersConferencia Elizabeth Sanders
Conferencia Elizabeth Sanderslideresacademicos
 
Carolyn Jao UX Design Portfolio
Carolyn Jao UX Design Portfolio Carolyn Jao UX Design Portfolio
Carolyn Jao UX Design Portfolio Carolyn Jao
 
Introduction of augmented reality
Introduction of augmented realityIntroduction of augmented reality
Introduction of augmented realityTakashi Yoshinaga
 
Figma design tool - an alternative for windows users
Figma design tool - an alternative for windows usersFigma design tool - an alternative for windows users
Figma design tool - an alternative for windows usersAugustina Reipšlėger
 
2022 COMP4010 Lecture4: AR Interaction
2022 COMP4010 Lecture4: AR Interaction2022 COMP4010 Lecture4: AR Interaction
2022 COMP4010 Lecture4: AR InteractionMark Billinghurst
 
How to CREATE iPhone Photos That Don't Suck
How to CREATE iPhone Photos That Don't SuckHow to CREATE iPhone Photos That Don't Suck
How to CREATE iPhone Photos That Don't Suckjack hollingsworth
 
Study and development of Iris Segmentation and Normalization Technique
Study and development of Iris Segmentation and Normalization TechniqueStudy and development of Iris Segmentation and Normalization Technique
Study and development of Iris Segmentation and Normalization TechniqueSunil Kumar Chawla
 
Principles of Good Logo Design
Principles of Good Logo DesignPrinciples of Good Logo Design
Principles of Good Logo DesignJake Van Ness
 
Visual perception-illusions-paradoxes
Visual perception-illusions-paradoxesVisual perception-illusions-paradoxes
Visual perception-illusions-paradoxesRitwik Yadav
 
COMP 4010 - Lecture 4: 3D User Interfaces
COMP 4010 - Lecture 4: 3D User InterfacesCOMP 4010 - Lecture 4: 3D User Interfaces
COMP 4010 - Lecture 4: 3D User InterfacesMark Billinghurst
 
The Elements of User Experience
The Elements of User Experience The Elements of User Experience
The Elements of User Experience brandextract
 

Mais procurados (20)

Face Recognition using OpenCV
Face Recognition using OpenCVFace Recognition using OpenCV
Face Recognition using OpenCV
 
Computer vision
Computer vision Computer vision
Computer vision
 
Computer vision
Computer visionComputer vision
Computer vision
 
Augmented reality
Augmented  realityAugmented  reality
Augmented reality
 
Graphic design
Graphic designGraphic design
Graphic design
 
Vfx
VfxVfx
Vfx
 
Conferencia Elizabeth Sanders
Conferencia Elizabeth SandersConferencia Elizabeth Sanders
Conferencia Elizabeth Sanders
 
Carolyn Jao UX Design Portfolio
Carolyn Jao UX Design Portfolio Carolyn Jao UX Design Portfolio
Carolyn Jao UX Design Portfolio
 
Light painting
Light paintingLight painting
Light painting
 
Introduction of augmented reality
Introduction of augmented realityIntroduction of augmented reality
Introduction of augmented reality
 
Figma design tool - an alternative for windows users
Figma design tool - an alternative for windows usersFigma design tool - an alternative for windows users
Figma design tool - an alternative for windows users
 
Camera
CameraCamera
Camera
 
2022 COMP4010 Lecture4: AR Interaction
2022 COMP4010 Lecture4: AR Interaction2022 COMP4010 Lecture4: AR Interaction
2022 COMP4010 Lecture4: AR Interaction
 
How to CREATE iPhone Photos That Don't Suck
How to CREATE iPhone Photos That Don't SuckHow to CREATE iPhone Photos That Don't Suck
How to CREATE iPhone Photos That Don't Suck
 
Study and development of Iris Segmentation and Normalization Technique
Study and development of Iris Segmentation and Normalization TechniqueStudy and development of Iris Segmentation and Normalization Technique
Study and development of Iris Segmentation and Normalization Technique
 
Iris scan.ppt 1
Iris scan.ppt 1Iris scan.ppt 1
Iris scan.ppt 1
 
Principles of Good Logo Design
Principles of Good Logo DesignPrinciples of Good Logo Design
Principles of Good Logo Design
 
Visual perception-illusions-paradoxes
Visual perception-illusions-paradoxesVisual perception-illusions-paradoxes
Visual perception-illusions-paradoxes
 
COMP 4010 - Lecture 4: 3D User Interfaces
COMP 4010 - Lecture 4: 3D User InterfacesCOMP 4010 - Lecture 4: 3D User Interfaces
COMP 4010 - Lecture 4: 3D User Interfaces
 
The Elements of User Experience
The Elements of User Experience The Elements of User Experience
The Elements of User Experience
 

Destaque

Pin hole camera
Pin hole cameraPin hole camera
Pin hole cameraSara
 
DIY: Computer Vision with GWT.
DIY: Computer Vision with GWT.DIY: Computer Vision with GWT.
DIY: Computer Vision with GWT.JooinK
 
01Introduction.pptx - C280, Computer Vision
01Introduction.pptx - C280, Computer Vision01Introduction.pptx - C280, Computer Vision
01Introduction.pptx - C280, Computer Visionbutest
 
WBCSD Development Focus Area - Overview as of August 2012
WBCSD Development Focus Area - Overview as of August 2012WBCSD Development Focus Area - Overview as of August 2012
WBCSD Development Focus Area - Overview as of August 2012fveglio
 
CVPR2010: higher order models in computer vision: Part 3
CVPR2010: higher order models in computer vision: Part 3CVPR2010: higher order models in computer vision: Part 3
CVPR2010: higher order models in computer vision: Part 3zukun
 
"The OpenCV Open Source Computer Vision Library: What’s New and What’s Coming...
"The OpenCV Open Source Computer Vision Library: What’s New and What’s Coming..."The OpenCV Open Source Computer Vision Library: What’s New and What’s Coming...
"The OpenCV Open Source Computer Vision Library: What’s New and What’s Coming...Edge AI and Vision Alliance
 
"Computer Vision 2.0: Where We Are and Where We're Going," a Presentation fro...
"Computer Vision 2.0: Where We Are and Where We're Going," a Presentation fro..."Computer Vision 2.0: Where We Are and Where We're Going," a Presentation fro...
"Computer Vision 2.0: Where We Are and Where We're Going," a Presentation fro...Edge AI and Vision Alliance
 
General introduction to computer vision
General introduction to computer visionGeneral introduction to computer vision
General introduction to computer visionbutest
 
Camera obscura pinhole
Camera obscura pinholeCamera obscura pinhole
Camera obscura pinholeINS Tremp
 
The history of the pinhole camera
The history of the pinhole cameraThe history of the pinhole camera
The history of the pinhole cameratianaphoto
 

Destaque (11)

Pin hole camera
Pin hole cameraPin hole camera
Pin hole camera
 
DIY: Computer Vision with GWT.
DIY: Computer Vision with GWT.DIY: Computer Vision with GWT.
DIY: Computer Vision with GWT.
 
01Introduction.pptx - C280, Computer Vision
01Introduction.pptx - C280, Computer Vision01Introduction.pptx - C280, Computer Vision
01Introduction.pptx - C280, Computer Vision
 
WBCSD Development Focus Area - Overview as of August 2012
WBCSD Development Focus Area - Overview as of August 2012WBCSD Development Focus Area - Overview as of August 2012
WBCSD Development Focus Area - Overview as of August 2012
 
CVPR2010: higher order models in computer vision: Part 3
CVPR2010: higher order models in computer vision: Part 3CVPR2010: higher order models in computer vision: Part 3
CVPR2010: higher order models in computer vision: Part 3
 
"The OpenCV Open Source Computer Vision Library: What’s New and What’s Coming...
"The OpenCV Open Source Computer Vision Library: What’s New and What’s Coming..."The OpenCV Open Source Computer Vision Library: What’s New and What’s Coming...
"The OpenCV Open Source Computer Vision Library: What’s New and What’s Coming...
 
Towards Embedded Computer Vision - New @ 2013
Towards Embedded Computer Vision - New @ 2013Towards Embedded Computer Vision - New @ 2013
Towards Embedded Computer Vision - New @ 2013
 
"Computer Vision 2.0: Where We Are and Where We're Going," a Presentation fro...
"Computer Vision 2.0: Where We Are and Where We're Going," a Presentation fro..."Computer Vision 2.0: Where We Are and Where We're Going," a Presentation fro...
"Computer Vision 2.0: Where We Are and Where We're Going," a Presentation fro...
 
General introduction to computer vision
General introduction to computer visionGeneral introduction to computer vision
General introduction to computer vision
 
Camera obscura pinhole
Camera obscura pinholeCamera obscura pinhole
Camera obscura pinhole
 
The history of the pinhole camera
The history of the pinhole cameraThe history of the pinhole camera
The history of the pinhole camera
 

Semelhante a 14 cv mil_the_pinhole_camera

16 cv mil_multiple_cameras
16 cv mil_multiple_cameras16 cv mil_multiple_cameras
16 cv mil_multiple_cameraszukun
 
15 cv mil_models_for_transformations
15 cv mil_models_for_transformations15 cv mil_models_for_transformations
15 cv mil_models_for_transformationszukun
 
17 cv mil_models_for_shape
17 cv mil_models_for_shape17 cv mil_models_for_shape
17 cv mil_models_for_shapezukun
 
09 cv mil_classification
09 cv mil_classification09 cv mil_classification
09 cv mil_classificationzukun
 
08 cv mil_regression
08 cv mil_regression08 cv mil_regression
08 cv mil_regressionzukun
 
20 cv mil_models_for_words
20 cv mil_models_for_words20 cv mil_models_for_words
20 cv mil_models_for_wordszukun
 
13 cv mil_preprocessing
13 cv mil_preprocessing13 cv mil_preprocessing
13 cv mil_preprocessingzukun
 
11 cv mil_models_for_chains_and_trees
11 cv mil_models_for_chains_and_trees11 cv mil_models_for_chains_and_trees
11 cv mil_models_for_chains_and_treeszukun
 
07 cv mil_modeling_complex_densities
07 cv mil_modeling_complex_densities07 cv mil_modeling_complex_densities
07 cv mil_modeling_complex_densitieszukun
 
Graphical Models for chains, trees and grids
Graphical Models for chains, trees and gridsGraphical Models for chains, trees and grids
Graphical Models for chains, trees and gridspotaters
 
18 cv mil_style_and_identity
18 cv mil_style_and_identity18 cv mil_style_and_identity
18 cv mil_style_and_identityzukun
 
12 cv mil_models_for_grids
12 cv mil_models_for_grids12 cv mil_models_for_grids
12 cv mil_models_for_gridszukun
 
04 cv mil_fitting_probability_models
04 cv mil_fitting_probability_models04 cv mil_fitting_probability_models
04 cv mil_fitting_probability_modelszukun
 
19 cv mil_temporal_models
19 cv mil_temporal_models19 cv mil_temporal_models
19 cv mil_temporal_modelszukun
 
10 cv mil_graphical_models
10 cv mil_graphical_models10 cv mil_graphical_models
10 cv mil_graphical_modelszukun
 
06 cv mil_learning_and_inference
06 cv mil_learning_and_inference06 cv mil_learning_and_inference
06 cv mil_learning_and_inferencezukun
 
Realism in Computer Graphics
Realism in Computer GraphicsRealism in Computer Graphics
Realism in Computer GraphicsBarani Tharan
 
Single Camera Calibration Using Partially Visible Calibration Objects Based o...
Single Camera Calibration Using Partially Visible Calibration Objects Based o...Single Camera Calibration Using Partially Visible Calibration Objects Based o...
Single Camera Calibration Using Partially Visible Calibration Objects Based o...Yuji Oyamada
 
nilesh-Mtech-presentation
nilesh-Mtech-presentationnilesh-Mtech-presentation
nilesh-Mtech-presentationNilesh Heda
 

Semelhante a 14 cv mil_the_pinhole_camera (20)

16 cv mil_multiple_cameras
16 cv mil_multiple_cameras16 cv mil_multiple_cameras
16 cv mil_multiple_cameras
 
15 cv mil_models_for_transformations
15 cv mil_models_for_transformations15 cv mil_models_for_transformations
15 cv mil_models_for_transformations
 
17 cv mil_models_for_shape
17 cv mil_models_for_shape17 cv mil_models_for_shape
17 cv mil_models_for_shape
 
09 cv mil_classification
09 cv mil_classification09 cv mil_classification
09 cv mil_classification
 
08 cv mil_regression
08 cv mil_regression08 cv mil_regression
08 cv mil_regression
 
20 cv mil_models_for_words
20 cv mil_models_for_words20 cv mil_models_for_words
20 cv mil_models_for_words
 
13 cv mil_preprocessing
13 cv mil_preprocessing13 cv mil_preprocessing
13 cv mil_preprocessing
 
11 cv mil_models_for_chains_and_trees
11 cv mil_models_for_chains_and_trees11 cv mil_models_for_chains_and_trees
11 cv mil_models_for_chains_and_trees
 
07 cv mil_modeling_complex_densities
07 cv mil_modeling_complex_densities07 cv mil_modeling_complex_densities
07 cv mil_modeling_complex_densities
 
Graphical Models for chains, trees and grids
Graphical Models for chains, trees and gridsGraphical Models for chains, trees and grids
Graphical Models for chains, trees and grids
 
18 cv mil_style_and_identity
18 cv mil_style_and_identity18 cv mil_style_and_identity
18 cv mil_style_and_identity
 
12 cv mil_models_for_grids
12 cv mil_models_for_grids12 cv mil_models_for_grids
12 cv mil_models_for_grids
 
04 cv mil_fitting_probability_models
04 cv mil_fitting_probability_models04 cv mil_fitting_probability_models
04 cv mil_fitting_probability_models
 
3DSensing.ppt
3DSensing.ppt3DSensing.ppt
3DSensing.ppt
 
19 cv mil_temporal_models
19 cv mil_temporal_models19 cv mil_temporal_models
19 cv mil_temporal_models
 
10 cv mil_graphical_models
10 cv mil_graphical_models10 cv mil_graphical_models
10 cv mil_graphical_models
 
06 cv mil_learning_and_inference
06 cv mil_learning_and_inference06 cv mil_learning_and_inference
06 cv mil_learning_and_inference
 
Realism in Computer Graphics
Realism in Computer GraphicsRealism in Computer Graphics
Realism in Computer Graphics
 
Single Camera Calibration Using Partially Visible Calibration Objects Based o...
Single Camera Calibration Using Partially Visible Calibration Objects Based o...Single Camera Calibration Using Partially Visible Calibration Objects Based o...
Single Camera Calibration Using Partially Visible Calibration Objects Based o...
 
nilesh-Mtech-presentation
nilesh-Mtech-presentationnilesh-Mtech-presentation
nilesh-Mtech-presentation
 

Mais de zukun

My lyn tutorial 2009
My lyn tutorial 2009My lyn tutorial 2009
My lyn tutorial 2009zukun
 
ETHZ CV2012: Tutorial openCV
ETHZ CV2012: Tutorial openCVETHZ CV2012: Tutorial openCV
ETHZ CV2012: Tutorial openCVzukun
 
ETHZ CV2012: Information
ETHZ CV2012: InformationETHZ CV2012: Information
ETHZ CV2012: Informationzukun
 
Siwei lyu: natural image statistics
Siwei lyu: natural image statisticsSiwei lyu: natural image statistics
Siwei lyu: natural image statisticszukun
 
Lecture9 camera calibration
Lecture9 camera calibrationLecture9 camera calibration
Lecture9 camera calibrationzukun
 
Brunelli 2008: template matching techniques in computer vision
Brunelli 2008: template matching techniques in computer visionBrunelli 2008: template matching techniques in computer vision
Brunelli 2008: template matching techniques in computer visionzukun
 
Modern features-part-4-evaluation
Modern features-part-4-evaluationModern features-part-4-evaluation
Modern features-part-4-evaluationzukun
 
Modern features-part-3-software
Modern features-part-3-softwareModern features-part-3-software
Modern features-part-3-softwarezukun
 
Modern features-part-2-descriptors
Modern features-part-2-descriptorsModern features-part-2-descriptors
Modern features-part-2-descriptorszukun
 
Modern features-part-1-detectors
Modern features-part-1-detectorsModern features-part-1-detectors
Modern features-part-1-detectorszukun
 
Modern features-part-0-intro
Modern features-part-0-introModern features-part-0-intro
Modern features-part-0-introzukun
 
Lecture 02 internet video search
Lecture 02 internet video searchLecture 02 internet video search
Lecture 02 internet video searchzukun
 
Lecture 01 internet video search
Lecture 01 internet video searchLecture 01 internet video search
Lecture 01 internet video searchzukun
 
Lecture 03 internet video search
Lecture 03 internet video searchLecture 03 internet video search
Lecture 03 internet video searchzukun
 
Icml2012 tutorial representation_learning
Icml2012 tutorial representation_learningIcml2012 tutorial representation_learning
Icml2012 tutorial representation_learningzukun
 
Advances in discrete energy minimisation for computer vision
Advances in discrete energy minimisation for computer visionAdvances in discrete energy minimisation for computer vision
Advances in discrete energy minimisation for computer visionzukun
 
Gephi tutorial: quick start
Gephi tutorial: quick startGephi tutorial: quick start
Gephi tutorial: quick startzukun
 
EM algorithm and its application in probabilistic latent semantic analysis
EM algorithm and its application in probabilistic latent semantic analysisEM algorithm and its application in probabilistic latent semantic analysis
EM algorithm and its application in probabilistic latent semantic analysiszukun
 
Object recognition with pictorial structures
Object recognition with pictorial structuresObject recognition with pictorial structures
Object recognition with pictorial structureszukun
 
Iccv2011 learning spatiotemporal graphs of human activities
Iccv2011 learning spatiotemporal graphs of human activities Iccv2011 learning spatiotemporal graphs of human activities
Iccv2011 learning spatiotemporal graphs of human activities zukun
 

Mais de zukun (20)

My lyn tutorial 2009
My lyn tutorial 2009My lyn tutorial 2009
My lyn tutorial 2009
 
ETHZ CV2012: Tutorial openCV
ETHZ CV2012: Tutorial openCVETHZ CV2012: Tutorial openCV
ETHZ CV2012: Tutorial openCV
 
ETHZ CV2012: Information
ETHZ CV2012: InformationETHZ CV2012: Information
ETHZ CV2012: Information
 
Siwei lyu: natural image statistics
Siwei lyu: natural image statisticsSiwei lyu: natural image statistics
Siwei lyu: natural image statistics
 
Lecture9 camera calibration
Lecture9 camera calibrationLecture9 camera calibration
Lecture9 camera calibration
 
Brunelli 2008: template matching techniques in computer vision
Brunelli 2008: template matching techniques in computer visionBrunelli 2008: template matching techniques in computer vision
Brunelli 2008: template matching techniques in computer vision
 
Modern features-part-4-evaluation
Modern features-part-4-evaluationModern features-part-4-evaluation
Modern features-part-4-evaluation
 
Modern features-part-3-software
Modern features-part-3-softwareModern features-part-3-software
Modern features-part-3-software
 
Modern features-part-2-descriptors
Modern features-part-2-descriptorsModern features-part-2-descriptors
Modern features-part-2-descriptors
 
Modern features-part-1-detectors
Modern features-part-1-detectorsModern features-part-1-detectors
Modern features-part-1-detectors
 
Modern features-part-0-intro
Modern features-part-0-introModern features-part-0-intro
Modern features-part-0-intro
 
Lecture 02 internet video search
Lecture 02 internet video searchLecture 02 internet video search
Lecture 02 internet video search
 
Lecture 01 internet video search
Lecture 01 internet video searchLecture 01 internet video search
Lecture 01 internet video search
 
Lecture 03 internet video search
Lecture 03 internet video searchLecture 03 internet video search
Lecture 03 internet video search
 
Icml2012 tutorial representation_learning
Icml2012 tutorial representation_learningIcml2012 tutorial representation_learning
Icml2012 tutorial representation_learning
 
Advances in discrete energy minimisation for computer vision
Advances in discrete energy minimisation for computer visionAdvances in discrete energy minimisation for computer vision
Advances in discrete energy minimisation for computer vision
 
Gephi tutorial: quick start
Gephi tutorial: quick startGephi tutorial: quick start
Gephi tutorial: quick start
 
EM algorithm and its application in probabilistic latent semantic analysis
EM algorithm and its application in probabilistic latent semantic analysisEM algorithm and its application in probabilistic latent semantic analysis
EM algorithm and its application in probabilistic latent semantic analysis
 
Object recognition with pictorial structures
Object recognition with pictorial structuresObject recognition with pictorial structures
Object recognition with pictorial structures
 
Iccv2011 learning spatiotemporal graphs of human activities
Iccv2011 learning spatiotemporal graphs of human activities Iccv2011 learning spatiotemporal graphs of human activities
Iccv2011 learning spatiotemporal graphs of human activities
 

Último

GD Birla and his contribution in management
GD Birla and his contribution in managementGD Birla and his contribution in management
GD Birla and his contribution in managementchhavia330
 
Monte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMMonte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMRavindra Nath Shukla
 
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130  Available With RoomVIP Kolkata Call Girl Howrah 👉 8250192130  Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Roomdivyansh0kumar0
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLSeo
 
Call Girls in Gomti Nagar - 7388211116 - With room Service
Call Girls in Gomti Nagar - 7388211116  - With room ServiceCall Girls in Gomti Nagar - 7388211116  - With room Service
Call Girls in Gomti Nagar - 7388211116 - With room Servicediscovermytutordmt
 
BEST ✨ Call Girls In Indirapuram Ghaziabad ✔️ 9871031762 ✔️ Escorts Service...
BEST ✨ Call Girls In  Indirapuram Ghaziabad  ✔️ 9871031762 ✔️ Escorts Service...BEST ✨ Call Girls In  Indirapuram Ghaziabad  ✔️ 9871031762 ✔️ Escorts Service...
BEST ✨ Call Girls In Indirapuram Ghaziabad ✔️ 9871031762 ✔️ Escorts Service...noida100girls
 
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Delhi Call girls
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...lizamodels9
 
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...Lviv Startup Club
 
RE Capital's Visionary Leadership under Newman Leech
RE Capital's Visionary Leadership under Newman LeechRE Capital's Visionary Leadership under Newman Leech
RE Capital's Visionary Leadership under Newman LeechNewman George Leech
 
M.C Lodges -- Guest House in Jhang.
M.C Lodges --  Guest House in Jhang.M.C Lodges --  Guest House in Jhang.
M.C Lodges -- Guest House in Jhang.Aaiza Hassan
 
Keppel Ltd. 1Q 2024 Business Update Presentation Slides
Keppel Ltd. 1Q 2024 Business Update  Presentation SlidesKeppel Ltd. 1Q 2024 Business Update  Presentation Slides
Keppel Ltd. 1Q 2024 Business Update Presentation SlidesKeppelCorporation
 
Monthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptxMonthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptxAndy Lambert
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Dipal Arora
 
Socio-economic-Impact-of-business-consumers-suppliers-and.pptx
Socio-economic-Impact-of-business-consumers-suppliers-and.pptxSocio-economic-Impact-of-business-consumers-suppliers-and.pptx
Socio-economic-Impact-of-business-consumers-suppliers-and.pptxtrishalcan8
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Roland Driesen
 
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒anilsa9823
 
Grateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfGrateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfPaul Menig
 

Último (20)

GD Birla and his contribution in management
GD Birla and his contribution in managementGD Birla and his contribution in management
GD Birla and his contribution in management
 
Monte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMMonte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSM
 
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130  Available With RoomVIP Kolkata Call Girl Howrah 👉 8250192130  Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Room
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
 
Nepali Escort Girl Kakori \ 9548273370 Indian Call Girls Service Lucknow ₹,9517
Nepali Escort Girl Kakori \ 9548273370 Indian Call Girls Service Lucknow ₹,9517Nepali Escort Girl Kakori \ 9548273370 Indian Call Girls Service Lucknow ₹,9517
Nepali Escort Girl Kakori \ 9548273370 Indian Call Girls Service Lucknow ₹,9517
 
Call Girls in Gomti Nagar - 7388211116 - With room Service
Call Girls in Gomti Nagar - 7388211116  - With room ServiceCall Girls in Gomti Nagar - 7388211116  - With room Service
Call Girls in Gomti Nagar - 7388211116 - With room Service
 
BEST ✨ Call Girls In Indirapuram Ghaziabad ✔️ 9871031762 ✔️ Escorts Service...
BEST ✨ Call Girls In  Indirapuram Ghaziabad  ✔️ 9871031762 ✔️ Escorts Service...BEST ✨ Call Girls In  Indirapuram Ghaziabad  ✔️ 9871031762 ✔️ Escorts Service...
BEST ✨ Call Girls In Indirapuram Ghaziabad ✔️ 9871031762 ✔️ Escorts Service...
 
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
 
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
 
RE Capital's Visionary Leadership under Newman Leech
RE Capital's Visionary Leadership under Newman LeechRE Capital's Visionary Leadership under Newman Leech
RE Capital's Visionary Leadership under Newman Leech
 
M.C Lodges -- Guest House in Jhang.
M.C Lodges --  Guest House in Jhang.M.C Lodges --  Guest House in Jhang.
M.C Lodges -- Guest House in Jhang.
 
Keppel Ltd. 1Q 2024 Business Update Presentation Slides
Keppel Ltd. 1Q 2024 Business Update  Presentation SlidesKeppel Ltd. 1Q 2024 Business Update  Presentation Slides
Keppel Ltd. 1Q 2024 Business Update Presentation Slides
 
Monthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptxMonthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptx
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
 
Best Practices for Implementing an External Recruiting Partnership
Best Practices for Implementing an External Recruiting PartnershipBest Practices for Implementing an External Recruiting Partnership
Best Practices for Implementing an External Recruiting Partnership
 
Socio-economic-Impact-of-business-consumers-suppliers-and.pptx
Socio-economic-Impact-of-business-consumers-suppliers-and.pptxSocio-economic-Impact-of-business-consumers-suppliers-and.pptx
Socio-economic-Impact-of-business-consumers-suppliers-and.pptx
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...
 
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
 
Grateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfGrateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdf
 

14 cv mil_the_pinhole_camera

  • 1. Computer vision: models, learning and inference Chapter 14 The pinhole camera Please send errata to s.prince@cs.ucl.ac.uk
  • 2. Structure • Pinhole camera model • Three geometric problems • Homogeneous coordinates • Solving the problems – Exterior orientation problem – Camera calibration – 3D reconstruction • Applications Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 2
  • 3. Motivation Sparse stereo reconstruction Compute the depth at a set of sparse matching points Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 3
  • 4. Pinhole camera Real camera image Instead model impossible but more is inverted convenient virtual image Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 4
  • 5. Pinhole camera terminology Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 5
  • 6. Normalized Camera By similar triangles: Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 6
  • 7. Focal length parameters Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 7
  • 8. Focal length parameters Can model both • the effect of the distance to the focal plane • the density of the receptors with a single focal length parameter In practice, the receptors may not be square: So use different focal length parameter for x and y dirns Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 8
  • 9. Offset parameters • Current model assumes that pixel (0,0) is where the principal ray strikes the image plane (i.e. the center) • Model offset to center Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 9
  • 10. Skew parameter • Finally, add skew parameter • Accounts for image plane being not exactly perpendicular to the principal ray Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 10
  • 11. Position and orientation of camera • Position w=(u,v,w)T of point in the world is generally not expressed in the frame of reference of the camera. • Transform using 3D transformation or Point in frame of Point in frame of reference of camera reference of world Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 11
  • 12. Complete pinhole camera model • Intrinsic parameters (stored as intrinsic matrix) • Extrinsic parameters Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 12
  • 13. Complete pinhole camera model For short: Add noise – uncertainty in localizing feature in image Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 13
  • 14. Radial distortion Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 14
  • 15. Structure • Pinhole camera model • Three geometric problems • Homogeneous coordinates • Solving the problems – Exterior orientation problem – Camera calibration – 3D reconstruction • Applications Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 15
  • 16. Problem 1: Learning extrinsic parameters (exterior orientation) Use maximum likelihood: Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 16
  • 17. Problem 2 – Learning intrinsic parameters (calibration) Use maximum likelihood: Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 17
  • 18. Calibration • Use 3D target with known 3D points Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 18
  • 19. Problem 3 – Inferring 3D points (triangulation / reconstruction) Use maximum likelihood: Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 19
  • 20. Solving the problems • None of these problems can be solved in closed form • Can apply non-linear optimization to find best solution but slow and prone to local minima • Solution – convert to a new representation (homogeoneous coordinates) where we can solve in closed form. • Caution! We are not solving the true problem – finding global minimum of wrong problem. But can use as starting point for non-linear optimization of true problem Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 20
  • 21. Structure • Pinhole camera model • Three geometric problems • Homogeneous coordinates • Solving the problems – Exterior orientation problem – Camera calibration – 3D reconstruction • Applications Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 21
  • 22. Homogeneous coordinates Convert 2D coordinate to 3D To convert back Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 22
  • 23. Geometric interpretation of homogeneous coordinates Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 23
  • 24. Pinhole camera in homogeneous coordinates Camera model: In homogeneous coordinates: (linear!) Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 24
  • 25. Pinhole camera in homogeneous coordinates Writing out these three equations Eliminate to retrieve original equations Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 25
  • 26. Adding in extrinsic parameters Or for short: Or even shorter: Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 26
  • 27. Structure • Pinhole camera model • Three geometric problems • Homogeneous coordinates • Solving the problems – Exterior orientation problem – Camera calibration – 3D reconstruction • Applications Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 27
  • 28. Problem 1: Learning extrinsic parameters (exterior orientation) Use maximum likelihood: Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 28
  • 29. Exterior orientation Start with camera equation in homogeneous coordinates Pre-multiply both sides by inverse of camera calibration matrix Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 29
  • 30. Exterior orientation Start with camera equation in homogeneous coordinates Pre-multiply both sides by inverse of camera calibration matrix Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 30
  • 31. Exterior orientation The third equation gives us an expression for Substitute back into first two lines Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 31
  • 32. Exterior orientation Linear equation – two equations per point – form system of equations Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 32
  • 33. Exterior orientation Minimum direction problem of the form , Find minimum of subject to . To solve, compute the SVD and then set to the last column of . Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 33
  • 34. Exterior orientation Now we extract the values of and from . Problem: the scale is arbitrary and the rows and columns of the rotation matrix may not be orthogonal. Solution: compute SVD and then choose . Use the ratio between the rotation matrix before and after to rescale Use these estimates for start of non-linear optimisation. Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 34
  • 35. Structure • Pinhole camera model • Three geometric problems • Homogeneous coordinates • Solving the problems – Exterior orientation problem – Camera calibration – 3D reconstruction • Applications Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 35
  • 36. Problem 2 – Learning intrinsic parameters (calibration) Use maximum likelihood: Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 36
  • 37. Calibration One approach (not very efficient) is to alternately • Optimize extrinsic parameters for fixed intrinsic • Optimize intrinsic parameters for fixed extrinsic Then use non-linear optimization. Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 37
  • 38. Intrinsic parameters Maximum likelihood approach This is a least squares problem. Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 38
  • 39. Intrinsic parameters The function is linear w.r.t. intrinsic parameters. Can be written in form Now solve least squares problem Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 39
  • 40. Structure • Pinhole camera model • Three geometric problems • Homogeneous coordinates • Solving the problems – Exterior orientation problem – Camera calibration – 3D reconstruction • Applications Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 40
  • 41. Problem 3 – Inferring 3D points (triangulation / reconstruction) Use maximum likelihood: Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 41
  • 42. Reconstruction Write jth pinhole camera in homogeneous coordinates: Pre-multiply with inverse of intrinsic matrix Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 42
  • 43. Reconstruction Last equations gives Substitute back into first two equations Re-arranging get two linear equations for [u,v,w] Solve using >1 cameras and then use non-linear optimization Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 43
  • 44. Structure • Pinhole camera model • Three geometric problems • Homogeneous coordinates • Solving the problems – Exterior orientation problem – Camera calibration – 3D reconstruction • Applications Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 44
  • 45. Depth from structured light Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 45
  • 46. Depth from structured light Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 46
  • 47. Depth from structured light Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 47
  • 48. Shape from silhouette Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 48
  • 49. Shape from silhouette Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 49
  • 50. Shape from silhouette Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 50
  • 51. Conclusion • Pinhole camera model is a non-linear function who takes points in 3D world and finds where they map to in image • Parameterized by intrinsic and extrinsic matrices • Difficult to estimate intrinsic/extrinsic/depth because non-linear • Use homogeneous coordinates where we can get closed from solutions (initial solns only) Computer vision: models, learning and inference. ©2011 Simon J.D. Prince 51