CN102800084A - 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
CN102800084A
CN102800084A CN2012102057611A CN201210205761A CN102800084A CN 102800084 A CN102800084 A CN 102800084A CN 2012102057611 A CN2012102057611 A CN 2012102057611A CN 201210205761 A CN201210205761 A CN 201210205761A CN 102800084 A CN102800084 A CN 102800084A
Authority
CN
China
Prior art keywords
sigma
prime
formula
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.)
Granted
Application number
CN2012102057611A
Other languages
Chinese (zh)
Other versions
CN102800084B (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

Images

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 the 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 through image photographic to be carried out space three-dimensional and measures, and wherein, pattern distortion is very big to the influence of measurement result, requires in measuring process through obtaining the distortion in images coefficient coordinate of picture point to be carried out distortion correction.At present, the computing method of pattern distortion coefficient have two kinds: the one, demarcate through the laboratory, and promptly utilize special-purpose instrument and equipment to identify in the laboratory, offer the user; The 2nd, the reference mark of before photography, in camera coverage, laying some goes out distortion factor through calculated with mathematical model.Yet these two kinds of methods can't be to the conventional images calculating that distorts, and particularly, the coordinate of image slices principal point also can influence the demarcation of pattern distortion coefficient.
Summary of the invention
Technical matters: the technical matters that the present invention will solve 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 determines the equation of curve axis of symmetry through the point on a plurality of symmetrical curves on the picture is carried out curve fitting, and carries out match according to a plurality of axis of symmetry equations; And then calculate its intersecting point coordinate; Be image slices principal point coordinate, the method through a plurality of symmetrical curves are recovered determines the distortion in images coefficient then; This assay method is to the picture that has formed images, accomplishes the mensuration to pattern distortion coefficient and image slices principal point coordinate, need before photography, not demarcate or in camera coverage, lay sign to photographic equipment.
Technical scheme: for solving the problems of the technologies described above, the technical scheme that the present invention adopts is:
A kind of image slices principal point coordinate of straight-line target and the assay method of distortion factor, this assay method may further comprise the steps:
10. become the axis of symmetry straight-line equation of image curve target:
101. utilize picture pick-up device that straight-line target is taken pictures, obtain image, straight-line target is shown as symmetrical curve on image; Foundation is initial point with the picture centre, and horizontal ordinate is the x axle, and ordinate is the image coordinate system o-xy of y axle;
102. from image, select m bar symmetrical curve as determination object, m is an integer, and m >=2, selects a symmetrical curve to carry out the operation of step 103 to step 110;
103. choose n picture point from determination object, n is an integer, and n>=5, obtains 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 match to the determination object in the step 103, and wherein, A, B, C, D and E are quadratic polynomial coefficient, x iAnd y iThe two-dimensional coordinate of picture point in image coordinate system o-xy on the expression determination object 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 the formula, i=1,2 ... N;
105. the 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 is relevant according to the direction of axis of symmetry in image coordinate system o-xy, and axis of symmetry is got "+" number when first quartile or third quadrant, gets "-" number at second quadrant or four-quadrant;
106. set up curvilinear coordinate system o-x ' y ': the initial point with image coordinate system o-xy is initial point, be the right-handed coordinate system of y ' with the direction that is parallel to the determination object axis of symmetry;
107. coordinate conversion: at first according to the indexing α between formula (3) measuring and calculating image coordinate system o-xy and the curvilinear coordinate system o-x ' y ',
tan α = 1 u Formula (3);
Utilize the coordinate conversion matrix R between formula (4) measuring and calculating image coordinate system o-xy and the curvilinear coordinate system o-x ' y ' then:
R = cos α sin α - sin α cos α Formula (4);
Utilize picture point the coordinate (x among image coordinate system o-xys of formula (5) at last with the determination object of step 103 selection 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
Figure BDA00001789535600033
that determination object is carried out match in curvilinear coordinate system o-x ' y ', utilize 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 the formula, 2 ... N;
109. the formula of utilization (7) calculates para-curve
Figure BDA00001789535600035
Summit q, the coordinate 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);
110. the slope u of the axis of symmetry of the determination object of measuring according to step 105 and the coordinate (x of 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
111. the m-1 bar symmetrical curve to remaining in the image carries out the operation of step 103 to step 110 respectively, sets up the straight-line equation of each symmetrical curve axis of symmetry, the straight-line equation of m bar symmetrical curve axis of symmetry is formed suc as formula system of equations shown in (10):
Y=S jX+T j(j=1,2 ... M) formula (10);
20. the measuring and calculating of image slices principal point coordinate:
M equation in the formula (10) carries out indirect adjustment with principle of least square method, and normal equation calculates the least square intersection point of m axis of symmetry suc as formula shown in (11), 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 the formula, 2 ... M;
30. measure the pattern distortion coefficient:
301. select a symmetrical curve in the m bar symmetrical curve from image as determination object;
302. choose n picture point from determination object, n is an integer, and n>=5, obtains the two-dimensional coordinate (x of n picture point in image coordinate system o-xy i, y i), i=1 wherein, 2 ... N; The two-dimensional coordinate of n picture point in curvilinear coordinate system o-x ' y ' be (x ' i, y ' i);
303. set up the distortion factor equation:
At first according to formula (12) with image slices principal point O' (x 0, y 0) coordinate (x in image coordinate system o-xy 0, y 0), the conversion in curvilinear coordinate system o-x ' y ' coordinate (x ' 0, y ' 0):
x 0 ′ y 0 ′ = R · x 0 y 0 = cos α sin α - sin α cos α · x 0 y 0 Formula (12);
Set up the distortion factor equation then, shown in (13):
Δ y ' i=k 1(y ' i-y ' 0) [((x ' i-x ' 0) 2+ (y ' i-y ' 0) 2)] formula (13);
In the formula (13), Δ y ' i1 p on the expression determination object (x ' i, y ' i) at the distortion correction value of y ' direction, k 1The expression distortion factor;
304. after recovering distortion, determination object becomes straight line by curve, n picture point recovered should satisfy formula (14) after the distortion on the determination object:
(y ' i-y ' 0)+k 1(y ' i-y ' 0) r 2=C 1Formula (14)
Wherein, C 1Be 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. the formula of utilization (14) can be listed the normal equation of determination object, shown in (15):
Σ [ ( y i ′ - y 0 ′ ) 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 the 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 ′ ) 2 r 2 , W 2 ( 1 ) = Σ ( y i ′ - y 0 ′ ) ;
306. the m-1 bar symmetrical curve of the remainder in the image 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 is 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. m is organized formula (17) constitutive equation, shown in (18), can calculate the distortion in images coefficient k 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. need not photography and vedio recording equipment is demarcated in advance, can carry out the mensuration of image slices principal point coordinate and pattern distortion coefficient the picture that has formed images in any source.The present technique scheme is the mensuration of carrying out image slices principal point coordinate and pattern distortion coefficient to the picture that has formed images, need in the photography and vedio recording process, equipment not demarcated in advance, or in camera coverage, lays sign.To the picture that has formed images, utilize the present technique scheme 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 present technique scheme can carry out the mensuration of image slices principal point coordinate and pattern distortion coefficient to the picture of imaging; But for the target of repeat photography shooting, utilize the present technique scheme, can save the repeat photography shooting, directly utilize the picture that forms images 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, the imageable target curve is reverted to straight line with certain distortion factor, just can determine the distortion in images coefficient.The assay method of present technique scheme recovers with certain distortion factor the discrete point on the imageable target curve, makes it revert to straight line, and then calculates distortion factor.This assay method carries out picture shot applicable to all to straight-line target, and applicability is strong.Simultaneously, this assay method is implemented convenient, need in the photography and vedio recording process, not demarcate in advance equipment, or in camera coverage, lay sign.
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 can produce usually and departs from image center.Assay method provided by the invention was 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 that the mensuration of pattern distortion coefficient is more accurate.
Description of drawings
Fig. 1 is the synoptic diagram that the present invention measures the 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 synoptic diagram that the present invention measures the pattern distortion coefficient; Wherein p be expressed as on the image curve more arbitrarily; T representes the p point is carried out the position after y ' direction corrects; P0 representes the p point is carried out the position after the distortion correction of x ', y ' direction simultaneously, and the line between 3 of the t, p, p0 constitutes a right-angle triangle, and the coordinate of t point and the p0 y ' direction of ordering is identical simultaneously.
Embodiment
Below in conjunction with accompanying drawing, technical scheme of the present invention is carried out detailed explanation.
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 may further comprise the steps:
10. become the axis of symmetry straight-line equation of image curve target:
101. utilize picture pick-up device that straight-line target is taken pictures, obtain image, straight-line target is shown as symmetrical curve on image; Foundation is initial point with the picture centre, and horizontal ordinate is the x axle, and ordinate is the image coordinate system o-xy of y axle;
102. from image, select m bar symmetrical curve as determination object, m is an integer, and m >=2, selects a symmetrical curve to carry out the operation of step 103 to step 110;
103. choose n picture point from determination object, n is an integer, and n>=5, obtains 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 match to the determination object in the step 103, and wherein, A, B, C, D and E are quadratic polynomial coefficient, x iAnd y iThe two-dimensional coordinate of picture point in image coordinate system o-xy on the expression determination object 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 the formula, i=1,2 ... N;
105. the 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 is relevant according to the direction of axis of symmetry in image coordinate system o-xy, and axis of symmetry is got "+" number when first quartile or third quadrant, gets "-" number at second quadrant or four-quadrant;
106. set up curvilinear coordinate system o-x ' y ': the initial point with image coordinate system o-xy is initial point, be the right-handed coordinate system of y ' with the direction that is parallel to the determination object axis of symmetry;
107. coordinate conversion: at first according to the indexing α between formula (3) measuring and calculating image coordinate system o-xy and the curvilinear coordinate system o-x ' y ',
tan α = 1 u Formula (3);
Utilize the coordinate conversion matrix R between formula (4) measuring and calculating image coordinate system o-xy and the curvilinear coordinate system o-x ' y ' then:
R = cos α sin α - sin α cos α Formula (4);
Utilize picture point the coordinate (x among image coordinate system o-xys of formula (5) at last with the determination object of step 103 selection 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
Figure BDA00001789535600084
that determination object is carried out match in curvilinear coordinate system o-x ' y ', utilize 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 the formula, 2 ... N;
109. the formula of utilization (7) calculates para-curve
Figure BDA00001789535600086
Summit q, the coordinate 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);
110. the slope u of the axis of symmetry of the determination object of measuring according to step 105 and the coordinate (x of 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
111. the m-1 bar symmetrical curve to remaining in the image carries out the operation of step 103 to step 110 respectively, sets up the straight-line equation of each symmetrical curve axis of symmetry, the straight-line equation of m bar symmetrical curve axis of symmetry is formed suc as formula system of equations shown in (10):
Y=S jX+T j(j=1,2 ... M) formula (10);
20. the measuring and calculating of image slices principal point coordinate:
M equation in the formula (10) carries out indirect adjustment with principle of least square method, and normal equation calculates the least square intersection point of m axis of symmetry suc as formula shown in (11), 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 the formula, 2 ... M;
30. measure the pattern distortion coefficient:
301. select a symmetrical curve in the m bar symmetrical curve from image as determination object;
302. choose n picture point from determination object, n is an integer, and n>=5, obtains the two-dimensional coordinate (x of n picture point in image coordinate system o-xy i, y i), i=1 wherein, 2 ... N; The two-dimensional coordinate of n picture point in curvilinear coordinate system o-x ' y ' be (x ' i, y ' i);
303. set up the distortion factor equation:
At first according to formula (12) with image slices principal point O' (x 0, y 0) coordinate (x in image coordinate system o-xy 0, y 0), the conversion in curvilinear coordinate system o-x ' y ' coordinate (x ' 0, y ' 0):
x 0 ′ y 0 ′ = R · x 0 y 0 = cos α sin α - sin α cos α · x 0 y 0 Formula (12);
Set up the distortion factor equation then, shown in (13):
Δ y ' i=k 1(y ' i-y ' 0) [((x ' i-x ' 0) 2+ (y ' i-y ' 0) 2)] formula (13);
In the formula (13), Δ y ' i1 p on the expression determination object (x ' i, y ' i) at the distortion correction value of y ' direction, k 1The expression distortion factor;
304. after recovering distortion, determination object becomes straight line by curve, n picture point recovered should satisfy formula (14) after the distortion on the determination object:
(y ' i-y ' 0)+k 1(y ' i-y ' 0) r 2=C 1Formula (14)
Wherein, C 1Be 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. the formula of utilization (14) can be listed the normal equation of determination object, shown in (15):
Σ [ ( y i ′ - y 0 ′ ) 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 the 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 ′ ) 2 r 2 , W 2 ( 1 ) = Σ ( y i ′ - y 0 ′ ) ;
306. the m-1 bar symmetrical curve of the remainder in the image 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 is 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. m is organized formula (17) constitutive equation, shown in (18), can calculate the distortion in images coefficient k 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.
Receive the influence 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 extracts the symmetrical curve in the image according to this principle; Point on a plurality of symmetrical curves carries out curve fitting; Calculate the axis of symmetry equation of symmetrical curve, and carry out match according to many axis of symmetry equations and obtain its intersecting point coordinate, be image slices principal point coordinate; Method through a plurality of symmetrical curves are recovered calculates the distortion in images coefficient then.This assay method is widely used in computer vision field.The present invention is symmetrical curve after can utilizing many straight-line target imagings, comes the principal point coordinate and the distortion factor of image are carried out simultaneous determination.
Through an embodiment, come concrete principal point coordinate and the distortion factor of measuring image below.
At first, choose 3 straight-line targets, it is imaged as symmetrical curve, as determination object, on each symmetrical curve, selects 7 picture point with these three symmetrical curves, and its coordinate is seen the original image coordinate system in the table 1:
The coordinate of table 1 picture point in image coordinate system and curvilinear coordinate system
Figure BDA00001789535600112
Figure BDA00001789535600121
Then, use quadratic polynomial Ax i 2+ Bx iy i+ Cy i 2+ Dx i+ Ey i+ 1=0 carries out match to above-mentioned three determination objects, calculates quadratic polynomial coefficient A, B, C, D and E, calculates the axis of symmetry of three determination objects according to formula (2) again and the angle of x axle is respectively:
Wherein, α 1The axis of symmetry after 1 imaging of expression straight-line target and the angle of x axle, α 2The axis of symmetry after 2 imagings of expression straight-line target and the angle of x axle, α 3The axis of symmetry after 3 imagings of expression straight-line target and the angle of x axle; Curvilinear coordinate system o-x ' the y ' that sets up respectively according to three determination objects, with coordinate to curvilinear coordinate system o-x ' y ' of the picture point coordinate conversion of determination object (x ', y '), transformation result is seen table 2.The parabolic equation and the apex coordinate that utilize picture point coordinate after formula (6), formula (7), formula (8) and formula (9) will be changed (x ', y ') match to obtain are seen 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 and the formula (11) of the axis of symmetry of above-mentioned three determination objects, the image slices principal point coordinate that calculates does
x 0 = - 55.1 y 0 = 5.4
At last, 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 a straight-line target and the assay method of distortion factor is characterized in that, this assay method may further comprise the steps:
10. become the axis of symmetry straight-line equation of image curve target:
101. utilize picture pick-up device that straight-line target is taken pictures, obtain image, straight-line target is shown as symmetrical curve on image; Foundation is initial point with the picture centre, and horizontal ordinate is the x axle, and ordinate is the image coordinate system o-xy of y axle;
102. from image, select m bar symmetrical curve as determination object, m is an integer, and m >=2, selects a symmetrical curve to carry out the operation of step 103 to step 110;
103. choose n picture point from determination object, n is an integer, and n>=5, obtains 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 match to the determination object in the step 103, and wherein, A, B, C, D and E are quadratic polynomial coefficient, x iAnd y iThe two-dimensional coordinate of picture point in image coordinate system o-xy on the expression determination object 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 the formula, i=1,2 ... N;
105. the 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 is relevant according to the direction of axis of symmetry in image coordinate system o-xy, and axis of symmetry is got "+" number when first quartile or third quadrant, gets "-" number at second quadrant or four-quadrant;
106. set up curvilinear coordinate system o-x ' y ': the initial point with image coordinate system o-xy is initial point, be the right-handed coordinate system of y ' with the direction that is parallel to the determination object axis of symmetry;
107. coordinate conversion: at first according to the indexing α between formula (3) measuring and calculating image coordinate system o-xy and the curvilinear coordinate system o-x ' y ',
tan α = 1 u Formula (3);
Utilize the coordinate conversion matrix R between formula (4) measuring and calculating image coordinate system o-xy and the curvilinear coordinate system o-x ' y ' then:
R = cos α sin α - sin α cos α Formula (4);
Utilize picture point the coordinate (x among image coordinate system o-xys of formula (5) at last with the determination object of step 103 selection 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
Figure FDA00001789535500024
that determination object is carried out match in curvilinear coordinate system o-x ' y ', utilize 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 the formula, 2 ... N;
109. the formula of utilization (7) calculates para-curve
Figure FDA00001789535500026
Summit q, the coordinate 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);
110. the slope u of the axis of symmetry of the determination object of measuring according to step 105 and the coordinate (x of 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
111. the m-1 bar symmetrical curve to remaining in the image carries out the operation of step 103 to step 110 respectively, sets up the straight-line equation of each symmetrical curve axis of symmetry, the straight-line equation of m bar symmetrical curve axis of symmetry is formed suc as formula system of equations shown in (10):
Y=S jX+T j(j=1,2 ... M) formula (10);
20. the measuring and calculating of image slices principal point coordinate:
M equation in the formula (10) carries out indirect adjustment with principle of least square method, and normal equation calculates the least square intersection point of m axis of symmetry suc as formula shown in (11), 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 the formula, 2 ... M;
30. measure the pattern distortion coefficient:
301. select a symmetrical curve in the m bar symmetrical curve from image as determination object;
302. choose n picture point from determination object, n is an integer, and n>=5, obtains the two-dimensional coordinate (x of n picture point in image coordinate system o-xy i, y i), i=1 wherein, 2 ... N; The two-dimensional coordinate of n picture point in curvilinear coordinate system o-x ' y ' be (x ' i, y ' i);
303. set up the distortion factor equation:
At first according to formula (12) with image slices principal point O' (x 0, y 0) coordinate (x in image coordinate system o-xy 0, y 0), the conversion in curvilinear coordinate system o-x ' y ' coordinate (x ' 0, y ' 0):
x 0 ′ y 0 ′ = R · x 0 y 0 = cos α sin α - sin α cos α · x 0 y 0 Formula (12);
Set up the distortion factor equation then, shown in (13):
Δ y ' i=k 1(y ' i-y ' 0) [((x ' i-x ' 0) 2+ (y ' i-y ' 0) 2)] formula (13);
In the formula (13), Δ y ' i1 p on the expression determination object (x ' i, y ' i) at the distortion correction value of y ' direction, k 1The expression distortion factor;
304. after recovering distortion, determination object becomes straight line by curve, n picture point recovered should satisfy formula (14) after the distortion on the determination object:
(y ' i-y ' 0)+k 1(y ' i-y ' 0) r 2=C 1Formula (14)
Wherein, C 1Be 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. the formula of utilization (14) can be listed the normal equation of determination object, shown in (15):
Σ [ ( y i ′ - y 0 ′ ) 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 the 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 ′ ) 2 r 2 , W 2 ( 1 ) = Σ ( y i ′ - y 0 ′ ) ;
306. the m-1 bar symmetrical curve of the remainder in the image 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 is 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. m is organized formula (17) constitutive equation, shown in (18), can calculate the distortion in images coefficient k 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 true CN102800084A (en) 2012-11-28
CN102800084B 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)

Cited By (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 (2)

* 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
US20110032492A1 (en) * 2009-08-04 2011-02-10 Seiko Epson Corporation Projector, computer program product, and trapezoidal distortion correcting method

Patent Citations (2)

* 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
US20110032492A1 (en) * 2009-08-04 2011-02-10 Seiko Epson Corporation Projector, computer program product, and trapezoidal distortion correcting method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WONPIL YU: "An Embedded Camera Lens Distortion Correction Method for Mobile Computing Applications", 《IEEE TRANSACTIONS ON CONSUMER ELECTRONICS》 *
胡亚江等: "求解普通相机径向畸变系数的一种简便方法", 《测绘与空间地理信息》 *

Cited By (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

Also Published As

Publication number Publication date
CN102800084B (en) 2014-10-29

Similar Documents

Publication Publication Date Title
CN101226057B (en) Digital close range photogrammetry method
CN109945853B (en) Geographic coordinate positioning system and method based on 3D point cloud aerial image
CN103017653B (en) Registration and measurement method of spherical panoramic image and three-dimensional laser scanning point cloud
CN107886547B (en) Fisheye camera calibration method and system
CN105716542B (en) A kind of three-dimensional data joining method based on flexible characteristic point
CN104034305B (en) A kind of monocular vision is the method for location in real time
CN102538761B (en) Photography measurement method for spherical panoramic camera
US11508030B2 (en) Post capture imagery processing and deployment systems
CN102661717A (en) Monocular vision measuring method for iron tower
CN102136140B (en) Rectangular pattern-based video image distance detecting method
CN105300362A (en) Photogrammetry method used for RTK receivers
CN102927917A (en) Multi-view vision measurement method of iron tower
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
CN103196429B (en) Method for quickly obtaining and measuring orthophotoquad of city skyline contour line facade
CN106447733A (en) Cervical vertebra motion degree and motion axial line position determining method, system and device
CN102800084B (en) Method for measuring image principal point coordinates and distortion coefficient of linear target
CN103673890B (en) Length and cylinder area measurement method based on digital image analysis
CN105405135B (en) Two-step method photography object point, picture point automatic matching method based on basic configuration point
CN102999895A (en) Method for linearly solving intrinsic parameters of camera by aid of two concentric circles
CN104125390B (en) A kind of localization method and device for ball-shaped camera
CN117073579A (en) Structured light binocular three-dimensional measurement system and method based on stripe projection
CN101819038B (en) Mark line parameter based traffic accident site two-dimensional measurement and top-view correction method
CN106382891B (en) A kind of object height measurement method based on spherical panorama camera
CN102930549B (en) Method for solving camera inner parameters by using dot matrix template and orthogonality

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