# US 2022/0046220 A1 · Multispectral stereo camera self-calibration algorithm based on track feature registration

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0046220 A1
- Document ID: US20220046220A1
- Status: Published application
- Kind: A1
- Application number: 17/283,772
- Filed: 2020-03-05
- Published: 2022-02-10
- Earliest claimed: 2019-11-22
- Assignees: Dalian University of Technology
- Applicants: Dalian University of Technology
- Inventors: Wei ZHONG; Haojie LI; Boqian LIU; Zhihui WANG; Risheng LIU; Zhongxuan LUO; Xin FAN
- Web page: https://patentgrep.com/patent/US20220046220A1

## CPC

- G06T 7/246: using feature-based methods, e.g. the tracking of corners or segments
- H04N 13/246: Calibration of cameras
- G06F 18/22: Matching criteria, e.g. proximity measures
- G06T 5/80: Geometric correction
- G06T 7/20: Analysis of motion (motion estimation for coding, decoding, compressing or decompressing digital video signals H04N19/43, H04N19/51)
- G06T 7/33: using feature-based methods
- G06T 7/85: {Stereo camera calibration}
- G06V 10/143: Sensing or illuminating at different wavelengths
- G06V 10/243: {by compensating for image skew or non-uniform image deformations}
- G06V 10/74: Image or video pattern matching; Proximity measures in feature spaces
- H04N 13/25: using two or more image sensors with different characteristics other than in their location or field of view, e.g. having different resolutions or colour pickup characteristics; using image signals from one sensor to control the characteristics of another sensor
- H04N 13/254: in combination with electromagnetic radiation sources for illuminating objects
- G06T 2207/10048: Infrared image
- H04N 2013/0085: {Motion estimation from stereoscopic image signals}
- Y02A 90/10: Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- Y02A: TECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE

## Abstract

The present invention discloses a multispectral stereo camera self-calibration algorithm based on track feature registration, and belongs to the field of image processing and computer vision. Optimal matching points are obtained by extracting and matching motion tracks of objects, and external parameters are corrected accordingly. Compared with an ordinary method, the present invention uses the tracks of moving objects as the features required for self-calibration. The advantage of using the tracks is good cross-modal robustness. In addition, direct matching of the tracks also saves the steps of extraction and matching the feature points, thereby achieving the advantages of simple operation and accurate results.

## Claims

### Claim 1

A multispectral stereo camera self-calibration algorithm based on track feature registration, comprising the following steps:
1) using an infrared camera and a visible light camera to shoot a group of continuous frames with moving objects at the same time;
2) original image correction: conducting de-distortion and binocular correction on an original image according to internal parameters and original external parameters of the infrared camera and the visible light camera;
3) calculating tracks of the moving objects;
4) obtaining an optimal track corresponding point and obtaining a transformation matrix from an infrared image to a visible light image accordingly;
5) further optimizing the matching results of the track corresponding points: selecting the number of registration point pairs with lower error as candidate feature point pairs;
6) judging a feature point coverage area: dividing the image into m*n grids; if the feature points cover all the grids, executing a next step; otherwise continuing to shoot the image and repeating step 1) to step 5);
7) correcting the calibration result: using image coordinates of all the feature points to calculate the positional relationship between the two cameras after correction; and then superimposing with the original external parameters.

### Claim 2 (depends on 1)

The multispectral stereo camera self-calibration algorithm based on track feature registration according to claim 1, wherein the original image correction in the step 2) specifically comprises the following steps:
2-1) calculating the coordinates in a normal coordinate system corresponding to the pixel points of the image, wherein a pixel coordinate system takes the upper left corner of the image as an origin, and x-axis and y-axis of the pixel coordinate system are parallel to x-axis and y-axis of an image coordinate system, respectively; the unit of the pixel coordinate system is the pixel; taking the optical center of the camera as the origin of the image coordinate system and scaling the distance from the optical center to an image plane to 1; the relationship between pixel coordinates and normal coordinates is as follows:
u
=
KX
⁢
[
u
v
1
]
=
[
f
x
0
c
x
0
f
y
c
y
0
0
1
]
⁡
[
X
Y
1
]
wherein
u
=
[
u
v
1
]
indicates the pixel coordinate of the image;
K
=
[
f
x
0
c
x
0
f
y
c
y
0
0
1
]
indicates an internal parameter matrix of the camera; fx and fy respectively indicate the focal distances of the image in x direction and y direction; the unit is the pixel; (cx, cy) indicates the principal point position of the camera;
X
=
[
X
Y
1
]
is a coordinate in the normal coordinate system; the normal coordinate system corresponding to the pixel points is calculated through the known pixel coordinate system of the image and the internal parameters of the camera, i.e.,
X=K−1u
2-2) removing image distortion: the radial distortion of the image is a position deviation of the image pixel points with the distortion center as the center point along the radial direction, thereby causing the distortion of the picture formed in the image; the radial distortion is described as follows:
xd=x(1+k1r2+k2r4+k3r6)
yd=y(1+k1r2+k2r4+k3r6)
wherein r2=x2+y2; k1, k2 and k3 are radial distortion parameters;
the tangential distortion of the image is generated by the defect in the camera manufacturing that makes the lens not parallel to the image plane, and is quantitatively described as:
xd=x+(2p1xy+p2(r2+2x2))
yd=y+(p1(r2+2y2)+2p2xy)
wherein p1 and p2 are tangential distortion coefficients;
the coordinate relationship before and after distortion is as follows:
xd=x(1+k1r2+k2r4+k3r6)+(2p1xy+p2(r2+2x2))
yd=y(1+k1r2+k2r4+k3r6)+(p1(r2+2y2)+2p2xy)
wherein (x,y) is a normal coordinate in an ideal state, and (xd,yd) is an actual normal coordinate with distortion;
2-3) reversing the two images according to the original rotation relationship between the two cameras: an original rotation matrix R and a translation vector t between the two cameras are known:
Xr=RXl+t
wherein Xl indicates the normal coordinate of the infrared camera, and Xr indicates the normal coordinate of the visible light camera; the infrared image is rotated to positive direction of R by half an angle, and the visible light image is rotated to opposite direction of R by half an angle;
2-4) restoring the de-distorted and rotated image to the pixel coordinate system according to the formula u=KX.

### Claim 3 (depends on 1)

The multispectral stereo camera self-calibration algorithm based on track feature registration according to claim 1, wherein the step 4) of obtaining the optimal track corresponding point comprises the following steps:
4-1) randomly selecting a pair of tracks, and repeating the following steps until the error is small enough:
a. randomly selecting 4 pairs of points from the selected track pair;
b. calculating a transformation matrix H from infrared image points to visible light image points;
c. adding point pairs with small enough error obtained by using the transformation matrix H;
d. recalculating H;
e. calculating and assessing the error;
4-2) adding a track pair with a small enough error obtained by using the transformation matrix H;
4-3) recalculating H;
4-4) calculating and assessing the error, and if the error is not small enough, repeating step 4-1).

### Claim 4 (depends on 1)

The multispectral stereo camera self-calibration algorithm based on track feature registration according to claim 1, wherein the step 7) of correcting the calibration result comprises the following steps:
7-1) further screening the point pairs by using random sample consensus;
7-2) solving a basic matrix F and an essential matrix E: a relationship between the pixel points ul and ur corresponding to infrared light and visible light and the basic matrix F is:
urTFul=0
substituting the coordinates of the corresponding points into the above formula to construct a homogeneous linear equation system to solve F;
a relationship between the basic matrix and the essential matrix is:
E=KrTFKl
wherein Kl and Kr are respectively the internal parameter matrices of the infrared camera and the visible light camera;
7-3) decomposing a relationship between rotation and translation from the essential matrix: the relationship between the essential matrix E and rotation R and translation t is as follows:
E=[t]×R
wherein [t]× indicates a cross product matrix of t;
conducting singular value decomposition on E to obtain:
E
=
U
⁢
∑
V
T
=
U
⁡
[
1
0
0
0
1
0
0
0
0
]
⁢
V
T
defining two matrices
Z
=
[
0
1
0
-
1
0
0
0
0
0
]
⁢
⁢
and
⁢
⁢
W
=
[
0
-
1
0
1
0
0
0
0
1
]
,
ZW
=
∑
thus, writing E in the following two forms
(1) E=UZUTUWVT
setting [t]×=UZUT, R=UWVT
(2) E=−UZUTUWTVT
setting [t]×=−UZUT, R=UWTVT
7-4) superimposing the decomposed relationship between rotation and translation into the original positional relationship between the infrared camera and the visible light camera;
recording the rotation matrix before de-distortion as R0 and the translation vector as t0=(tx, ty, tz)T; recording the rotation matrix calculated in the previous step as R and the translation vector as t=(tx′, ty′, tz′)T; and new Rnew and tnew are as follows:
R
n
⁢
e
⁢
w
=
R
0
1
/
2
⁢
RR
0
1
/
2
t
n
⁢
e
⁢
w
=
R
0
1
/
2
⁢
t
x
⁡
[
1
t
y
′
t
x
′
t
z
′
t
x
′
]
;
in addition, multiplying tnew by a coefficient so that the component of tnew in x direction is txnew=tx.
