CN104820973A - Image correction method for distortion curve radian detection template - Google Patents

Image correction method for distortion curve radian detection template Download PDF

Info

Publication number
CN104820973A
CN104820973A CN201510230755.5A CN201510230755A CN104820973A CN 104820973 A CN104820973 A CN 104820973A CN 201510230755 A CN201510230755 A CN 201510230755A CN 104820973 A CN104820973 A CN 104820973A
Authority
CN
China
Prior art keywords
distortion
image
curve
straight line
coordinate
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
CN201510230755.5A
Other languages
Chinese (zh)
Other versions
CN104820973B (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.)
Hohai University HHU
Original Assignee
Hohai University HHU
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 Hohai University HHU filed Critical Hohai University HHU
Priority to CN201510230755.5A priority Critical patent/CN104820973B/en
Publication of CN104820973A publication Critical patent/CN104820973A/en
Application granted granted Critical
Publication of CN104820973B publication Critical patent/CN104820973B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses an image correction method for a distortion curve radian detection template. First, the coordinates of the distortion center of a calibration plate image are calculated based on the radian of a distortion curve; then, on the basis, the area near the distortion center is initially corrected, and the image is reconstructed with use of the corrected area; next, the distortion coefficient is solved based on the distorted image, a distortion model and the image after reconstruction; and finally, an acquired scene image is corrected based on the distortion coefficient. Compared with the prior art, by independently solving the distortion center and the distortion coefficient, the coupling error of parameter solving is reduced effectively, and the correction precision is improved.

Description

The method for correcting image of distortion curve radian detection template
Technical field
The invention belongs to technical field of optical instrument, be specifically related to a kind of method for correcting image of distortion curve radian detection template.
Background technology
In recent years, along with deepening continuously of optical technology research, the application of imaging system is increasingly extensive.But because optical imaging system exists nonlinear geometry distortion, lens surface radian and the factor such as lens center and imaging plane dislocation, make imaging system camera lens existence distortion in various degree (as radial, tangential, thin prism distortion) problem.Under water (as fishing ground cultivation) in monitoring and measuring application, install bucker additional and use wide-angle lens, more exacerbating lens distortion, considerable influence is produced to successive image result.
Try to achieve systematical distortion coefficient by scaling method, utilize distortion factor to correct image, thus obtain the major technique that orthoscopic image is solution aberration problems.At present, the scaling method that optical imaging system mainly adopts has Tsai method, Zhang Zhengyou method etc.Tsai method utilizes radial constraint to solve video camera external parameter (translation matrix, rotation matrix and the anglec of rotation), based on the initial value of pin-hole model acquisition algorithm iteration, then obtains distortion of camera coefficient through nonlinear optimization search.Tsai method can reach good stated accuracy, but needs the non-co-planar three-dimensional scaling point obtained to be subject to the restriction of calibrating block precision, and timing is using picture centre as center of distortion, often cause the image scaled after correcting and ideal image inconsistent.Zhang Zhengyou method improves Tsai, the three-dimensional coordinate that scaling board in Tsai method is put is solved and is transformed into the two-dimensional coordinate that scaling board is put and solves, (i.e. scaling board used Z=0 in world coordinate system), camera parameters optimization solution is drawn by pin-hole model analytical calculation, then carry out nonlinear operation with based on maximum likelihood method [7], solve distortion factor.ZHANG method has good robustness, and can replace with plane reference plate the calibrating block that precision is higher, and practicality is stronger, but it is not independent to there is parametric solution, the large problem of coupling error.In recent years, propose based on above-mentioned two kinds of template standardizations that some demarcation speed are fast, succinct the improving one's methods of solution procedure, as the widely used Matlab tool box of one that the people such as Bouguet utilize Zhang Zhengyou algorithm to propose, input several different angles images, identify the angle point on scaling board, carry out distortion factor based on Zhang Zhengyou algorithm and solve, the method is applicable to the less demanding occasion of stated accuracy, reduce demarcation complexity, but need manual identification angle point; The camera self-calibration new method based on square templates that Chen Xi proposes, in conjunction with the double ratio relation in scaling board and projective geometry and harmonic conjugates character, solve distortion factor linearly, the method is applicable to the scene that there is geometrical property, dirigibility is higher, but poor robustness.But these methods above-mentioned do not solve the problem causing coupling error in parametric solution process.
In this context, pin image processing field distortion correction application demand of the present invention, a kind of method for correcting image of distortion curve radian detection template is provided, uncalibrated image and scene image is obtained by image collecting device, based on the method for distortion curve radian, calculate the image after correction efficiently.
Summary of the invention
Goal of the invention: in view of this, the present invention is directed to the above-mentioned or other defect existed in prior art, a kind of method for correcting image of distortion curve radian detection template is provided, solved by the calibrating template image gathered and obtain distortion factor, the target fault image gathered is processed, thus the correcting image of target can be obtained.
Technical scheme: for achieving the above object, the present invention adopts following technical scheme:
A method for correcting image for distortion curve radian detection template, solved by the scaling board image gathered and obtain distortion factor, then correct the scene image obtained based on distortion factor, wherein solving of distortion factor comprises the steps:
(1) radian of all curves in X-axis and Y direction calculating that black and white lattice intersection on scaling board image forms;
(2) in X-axis and Y direction, the minimum curve of two radians is respectively chosen respectively;
(3) least square line matching is carried out to two curves selected in step (2), obtain the undistorted straight line of ideal in X-axis and Y direction respectively;
(4) two the undistorted straight lines obtained in step (3) are carried out system of equations computing and obtain center of distortion coordinate;
(5) point centered by center of distortion, selected N × n-quadrant is that initial calibration is carried out in prime area, and obtain the N+1 bar straight line after the correction of X-axis and Y direction respectively, wherein N is default prime area black and white grid number;
(6) with the positive straight line of prime area lieutenant colonel for bus carries out scaling board image reconstruction;
(7) in conjunction with distortion model, distortional point coordinate and reconstruction point coordinate, solve and obtain distortion factor.
Further, the method solving the radian of a curve in X-axis or Y direction in step (1) for: on i-th curve coordinate a little, carry out least square line Fitting Analysis, the straight line expression formula of matching is y=a ix+b i, then utilize minimum mean-square error to solve crooked radian r i, wherein, (y i,k, x i,k) be the coordinate of kth on an i-th curve point.
Further, carrying out to the curve that two radians are minimum the method that fitting a straight line obtains desirable undistorted straight line in step (3) is: according to formula
x 3 , j = x 1 , j + ( x 2 , j - x 1 , j ) max ( r 1 , r 2 ) r 1 + r 2 y 3 , j = y 1 , j + ( y 2 , j - y 1 , j ) max ( r 1 , r 2 ) r 1 + r 2
Ask for the curve L that two radians are minimum 1and L 2, crooked radian is designated as r respectively 1and r 2, between the coordinate figure of each point of Article 3 curve L3, carry out least square line matching, calculate crooked radian r 3if, r 3< r 1, then by curve L 3be designated as L 1, and r 3=r 1; Otherwise r 3< r 2, then by curve L 3be designated as L 2, and r 3=r 2; Successive ignition calculate until | r 3| < ε, wherein ε is the threshold value of setting, the curve L obtained 3for undistorted straight line.
Further, in step (5), prime area bearing calibration specifically comprises:
(5.1) point centered by center of distortion O (U, V) obtained with step (4), selected 3 × 3 regions, as prime area, obtain 17, prime area coordinate points;
(5.2) three characteristics that the image after being corrected prime area meets are expressed as formula:
p 1 = &Sigma; l = 1 4 &Sigma; i = 1 4 ( y i - a 1 x i - b 1 ) 2 p 2 = &Sigma; r = 1 4 &Sigma; i = 1 4 ( y i - a r x i - b r ) 2 p 3 = | &Sigma; 1 3 &Sigma; i = 1 3 ( x i - x i + 1 ) 2 + ( y i - y i + 1 ) 2 + ( x i - x i + 4 ) 2 + ( y i - y i + 4 ) 3 - 2 L | p 4 = &Sigma; r = 1 4 &Sigma; l = 1 4 ( k l k r + 1 ) 2
Wherein a r, b rfor by the straight line coefficient that some matching is tried to achieve of four on straight line, (x i, y i) coordinate for scaling board image is put, L is the foursquare pixel length of side of gridiron pattern on scaling board image, k land k rfor the slope of straight line, p 1and p 2for curve linear characteristic is estimated, be worth less, curve is more close to ideal value; p 3for adjacent two dot characteristics are estimated, be worth less, arbitrary neighborhood 2 distances are more close to ideal value; p 4for the mutual vertical property of transverse and longitudinal axle straight line is estimated, be worth less, any transverse and longitudinal axle is close to ideal just state of value;
(5.3) p=p is asked for by least-squares iteration 1+ p 2+ p 3+ p 4minimum value, when p gets minimum value, prime area has corrected.
Further, in step (6), specifically comprise:
(6.1) extended to two ends by the straight line of prime area, with initial calibration edges of regions point for starting point, spacing distance L gets a little, tries to achieve the coordinate of remaining point on the straight line in all prime areas;
(6.2) four points arranged with remaining n-4 simulate the straight line of n-4 bar Y direction, and n is total columns of intersection point on scaling board image;
(6.3) simulate the straight line of m-4 bar X-direction with four points that remaining m-4 is capable, m is total line number of intersection point on scaling board image;
(6.4) coordinate of the point after namely the intersection point calculating all X-axis and Y direction straight line goes out to correct.
Further, the distortion model in step (7) is:
X p r 2 X p r 4 2 X p 2 + r 2 2 X p Y P Y p r 2 Y p r 4 2 X p Y P 2 Y p 2 + r 2 k 1 k 2 k 3 p 1 p 2 = X d - X p Y d - Y p
Wherein (U, V) is center of distortion point coordinate, (X p, Y p) be reconstruction point coordinate, (X d, Y d) be distortional point coordinate, k 1, k 2, k 3, p 1, p 2for distortion factor.
Further, described based on distortion factor in the method that corrects of scene image obtained according to system of equations X d = X P + X P ( k 1 r 2 + k 2 r 4 ) + p 1 ( 2 X p 2 + r 2 ) + 2 p 2 X P Y P Y d = Y P + Y P ( k 1 r 2 + k 2 r 4 ) + 2 p 1 X P Y P + p 2 ( 2 Y p 2 + r 2 ) Utilize distortional point coordinate figure (X d, Y d) try to achieve the ideal coordinates (X of all pixels in image p, Y p), thus obtain the image after correcting.
Beneficial effect: provided by the invention a kind of in the bearing calibration of fault image based on calibrating template distortion curve radian detect carry out solving of distortion factor.First, distortion curve radian is utilized to calculate center of distortion coordinate; On this basis, initial calibration is carried out to center of distortion near zone, then, utilize correcting area to rebuild image; Finally, carry out distortion factor in conjunction with image after fault image, distortion model and reconstruction and solve, then to the correct image obtained.Compared with prior art, the inventive method independently solves center of distortion and distortion factor, effectively reduces parametric solution coupling error, improves correction accuracy.
Accompanying drawing explanation
In order to make content of the present invention be more likely to be clearly understood, below basis specific embodiment and by reference to the accompanying drawings, the present invention is further detailed explanation, wherein:
Fig. 1 is the scaling board image schematic diagram gathered in the embodiment of the present invention;
Fig. 2 is center of distortion and the undistorted linear relation schematic diagram of ideal in the embodiment of the present invention;
Fig. 3 is initial calibration regional choice schematic diagram in the embodiment of the present invention;
Fig. 4 adopts the image rectification schematic flow sheet in the system of embodiment of the present invention method.
Embodiment
Disclosed in the invention process, a kind of method for correcting image of distortion curve radian detection template, first, utilizes Harris Corner Detection Algorithm, detects the coordinate of the joining of all black and white lattice on scaling board; Then based on the above-mentioned joining coordinate asked for, distortion curve radian is utilized to calculate center of distortion coordinate; On this basis, initial calibration is carried out to center of distortion near zone, then, utilize correcting area to rebuild image; Finally, carry out distortion factor in conjunction with image after fault image, distortion model and reconstruction and solve, then to the correct image obtained.Specifically comprise the steps:
(1) radian of every a line curve in scaling board image is calculated.As shown in Figure 1, gridiron pattern plane reference plate is the black and white lattice composition that the capable n of m arranges.Harris Corner Detection Algorithm is utilized to detect the pixel coordinate of all black and white lattice intersection on shooting image.With the upper left corner of image for initial point, image left edge is x-axis, and image coboundary is y-axis, terminate to the lower right corner from the upper left corner, the pixel coordinate of point is [i, j] (0≤i≤m-1,0≤j≤n-1), calculate the 0th row as follows to the method for the capable degree of crook of m-1.First to the coordinate of the n above every a line point, carry out least square line Fitting Analysis, the straight line expression formula of matching is y=a ix+b i, then utilize minimum mean-square error to solve crooked radian r i,
r i = &Sigma; k = 1 j ( y i , k - a i x i , k - b i ) 2 - - - ( 1 )
Wherein, (y i,k, x i,k) be the coordinate of kth on an i-th curve point.
(2) in the m bar curve required by step (1), two the curve i looking for crooked radian r minimum and curve i+1.Because curved direction, both sides, center of distortion is contrary, and adjacent, namely center of distortion is between curve i and i+1.Curve is designated as L 1, L 2, crooked radian is designated as r 1and r 2.
(3) according to formula
x 3 , j = x 1 , j + ( x 2 , j - x 1 , j ) max ( r 1 , r 2 ) r 1 + r 2 y 3 , j = y 1 , j + ( y 2 , j - y 1 , j ) max ( r 1 , r 2 ) r 1 + r 2 - - - ( 2 )
Ask for Article 3 curve L between two curves 3the coordinate figure (as Fig. 2) of each point, carry out least square line matching, calculate crooked radian r 3.If r 3< r 1, then by curve L 3be designated as L 1, and r 3=r 1; Otherwise r 3< r 2, then by curve L 3be designated as L 2, and r 3=r 2.
(4) step (3) is repeated, until | r 3| < ε, herein ε=0.001, now curve L 3be similar to very much the X-axis straight line by photocentre, be designated as l 1: y=a 1x+b 1.
(5) adopt the method for step (1) to (4) to calculate to each row in test template, the Y-axis straight line be similar to by photocentre can be tried to achieve, be designated as l 2: y=a 2x+b 2.
Ask for the intersecting point coordinate of above-mentioned two straight lines, simultaneous two straight line, solving equation group
y = a 1 x + b 1 y = a 2 x + b 2 - - - ( 3 )
Namely center of distortion coordinate is:
y x = 1 - a 1 - a 2 - 1 b 1 b 2 - - - ( 4 )
(6) with the above-mentioned center of distortion obtained for initial point, selected 3*3 region shown in Fig. 3 is as prime area.Prime area selected in Fig. 3 comprises 17 coordinate points, is designated as q respectively 1(x i, y j), q 2(x i, y j+1), q 3(x i, y j+2), q 4(x i, y j+3), q 5(x i+1, y j), q 6(x i+1, y j+1), q 7(x i+1, y j+2), q 8(x i+1, y j+3), q 9(x i+2, y j), q 10(x i+2, y j+1), q 11(x i+2, y j+2), q 12(x i+2, y j+3), q 13(x i+3, y j), q 14(x i+3, y j+1), q 15(x i+3, y j+2), q 16(x i+3, y j+3), O (U, V).
(7) essence of distorted image correction is image three characteristic: a after correcting: the straight line during line of arbitrary curve point; B: the distance between arbitrary neighborhood 2 is equal; C: transverse and longitudinal axle straight line is mutually vertical; Representation formula is as shown in (5).
p 1 = &Sigma; l = 1 4 &Sigma; i = 1 4 ( y i - a 1 x i - b 1 ) 2 p 2 = &Sigma; r = 1 4 &Sigma; i = 1 4 ( y i - a r x i - b r ) 2 p 3 = | &Sigma; 1 3 &Sigma; i = 1 3 ( x i - x i + 1 ) 2 + ( y i - y i + 1 ) 2 + ( x i - x i + 4 ) 2 + ( y i - y i + 4 ) 3 - 2 L | p 4 = &Sigma; r = 1 4 &Sigma; l = 1 4 ( k l k r + 1 ) 2 - - - ( 5 )
Wherein k land k rbe respectively the slope of row and column place straight line, L is the square pixel length of side in the picture in gridiron pattern.
(8) distortion degree due to the region near center of distortion is little relative to other regional compare, so to choose near center of distortion 3*3 region as initial calibration region, using this initial calibration region as image reconstruction basis, general image reconstruction error is substituted, integral image error after correction for reduction with regional area correction error.Formula (5) is transformed to formula (6).So far the problem that distortional point corrects just transfers the formula of asking for (6) minimum problems to, when the distance of picture point all on corresponding straight line and between adjacent 2 all equals a fixed value (length of side of little square shaped cells grid), formula (6) will obtain minimum value, so by least square (LM) iteration when formula (6) obtains minimum value, prime area has corrected.
p=p 1+p 2+p 3+p 4(6)
By using LM iterative algorithm, with the length of side L of template square cell, distortional point coordinate set q iwith initial straight parameter (a, b) as input value, carry out interative computation, make the coordinate q of distortional point i,dmove closer to ideal dot position q i,p, correcting straight line and move closer to desirable undistorted straight line, when the distance D of consecutive point meets | D-L| < 0.001, iteration terminates, and formula (6) obtains minimum value, obtains the prime area after correcting.
(9) with the X of prime area, Y direction four straight lines for bus, three features that after correcting, on scaling board, straight line meets are utilized to seek out the coordinate that in X-direction, on every bar straight line, remaining n-4 is put, and the coordinate that in Y direction, on every bar straight line, remaining m-4 is put.
After the correction of prime area, this regional correction point puts three features after meeting correction, the point on same direction is utilized to be in collinear characteristic, 8 of prime area straight lines are extended to two ends, then utilize adjacent 2 distance properties equivalent, with initial calibration edges of regions point for starting point, spacing distance L gets a little, try to achieve the coordinate of remaining n-4 point on every bar straight line in X-direction, and the coordinate that in Y direction, on every bar straight line, remaining m-4 is put.
(10) 4 somes matching on same y direction on 4 horizontal linears is obtained n-4 bar longitudinal axis straight line.
(11) 4 somes matching on same level direction on 4 longitudinal axis straight lines is obtained m-4 bar horizontal linear.
(12) coordinate of the point after namely the intersection point calculating all X-axis and Y direction straight line goes out to correct.
(13) above-mentioned check point coordinate of trying to achieve and original distortional point coordinate are substituted into distortion model formula (7)
X p r 2 X p r 4 2 X p 2 + r 2 2 X p Y P Y p r 2 Y p r 4 2 X p Y P 2 Y p 2 + r 2 k 1 k 2 k 3 p 1 p 2 = X d - X p Y d - Y p - - - ( 7 )
Wherein (X p, Y p) be ideal point coordinate, (X d, Y d) be distortional point coordinate.Obtain distortion factor (k 1, k 2, k 3, p 1, p 2).
(14) distortion factor is utilized to carry out distortion correction to scene image.Scene image distortion correction process is as follows: distortion model formula (7) is carried out conversion and obtains updating formula (8):
X d = X P + X P ( k 1 r 2 + k 2 r 4 ) + p 1 ( 2 X p 2 + r 2 ) + 2 p 2 X P Y P Y d = Y P + Y P ( k 1 r 2 + k 2 r 4 ) + 2 p 1 X P Y P + p 2 ( 2 Y p 2 + r 2 ) - - - ( 8 )
According to above-mentioned system of equations, utilize distortional point coordinate figure (X d, Y d) try to achieve the ideal coordinates (X of all pixels in image p, Y p), the image after correcting can be obtained.
As shown in Figure 4, for applying the image correction process process flow diagram of the intelligent distorted image correction system of method for correcting image of the present invention, first scaling board image and scene image is obtained by image collecting device, try to achieve distortion factor be stored in storer if uncalibrated image is then asked for by desirable undistorted straight line, center of distortion solves, prime area corrects, image reconstruction and distortion factor solve etc., when camera gets scene image, utilize the distortion factor stored to carry out image rectification in conjunction with distortion model to scene image, obtain orthoscopic image.Specific works flow process in system between each functional module is as follows:
1) camera is aimed at scaling board image and scene image respectively and is gathered scaling board image and scene image
2), during acquisition module end-of-job, acquisition control module sends a signal to storage control module, storage control module by gather view data through I 2c bus is stored into the raw data district of memory module.
3) in advance calibration coefficient acquisition algorithm and aberration correction algorithm are stored in the algorithm memory block of memory module.
4) after calibration coefficient acquisition module receives feedback signal, the calibration coefficient acquisition algorithm program of memory module algorithm memory block and the uncalibrated image in raw data district are loaded in calibration coefficient acquisition module, the calibration coefficient that the uncalibrated image loaded carries out detecting based on distortion curve radian is calculated.
5), after the process of calibration coefficient acquisition module terminates, calibration coefficient obtains control module will send feedback signal to storage control module and image procossing control module simultaneously.
6) calibration coefficient in storage area and scene fault image can be loaded into image processing module by memory module, after process terminates, image procossing control module can send and feed back signal to storage control module and display module, for storage and the display of correcting image.
Obviously, above-described embodiment is only for example of the present invention is clearly described, and is not the restriction to embodiments of the present invention.For those of ordinary skill in the field, can also make other changes in different forms on the basis of the above description.Here exhaustive without the need to also giving all embodiments.And these belong to spirit institute's apparent change of extending out of the present invention or change and are still within protection scope of the present invention.

Claims (7)

1. the method for correcting image of distortion curve radian detection template, solved by the scaling board image gathered and obtain distortion factor, then correct the scene image obtained based on distortion factor, it is characterized in that, wherein solving of distortion factor comprises the steps:
(1) radian of all curves in X-axis and Y direction calculating that black and white lattice intersection on scaling board image forms;
(2) in X-axis and Y direction, the minimum curve of two radians is respectively chosen respectively;
(3) least square line matching is carried out to two curves selected in step (2), obtain the undistorted straight line of ideal in X-axis and Y direction respectively;
(4) two the undistorted straight lines obtained in step (3) are carried out system of equations computing and obtain center of distortion coordinate;
(5) point centered by center of distortion, selected N × n-quadrant is that initial calibration is carried out in prime area, and obtain the N+1 bar straight line after the correction of X-axis and Y direction respectively, wherein N is default prime area black and white grid number;
(6) with the positive straight line of prime area lieutenant colonel for bus carries out scaling board image reconstruction;
(7) in conjunction with distortion model, distortional point coordinate and reconstruction point coordinate, solve and obtain distortion factor.
2. the method for correcting image of distortion curve radian detection template according to claim 1, it is characterized in that, the method solving the radian of a curve in X-axis or Y direction in step (1) for: on i-th curve coordinate a little, carry out least square line Fitting Analysis, the straight line expression formula of matching is y=a ix+b i, then utilize minimum mean-square error to solve crooked radian r i, wherein, (y i,k, x i,k) be the coordinate of kth on an i-th curve point.
3. the method for correcting image of distortion curve radian detection template according to claim 1, is characterized in that, carries out the method that fitting a straight line obtains desirable undistorted straight line to be in step (3) to the curve that two radians are minimum: according to formula
x 3 , j = x 1 , j + ( x 2 , j - x 1 , j ) max ( r 1 , r 2 ) r 1 + r 2 y 3 , j = y 1 , j + ( y 2 , j - y 1 , j ) max ( r 1 , r 2 ) r 1 + r 2
Ask for the curve L that two radians are minimum 1and L 2, crooked radian is designated as r respectively 1and r 2, between Article 3 curve L 3the coordinate figure of each point, carry out least square line matching, calculate crooked radian r 3if, r 3< r 1, then by curve L 3be designated as L 1, and r 3=r 1; Otherwise r 3< r 2, then by curve L 3be designated as L 2, and r 3=r 2; Successive ignition calculate until | r 3| < ε, wherein ε is the threshold value of setting, the curve L obtained 3for undistorted straight line.
4. the method for correcting image of distortion curve radian detection template according to claim 1, is characterized in that, in step (5), prime area bearing calibration specifically comprises:
(5.1) point centered by center of distortion O (U, V) obtained with step (4), selected 3 × 3 regions, as prime area, obtain 17, prime area coordinate points;
(5.2) three characteristics that the image after being corrected prime area meets are expressed as formula:
p 1 = &Sigma; l = 1 4 &Sigma; i = 1 4 ( y i - a 1 x i - b 1 ) 2 p 2 = &Sigma; r = 1 4 &Sigma; i = 1 4 ( y i - a r x i - b r ) 2 p 3 = | &Sigma; 1 3 &Sigma; i = 1 3 ( x i - x i + 1 ) 2 + ( y i - y i + 1 ) 2 + ( x i - x i + 4 ) 2 + ( y i - y i + 4 ) 2 - 2 L | p 4 = &Sigma; r = 1 4 &Sigma; l = 1 4 ( k l k r + 1 ) 2
Wherein a r, b rfor by the straight line coefficient that some matching is tried to achieve of four on straight line, (x i, y i) coordinate for scaling board image is put, L is the foursquare pixel length of side of gridiron pattern on scaling board image, k land k rfor the slope of straight line, p 1and p 2for curve linear characteristic is estimated, be worth less, curve is more close to ideal value; p 3for adjacent two dot characteristics are estimated, be worth less, arbitrary neighborhood 2 distances are more close to ideal value; p 4for the mutual vertical property of transverse and longitudinal axle straight line is estimated, be worth less, any transverse and longitudinal axle is close to ideal just state of value;
(5.3) p=p is asked for by least-squares iteration 1+ p 2+ p 3+ p 4minimum value, when p gets minimum value, prime area has corrected.
5. the method for correcting image of distortion curve radian detection template according to claim 4, is characterized in that, in step (6), specifically comprises:
(6.1) extended to two ends by the straight line of prime area, with initial calibration edges of regions point for starting point, spacing distance L gets a little, tries to achieve the coordinate of remaining point on the straight line in all prime areas;
(6.2) four points arranged with remaining n-4 simulate the straight line of n-4 bar Y direction, and n is total columns of intersection point on scaling board image;
(6.3) simulate the straight line of m-4 bar X-direction with four points that remaining m-4 is capable, m is total line number of intersection point on scaling board image;
(6.4) coordinate of the point after namely the intersection point calculating all X-axis and Y direction straight line goes out to correct.
6. the method for correcting image of distortion curve radian detection template according to claim 1, its feature exists
In, the distortion model in step (7) is:
X p r 2 X p r 4 2 X p 2 + r 2 2 X p Y p Y p r 2 Y p r 4 2 X p Y p 2 Y p 2 + r 2 k 1 k 2 k 3 p 1 p 2 = X d - X p Y d - Y p
Wherein (U, V) is center of distortion point coordinate, (X p, Y p) be reconstruction point
Coordinate, (X d, Y d) be distortional point coordinate, k 1, k 2, k 3, p 1, p 2for distortion factor.
7. the method for correcting image of distortion curve radian detection template according to claim 7, is characterized in that, described based on distortion factor in the method that corrects of scene image obtained according to system of equations X d = X P + X P ( k 1 r 2 + k 2 r 4 ) + p 1 ( 2 X p 2 + r 2 ) + 2 p 2 X P X P Y d = Y P + Y P ( k 1 r 2 + k 2 r 4 ) + 2 p 1 X P Y P + p 2 ( 2 Y p 2 + r 2 ) Utilize distortional point coordinate figure (X d, Y d) try to achieve the ideal coordinates (X of all pixels in image p, Y p), thus obtain the image after correcting.
CN201510230755.5A 2015-05-07 2015-05-07 The method for correcting image of distortion curve radian detection template Active CN104820973B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510230755.5A CN104820973B (en) 2015-05-07 2015-05-07 The method for correcting image of distortion curve radian detection template

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510230755.5A CN104820973B (en) 2015-05-07 2015-05-07 The method for correcting image of distortion curve radian detection template

Publications (2)

Publication Number Publication Date
CN104820973A true CN104820973A (en) 2015-08-05
CN104820973B CN104820973B (en) 2017-10-03

Family

ID=53731258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510230755.5A Active CN104820973B (en) 2015-05-07 2015-05-07 The method for correcting image of distortion curve radian detection template

Country Status (1)

Country Link
CN (1) CN104820973B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105957041A (en) * 2016-05-27 2016-09-21 上海航天控制技术研究所 Wide-angle lens infrared image distortion correction method
CN106127701A (en) * 2016-06-16 2016-11-16 深圳市凌云视迅科技有限责任公司 Fisheye image distortion correction method and device
CN106502179A (en) * 2016-12-02 2017-03-15 上海帆煜自动化科技有限公司 A kind of smart home monitoring system based on In-vehicle networking
CN109544643A (en) * 2018-11-21 2019-03-29 北京佳讯飞鸿电气股份有限公司 A kind of camera review bearing calibration and device
CN109754436A (en) * 2019-01-07 2019-05-14 北京工业大学 A kind of camera calibration method based on camera lens subregion distortion function model
CN111667536A (en) * 2019-03-09 2020-09-15 华东交通大学 Parameter calibration method based on zoom camera depth estimation
CN113284189A (en) * 2021-05-12 2021-08-20 深圳市格灵精睿视觉有限公司 Distortion parameter calibration method, device, equipment and storage medium
CN113947543A (en) * 2021-10-15 2022-01-18 天津大学 Method for correcting center of curved light bar in unbiased mode
CN114283736A (en) * 2022-03-03 2022-04-05 武汉精立电子技术有限公司 Method, device and equipment for correcting positioning coordinates of sub-pixels and readable storage medium
CN115908201A (en) * 2023-01-09 2023-04-04 武汉凡德智能科技有限公司 Hot area quick correction method and device for image distortion

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101814186A (en) * 2010-02-04 2010-08-25 上海交通大学 Method utilizing curve-fitting to calibrate radial distortion of camera
KR101255742B1 (en) * 2011-05-31 2013-04-17 주식회사 에이티엠 Dmethod for deciding of lens distortion correction parameters
CN103530880A (en) * 2013-10-16 2014-01-22 大连理工大学 Camera calibration method based on projected Gaussian grid pattern

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101814186A (en) * 2010-02-04 2010-08-25 上海交通大学 Method utilizing curve-fitting to calibrate radial distortion of camera
KR101255742B1 (en) * 2011-05-31 2013-04-17 주식회사 에이티엠 Dmethod for deciding of lens distortion correction parameters
CN103530880A (en) * 2013-10-16 2014-01-22 大连理工大学 Camera calibration method based on projected Gaussian grid pattern

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
RUI MELO等: "A New Solution for Camera Calibration and Real-time Image Distortion Correction in Medical Endoscopy-Initial", 《IEEE TRANSACTIONS ON BIOMEDICAL ENGINEERING》 *
徐嵩 等: "利用直线段成像特性的摄像机畸变迭代标定方法", 《浙江大学学报(工学版)》 *

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105957041A (en) * 2016-05-27 2016-09-21 上海航天控制技术研究所 Wide-angle lens infrared image distortion correction method
CN105957041B (en) * 2016-05-27 2018-11-20 上海航天控制技术研究所 A kind of wide-angle lens infrared image distortion correction method
CN106127701A (en) * 2016-06-16 2016-11-16 深圳市凌云视迅科技有限责任公司 Fisheye image distortion correction method and device
CN106502179A (en) * 2016-12-02 2017-03-15 上海帆煜自动化科技有限公司 A kind of smart home monitoring system based on In-vehicle networking
CN106502179B (en) * 2016-12-02 2019-03-15 福建省福信富通网络科技股份有限公司 A kind of smart home monitoring system based on In-vehicle networking
CN109544643A (en) * 2018-11-21 2019-03-29 北京佳讯飞鸿电气股份有限公司 A kind of camera review bearing calibration and device
CN109544643B (en) * 2018-11-21 2023-08-11 北京佳讯飞鸿电气股份有限公司 Video camera image correction method and device
CN109754436B (en) * 2019-01-07 2020-10-30 北京工业大学 Camera calibration method based on lens partition area distortion function model
CN109754436A (en) * 2019-01-07 2019-05-14 北京工业大学 A kind of camera calibration method based on camera lens subregion distortion function model
CN111667536A (en) * 2019-03-09 2020-09-15 华东交通大学 Parameter calibration method based on zoom camera depth estimation
CN113284189A (en) * 2021-05-12 2021-08-20 深圳市格灵精睿视觉有限公司 Distortion parameter calibration method, device, equipment and storage medium
CN113947543A (en) * 2021-10-15 2022-01-18 天津大学 Method for correcting center of curved light bar in unbiased mode
CN113947543B (en) * 2021-10-15 2024-04-12 天津大学 Curve light bar center unbiased correction method
CN114283736A (en) * 2022-03-03 2022-04-05 武汉精立电子技术有限公司 Method, device and equipment for correcting positioning coordinates of sub-pixels and readable storage medium
CN114283736B (en) * 2022-03-03 2022-06-03 武汉精立电子技术有限公司 Method, device and equipment for correcting positioning coordinates of sub-pixels and readable storage medium
CN115908201A (en) * 2023-01-09 2023-04-04 武汉凡德智能科技有限公司 Hot area quick correction method and device for image distortion
CN115908201B (en) * 2023-01-09 2023-11-28 武汉凡德智能科技有限公司 Method and device for quickly correcting hot zone of image distortion

Also Published As

Publication number Publication date
CN104820973B (en) 2017-10-03

Similar Documents

Publication Publication Date Title
CN104820973A (en) Image correction method for distortion curve radian detection template
CN103411553B (en) The quick calibrating method of multi-linear structured light vision sensors
CN111784778B (en) Binocular camera external parameter calibration method and system based on linear solving and nonlinear optimization
CN101887589B (en) Stereoscopic vision-based real low-texture image reconstruction method
CN109903341A (en) Join dynamic self-calibration method outside a kind of vehicle-mounted vidicon
CN104616325B (en) A kind of large surfaces Light stripes center extraction method of quick high accuracy
CN110031829B (en) Target accurate distance measurement method based on monocular vision
CN103198477B (en) Apple fruitlet bagging robot visual positioning method
CN113223075A (en) Ship height measuring system and method based on binocular camera
CN101650828B (en) Method for reducing random error of round object location in camera calibration
CN103727930A (en) Edge-matching-based relative pose calibration method of laser range finder and camera
CN101639947A (en) Image-based plant three-dimensional shape measurement and reconstruction method and system
CN103438834B (en) The hierarchical quick three-dimensional measurement mechanism of structure based light projection and measuring method
CN109465830B (en) Robot monocular stereoscopic vision calibration system and method
CN110827361B (en) Camera group calibration method and device based on global calibration frame
CN105631844A (en) Image camera calibration method
CN103679741A (en) Method for automatically registering cloud data of laser dots based on three-dimensional line characters
CN104881866A (en) Fisheye camera rectification and calibration method for expanding pin-hole imaging model
CN107564070B (en) Large-scene binocular ranging and correcting method in overhead power transmission channel image monitoring
CN108154536A (en) The camera calibration method of two dimensional surface iteration
CN108564621A (en) Structured light strip center extraction method and device for rut detection
CN103913149A (en) Binocular range finding system based on STM 32 single chip microcomputer and range finding method thereof
CN105701776B (en) A kind of lens distortion antidote and system for automatic optics inspection
Wang et al. Lane boundary detection based on parabola model
CN103927748A (en) Coordinate calibrating method based on multi-rectangle image distance transformation model

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant