CN102800084B - Method for measuring image principal point coordinates and distortion coefficient of linear target - Google Patents

Method for measuring image principal point coordinates and distortion coefficient of linear target Download PDF

Info

Publication number
CN102800084B
CN102800084B CN201210205761.1A CN201210205761A CN102800084B CN 102800084 B CN102800084 B CN 102800084B CN 201210205761 A CN201210205761 A CN 201210205761A CN 102800084 B CN102800084 B CN 102800084B
Authority
CN
China
Prior art keywords
sigma
formula
prime
image
coordinate system
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.)
Expired - Fee Related
Application number
CN201210205761.1A
Other languages
Chinese (zh)
Other versions
CN102800084A (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.)
Southeast University
Original Assignee
Southeast University
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 Southeast University filed Critical Southeast University
Priority to CN201210205761.1A priority Critical patent/CN102800084B/en
Publication of CN102800084A publication Critical patent/CN102800084A/en
Application granted granted Critical
Publication of CN102800084B publication Critical patent/CN102800084B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a method for measuring the image principal point coordinates and distortion coefficient of a linear target. The method comprises the following steps of: 10, imaging a symmetry axis linear equation of a curve target: fitting the measured object, and calculating the slope of the symmetry axis of the measured object; converting the image points of the measured object to the coordinates of the curve coordinate system; reckoning the coefficient of a parabolic equation; converting the vertex of the parabola to the coordinates of the image coordinate system; and establishing a linear equation of the symmetry axis of the measured object; 20, reckoning the principal point coordinates of the image; and 30, measuring the image distortion coefficient: selecting an image point from the measured object, and obtaining two-dimensional coordinates of the image point in the image coordinate system; establishing a distortion coefficient equation; recovering the distortion so that the measured object becomes a line from a curve; giving the normal equation of the measured object; and establishing the normal equation of the measured object and reckoning the distortion coefficient of the image. The measuring method can be used for measuring the image distortion coefficient and principal point coordinates of the imaged picture.

Description

A kind of image slices principal point coordinate of straight-line target and the assay method of distortion factor
Technical field
The invention belongs to image measurement field, specifically, relate to a kind of image slices principal point coordinate of straight-line target and the assay method of distortion factor.
Background technology
Computer vision field usually requires, by image, photographic is carried out to space three-dimensional measurement, and wherein, pattern distortion is very large on the impact of measurement result, requires by obtaining the distortion factor of image, the coordinate of picture point to be carried out to distortion correction in measuring process.At present, the computing method of pattern distortion coefficient have two kinds: the one, and chamber is demarcated by experiment, utilizes special-purpose instrument and equipment to identify in laboratory, offers user; The 2nd, the reference mark of laying some before photography in camera coverage, goes out distortion factor by calculated with mathematical model.Yet these two kinds of methods cannot be to the conventional images calculating that distorts, particularly, the coordinate of image slices principal point also can affect the demarcation of pattern distortion coefficient.
Summary of the invention
Technical matters: the technical problem to be solved in the present invention is: a kind of image slices principal point coordinate of straight-line target and the assay method of distortion factor are provided, this assay method carries out curve fitting by the point on a plurality of symmetrical curves on picture, determine the equation of curve symmetric axle, and carry out matching according to a plurality of axis of symmetry equations, and then calculate its intersecting point coordinate, be image slices principal point coordinate, then by the method that a plurality of symmetrical curves are recovered, determine the distortion factor of image; This assay method is for the picture of imaging, completes the mensuration to pattern distortion coefficient and image slices principal point coordinate, need to before photography, to photographic equipment, not demarcate or lay sign in camera coverage.
Technical scheme: for solving the problems of the technologies described above, the technical solution used in the present invention is:
The image slices principal point coordinate of straight-line target and an assay method for distortion factor, this assay method comprises the following steps:
10. become the axis of symmetry straight-line equation of image curve target:
101. utilize picture pick-up device to take pictures to straight-line target, obtain image, and straight-line target is shown as symmetrical curve on image; Foundation be take picture centre as initial point, and horizontal ordinate is x axle, and ordinate is the image coordinate system o-xy of y axle;
102. select m bar symmetrical curve as determination object from image, and m is integer, and m >=2, select a symmetrical curve to carry out step 103 to the operation of step 110;
103. choose n picture point from determination object, and n is integer, and n>=5, obtain the two-dimensional coordinate (x of n picture point in image coordinate system o-xy i, y i), i=1 wherein, 2 ... n;
104. use quadratic polynomial Ax i 2+ Bx iy i+ Cy i 2+ Dx i+ Ey i+ 1=0 carries out matching to the determination object in step 103, and wherein, A, B, C, D and E are quadratic polynomial coefficient, x iand y ithe two-dimensional coordinate of picture point on expression determination object in image coordinate system o-xy, utilizes formula (1) to calculate quadratic polynomial coefficient A, B, C, D and E,
Σ x i 4 Σ x i 3 y i Σ x i 2 y i 2 Σ x i 3 Σ x i 2 y i Σ x i 3 y i Σ x i 2 y i 2 Σ x i y i 3 Σ x i 2 y i Σ x i y i 2 Σ x i 2 y i 2 Σ x i y i 3 Σ y i 4 Σ x i y i 2 Σ y i 3 Σ x i 3 Σ x i 2 y i Σ x i y i 2 Σ x i 2 Σ x i y i Σ x i 2 y i Σ x i y i 2 Σ y i 3 Σ x i y i Σ y i 2 · A B C D E = - Σ x i 2 Σ x i y i Σ y i 2 Σ x i Σ y i Formula (1)
In formula, i=1,2 ... n;
105. quadratic polynomial coefficient A, B, C, D and the E that calculate according to step 104, and formula (2), calculate the slope u of the axis of symmetry of determination object:
u = ± A C Formula (2)
The symbol of u according to axis of symmetry the direction in image coordinate system o-xy relevant, axis of symmetry is got "+" number when first quartile or third quadrant, at the second quadrant or fourth quadrant, gets "-" number;
106. set up curvilinear coordinate system o-x ' y ': take the initial point of image coordinate system o-xy as initial point, take and be parallel to the right-handed coordinate system that the direction of determination object axis of symmetry is y ';
107. coordinate conversion: first according to the indexing α between formula (3) measuring and calculating image coordinate system o-xy and curvilinear coordinate system o-x ' y ',
tan α = 1 u Formula (3);
Then utilize the coordinate conversion matrix R between formula (4) measuring and calculating image coordinate system o-xy and curvilinear coordinate system o-x ' y ':
R = cos α sin α - sin α cos α Formula (4);
Coordinate (the x of the picture point of finally utilizing the determination object that formula (5) selects step 103 in image coordinate system o-xy i, y i), be transformed into coordinate in curvilinear coordinate system o-x ' y ' (x ' i, y ' i);
x i ′ y i ′ = R · x i y i = cos α sin α - sin α cos α · x i y i Formula (5);
108. utilize para-curve determination object is carried out in curvilinear coordinate system o-x ' y ' to matching, utilizes formula (6) to calculate parabolic equation coefficient a, b, c:
Σ x i ′ 4 Σ x i ′ 3 Σ x i ′ 2 Σ x i ′ 3 Σ x i ′ 2 Σ x i ′ Σ x i ′ 2 Σ x i ′ n · a b c = Σ x i ′ 2 y y ′ Σ x i ′ y y ′ Σ y y ′ Formula (6)
I=1 in formula, 2 ... n;
109. utilize formula (7) to calculate para-curve the coordinate of summit q in curvilinear coordinate system o-x ' y ' (x ' q, y ' q), and utilize formula (8) will (x ' q, y ' q) be converted to the coordinate (x of image coordinate system o-xy q, y q):
x q ′ = - b 2 a y q ′ = - b 2 4 a + c Formula (7);
x q y q = R T x q ′ y q ′ Formula (8);
Coordinate (the x of the slope u of the axis of symmetry of 110. determination objects of measuring according to step 105 and the para-curve summit q that step 109 is measured q, y q), set up the straight-line equation of determination object axis of symmetry, shown in (9):
Y=S 1x+T 1formula (9)
Wherein, S 1=u, T 1=y q-ux q;
M-1 bar symmetrical curve remaining in 111. pairs of images carries out respectively step 103 to the operation of step 110, sets up the straight-line equation of each symmetrical curve axis of symmetry, and the straight-line equation of m bar symmetrical curve axis of symmetry forms suc as formula system of equations shown in (10):
Y=S jx+T j(j=1,2 ... m) formula (10);
The measuring and calculating of 20. image slices principal point coordinates:
M the equation in formula (10), carries out indirect adjustment with principle of least square method, and the normal equation obtaining, suc as formula shown in (11), calculates the least square intersection point of m axis of symmetry, and this least square intersection point is exactly image slices principal point O'(x 0, y 0),
Σ S j 2 - Σ S j - Σ S j m x 0 y 0 = - Σ S j T j Σ T j Formula (11)
J=1 in formula, 2 ... m;
30. measure pattern distortion coefficient:
In 301. m bar symmetrical curves from image, select a symmetrical curve as determination object;
302. choose n picture point from determination object, and n is integer, and n>=5, obtain the two-dimensional coordinate (x of n picture point in image coordinate system o-xy i, y i), i=1 wherein, 2 ... n; N picture point two-dimensional coordinate in curvilinear coordinate system o-x ' y ' be (x ' i, y ' i);
303. set up distortion factor equation:
First according to formula (12) by image slices principal point O'(x 0, y 0) coordinate (x in image coordinate system o-xy 0, y 0), be converted to coordinate in curvilinear coordinate system o-x ' y ' (x ' 0, y ' 0):
x 0 ′ y 0 ′ = R · x 0 y 0 = cos α sin α - sin α cos α · x 0 y 0 Formula (12);
Then set up distortion factor equation, shown in (13):
Δ y ' i=k 1(y ' i-y ' 0) [((x ' i-x ' 0) 2+ (y ' i-y ' 0) 2)] formula (13);
In formula (13), Δ y ' irepresent on determination object 1 p (x ' i, y ' i) at the distortion correction value of y ' direction, k 1represent distortion factor;
304. recover after distortion, and determination object becomes straight line from curve, and on determination object, n picture point recovered should meet formula (14) after distortion:
(y ' i-y ' 0)+k 1(y ' i-y ' 0) r 2=C 1formula (14)
Wherein, C 1for constant, r presentation graphs picture point (x ' i, y ' i) to principal point (x ' 0, y ' 0) distance, r = ( x i ′ - x 0 ′ ) i 2 + ( y i ′ - y ′ ) i 2 ;
305. utilize formula (14) can list the normal equation of determination object, shown in (15):
Σ [ ( y i ′ - y 0 i ) r 2 ] 2 - Σ ( y i ′ - y 0 ′ ) r 2 - Σ ( y i ′ - y 0 ′ ) r 2 n · k 1 C 1 = - Σ ( y i ′ - y 0 ′ ) 2 r 2 Σ ( y i ′ - y 0 ′ ) Formula (15)
Formula (15) is expressed as formula (16) with general formula:
N 11 ( 1 ) N 12 ( 1 ) N 12 ( 1 ) N 22 ( 1 ) · k 1 C 1 = W 1 ( 1 ) W 2 ( 1 ) Formula (16)
In formula (16), N 11 ( 1 ) = Σ [ ( y i ′ - y 0 ′ ) r 2 ] 2 , N 12 ( 1 ) = - Σ ( y i ′ - y 0 ′ ) r 2 , N 22 ( 1 ) = n , W 1 (1)=-Σ(y′ i-y′ 0) 2r 2,W 2 (1)=Σ(y′ i-y′ 0);
Remaining m-1 bar symmetrical curve in 306. pairs of images, respectively as determination object, according to step 302-305, is set up the normal equation of determination object, with general formula, the overall normal equation of m bar symmetrical curve represented, shown in (17):
N 11 ( j ) N 12 ( j ) N 12 ( j ) N 22 ( j ) · k 1 C j = W 1 ( j ) W 2 ( j ) Formula (17)
Wherein, j=1,2 ... m;
307. organize formula (17) constitutive equation by m, shown in (18), can calculate the distortion factor k of image 1:
Σ N 11 ( j ) N 12 ( 1 ) . . . N 12 ( j ) . . . N 12 ( m ) N 12 ( 1 ) N 22 ( 1 ) . . . 0 . . . 0 . . . . . . . . . . . . . . . . . . N 12 ( j ) 0 . . . N 22 ( j ) . . . 0 . . . . . . . . . . . . . . . . . . N 12 ( m ) 0 . . . 0 . . . N 22 ( m ) · k 1 C 1 . . . C j . . . C m = Σ W 1 ( j ) W 2 ( 1 ) . . . W 2 ( j ) . . . W 2 ( m ) Formula (18)
J=1 wherein, 2 ... m.
Beneficial effect: compared with prior art, the present invention has following beneficial effect:
1. without photography and vedio recording equipment is demarcated in advance, can carry out to the picture of the imaging in any source the mensuration of image slices principal point coordinate and pattern distortion coefficient.The technical program is for the picture of imaging, to carry out the mensuration of image slices principal point coordinate and pattern distortion coefficient, need in photography and vedio recording process, equipment not demarcated in advance, or lay sign in camera coverage.To the picture of imaging, utilize the technical program can carry out the mensuration of image slices principal point coordinate and pattern distortion coefficient, do not need photography and vedio recording again.Like this, for the target of not reproducible photography and vedio recording, utilize the technical program can carry out to the picture of imaging the mensuration of image slices principal point coordinate and pattern distortion coefficient; For can repeat photography the target of shooting, utilize the technical program, can save repeat photography shooting, directly utilize the picture of imaging to carry out the mensuration of image slices principal point coordinate and pattern distortion coefficient.
2. it is convenient to implement, and applicability is strong.Distortion makes straight line be imaged as symmetrical curve, conversely, imageable target curve is reverted to straight line with certain distortion factor, just can determine the distortion factor of image.The assay method of the technical program recovers with certain distortion factor the discrete point on imageable target curve, makes it revert to straight line, and then calculates distortion factor.This assay method is applicable to all pictures that straight-line target is taken, and applicability is strong.Meanwhile, this assay method is implemented convenient, need in photography and vedio recording process, to equipment, not demarcate in advance, or lay sign in camera coverage.
3. the mensuration of pattern distortion coefficient is more accurate.The selection of image slices principal point coordinate can have influence on the mensuration of pattern distortion coefficient.And image slices principal point coordinate conventionally can produce and depart from image center.Assay method provided by the invention, measured image slices principal point coordinate before this, and then according to image slices principal point coordinate, carried out the mensuration of pattern distortion coefficient, thereby made the mensuration of pattern distortion coefficient more accurate.
Accompanying drawing explanation
Fig. 1 is the schematic diagram that the present invention measures image slices principal point, the initial point of o presentation video coordinate system wherein, the position of o ' presentation video principal point.
Fig. 2 is the schematic diagram that the present invention measures pattern distortion coefficient, wherein p is expressed as any point on image curve, t represents p point to carry out the position after y ' direction corrects, p0 represents p point to carry out the position after the distortion correction of x ', y ' direction simultaneously, line between 3 of t, p, p0 forms a right-angle triangle, and the coordinate of y ' direction that t point is ordered with p0 is simultaneously identical.
Embodiment
Below in conjunction with accompanying drawing, technical scheme of the present invention is described in detail.
As shown in Figure 1, the image slices principal point coordinate of a kind of straight-line target of the present invention and the assay method of distortion factor, comprise the following steps:
10. become the axis of symmetry straight-line equation of image curve target:
101. utilize picture pick-up device to take pictures to straight-line target, obtain image, and straight-line target is shown as symmetrical curve on image; Foundation be take picture centre as initial point, and horizontal ordinate is x axle, and ordinate is the image coordinate system o-xy of y axle;
102. select m bar symmetrical curve as determination object from image, and m is integer, and m >=2, select a symmetrical curve to carry out step 103 to the operation of step 110;
103. choose n picture point from determination object, and n is integer, and n>=5, obtain the two-dimensional coordinate (x of n picture point in image coordinate system o-xy i, y i), i=1 wherein, 2 ... n;
104. use quadratic polynomial Ax i 2+ Bx iy i+ Cy i 2+ Dx i+ Ey i+ 1=0 carries out matching to the determination object in step 103, and wherein, A, B, C, D and E are quadratic polynomial coefficient, x iand y ithe two-dimensional coordinate of picture point on expression determination object in image coordinate system o-xy, utilizes formula (1) to calculate quadratic polynomial coefficient A, B, C, D and E,
Σ x i 4 Σ x i 3 y i Σ x i 2 y i 2 Σ x i 3 Σ x i 2 y i Σ x i 3 y i Σ x i 2 y i 2 Σ x i y i 3 Σ x i 2 y i Σ x i y i 2 Σ x i 2 y i 2 Σ x i y i 3 Σ y i 4 Σ x i y i 2 Σ y i 3 Σ x i 3 Σ x i 2 y i Σ x i y i 2 Σ x i 2 Σ x i y i Σ x i 2 y i Σ x i y i 2 Σ y i 3 Σ x i y i Σ y i 2 · A B C D E = - Σ x i 2 Σ x i y i Σ y i 2 Σ x i Σ y i Formula (1)
In formula, i=1,2 ... n;
105. quadratic polynomial coefficient A, B, C, D and the E that calculate according to step 104, and formula (2), calculate the slope u of the axis of symmetry of determination object:
u = ± A C Formula (2)
The symbol of u according to axis of symmetry the direction in image coordinate system o-xy relevant, axis of symmetry is got "+" number when first quartile or third quadrant, at the second quadrant or fourth quadrant, gets "-" number;
106. set up curvilinear coordinate system o-x ' y ': take the initial point of image coordinate system o-xy as initial point, take and be parallel to the right-handed coordinate system that the direction of determination object axis of symmetry is y ';
107. coordinate conversion: first according to the indexing α between formula (3) measuring and calculating image coordinate system o-xy and curvilinear coordinate system o-x ' y ',
tan α = 1 u Formula (3);
Then utilize the coordinate conversion matrix R between formula (4) measuring and calculating image coordinate system o-xy and curvilinear coordinate system o-x ' y ':
R = cos α sin α - sin α cos α Formula (4);
Coordinate (the x of the picture point of finally utilizing the determination object that formula (5) selects step 103 in image coordinate system o-xy i, y i), be transformed into coordinate in curvilinear coordinate system o-x ' y ' (x ' i, y ' i):
x i ′ y i ′ = R · x i y i = cos α sin α - sin α cos α · x i y i Formula (5);
108. utilize para-curve determination object is carried out in curvilinear coordinate system o-x ' y ' to matching, utilizes formula (6) to calculate parabolic equation coefficient a, b, c:
Σ x i ′ 4 Σ x i ′ 3 Σ x i ′ 2 Σ x i ′ 3 Σ x i ′ 2 Σ x i ′ Σ x i ′ 2 Σ x i ′ n · a b c = Σ x i ′ 2 y y ′ Σ x i ′ y y ′ Σ y y ′ Formula (6)
I=1 in formula, 2 ... n;
109. utilize formula (7) to calculate para-curve the coordinate of summit q in curvilinear coordinate system o-x ' y ' (x ' q, y ' q), and utilize formula (8) will (x ' q, y ' q) be converted to the coordinate (x of image coordinate system o-xy q, y q):
x q ′ = - b 2 a y q ′ = - b 2 4 a + c Formula (7);
x q y q = R T x q ′ y q ′ Formula (8);
Coordinate (the x of the slope u of the axis of symmetry of 110. determination objects of measuring according to step 105 and the para-curve summit q that step 109 is measured q, y q), set up the straight-line equation of determination object axis of symmetry, shown in (9):
Y=S 1x+T 1formula (9)
Wherein, S 1=u, T 1=y q-ux q;
M-1 bar symmetrical curve remaining in 111. pairs of images carries out respectively step 103 to the operation of step 110, sets up the straight-line equation of each symmetrical curve axis of symmetry, and the straight-line equation of m bar symmetrical curve axis of symmetry forms suc as formula system of equations shown in (10):
Y=S jx+T j(j=1,2 ... m) formula (10);
The measuring and calculating of 20. image slices principal point coordinates:
M the equation in formula (10), carries out indirect adjustment with principle of least square method, and the normal equation obtaining, suc as formula shown in (11), calculates the least square intersection point of m axis of symmetry, and this least square intersection point is exactly image slices principal point O'(x 0, y 0),
Σ S j 2 - Σ S j - Σ S j m x 0 y 0 = - Σ S j T j Σ T j Formula (11)
J=1 in formula, 2 ... m;
30. measure pattern distortion coefficient:
In 301. m bar symmetrical curves from image, select a symmetrical curve as determination object;
302. choose n picture point from determination object, and n is integer, and n>=5, obtain the two-dimensional coordinate (x of n picture point in image coordinate system o-xy i, y i), i=1 wherein, 2 ... n; N picture point two-dimensional coordinate in curvilinear coordinate system o-x ' y ' be (x ' i, y ' i);
303. set up distortion factor equation:
First according to formula (12) by image slices principal point O'(x 0, y 0) coordinate (x in image coordinate system o-xy 0, y 0), be converted to coordinate in curvilinear coordinate system o-x ' y ' (x ' 0, y ' 0):
x 0 ′ y 0 ′ = R · x 0 y 0 = cos α sin α - sin α cos α · x 0 y 0 Formula (12);
Then set up distortion factor equation, shown in (13):
Δ y ' i=k 1(y ' i-y ' 0) [((x ' i-x ' 0) 2+ (y ' i-y ' 0) 2)] formula (13);
In formula (13), Δ y ' irepresent on determination object 1 p (x ' i, y ' i) at the distortion correction value of y ' direction, k 1represent distortion factor;
304. recover after distortion, and determination object becomes straight line from curve, and on determination object, n picture point recovered should meet formula (14) after distortion:
(y ' i-y ' 0)+k 1(y ' i-y ' 0) r 2=C 1formula (14)
Wherein, C 1for constant, r presentation graphs picture point (x ' i, y ' i) to principal point (x ' 0, y ' 0) distance, r = ( x i ′ - x 0 ′ ) i 2 + ( y i ′ - y ′ ) i 2 ;
305. utilize formula (14) can list the normal equation of determination object, shown in (15):
Σ [ ( y i ′ - y 0 i ) r 2 ] 2 - Σ ( y i ′ - y 0 ′ ) r 2 - Σ ( y i ′ - y 0 ′ ) r 2 n · k 1 C 1 = - Σ ( y i ′ - y 0 ′ ) 2 r 2 Σ ( y i ′ - y 0 ′ ) Formula (15)
Formula (15) is expressed as formula (16) with general formula:
N 11 ( 1 ) N 12 ( 1 ) N 12 ( 1 ) N 22 ( 1 ) · k 1 C 1 = W 1 ( 1 ) W 2 ( 1 ) Formula (16)
In formula (16), N 11 ( 1 ) = Σ [ ( y i ′ - y 0 ′ ) r 2 ] 2 , N 12 ( 1 ) = - Σ ( y i ′ - y 0 ′ ) r 2 , N 22 ( 1 ) = n , W 1 (1)=-Σ(y′ i-y′ 0) 2r 2,W 2 (1)=Σ(y′ i-y′ 0);
Remaining m-1 bar symmetrical curve in 306. pairs of images, respectively as determination object, according to step 302-305, is set up the normal equation of determination object, with general formula, the overall normal equation of m bar symmetrical curve represented, shown in (17):
N 11 ( j ) N 12 ( j ) N 12 ( j ) N 22 ( j ) · k 1 C j = W 1 ( j ) W 2 ( j ) Formula (17)
Wherein, j=1,2 ... m;
307. organize formula (17) constitutive equation by m, shown in (18), can calculate the distortion factor k of image 1:
Σ N 11 ( j ) N 12 ( 1 ) . . . N 12 ( j ) . . . N 12 ( m ) N 12 ( 1 ) N 22 ( 1 ) . . . 0 . . . 0 . . . . . . . . . . . . . . . . . . N 12 ( j ) 0 . . . N 22 ( j ) . . . 0 . . . . . . . . . . . . . . . . . . N 12 ( m ) 0 . . . 0 . . . N 22 ( m ) · k 1 C 1 . . . C j . . . C m = Σ W 1 ( j ) W 2 ( 1 ) . . . W 2 ( j ) . . . W 2 ( m ) Formula (18)
J=1 wherein, 2 ... m.
Be subject to the impact of pattern distortion, the imaging of straight-line target shows as symmetrical curve.The image slices principal point coordinate of a kind of straight-line target of the present invention and the assay method of distortion factor, the present invention is according to this principle, extract the symmetrical curve in image, point on a plurality of symmetrical curves is carried out curve fitting, calculate the axis of symmetry equation of symmetrical curve, and according to many axis of symmetry equations, carry out matching and obtain its intersecting point coordinate, be image slices principal point coordinate, then by the method that a plurality of symmetrical curves are recovered, calculate the distortion factor of image.This assay method is widely used in computer vision field.The present invention is symmetrical curve after can utilizing many straight-line target imagings, and the principal point coordinate of image and distortion factor are carried out to simultaneous determination.
Below by an embodiment, specifically measure principal point coordinate and the distortion factor of image.
First, choose 3 straight-line targets, it is imaged as symmetrical curve, usings these three symmetrical curves as determination object, selects 7 picture point on each symmetrical curve, and its coordinate is in Table the original image coordinate system in 1:
The coordinate of table 1 picture point in image coordinate system and curvilinear coordinate system
Then, use quadratic polynomial Ax i 2+ Bx iy i+ Cy i 2+ Dx i+ Ey i+ 1=0 carries out matching to above-mentioned three determination objects, calculates quadratic polynomial coefficient A, B, C, D and E, then calculates the axis of symmetry of three determination objects and the angle of x axle is respectively according to formula (2):
Wherein, α 1axis of symmetry after 1 imaging of expression straight-line target and the angle of x axle, α 2axis of symmetry after 2 imagings of expression straight-line target and the angle of x axle, α 3axis of symmetry after 3 imagings of expression straight-line target and the angle of x axle; Curvilinear coordinate system o-x ' the y ' setting up respectively according to three determination objects, by the picture point coordinate conversion of determination object, to the coordinate in curvilinear coordinate system o-x ' y ' (x ', y '), transformation result is in Table 2.Utilize parabolic equation that formula (6), formula (7), formula (8) and formula (9) obtain picture point coordinate (x ', the y ') matching after conversion and apex coordinate in Table 2.
The parabolic equation of table 2 symmetrical curve and apex coordinate
Then, utilize the axis of symmetry slope of para-curve apex coordinate and determination object, calculate the straight-line equation of the axis of symmetry of three determination objects, be respectively:
y = 0.0237928 x + 12.1 y = - 0.0208769 x - 1.2 y = - 23.2253533 x - 1274.4
Subsequently, according to the straight-line equation of the axis of symmetry of above-mentioned three determination objects and formula (11), the image slices principal point coordinate calculating is
x 0 = - 55.1 y 0 = 5.4
Finally, utilize the normal equation general formula of formula (18), calculate distortion factor:
k 1=2.65×10 -8

Claims (1)

1. the image slices principal point coordinate of straight-line target and an assay method for distortion factor, is characterized in that, this assay method comprises the following steps:
10. become the axis of symmetry straight-line equation of image curve target:
101. utilize picture pick-up device to take pictures to straight-line target, obtain image, and straight-line target is shown as symmetrical curve on image; Foundation be take picture centre as initial point, and horizontal ordinate is x axle, and ordinate is the image coordinate system o-xy of y axle;
102. select m bar symmetrical curve as determination object from image, and m is integer, and m >=2, select a symmetrical curve to carry out step 103 to the operation of step 110;
103. choose n picture point from determination object, and n is integer, and n>=5, obtain the two-dimensional coordinate (x of n picture point in image coordinate system o-xy i, y i), i=1 wherein, 2 ... n;
104. use quadratic polynomial Ax i 2+ Bx iy i+ Cy i 2+ Dx i+ Ey i+ 1=0 carries out matching to the determination object in step 103, and wherein, A, B, C, D and E are quadratic polynomial coefficient, x iand y ithe two-dimensional coordinate of picture point on expression determination object in image coordinate system o-xy, utilizes formula (1) to calculate quadratic polynomial coefficient A, B, C, D and E,
Σ x i 4 Σ x i 3 y i Σ x i 2 y i 2 Σ x i 3 Σ x i 2 y i Σ x i 3 y i Σ x i 2 y i 2 Σ x i y i 3 Σ x i 2 y i Σ x i y i 2 Σ x i 2 y i 2 Σ x i y i 3 Σ y i 4 Σ x i y i 2 Σ y i 3 Σ x i 3 Σ x i 2 y i Σ x i y i 2 Σ x i 2 Σ x i y i Σ x i 2 y i Σ x i y i 2 Σ y i 3 Σ x i y i Σ y i 2 · A B C D E = - Σ x i 2 Σ x i y i Σ y i 2 Σ x i Σ y i Formula (1)
In formula, i=1,2 ... n;
105. quadratic polynomial coefficient A, B, C, D and the E that calculate according to step 104, and formula (2), calculate the slope u of the axis of symmetry of determination object:
u = ± A C Formula (2)
The symbol of u according to axis of symmetry the direction in image coordinate system o-xy relevant, axis of symmetry is got "+" number when first quartile or third quadrant, at the second quadrant or fourth quadrant, gets "-" number;
106. set up curvilinear coordinate system o-x ' y ': take the initial point of image coordinate system o-xy as initial point, take and be parallel to the right-handed coordinate system that the direction of determination object axis of symmetry is y ';
107. coordinate conversion: first according to the indexing α between formula (3) measuring and calculating image coordinate system o-xy and curvilinear coordinate system o-x ' y ',
tan α = 1 u Formula (3);
Then utilize the coordinate conversion matrix R between formula (4) measuring and calculating image coordinate system o-xy and curvilinear coordinate system o-x ' y ':
R = cos α sin α - sin α cos α Formula (4);
Coordinate (the x of the picture point of finally utilizing the determination object that formula (5) selects step 103 in image coordinate system o-xy i, y i), be transformed into coordinate in curvilinear coordinate system o-x ' y ' (x ' i, y ' i);
x i ′ y i ′ = R · x i y i = cos α sin α - sin α cos α · x i y i Formula (5);
108. utilize para-curve determination object is carried out in curvilinear coordinate system o-x ' y ' to matching, utilizes formula (6) to calculate parabolic equation coefficient a, b, c:
Σ x i ′ 4 Σ x i ′ 3 Σ x i ′ 2 Σ x i ′ 3 Σ x i ′ 2 Σ x i ′ Σ x i ′ 2 Σ x i ′ n · a b c = Σ x i ′ 2 y y ′ Σ x i ′ y y ′ Σ y y ′ Formula (6)
I=1 in formula, 2 ... n;
109. utilize formula (7) to calculate para-curve the coordinate of summit q in curvilinear coordinate system o-x ' y ' (x ' q, y ' q), and utilize formula (8) will (x ' q, y ' q) be converted to the coordinate (x of image coordinate system o-xy q, y q):
x q ′ = - b 2 a y q ′ = - b 2 4 a + c Formula (7);
x q y q = R T x q ′ y q ′ Formula (8);
Coordinate (the x of the slope u of the axis of symmetry of 110. determination objects of measuring according to step 105 and the para-curve summit q that step 109 is measured q, y q), set up the straight-line equation of determination object axis of symmetry, shown in (9):
Y=S 1x+T 1formula (9)
Wherein, S 1=u, T 1=y q-ux q;
M-1 bar symmetrical curve remaining in 111. pairs of images carries out respectively step 103 to the operation of step 110, sets up the straight-line equation of each symmetrical curve axis of symmetry, and the straight-line equation of m bar symmetrical curve axis of symmetry forms suc as formula system of equations shown in (10):
Y=S jx+T jformula (10);
In formula (10), j=1,2 ... m;
The measuring and calculating of 20. image slices principal point coordinates:
M the equation in formula (10), carries out indirect adjustment with principle of least square method, and the normal equation obtaining, suc as formula shown in (11), calculates the least square intersection point of m axis of symmetry, and this least square intersection point is exactly image slices principal point O'(x 0, y 0),
Σ S j 2 - Σ S j - Σ S j m x 0 y 0 = - Σ S j T j Σ T j Formula (11)
J=1 in formula, 2 ... m;
30. measure pattern distortion coefficient:
In 301. m bar symmetrical curves from image, select a symmetrical curve as determination object;
302. choose n picture point from determination object, and n is integer, and n>=5, obtain the two-dimensional coordinate (x of n picture point in image coordinate system o-xy i, y i), i=1 wherein, 2 ... n; N picture point two-dimensional coordinate in curvilinear coordinate system o-x ' y ' be (x ' i, y ' i);
303. set up distortion factor equation:
First according to formula (12) by image slices principal point O'(x 0, y 0) coordinate (x in image coordinate system o-xy 0, y 0), be converted to coordinate in curvilinear coordinate system o-x ' y ' (x ' 0, y ' 0):
x 0 ′ y 0 ′ = R · x 0 y 0 = cos α sin α - sin α cos α · x 0 y 0 Formula (12);
Then set up distortion factor equation, shown in (13):
Δ y ' i=k 1(y ' i-y ' 0) [((x ' i-x ' 0) 2+ (y ' i-y ' 0) 2)] formula (13);
In formula (13), Δ y ' irepresent on determination object 1 p (x ' i, y ' i) at the distortion correction value of y ' direction, k 1represent distortion factor;
304. recover after distortion, and determination object becomes straight line from curve, and on determination object, n picture point recovered should meet formula (14) after distortion:
(y ' i-y ' 0)+k 1(y ' i-y ' 0) r 2=C 1formula (14)
Wherein, C 1for constant, r presentation graphs picture point (x ' i, y ' i) to principal point (x ' 0, y ' 0) distance, r = ( x i ′ - x 0 ′ ) i 2 + ( y i ′ - y ′ ) i 2 ;
305. utilize formula (14) can list the normal equation of determination object, shown in (15):
Σ [ ( y i ′ - y 0 i ) r 2 ] 2 - Σ ( y i ′ - y 0 ′ ) r 2 - Σ ( y i ′ - y 0 ′ ) r 2 n · k 1 C 1 = - Σ ( y i ′ - y 0 ′ ) 2 r 2 Σ ( y i ′ - y 0 ′ ) Formula (15)
Formula (15) is expressed as formula (16) with general formula:
N 11 ( 1 ) N 12 ( 1 ) N 12 ( 1 ) N 22 ( 1 ) · k 1 C 1 = W 1 ( 1 ) W 2 ( 1 ) Formula (16)
In formula (16), N 11 ( 1 ) = Σ [ ( y i ′ - y 0 ′ ) r 2 ] 2 , N 12 ( 1 ) = - Σ ( y i ′ - y 0 ′ ) r 2 , N 22 ( 1 ) = n , W 1 (1)=-Σ(y′ i-y′ 0) 2r 2,W 2 (1)=Σ(y′ i-y′ 0);
Remaining m-1 bar symmetrical curve in 306. pairs of images, respectively as determination object, according to step 302-305, is set up the normal equation of determination object, with general formula, the overall normal equation of m bar symmetrical curve represented, shown in (17):
N 11 ( j ) N 12 ( j ) N 12 ( j ) N 22 ( j ) · k 1 C j = W 1 ( j ) W 2 ( j ) Formula (17)
Wherein, j=1,2 ... m;
307. organize formula (17) constitutive equation by m, shown in (18), can calculate the distortion factor k of image 1:
Σ N 11 ( j ) N 12 ( 1 ) . . . N 12 ( j ) . . . N 12 ( m ) N 12 ( 1 ) N 22 ( 1 ) . . . 0 . . . 0 . . . . . . . . . . . . . . . . . . N 12 ( j ) 0 . . . N 22 ( j ) . . . 0 . . . . . . . . . . . . . . . . . . N 12 ( m ) 0 . . . 0 . . . N 22 ( m ) · k 1 C 1 . . . C j . . . C m = Σ W 1 ( j ) W 2 ( 1 ) . . . W 2 ( j ) . . . W 2 ( m ) Formula (18)
J=1 wherein, 2 ... m.
CN201210205761.1A 2012-06-20 2012-06-20 Method for measuring image principal point coordinates and distortion coefficient of linear target Expired - Fee Related CN102800084B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210205761.1A CN102800084B (en) 2012-06-20 2012-06-20 Method for measuring image principal point coordinates and distortion coefficient of linear target

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210205761.1A CN102800084B (en) 2012-06-20 2012-06-20 Method for measuring image principal point coordinates and distortion coefficient of linear target

Publications (2)

Publication Number Publication Date
CN102800084A CN102800084A (en) 2012-11-28
CN102800084B true CN102800084B (en) 2014-10-29

Family

ID=47199182

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210205761.1A Expired - Fee Related CN102800084B (en) 2012-06-20 2012-06-20 Method for measuring image principal point coordinates and distortion coefficient of linear target

Country Status (1)

Country Link
CN (1) CN102800084B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104574419B (en) * 2015-01-28 2017-06-09 深圳市安健科技股份有限公司 Lens distortion parameter calibration method and system
CN108447099A (en) * 2018-03-21 2018-08-24 云南大学 The method for solving catadioptric video camera principal point using the correlation of geometry
CN110335192A (en) * 2019-05-24 2019-10-15 深圳市德赛微电子技术有限公司 A kind of optical center calculation method of fisheye camera

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101118648A (en) * 2007-05-22 2008-02-06 南京大学 Road conditions video camera marking method under traffic monitoring surroundings

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5327468B2 (en) * 2009-08-04 2013-10-30 セイコーエプソン株式会社 Projector, program, information storage medium, and trapezoidal distortion correction method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101118648A (en) * 2007-05-22 2008-02-06 南京大学 Road conditions video camera marking method under traffic monitoring surroundings

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
An Embedded Camera Lens Distortion Correction Method for Mobile Computing Applications;Wonpil Yu;《IEEE Transactions on Consumer Electronics》;20031130;第49卷(第4期);第894-901页 *
Wonpil Yu.An Embedded Camera Lens Distortion Correction Method for Mobile Computing Applications.《IEEE Transactions on Consumer Electronics》.2003,第49卷(第4期),第894-901页.
求解普通相机径向畸变系数的一种简便方法;胡亚江等;《测绘与空间地理信息》;20091031;第32卷(第5期);第182-184页,第188页 *
胡亚江等.求解普通相机径向畸变系数的一种简便方法.《测绘与空间地理信息》.2009,第32卷(第5期),第182-184页,第188页.

Also Published As

Publication number Publication date
CN102800084A (en) 2012-11-28

Similar Documents

Publication Publication Date Title
CN104034305B (en) A kind of monocular vision is the method for location in real time
CN105716542B (en) A kind of three-dimensional data joining method based on flexible characteristic point
CN107886547B (en) Fisheye camera calibration method and system
CN104173054B (en) Measuring method and measuring device for height of human body based on binocular vision technique
CN109919911B (en) Mobile three-dimensional reconstruction method based on multi-view photometric stereo
CN104089628B (en) Self-adaption geometric calibration method of light field camera
WO2018196303A1 (en) Projector calibration method and apparatus based on multi-directional projection
CN103971378A (en) Three-dimensional reconstruction method of panoramic image in mixed vision system
CN102136140B (en) Rectangular pattern-based video image distance detecting method
CN103994732B (en) A kind of method for three-dimensional measurement based on fringe projection
CN110146030A (en) Side slope surface DEFORMATION MONITORING SYSTEM and method based on gridiron pattern notation
CN103903260A (en) Target method for quickly calibrating intrinsic parameters of vidicon
CN105579809B (en) Measuring method, measuring apparatus, and computer-readable recording medium
CN104318604A (en) 3D image stitching method and apparatus
CN106447733A (en) Cervical vertebra motion degree and motion axial line position determining method, system and device
CN108761271A (en) A kind of power grid screen of trees detection method and system
CN105513078A (en) Standing tree information acquisition method and device based on images
KR20160117143A (en) Method, device and system for generating an indoor two dimensional plan view image
CN107610183A (en) New striped projected phase height conversion mapping model and its scaling method
CN102800084B (en) Method for measuring image principal point coordinates and distortion coefficient of linear target
CN105374067A (en) Three-dimensional reconstruction method based on PAL cameras and reconstruction system thereof
CN105739106A (en) Somatosensory multi-view point large-size light field real three-dimensional display device and method
CN110033046A (en) A kind of quantization method calculating characteristic matching point distribution confidence level
CN104930976A (en) Portable crack length-measuring apparatus and method
CN102999895B (en) Method for linearly solving intrinsic parameters of camera by aid of two concentric circles

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141029

Termination date: 20170620

CF01 Termination of patent right due to non-payment of annual fee