CN106980601B - High-precision basic matrix solving method based on trinocular polar line constraint - Google Patents

High-precision basic matrix solving method based on trinocular polar line constraint Download PDF

Info

Publication number
CN106980601B
CN106980601B CN201710145431.0A CN201710145431A CN106980601B CN 106980601 B CN106980601 B CN 106980601B CN 201710145431 A CN201710145431 A CN 201710145431A CN 106980601 B CN106980601 B CN 106980601B
Authority
CN
China
Prior art keywords
point
basic matrix
solving
polar
matrix
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710145431.0A
Other languages
Chinese (zh)
Other versions
CN106980601A (en
Inventor
贾振元
刘巍
李士杰
杨景豪
徐鹏涛
马建伟
王福吉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dalian University of Technology
Original Assignee
Dalian University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dalian University of Technology filed Critical Dalian University of Technology
Priority to CN201710145431.0A priority Critical patent/CN106980601B/en
Publication of CN106980601A publication Critical patent/CN106980601A/en
Application granted granted Critical
Publication of CN106980601B publication Critical patent/CN106980601B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/16Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization

Abstract

The invention discloses a high-precision solving method of a basic matrix based on trinocular polar line constraint, belongs to the field of computer vision detection, and relates to a high-precision optimization solving method of the basic matrix by utilizing trinocular polar line constraint. The method utilizes three cameras of a common view field in space to shoot the same scene, and utilizes the coordinate deviation of the intersection point of polar lines in a third image corresponding to the characteristic points of the first two images and the actual characteristic point to carry out iterative minimization, thereby optimizing a basic matrix between the two images. And (3) firstly solving an initial basic matrix, then solving the intersection point of the two polar lines in the third image, and optimizing the basic matrix by using the minimum coordinate difference value between the intersection point coordinates of the two polar lines and the mark point of the third image as an optimization target. The method realizes the high-precision acquisition method of the basic matrix between the camera images, effectively reduces the problems in the subsequent camera calibration and feature point matching processes, and is beneficial to improving the precision of vision measurement.

Description

High-precision basic matrix solving method based on trinocular polar line constraint
Technical Field
The invention belongs to the field of computer vision detection, and relates to a method for performing high-precision optimization solving on a basic matrix by utilizing trinocular polar line constraint.
Background
The basis matrix describes algebraically the geometric relationship between two-dimensional images of the same three-dimensional scene taken at two different viewpoints. The basis matrix F includes not only the rotation and translation information between the two cameras in the physical space, but also the intrinsic parameter information between the two cameras. Therefore, correct solution of the basic matrix has a crucial influence on the subsequent calibration process of the camera and elimination of the mismatching features.
The current estimation algorithms of the basis matrix can be generally divided into three categories: linear methods, non-linear iterative methods and robust methods. The most common method is that the 8-point algorithm calculates the basis matrix linearly using a given plurality of (N ≧ 8) points, but the objective function of the 8-point algorithm in the minimization process has no physical significance, and when the image data is noisy, i.e., the corresponding points are inaccurate, the solution accuracy of the basis matrix F given by the 8-point algorithm is low. Chenzezhi et al, "a linear algorithm of a basis matrix for high-precision estimation", software science, 2002,13 (4): 840-845, considering that each matching point has different influence on solving the basis matrix, and introducing the residual difference and epipolar distance function as the weight factor to make the influence of the high-precision matching point on solving the basis matrix larger than that of the low-precision matching point. The method has the advantages of high solving speed and high robustness, but the actual pixel coordinate values of the matching points are changed in the weighting process, so that the precision is influenced.
Disclosure of Invention
The invention aims to solve the technical problem that under the conditions of inaccurate feature point extraction and imaging noise, the solution of a basic matrix is not accurate enough due to a common 8-point method, and discloses a high-precision solution method of the basic matrix based on trinocular polar line constraint.
The technical scheme adopted by the invention is a high-precision basic matrix solving method based on trinocular polar line constraint, the method adopts three cameras of a common view field in a space to shoot the same scene, and utilizes other characteristic mark points except 8 characteristic points used for solving an initial matrix in the space, so that the solving error of the basic matrix is reduced; through the introduced epipolar constraint, the coordinate deviation of the intersection point of the epipolar lines in the third image corresponding to the feature points of the first two images and the actual feature point is iteratively minimized, and the solved initial value of the basic matrix is optimized, so that the basic matrix between the two images is optimized; the method comprises the following specific steps:
step 1: initial basis matrix extraction
The basic matrix F describes the association relationship of points and lines between two images in an algebraic form. Setting the normalized coordinates of pixel points of the same characteristic mark point in the space in the shot left image, the shot middle image and the shot right image as pl=(xl,yl,1)T、pm=(xm,ym,1)T、pr=(xr,yr,1)TThe basis matrix F satisfies the following equation:
pl TFpr=0 (1)
let F be (F)ij) Then the constraint equations for the fundamental matrix can be written in the form:
xrxlf11+xrylf12+xrf13+yrxlf21+yrylf22+yrf23+xlf31+ylf32+f33=0 (2)
remember f ═ f11,f12,f13,f21,f22,f23,f31,f32,f33)TAnd it is a 9-dimensional column vector consisting of three row vectors of F, then the above equation can be written in the form of vector inner product:
(xrxl,xryl,xr,yrxl,yryl,yr,xl,yl)f=0 (3)
for the conventional 8-point method, given 8 corresponding points, a system of linear equations can be obtained:
Figure BDA0001243099610000031
in practical cases, the basis matrix cannot be determined directly by solving the linear system of equations directly, but the system of equations is solved under the constraint condition | | | f | | | | 1
Figure BDA0001243099610000032
Make singular value decomposition of A be A ═ UDVTThe solution to problem (5) is then the last column vector of V, i.e., f ═ V9With this, the basis matrix F can be constructed.
Step 2: finding the intersection of two polar lines in the third image
The projected point P on the image plane of the left camera is known from the shooting geometrylCorresponding to the projected point P on the right camerarNecessarily in the polar line l of the right imagerUpper and right polar line lrThe equation satisfies:
lr=F1pl(6)
similarly, the projection point P on the image plane of the middle cameramCorresponding to the projected point P on the right camerarNecessarily in the polar line l of the right imager' Upper, right polar line lr' the equation satisfies:
lr'=F2pm(7)
two polar lines intersect at a point pr', setting the pixel coordinate p of the intersection pointr'=(u,v,1)TI.e. by
lr-lr'|(u,v)=0 (8)
And step 3: optimizing a basis matrix
Theoretically the intersection point p of two polar linesr' should be associated with the characteristic mark point prCoincidence is realized, but due to a series of problems of inaccurate coordinate extraction of characteristic points, imaging noise and the likeThe solution of the fundamental matrix F is biased, which in turn leads to pr' and prCoordinate value deviation exists between the two points, and the basic matrix needs to be optimized at the moment.
All the feature points except the feature points used by the 8-point method are selected, and the corresponding polar line intersection point coordinates (u) on the right image are solvedi,vi) Coordinates (u) of intersection of two polar linesi,vi) Correction to the right image is the actual feature point coordinates (x)ir,yir) (ii) a An optimization model is established by iteratively minimizing the deviation between the coordinates of the intersection point of the two polar lines and the coordinates of the actual characteristic points, and the target optimization function is as follows:
Figure BDA0001243099610000041
solving the objective function by adopting an LM (linear regression) nonlinear optimization algorithm, wherein when the deviation of the pixel point is minimum, the corresponding parameter is the optimized basic matrix F1'、F2'。
The method has the advantages that the remaining characteristic mark points except 8 characteristic points used for solving the initial matrix in the space are effectively utilized, the solving error of the basic matrix is reduced, and the basic matrix can better meet the photographic geometric significance. The method realizes the high-precision acquisition method of the basic matrix between the camera images, effectively reduces the problems in the subsequent camera calibration and feature point matching processes, and is beneficial to improving the precision of vision measurement.
Drawings
Fig. 1 is a schematic view of a trinocular vision measuring system. In the figure, 1-is a left camera, 2-is a middle camera, 3-is a right camera, and 4-is a checkerboard calibration board.
FIG. 2 is a schematic diagram of a basic matrix for triathlon epipolar constraint optimization. 6. 7, 8-the left, middle and right images are respectively the images shot by the left, middle and right cameras, 4-a chessboard pattern calibration plate, 5-any feature point on the calibration plate, p1,p2,p3Left, middle and right projection points of the feature point 5 in the three images, l13Is a left projection point p1By the basis matrix F13Mapping to epipolar lines, l, in the right image 323Is a middle projection point p2By the basis matrix F23To epipolar lines in the right image 3; p is a radical ofcIs polar line l13And l23The intersection point of (a).
Detailed Description
The following detailed description of the embodiments of the invention refers to the accompanying drawings.
Fig. 1 is a schematic view of a three-eye vision measuring system, and the three cameras used in the present invention are of the types: SVcam-svs11002 with a resolution of 4008 × 2672; three cameras shoot the checkerboard calibration plate 4 in a common view field, the number of the checkerboard feature angular points used in the embodiment is 31, and a graphic workstation is used for processing 31 marker points shot by the three cameras. The optimization measurement method based on the trinocular polar line basic matrix comprises the following specific steps:
step 1: initial basis matrix extraction
Solving the basis matrix F between the left, middle and right images 6, 7, 8 in FIG. 2, respectively13、F23. And selecting any 8 characteristic points on the checkerboard, and finding out corresponding point pairs of the characteristic points in the three images. The following system of equations is solved using the pixel coordinates of the 8 sets of point pairs, and equations (1) through (5):
Figure BDA0001243099610000061
the singular value of A is then decomposed into A ═ UDVTThe solution of equation (5) is then the last column vector of V, i.e., f ═ V9With this, a basis matrix F between the left, middle and right images can be constructed13、F23
Step 2: finding the intersection of two polar lines in the third image
The rest 23 characteristic point pairs except the characteristic point used by the 8-point method are passed through the initial value F of the basic matrix13、F23Solving epipolar lines of 23 feature points in the left and middle images in the right image by using equations (6) to (8), wherein the epipolar line equation is as follows:
Figure BDA0001243099610000062
obtaining pixel coordinates of 23 intersections of epipolar lines, each pc1,pc2,…pc23
And step 3: optimizing a basis matrix
Due to the fact that the solving precision of the initial basis matrix F is low, the polar line intersection point coordinate p is causedcWith the actual right projection point p in the right image3And the initial values of the basic matrixes need to be optimized at the moment. Intersection point pcCoordinate (x)ci,yci) With the actual right projected point p3Coordinates (u)3i,v3i) The pixel deviation in the x direction and the y direction exists, an optimization model is established by iteratively minimizing the deviation between the intersection point coordinates of the two polar lines and the actual characteristic point coordinates, and the target optimization function is as follows:
Figure BDA0001243099610000063
solving the objective function by adopting an LM (linear regression) nonlinear optimization algorithm, wherein when the deviation of the pixel point is minimum, the corresponding parameter is the optimized basic matrix F13'、F23'。
Using the basis matrix F obtained after optimization13'、F23The intersection point of two polar lines on a right image is obtained by solving any 31 feature points P on the checkerboard, wherein the coordinate of the intersection point and the coordinate of an actual feature point are less than 5 pixel coordinates in the X direction and less than 1 pixel coordinate in the Y direction, and the method has a good application effect.
According to the method, the traditional 8-point basis matrix solving algorithm is improved, and the basis matrix is optimized by using the rest characteristic points, so that the problems that the solving precision of the initial basis matrix F is low and the objective function in the minimization process has no physical significance are solved, and the solving precision of the basis matrix is improved.

Claims (1)

1. The high-precision basic matrix solving method based on the trinocular polar line constraint is characterized in that three cameras of a common view field in a space are used for shooting the same scene, and other characteristic mark points except 8 characteristic points used for solving an initial matrix in the space are utilized, so that the solving error of the basic matrix is reduced; through the introduced epipolar constraint, the coordinate deviation of the intersection point of the epipolar lines in the third image corresponding to the feature points of the first two images and the actual feature point is iteratively minimized, and the solved initial value of the basic matrix is optimized, so that the basic matrix between the two images is optimized; the method comprises the following specific steps:
step 1: initial basis matrix extraction
The basic matrix F describes the incidence relation of points and lines between two images in an algebraic form; setting the normalized coordinates of pixel points of the same characteristic mark point in the space in the three shot left, middle and right images as pl=(xl,yl,1)T、pt=(xt,yt,1)T、pr=(xr,yr,1)TThe basis matrix F satisfies the following equation:
pl TFpr=0 (1)
let F be (F)ij) Then the constraint equation for the fundamental matrix is written in the form:
xrxlf11+xrylf12+xrf13+yrxlf21+yrylf22+yrf23+xlf31+ylf32+f33=0 (2)
remember f ═ f11,f12,f13,f21,f22,f23,f31,f32,f33)TAnd it is a 9-dimensional column vector consisting of three row vectors of F, then the above equation is written in the form of vector inner product:
(xrxl,xryl,xr,yrxl,yryl,yr,xl,yl,1)f=0 (3)
for the conventional 8-point method, given 8 corresponding points, a linear system of equations is obtained:
Figure FDA0002263873500000021
in practical cases, the basis matrix cannot be determined by directly solving the linear system of equations, but the system of equations is solved under the constraint of 1:
Figure FDA0002263873500000022
make singular value decomposition of A be A ═ UDVTThe solution of equation (5) is then the last column vector of V, i.e., f ═ g9Thereby constructing a basis matrix F;
step 2: finding the intersection of two polar lines in the third image
The projected point P on the left camera image plane can be known from the shooting geometrylCorresponding to the projected point P on the right camerarNecessarily located at the polar line l of the left camera corresponding to the right imagerUpper, left camera corresponds to polar line l of right imagerThe equation satisfies:
lr=F1Pl(6)
similarly, the projection point P on the image plane of the cameratCorresponding to the projected point P on the right camerarNecessarily located in the polar line l of the corresponding right image of the camerar' Upper, middle camera corresponds to polar line l of right imager' the equation satisfies:
lr'=F2Pt(7)
two polar lines intersect at a point pr', setting the pixel coordinate p of the intersection pointr'=(u,v,1)TI.e. by
lr-lr'|(u,v)=0 (8)
And step 3: optimizing a basis matrix
Selecting a method other than the 8-point methodAll the feature points except the obtained feature points are solved for corresponding polar line intersection point coordinates (u) on a right imagei,vi) Coordinates (u) of intersection of two polar linesi,vi) Corrected to the coordinates (x) of the actual feature points of the right imageir,yir) (ii) a An optimization model is established by iteratively minimizing the deviation between the coordinates of the intersection point of the two polar lines and the coordinates of the actual characteristic points, and the target optimization function is as follows:
Figure FDA0002263873500000031
solving the objective function by adopting an LM (linear regression) nonlinear optimization algorithm, wherein when the deviation of the pixel point is minimum, the corresponding parameter is the optimized basic matrix F13'、F23'。
CN201710145431.0A 2017-03-13 2017-03-13 High-precision basic matrix solving method based on trinocular polar line constraint Active CN106980601B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710145431.0A CN106980601B (en) 2017-03-13 2017-03-13 High-precision basic matrix solving method based on trinocular polar line constraint

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710145431.0A CN106980601B (en) 2017-03-13 2017-03-13 High-precision basic matrix solving method based on trinocular polar line constraint

Publications (2)

Publication Number Publication Date
CN106980601A CN106980601A (en) 2017-07-25
CN106980601B true CN106980601B (en) 2020-04-28

Family

ID=59338093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710145431.0A Active CN106980601B (en) 2017-03-13 2017-03-13 High-precision basic matrix solving method based on trinocular polar line constraint

Country Status (1)

Country Link
CN (1) CN106980601B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110223355B (en) * 2019-05-15 2021-01-05 大连理工大学 Feature mark point matching method based on dual epipolar constraint
CN112734854A (en) * 2019-10-28 2021-04-30 天津大学青岛海洋技术研究院 Camera self-calibration method based on trinocular polar line constraint

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104333675A (en) * 2014-10-20 2015-02-04 长春理工大学 Panoramic electronic image stabilization method based on spherical projection

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012044216A1 (en) * 2010-10-01 2012-04-05 Saab Ab Method and apparatus for solving position and orientation from correlated point features in images
WO2012044217A1 (en) * 2010-10-01 2012-04-05 Saab Ab Method and apparatus for optimization and incremental improvement of a fundamental matrix

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104333675A (en) * 2014-10-20 2015-02-04 长春理工大学 Panoramic electronic image stabilization method based on spherical projection

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Simultaneous Projector-Camera Self-Calibration for Three-Dimensional Reconstruction and Projection Mapping;Francis Li et al.;《IEEE Transactions on Computational Imaging》;20170116;第3卷(第1期);第74-83页 *
一种基于Kruppa方程的分步自标定方法;王欣 等;《计算机科学》;20120930;第39卷(第9期);第266-268页,第274页 *
一种改进的基础矩阵估计算法;黄春燕 等;《小型微型计算机系统》;20141130(第11期);第2578-2581页 *

Also Published As

Publication number Publication date
CN106980601A (en) 2017-07-25

Similar Documents

Publication Publication Date Title
CN109598762B (en) High-precision binocular camera calibration method
CN104596502B (en) Object posture measuring method based on CAD model and monocular vision
JP6348093B2 (en) Image processing apparatus and method for detecting image of detection object from input data
CN108510551B (en) Method and system for calibrating camera parameters under long-distance large-field-of-view condition
CN105716542B (en) A kind of three-dimensional data joining method based on flexible characteristic point
CN110443879B (en) Perspective error compensation method based on neural network
CN105139411B (en) Big visual field camera calibration method based on four sets of conllinear constraint demarcation chis
CN111242991B (en) Method for quickly registering visible light and infrared camera
Zhang et al. A single-image linear calibration method for camera
CN112700501B (en) Underwater monocular subpixel relative pose estimation method
CN114399554A (en) Calibration method and system of multi-camera system
CN112270698B (en) Non-rigid geometric registration method based on nearest curved surface
CN112258588A (en) Calibration method and system of binocular camera and storage medium
KR102608956B1 (en) A method for rectifying a sequence of stereo images and a system thereof
CN112015275A (en) Digital twin AR interaction method and system
CN116129037B (en) Visual touch sensor, three-dimensional reconstruction method, system, equipment and storage medium thereof
CN112686961A (en) Method and device for correcting calibration parameters of depth camera
CN106980601B (en) High-precision basic matrix solving method based on trinocular polar line constraint
Chan et al. An improved method for fisheye camera calibration and distortion correction
CN114001651B (en) Large-scale slender barrel type component pose in-situ measurement method based on binocular vision measurement and priori detection data
CN113393413B (en) Water area measuring method and system based on monocular and binocular vision cooperation
CN107424194A (en) The detection method of keyboard profile tolerance
CN114998522A (en) Method and system for accurately extracting dense point cloud of indoor scene of multi-view continuous light field image
CN109242910B (en) Monocular camera self-calibration method based on any known plane shape
CN115205356B (en) Binocular stereo vision-based quick debugging method for practical training platform

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant