Camera Calibration

26
Camera Calibration March 6, 2007

description

Camera Calibration. March 6, 2007. Camera Calibaration. Finding camera’s internal parameters that effect the imaging process. Position of the image center on the image (usually not just (width/2, height/2). Focal length Scaling factors for row and column pixels. Lens distortion. - PowerPoint PPT Presentation

Transcript of Camera Calibration

Page 1: Camera Calibration

Camera Calibration

March 6, 2007

Page 2: Camera Calibration

Camera Calibaration

• Finding camera’s internal parameters that effect the imaging process.1. Position of the image center on the image (usually not just

(width/2, height/2).

2. Focal length

3. Scaling factors for row and column pixels.

4. Lens distortion.

Page 3: Camera Calibration

Row and Column Pixels Scaling

1. Camera pixels are not necessarily squares

2. Analog output and digitalizing.

Page 4: Camera Calibration

Camera Calibaration

Each camera can be considered as a function: a function that takes each 3D point to a point in 2D image plane.

(x, y, z) ------ > (X, Y)

Camera calibration is about finding (or approximating) this function.

Difficulty of the problem depends on the assumed form of this function, e.g., perspective model, radial distortion of the lense.

Page 5: Camera Calibration

Camera Calibaration

Good camera calibration is needed when we want to reconstruct the geometry from images• Robotics, human-robot interaction

• Robotics, robot navigation.

• Location of objects in 3D

Page 6: Camera Calibration

Example: Locating feature points in 3D

Suppose the camera is calibrated and the 3D positions of the feature points are known for the first frame

Page 7: Camera Calibration

Example: Locating feature points in 3D

Page 8: Camera Calibration

Camera Calibration

• Literature on this subject is tremendous. Hundreds of published papers.

• Linear algebraic methods present here

• Can be used as initialization for iterative non-linear method.

• Vanishing points and projective geometry

Page 9: Camera Calibration

Calibration Procedure

Calibration: finding the function (defined by the camera) that maps 3D points to 2D image plane.

First thing required is to obtain pairs of corresponding 3D and 2D points. (X1, Y1, Z1) (x1, y1), (X2, Y2, Z2) (x2, y2), ….

Page 10: Camera Calibration

Calibration Procedure

Calibration Target: Two perpendicular planes with chessboard pattern.

1. We know the 3D positions of the corners with respect to a coordinates system defined on the target.

2. Place a camera in front of the target and we can locate the corresponding corners on the image. This gives us the correspondences.

3. Recover the equation that describes imaging projection and camera’s internal parameters. At the same time, also recover the relative orientation between the camera and the target (pose).

Page 11: Camera Calibration

Finding Corners

1. Corner detector

2. Canny Edge detector plus fitting lines to the detected edges. Find the intersections of the lines.

3. Manual input.

Matching 3D and 2D points (we know the number of corners) by counting. This gives corresponding pairs

( world point) < --- > (image point )

(X1, Y1, Z1) (x1, y1),

Page 12: Camera Calibration

World Coordinates and Camera Coordinates

Page 13: Camera Calibration

Rotation matrix

Camera Frame to World Frame

Page 14: Camera Calibration

Let C = - Rt T

Homogeneous Coordinates

Page 15: Camera Calibration

Perspective Projection

Use Homogeneous coordinates, the perspective projection becomes linear.

Page 16: Camera Calibration

Pixel Coordinates

Page 17: Camera Calibration

Calibration Matrix

Page 18: Camera Calibration

Putting Everything Together

Page 19: Camera Calibration

Calibration

1. Estimate matrix P using scene points and their images

2. Estimate the intrinsic and extrinsic parameters

Left 3x3 submatrix is the product of an upper triangular matrix and an orthogonal matrix.

Page 20: Camera Calibration

Computing the Matrix P

Page 21: Camera Calibration

Computing the Matrix P

Page 22: Camera Calibration

Computing the Matrix P

Page 23: Camera Calibration

Computing the Matrix P

Page 24: Camera Calibration

Computing the translation component

Page 25: Camera Calibration

Computing the Matrix P

We know P and we can get the translation C.

Then we get M = KR. Find the QR decomposition of M to get K and R !!

Further Improvement

Page 26: Camera Calibration

Vanishing Points and Image Center

Parallel lines in 3D has a vanishing point on the

2D image plane. Point of intersections of these lines.

Take three bundles of mutually perpendicular lines in 3D and compute the three vanishing points. The image center is the orthocenter of the triangle formed by the 3 vanishing points!!

Homework 3