Binocular Vision Algorithm (three) two-step calibration method

Source: Internet
Author: User

In the direct linear calibration method, the nonlinear distortion of the camera lens is not taken into account, and the problem is solved well in the two-step calibration method proposed by Tsai. The relevant theory is deduced as follows:

1. Camera Distortion Model
As mentioned in the previous article, it should be better understood.




We can see that in the figure above you can divide the following coordinate systems:

① Image Machine coordinate system OC

② image pixel coordinate system Oi

③ World coordinate system ow

④ actual image physical coordinate system OD

⑤ Ideal Image physical coordinate system OU



2. Abnormal variables

At this time, the teratogenic variable can be divided into the x direction and the y direction, this kind of distortion we only consider the radial distortion, the other distortions right to ignore, the radial distortion itself is a certain linear relationship, the following distortion model of the explanation will also say:



dx:x Directional deformity variable

Dy:y Directional deformity variable




3. The relationship between physical coordinate system and pixel coordinate system (basic relationship)



Pixel distance in dx:x direction (length of each pixel in x direction)

The pixel distance in the dy:y direction (length of each pixel in the y direction)



4, the basic formula (on the basis of linear calibration)





5, the overall expression of distortion


Radial Distortion Dr

Centrifugal Distortion DT

Thin Prism Distortion DP


6, three kinds of distortion mathematical model

Radial distortion and its regularity (radial constraint):



Centrifugal Distortion:



Thin Prism Distortion:


Total Distortion:




Distortion factor:

Radial Distortion: K1

Centrifugal distortion: P1, p2

Thin Ridge Diameter distortion: S1, s2



7. Model Parameters

Internal parameters:

Equate: Fu, FV

Image Center (main point) coordinates: U0,V0

Distortion factor: K1, p1, p2, s1, s2

External parameters:

Translation vector: t

Rotation matrix: R

Typical calibration method

Establishing the constraint equation by using the image machine distortion model

Determining the optimization objective function

Solving with nonlinear optimization method

Disadvantages:

Optimizer computationally complex, slow

The result of the calibration depends on the initial value



8, two-step calibration method formally started

Presented by Tsai in 1987

The first step: to find all external parameters except TZ

Using Radial arrangement constraints (RAC)

Linear solution

Step two: Ask for the remaining parameters

Nonlinear optimization


9, two-step premise

Assume:

U0,v0 known

Only second-order radial distortion is considered

The main point is both image Center and radial Distortion center.

10, Formula derivation




Get the following formula:



11. Radial Constraint Formula





The above has been calculated:



Comprehensive available:


Take away:



12, the first step 1, to find the middle variable

In order to facilitate the expression and calculation, the variables are replaced by parameters:


2. Seeking |ty|





4. Request TX



5, Seek R:


6, determine the Ty symbol:



Set ty>0, find other parameters

Calculated from a feature point away from the center of the image:

Assume that the condition is correct:

XCI and ui-u0 the same number

Yci and vi-v0 the same number

Remaining parameters: FU,FV, TZ, K1

Constraint equation:

13, the second step

Remaining parameters: FU,FV, TZ, K1







Known:



Please:

Method: Nonlinear optimization

To determine the initial value:

K1=0, Dv=1

Ignoring nonlinear distortions, solving FV and TZ




14, the U0,v0 calibration

Direct Optical method

Variable focal length method

Radial Arrangement Constraint method

Direct Optical Method

Using a laser beam to illuminate a camera lens

Put a perforated piece of paper on the Light Road

To coincide the incident light of the laser with the reflected light

Using a camera to ingest images containing laser spots

The center coordinate of the light spot is the centroid coordinate.

Difficult to adjust but high precision

variable focal length method

Condition: The center of Light is coincident with the zoom centre of the lens

Realize:

Multiple feature points are imaged at different distances

A linear equation for each feature point



Radial arrangement Constraint method




Using COPLANAR calibration plate, take zwi=0

Nonlinear optimization Solution

15, a small summary:

Common features of the preceding calibration methods:

Two-dimensional image coordinates and three-dimensional spatial coordinates of known feature points

Calibration reference Required

Collectively: Traditional calibration methods

Advantages: Suitable for any camera model, high calibration accuracy

Insufficient: Calibration reference is required, some applications are difficult to achieve



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.