[go: up one dir, main page]

CN108198222B - Wide-angle lens calibration and image correction method - Google Patents

Wide-angle lens calibration and image correction method Download PDF

Info

Publication number
CN108198222B
CN108198222B CN201810082403.3A CN201810082403A CN108198222B CN 108198222 B CN108198222 B CN 108198222B CN 201810082403 A CN201810082403 A CN 201810082403A CN 108198222 B CN108198222 B CN 108198222B
Authority
CN
China
Prior art keywords
image
point
corner
wide
angle lens
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
CN201810082403.3A
Other languages
Chinese (zh)
Other versions
CN108198222A (en
Inventor
丛国涛
张永锋
张晓旭
山丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dalian Neusoft University of Information
Original Assignee
Dalian Neusoft University of Information
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dalian Neusoft University of Information filed Critical Dalian Neusoft University of Information
Priority to CN201810082403.3A priority Critical patent/CN108198222B/en
Publication of CN108198222A publication Critical patent/CN108198222A/en
Application granted granted Critical
Publication of CN108198222B publication Critical patent/CN108198222B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/80Geometric correction

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Processing (AREA)

Abstract

本发明公开一种广角镜头标定及图像矫正方法,包括以下步骤:准备一幅4×4的棋盘格图像作为标定模板,并经广角镜头拍摄标定模板获取球面图像,对球面图像进行RGB转换YUV运算,得到灰度图像,处理灰度图像,获得包含9个边界线角点的图像;利用角点信息通过椭圆公式计算球面半径作为矫正系数,再使用矫正系数对镜头使用过程中获得的球面图像进行矫正。本方法计算简便,可以通过嵌入式设备直接求解标定参数及解算矫正图像,满足实时处理的需求。

Figure 201810082403

The invention discloses a wide-angle lens calibration and image correction method, comprising the following steps: preparing a 4×4 checkerboard image as a calibration template, shooting the calibration template through a wide-angle lens to obtain a spherical image, and performing RGB conversion YUV operation on the spherical image to obtain Grayscale image, process the grayscale image to obtain an image containing 9 corner points of the boundary line; use the corner point information to calculate the spherical radius through the ellipse formula as a correction coefficient, and then use the correction coefficient to correct the spherical image obtained during the use of the lens. The method is simple to calculate, and can directly solve the calibration parameters and solve the corrected image through the embedded device, so as to meet the needs of real-time processing.

Figure 201810082403

Description

Wide-angle lens calibration and image correction method
Technical Field
The invention relates to the technical field of digital image processing, in particular to a wide-angle lens calibration and image correction method.
Background
At present, most of the known distortion correction modes of wide-angle lenses are to set up an experimental device, collect checkerboard images through a camera, transmit the images to a computer, and calculate lens distortion parameters through upper computer software for restoring fisheye circular distortion images. In the prior art, due to the complex algorithm including polynomial solution and complex matrix operation, distortion parameters can be solved only through upper computer software, the calculation of calibration parameters cannot be directly realized through embedded equipment, and the requirement of real-time processing cannot be met.
Disclosure of Invention
The invention discloses a wide-angle lens calibration and image correction method, which is characterized by comprising the following steps of:
s1: selecting an n multiplied by n checkerboard image as a calibration template, wherein n is an even number greater than 2;
s2: adjusting the positions of the wide-angle lens and the calibration template, and shooting to obtain a spherical image;
s3: applying formula (1), performing RGB conversion YUV operation on the spherical image to obtain gray image Pg,
Figure BDA0001561391690000011
in the formula (1), R, G, B respectively represents the red, green and blue color values of the pixel points in the spherical image, Y represents the brightness value of the pixel points in the gray image Pg, and U, V represents the color difference value;
s4: processing the Pg to obtain an image HEp0 containing (n-1) x (n-1) boundary line corner points;
s5: if the center corner point is located at the center of the HEp0 and the rest corner points are symmetrical up, down, left and right, the sequence is carried out, otherwise, the step S2 is returned;
s6: the correction coefficient R is calculated by the ellipse formula (2),
Figure BDA0001561391690000012
in the formula (2), the middle corner point of the top row of corner points of the HEp0 is selected as an upper central corner point, the common corner point of the n/2 row corner point and the n/2 column corner point of the HEp0 is selected as a central corner point, the central corner point is set as a coordinate origin, b is the distance between the upper central corner point and the central corner point, x is the distance between the upper central corner point and the central corner point, and the upper central corner point and the central corner point are arranged in a same plane, and the central corner point is arranged in a same plane as the upper central corner point and the central corner point1、y1Is thatTop left corner point coordinate values of HEp 0;
s7: setting the geometric center point of the image shot by the wide-angle lens as a coordinate origin, and using the correction coefficient R to perform correction operation on the image shot by the wide-angle lens according to the formula (3) to obtain a corrected image;
Figure BDA0001561391690000021
in the formula (3), u and v are plane coordinate values of each pixel point in the image shot by the wide-angle lens, x and y are plane coordinate values of the corrected image, z is obtained according to the formula (4),
Figure BDA0001561391690000022
in equation (4), H, L represents the number of horizontal pixels and the number of vertical pixels of the wide-angle lens captured image.
Further, step S4 includes the following specific steps:
s41: taking one pixel in the Pg as Pgk, taking Y values of 9 points of the surrounding pixels Pgk and Pgk to form a 3x3 matrix A, and carrying out convolution operation according to an equation (5) and an equation (6) to obtain an approximate value G of the transverse and longitudinal brightness difference of the PgkxAnd Gy
Figure BDA0001561391690000023
Figure BDA0001561391690000024
Comparison Gx、GyAnd a threshold Vth1, if Gx<Vth1 and Gy>Vth1, taking "1" as the output value corresponding to the pixel Pgk as a boundary point, otherwise, taking "0" as the output value corresponding to the pixel Pgk as a non-boundary point, and performing traversal operation to obtain an image E1 including a boundary from a white lattice to a black lattice;
by comparison of Gx、GyAnd a threshold Vth1, if Gx>Vth1 and Gy<Vth1, taking "1" as the output value corresponding to the pixel Pgk as the boundary point, otherwise, taking "0" as the output value corresponding to the pixel Pgk as the non-boundary point, and performing traversal operation to obtain an image E2 including a boundary from a black lattice to a white lattice;
s42: traversing AND operation is carried out on the E1 and the E2 through a 3x3 full '1' matrix window, if the value of any one pixel point in the AND operation window is '1', the value of the currently traversed pixel point (namely the central pixel point of the window) is '1', otherwise, the value of the currently traversed pixel point is '0', and boundary expansion images Ep1 and Ep2 are obtained after traversal;
s43: the Ep1 and the Ep2 are subjected to AND operation to obtain an image HEp containing (n-1) x (n-1) corner point areas;
s44: and carrying out coordinate averaging operation on each corner point region of the HEp to obtain an image HEp0 containing (n-1) x (n-1) corner points.
Further, the calibration template selects a 4 × 4 checkerboard image.
Further, Vth1 is an average value of the full white gradation value and the full black gradation value.
Further, in S43, the specific determination process of the corner region is as follows: if the coordinate distance of the pixel point with the pixel value of '1' is smaller than the threshold value Vth2, the pixel points belong to the same corner point area, otherwise, the pixel points belong to different corner point areas.
Further, in the traversal operations of S41 and S42, when two rows or two columns of pixel points at the edge of the image are processed, the corresponding values of the pixels at the rows or columns at the opposite outer edges are filled into the edge of the 3 × 3 matrix.
The wide-angle lens calibration and image correction method provided by the invention is simple in calculation, the calibration parameter can be directly calculated through embedded equipment, the spherical radius is taken as the correction coefficient, the correction calculation amount is very low, the effect is satisfactory, the hardware implementation can be carried out in an FPGA image acquisition system, and the real-time processing requirement is met. Because experimental equipment for calibration does not need to be built and the calculation of an upper computer is not needed, the calibration method is low in cost and simple to operate.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart of the calculation of the present invention;
FIG. 2 is a 4 × 4 checkerboard calibration template image used in the present invention;
FIG. 3 is a spherical image obtained after a calibration template is shot by a wide-angle lens;
FIG. 4 is an image after spherical image rectification processing;
FIG. 5 is a diagram of a spherical surface projection model;
FIG. 6 is a flowchart illustrating the calculation of the correction factor according to the present invention;
FIG. 7 is a schematic diagram of a white cell to black cell boundary;
FIG. 8 is a schematic diagram of a black to white cell boundary;
FIG. 9 is a schematic view of 9 corner regions;
fig. 10 is a schematic view of 9 corner points.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, the present invention discloses a wide-angle lens calibration and image correction method, which is characterized by comprising the following steps:
s1: selecting an n multiplied by n checkerboard image as a calibration template, wherein n is an even number greater than 2;
s2: adjusting the positions of the wide-angle lens and the calibration template, and shooting to obtain a spherical image;
s3: applying formula (1), performing RGB conversion YUV operation on the spherical image to obtain gray image Pg,
Figure BDA0001561391690000041
in the formula (1), R, G, B respectively represents the red, green and blue color values of the pixel points in the spherical image, Y represents the brightness value of the pixel points in the gray image Pg, and U, V represents the color difference value;
s4: processing the Pg to obtain an image HEp0 containing (n-1) x (n-1) boundary line corner points;
s5: if the center corner point is located at the center of the HEp0 and the rest corner points are symmetrical up, down, left and right, the sequence is carried out, otherwise, the step S2 is returned
S6: the correction coefficient R is calculated by the ellipse formula (2),
Figure BDA0001561391690000042
in the formula (2), the middle corner point of the top row of corner points of the HEp0 is selected as an upper central corner point, the common corner point of the n/2 row corner point and the n/2 column corner point of the HEp0 is selected as a central corner point, the central corner point is set as a coordinate origin, b is the distance between the upper central corner point and the central corner point, x is the distance between the upper central corner point and the central corner point, and the upper central corner point and the central corner point are arranged in a same plane, and the central corner point is arranged in a same plane as the upper central corner point and the central corner point1、y1Is the coordinate value of the upper left corner point of the HEp 0;
s7: setting the geometric center point of the image shot by the wide-angle lens as a coordinate origin, and using the correction coefficient R to perform correction operation on the image shot by the wide-angle lens according to the formula (4) to obtain a corrected image;
when n takes a value of 4, the calibration template, the spherical image and the corrected image are respectively shown in fig. 2, fig. 3 and fig. 4.
The specific derivation calculation process is as follows:
as shown in fig. 5, the spherical surface projection formula used for the correction coordinates: x is the number of2+y2+z2=R2A point in space A (x, y, z) points to the origin O, and the ray intersects the surface of the sphere at A/And A is/Projected onto xoy plane at A//(u, v, o). Then A is//(u, v, o) is the spherical projection coordinate of A (x, y, z). The spherical projection model can obtain the corresponding relation between a space coordinate system (x, y, z) and an imaging coordinate system (u, v, o):
Figure BDA0001561391690000051
equation (4) for converting from spherical imaging coordinates (u, v) to corrected image coordinates (x, y) is derived from the above equation.
Figure BDA0001561391690000052
In the formula (4), u and v are plane coordinate values of each pixel point in an image photographed by the wide-angle lens, x and y are plane coordinate values of the corrected image, and in order to make the image size of the spherical projection and the corrected image size uniform, the z value in the formula (4) is obtained according to the formula (5),
Figure BDA0001561391690000053
in the formula (5), H is the number of image horizontal pixels, and L is the number of image vertical pixels.
The wide-angle lens calibration and image correction method provided by the invention is simple in calculation, the calibration parameter can be directly calculated through embedded equipment, the spherical radius is taken as the correction coefficient, the correction calculation amount is very low, the effect is satisfactory, the hardware implementation can be carried out in an FPGA image acquisition system, and the real-time processing requirement is met. Because experimental equipment for calibration does not need to be built and the calculation of an upper computer is not needed, the calibration method is low in cost and simple to operate.
Further, as shown in fig. 6, step S4 includes the following specific steps:
s41: taking one pixel in the Pg as Pgk, taking Y values of 9 points of the surrounding pixels Pgk and Pgk to form a 3x3 matrix A, and carrying out convolution operation according to an equation (6) and an equation (7) to obtain an approximate value G of the transverse and longitudinal brightness difference of the PgkxAnd Gy
Figure BDA0001561391690000061
Figure BDA0001561391690000062
Comparison Gx、GyAnd a threshold Vth1, if Gx<Vth1 and Gy>Vth1, taking "1" as the output value corresponding to the pixel Pgk as the boundary point, otherwise, taking "0" as the output value corresponding to the pixel Pgk as the non-boundary point, and performing traversal operation to obtain an image E1 (as shown in fig. 7) including a boundary from a white lattice to a black lattice;
by comparison of Gx、GyAnd a threshold Vth1, if Gx>Vth1 and Gy<Vth1, taking "1" as the output value corresponding to the pixel Pgk as the boundary point, otherwise, taking "0" as the output value corresponding to the pixel Pgk as the non-boundary point, and performing traversal operation to obtain an image E2 (as shown in fig. 8) including a boundary from a black lattice to a white lattice;
s42: traversing AND operation is carried out on the E1 and the E2 through a 3x3 full '1' matrix window, if the value of any one pixel point in the AND operation window is '1', the value of the currently traversed pixel point (namely the central pixel point of the window) is '1', otherwise, the value of the currently traversed pixel point is '0', and boundary expansion images Ep1 and Ep2 are obtained after traversal;
s43: the Ep1 and the Ep2 are subjected to AND operation to obtain an image HEp (shown in figure 9) containing (n-1) x (n-1) corner point areas;
s44: and carrying out coordinate averaging operation on each corner point region of the HEp to obtain an image HEp0 (shown in figure 10) containing (n-1) x (n-1) corner points.
And obtaining an image E1 containing a boundary from a white grid to a black grid and an image E2 containing a boundary from a black grid to a white grid, sequentially expanding and intersecting to obtain corner regions, and finally carrying out average calculation to obtain corners, so that the calculation result is stable, the calculation error is reduced as much as possible, and a foundation is laid for obtaining accurate correction coefficients.
Further, the calibration template selects a 4 × 4 checkerboard image. The 4 multiplied by 4 checkerboard image has small calculated amount, and the correction coefficient obtained after the experiment shooting calculation can meet the precision requirement.
Further, Vth1 is an average value of the full white gradation value and the full black gradation value. The average value can make the calculation result more stable.
Further, in S43, the specific determination process of the corner region is as follows: if the coordinate distance of the pixel point with the pixel value of "1" is smaller than the threshold Vth2, the pixel points belong to the same corner region, otherwise, the pixel points belong to different corner regions, and the Vth2 usually takes a value of 20, and can also be adjusted according to the actual effect.
Further, in the traversal operations of S41 and S42, when two rows or two columns of pixel points at the edge of the image are processed, the corresponding values of the pixels at the rows or columns at the opposite outer edges are filled into the edge of the 3 × 3 matrix. . Because the corner points are key information required by calculation and are not positioned at the edge of the image, the calculation accuracy is not influenced by adopting a direct extension filling mode when the pixel points at the edge of the image are processed, and the calculation amount is favorably reduced.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (6)

1.一种广角镜头标定及图像矫正方法,其特征在于,包括以下步骤:1. a wide-angle lens calibration and image correction method, is characterized in that, comprises the following steps: S1:选用一幅n×n的棋盘格图像作为标定模板,所述n为大于2的偶数;S1: Select an n×n checkerboard image as the calibration template, where n is an even number greater than 2; S2:调整所述广角镜头与所述标定模板的位置,拍摄获得球面图像;S2: Adjust the positions of the wide-angle lens and the calibration template, and shoot to obtain a spherical image; S3:运用式(1),对所述球面图像进行RGB转换YUV运算,得到灰度图像Pg,S3: Using formula (1), perform RGB conversion YUV operation on the spherical image to obtain a grayscale image Pg,
Figure FDA0003169847980000011
Figure FDA0003169847980000011
式(1)中,R、G、B分别表示所述球面图像中像素点的红、绿、蓝颜色值,Y表示所述灰度图像Pg中像素点的亮度值,U、V表示色差值;In formula (1), R, G, and B represent the red, green, and blue color values of the pixels in the spherical image, respectively, Y represents the brightness value of the pixels in the grayscale image Pg, and U and V represent the color difference. value; S4:处理所述Pg,获得包含(n-1)×(n-1)个边界线角点的图像HEp0;S4: Process the Pg to obtain an image HEp0 including (n-1)×(n-1) boundary line corner points; S5:若所述图像HEp0的中心角点位于所述图像HEp0的正中心,其余各角点上下左右对称,则顺序进行,否则返回步骤S2;S5: If the center corner of the image HEp0 is located in the center of the image HEp0, and the other corners are symmetrical up and down, left and right, proceed in sequence, otherwise return to step S2; 其中选取所述HEp0的第n/2行角点与第n/2列角点的公共角点为中心角点;Wherein, the common corner point of the n/2th row corner point and the n/2th column corner point of the HEp0 is selected as the central corner point; S6:通过椭圆公式(2)计算出矫正系数R,S6: Calculate the correction coefficient R through the ellipse formula (2),
Figure FDA0003169847980000012
Figure FDA0003169847980000012
式(2)中,选取所述HEp0的最上面一行角点的中间角点为上中央角点,将所述中心角点设定为坐标原点,b是所述上中央角点和所述中心角点之间的距离,x1、y1是所述HEp0的左上角点的坐标值;In formula (2), the middle corner point of the uppermost row of corner points of the HEp0 is selected as the upper center corner point, the center corner point is set as the coordinate origin, and b is the upper center corner point and the center. The distance between the corner points, x 1 , y 1 are the coordinate values of the upper left corner of the HEp0; S7:将广角镜头拍摄的图像的几何中心点设定为坐标原点,使用所述矫正系数R,依照式(3)对广角镜头拍摄的图像进行矫正运算获得矫正后图像,S7: Set the geometric center point of the image captured by the wide-angle lens as the coordinate origin, and use the correction coefficient R to perform a correction operation on the image captured by the wide-angle lens according to formula (3) to obtain a corrected image,
Figure FDA0003169847980000013
Figure FDA0003169847980000013
式(3)中,u、v为广角镜头拍摄的图像中各像素点的平面坐标值,x、y为矫正后图像的平面坐标值,z依照式(4)获取,In formula (3), u and v are the plane coordinate values of each pixel in the image captured by the wide-angle lens, x and y are the plane coordinate values of the corrected image, and z is obtained according to formula (4),
Figure FDA0003169847980000014
Figure FDA0003169847980000014
式(4)中,H、L分别是广角镜头拍摄图像的水平像素数量、垂直像素数量。In formula (4), H and L are the number of horizontal pixels and the number of vertical pixels of the image captured by the wide-angle lens, respectively.
2.根据权利要求1所述的一种广角镜头标定及图像矫正方法,其特征在于,步骤S4包括以下具体步骤:2. a kind of wide-angle lens calibration and image correction method according to claim 1, is characterized in that, step S4 comprises following concrete steps: S41:取所述Pg中的一个像素点记为Pgk,取所述Pgk及Pgk的周围像素点共9点的Y值组成3×3的矩阵A,依照式(5)、式(6)进行卷积运算获得所述Pgk的横向及纵向亮度差分近似值Gx和GyS41: Take one pixel in the Pg and denote it as Pgk, take the Y values of 9 points of the Pgk and the surrounding pixels of Pgk to form a 3×3 matrix A, and perform according to the formula (5) and the formula (6). The convolution operation obtains the horizontal and vertical luminance difference approximations G x and G y of the Pgk,
Figure FDA0003169847980000021
Figure FDA0003169847980000021
Figure FDA0003169847980000022
Figure FDA0003169847980000022
比较Gx、Gy与阈值Vth1,若Gx<-Vth1且Gy>Vth1,则与像素点Pgk对应的输出值取“1”,为边界点,否则,与像素点Pgk对应的输出值取“0”,为非边界点,进行遍历运算,获得包含从白色格到黑色格边界的图像E1;Compare G x , G y with the threshold Vth1, if G x <-Vth1 and G y >Vth1, then the output value corresponding to the pixel point Pgk takes "1" as the boundary point, otherwise, the output value corresponding to the pixel point Pgk Take "0" as a non-boundary point, perform traversal operation, and obtain the image E1 containing the boundary from the white grid to the black grid; 通过比较Gx、Gy与阈值Vth1,若Gx>Vth1且Gy<-Vth1,则与像素点Pgk对应的输出值取“1”,为边界点,否则,与像素点Pgk对应的输出值取“0”,为非边界点,进行遍历运算,获得包含从黑色格到白色格边界的图像E2;By comparing G x , G y and the threshold Vth1, if G x >Vth1 and G y <-Vth1, the output value corresponding to the pixel point Pgk takes "1" as the boundary point, otherwise, the output value corresponding to the pixel point Pgk The value is "0", which is a non-boundary point, and the traversal operation is performed to obtain the image E2 containing the boundary from the black grid to the white grid; S42:通过一个3x3的全“1”矩阵窗口对所述E1与E2进行遍历“与”运算,若“与”运算后窗口中的任意一个像素点的值是“1”,则当前遍历的像素点的值取“1”,否则当前遍历的像素点的值取“0”,遍历后获得边界膨胀图像Ep1与Ep2;S42: Perform a traversal "AND" operation on the E1 and E2 through a 3x3 all "1" matrix window, if the value of any pixel in the window after the "AND" operation is "1", then the current traversed pixel The value of the point is "1", otherwise the value of the currently traversed pixel point is "0", and the boundary dilation images Ep1 and Ep2 are obtained after the traversal; S43:所述Ep1与Ep2进行“与”操作,得到包含(n-1)×(n-1)个角点区域的图像HEp;S43: performing an "AND" operation on the Ep1 and Ep2 to obtain an image HEp including (n-1)×(n-1) corner regions; S44:对所述HEp的每个角点区域进行坐标求平均值运算,得到(n-1)×(n-1)个角点的图像HEp0。S44: Perform a coordinate averaging operation on each corner area of the HEp to obtain an image HEp0 of (n-1)*(n-1) corners.
3.根据权利要求2所述的一种广角镜头标定及图像矫正方法,其特征在于,所述标定模板选取4×4的棋盘格图像。3 . The method for wide-angle lens calibration and image correction according to claim 2 , wherein the calibration template selects a 4×4 checkerboard image. 4 . 4.根据权利要求3所述的一种广角镜头标定及图像矫正方法,其特征在于,Vth1取全白灰度值和全黑灰度值的平均值。4 . The method for wide-angle lens calibration and image correction according to claim 3 , wherein Vth1 takes the average value of the all-white grayscale value and the all-black grayscale value. 5 . 5.根据权利要求4所述的一种广角镜头标定及图像矫正方法,其特征在于,在S43中,角点区域的具体判定过程如下:若像素值为“1”的像素点的坐标间距小于阈值Vth2,则属于同一角点区域,否则,则属于不同角点区域。5. a kind of wide-angle lens calibration and image correction method according to claim 4, is characterized in that, in S43, the concrete judgment process of corner point area is as follows: if the coordinate spacing of the pixel point that pixel value is " 1 " is less than threshold value Vth2, belong to the same corner area, otherwise, belong to different corner areas. 6.根据权利要求5所述的一种广角镜头标定及图像矫正方法,其特征在于,在S41和S42的遍历运算中,当处理图像边缘两行或两列的像素点时,以相对外缘的行或列的像素的对应值填充至3×3矩阵的边缘。6. a kind of wide-angle lens calibration and image correction method according to claim 5, is characterized in that, in the traversal operation of S41 and S42, when processing the pixel point of two rows or two columns of image edge, with relative outer edge The corresponding values of the pixels of the row or column are padded to the edges of the 3x3 matrix.
CN201810082403.3A 2018-01-29 2018-01-29 Wide-angle lens calibration and image correction method Expired - Fee Related CN108198222B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810082403.3A CN108198222B (en) 2018-01-29 2018-01-29 Wide-angle lens calibration and image correction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810082403.3A CN108198222B (en) 2018-01-29 2018-01-29 Wide-angle lens calibration and image correction method

Publications (2)

Publication Number Publication Date
CN108198222A CN108198222A (en) 2018-06-22
CN108198222B true CN108198222B (en) 2021-09-03

Family

ID=62591628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810082403.3A Expired - Fee Related CN108198222B (en) 2018-01-29 2018-01-29 Wide-angle lens calibration and image correction method

Country Status (1)

Country Link
CN (1) CN108198222B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110059611B (en) * 2019-04-12 2023-05-05 中国石油大学(华东) Intelligent classroom vacant seat identification method
CN110132150A (en) * 2019-05-10 2019-08-16 公安部第三研究所 System and method for measuring spot size of visible light source
CN112734721B (en) * 2021-01-08 2024-01-16 昆山丘钛微电子科技股份有限公司 Optical axis deflection angle detection method, device, equipment and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096923A (en) * 2011-01-20 2011-06-15 上海杰图软件技术有限公司 Fisheye calibration method and device
CN103679729A (en) * 2013-12-17 2014-03-26 中国人民解放军第二炮兵工程大学 Full-automatic camera parameter calibration method based on colored calibration board
WO2014106303A1 (en) * 2013-01-07 2014-07-10 Tamaggo Inc. Panoramic lens calibration for panoramic image and/or video capture apparatus
CN103942796A (en) * 2014-04-23 2014-07-23 清华大学 High-precision projector and camera calibration system and method
CN105023265A (en) * 2014-04-29 2015-11-04 东北大学 Checkerboard angular point automatic detection method under fish-eye lens
WO2016180827A1 (en) * 2015-05-13 2016-11-17 Aim Sport Vision Ag Digitally overlaying an image with another image
CN107610185A (en) * 2017-10-12 2018-01-19 长沙全度影像科技有限公司 A kind of fisheye camera fast calibration device and scaling method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI591377B (en) * 2015-12-11 2017-07-11 財團法人工業技術研究院 Wide-angle lens correction system and method thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096923A (en) * 2011-01-20 2011-06-15 上海杰图软件技术有限公司 Fisheye calibration method and device
WO2014106303A1 (en) * 2013-01-07 2014-07-10 Tamaggo Inc. Panoramic lens calibration for panoramic image and/or video capture apparatus
CN103679729A (en) * 2013-12-17 2014-03-26 中国人民解放军第二炮兵工程大学 Full-automatic camera parameter calibration method based on colored calibration board
CN103942796A (en) * 2014-04-23 2014-07-23 清华大学 High-precision projector and camera calibration system and method
CN105023265A (en) * 2014-04-29 2015-11-04 东北大学 Checkerboard angular point automatic detection method under fish-eye lens
WO2016180827A1 (en) * 2015-05-13 2016-11-17 Aim Sport Vision Ag Digitally overlaying an image with another image
CN107610185A (en) * 2017-10-12 2018-01-19 长沙全度影像科技有限公司 A kind of fisheye camera fast calibration device and scaling method

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
Improved wide-angle,fisheye and omnidirectional camera calibration;Steffen Urban等;《ISPRS Journal of Photogrammetry and Remote Sensing》;20150703;第108卷(第2015期);第72-79页 *
Method for calibrating the fisheye distortion center;Fuyu Huang等;《Applied Optics》;20121129;第51卷(第34期);第8169-8176页 *
一种新的基于球面模型的鱼眼镜头标定方法;吴泽俊等;《中国激光》;20150510;第42卷(第05期);第234-241页 *
基于迭代校正的鱼眼棋盘格图像角点检测;申夏晶等;《激光与光电子学进展》;20160523;第53卷(第09期);第181-187页 *
数码相机标定研究;李玲等;《长江大学学报(自然科学版)理工卷》;20091215;第6卷(第04期);第151-154页 *

Also Published As

Publication number Publication date
CN108198222A (en) 2018-06-22

Similar Documents

Publication Publication Date Title
KR100886099B1 (en) Automatic calculation device and method of gamma correction curve
CN104182949B (en) Image inking and fusing method and system based on histogram feature point registration
CN108198222B (en) Wide-angle lens calibration and image correction method
KR101941801B1 (en) Image processing method and device for led display screen
CN113573032B (en) Image processing method and projection system
CN107993263A (en) Viewing system automatic calibration method, automobile, caliberating device and storage medium
CN102053812A (en) Multi-projector combined display feedback brightness correction method
CN112312106B (en) A Color Correction Method of Projection Image Based on Color Space Conversion
US8810693B2 (en) Image processing apparatus and method thereof
CN106600549A (en) Method and device for correcting fisheye image
CN107689033A (en) A kind of fish eye images distortion correction method based on ellipse segmentation
CN110246079A (en) Camera distortion antidote, system and medium based on B-spline surface fitting
CN112351195A (en) Image processing method, device and electronic system
CN113052765B (en) Panoramic image splicing method based on optimal grid density model
CN114331826B (en) A fast correction method for fisheye images based on distortion stretch factor
CN114331835A (en) Panoramic image splicing method and device based on optimal mapping matrix
CN108513043A (en) A kind of image denoising method and terminal
CN115393180A (en) Infrared image splicing method
CN115100037A (en) Large-breadth tile imaging method and system based on multi-line scanning camera image splicing
CN109285113B (en) Improved color image interpolation method based on gradient
CN112950510B (en) Large scene spliced image chromatic aberration correction method
CN117173255B (en) Calibration method and system for multiple camera positions and wafer bonding detection equipment
CN113393569A (en) Fitting method based on distance priority strategy and application thereof
CN116634113A (en) Method for automatically identifying picture shielding and avoiding of projector
WO2023078015A1 (en) Intra-prediction mode screening method and apparatus for video frame

Legal Events

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

Granted publication date: 20210903