CN104123725B - A kind of computational methods of single line array camera homography matrix H - Google Patents
A kind of computational methods of single line array camera homography matrix H Download PDFInfo
- Publication number
- CN104123725B CN104123725B CN201410332592.7A CN201410332592A CN104123725B CN 104123725 B CN104123725 B CN 104123725B CN 201410332592 A CN201410332592 A CN 201410332592A CN 104123725 B CN104123725 B CN 104123725B
- Authority
- CN
- China
- Prior art keywords
- point
- line
- array camera
- homography matrix
- alpha
- 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
Links
Landscapes
- Image Processing (AREA)
- Studio Devices (AREA)
Abstract
一种单线阵相机单应性矩阵H的计算方法,该方法运用交比不变性原则,和本发明给出的4线条标定板,4条线满足以下规则:,,,,结合线阵相机成像特点,可根据像平面共线4点的交比,运用交比不变性计算出D4线上的(x,y,z)坐标,进而计算出单应性矩阵H。
A method for calculating the homography matrix H of a single line array camera, the method uses the principle of cross-ratio invariance, and the 4-line calibration plate provided by the present invention, the 4 lines meet the following rules: , , , , combined with the imaging characteristics of the line-scan camera, the (x, y, z) coordinates on the D4 line can be calculated by using the cross-ratio invariance of the 4 collinear points on the image plane, and then the homography matrix H can be calculated.
Description
技术领域technical field
本发明属于相机标定邻域,涉及单线阵相机目标点到成像点的单应性矩阵H的计算方法。The invention belongs to the field of camera calibration and relates to a calculation method of a homography matrix H from a target point to an imaging point of a single line array camera.
背景技术Background technique
摄像机的标定是确定空间物体表面某点的三维几何位置与其在图像中对应点之间的相互关系。是依据建立的摄像机成像的几何模型,由已知特征点的图像坐标与世界坐标求解摄像机的参数模型。摄像机标定是非常关键的环节,其标定结果的精度及算法的稳定性将直接影响摄像机工作产生结果的准确性。因此,提高摄像机标定精度是摄像机标定的重点。Camera calibration is to determine the relationship between the three-dimensional geometric position of a point on the surface of a space object and its corresponding point in the image. Based on the established geometric model of camera imaging, the parameter model of the camera is solved from the image coordinates and world coordinates of known feature points. Camera calibration is a very critical link, the accuracy of the calibration results and the stability of the algorithm will directly affect the accuracy of the camera work results. Therefore, improving the camera calibration accuracy is the focus of camera calibration.
其中重要的一步就是目标点到成像点的单应性矩阵H。要得到单应性矩阵H,就需要知道目标点坐标和成像点坐标。所用方法利用标定板得到此两种点的坐标。目前常见的标点板有棋盘标定板,圆形标定板和等间距条纹标定板。棋盘标定板可很方便的得到目标点的坐标,如要得到准确成像点坐标,需要单线阵相机和标定板之间做相对匀速运动,这就导致系统复杂性增高。运用圆形标定板,如果单线阵相机和标定板之间做相对匀速运动的速度设定不好,得到的成像平面的圆就会变形,无法有效计算圆心,进而无法得到准确的成像点坐标。等间距条纹标定板可以快速得到目标点和成像点的x轴或y轴的值,但无法得到另一坐标轴的值。An important step is the homography matrix H from the target point to the imaging point. To obtain the homography matrix H, it is necessary to know the coordinates of the target point and the imaging point. The method used uses a calibration plate to obtain the coordinates of these two points. At present, the common punctuation boards include checkerboard marking boards, circular marking boards and equidistant stripe marking boards. The checkerboard calibration board can easily obtain the coordinates of the target point. To obtain the accurate coordinates of the imaging point, a relatively uniform motion between the single line array camera and the calibration board is required, which increases the complexity of the system. Using a circular calibration plate, if the speed of the relative uniform motion between the single-line array camera and the calibration plate is not set properly, the circle of the imaging plane obtained will be deformed, and the center of the circle cannot be effectively calculated, and thus the exact coordinates of the imaging point cannot be obtained. The equidistant fringe calibration plate can quickly obtain the x-axis or y-axis value of the target point and imaging point, but cannot obtain the value of the other coordinate axis.
综上,目前现有的单线阵相机目标点到成像点的单应性矩阵H的计算方法,还存在一些不足:单线阵相机和标定板之间做相对匀速运动,速度设定难。相机和标定板之间做相对非匀速运动,无法计算单应性矩阵H。To sum up, there are still some shortcomings in the current calculation method of the homography matrix H from the target point to the imaging point of the single-line array camera: the relatively uniform motion between the single-line array camera and the calibration plate makes it difficult to set the speed. The relative non-uniform motion between the camera and the calibration board makes it impossible to calculate the homography matrix H.
发明内容Contents of the invention
本发明的目的是提供一种单线阵相机单应性矩阵H的计算方法,以达到相机和标定板之间做相对非匀速运动,也能够计算单线阵相机单应性矩阵H。The purpose of the present invention is to provide a method for calculating the homography matrix H of a single-line array camera, so as to achieve relative non-uniform motion between the camera and the calibration plate, and to calculate the homography matrix H of the single-line array camera.
为实现上述目的,本发明的单线阵相机单应性矩阵H的计算方法,该方法采用特殊的4线标定板,利用单线阵相机的成像特点和共线4点的交比不变性,计算单线阵相机单应性矩阵H。该方法的步骤如下:In order to achieve the above object, the method for calculating the homography matrix H of a single-line array camera of the present invention adopts a special 4-line calibration plate, utilizes the imaging characteristics of a single-line array camera and the cross-ratio invariance of collinear 4 points, and calculates the single-line Array camera homography matrix H. The steps of this method are as follows:
(1)运用Hough运算方法提取单线阵相机图像中的线条,任取像平面中的线条中的一行,将此行与拍摄到的4线条标定板的图像中4线相交,取交点为a、b、c和d;(1) Use the Hough algorithm to extract the lines in the image of the single-line array camera, take any line in the image plane, intersect this line with the 4 lines in the image of the 4-line calibration plate captured, and take the intersection points as a, b, c and d;
(2)求取成像点a、b、c和d的交比。(2) Calculate the cross-ratio of imaging points a, b, c and d .
(3)利用交比不变性得到成像点a、b、c和d相对应目标点A、B、C和D的交比,进而计算D点(x,y,z)坐标。(3) Using cross-ratio invariance to obtain the cross-ratio of imaging points a, b, c and d corresponding to target points A, B, C and D , and then calculate the (x, y, z) coordinates of point D.
(4)将D点及D点相应的成像点坐标代入目标点到成像点的单应性矩阵H公式,可计算出相应的H矩阵。(4) Substituting point D and the corresponding imaging point coordinates of point D into the homography matrix H formula from the target point to the imaging point, the corresponding H matrix can be calculated.
所述的步骤(1)中4线条标定板,4条线满足以下规则:,,,,为可根据需求自设定。The 4-line calibration board in the step (1), the 4 lines meet the following rules: , , , , It can be set according to the requirement.
所述步骤(2)中直线上四个点a、b、c和d的交比为,ac为a和c两点之间距离。bc、ad和bd同理。The cross ratio of the four points a, b, c and d on the straight line in the step (2) is , ac is the distance between two points a and c. The same applies to bc, ad, and bd.
所述步骤(3)中交比不变性为 The cross ratio invariance in the step (3) is
所述步骤(3)中计算D点(x,y,z)坐标的步骤如下:The steps for calculating the (x, y, z) coordinates of point D in the step (3) are as follows:
(1),考虑一个虚拟线D5,它与D1,D2,D3平行共面, D1,D2,D3和通过D点D5这四个平行线与y轴交点为A'、B'、C'和D'。有交比不变性,我们有 (1), consider a virtual line D5, which is parallel and coplanar with D1, D2, D3, D1, D2, D3 and the intersection points of these four parallel lines with the y-axis through D point D5 are A', B', C' and D'. With cross-ratio invariance, we have
因此, therefore,
(2)A,B,C和D在标定板的四条标定线上,因此可得(2) A, B, C and D are on the four calibration lines of the calibration board, so it can be obtained
进一步可得:Further available:
由于标定板4条标定线共面,在此标靶板空间坐标的z坐标为,为可根据需求自设定,可得D点(x,y,z)坐标。Since the 4 calibration lines of the calibration plate are coplanar, the z coordinate of the space coordinates of the target plate is , which can be set according to the needs, and the (x, y, z) coordinates of point D can be obtained.
所述步骤(4)中计算单应性矩阵H的步骤如下:The steps for calculating the homography matrix H in the step (4) are as follows:
(1)由普通线阵相机单应性公式(1) By the homography formula of ordinary line scan camera
推导出线单阵相机单应性公式Deriving the homography formula of linear single-array camera
为尺度参数; is the scale parameter;
因此单应性矩阵H为 So the homography matrix H is
(2)由普通线阵相机单应性公式,根据目标点D(x,y,z)和相应的成像点坐标d(u),成像坐标的零坐标点为da方向的顶点,可计算出单应性矩阵H。本发明的有益效果是:本发明的单线阵相机单应性矩阵H的计算方法,采用特殊的4线标定板,利用单线阵相机的成像特点和共线4点的交比不变性,计算单线阵相机单应性矩阵H,解决了单线阵相机与标定板之间作非匀速运动无法计算单应性矩阵H的问题。本方法系统简单,限制条件少,对于单线阵相机标定的应用具有重要意义和实用价值。(2) According to the homography formula of the ordinary line array camera, according to the target point D (x, y, z) and the corresponding imaging point coordinate d (u), the zero coordinate point of the imaging coordinate is the vertex in the da direction, and it can be calculated The homography matrix H. The beneficial effects of the present invention are: the calculation method of the homography matrix H of the single-line array camera of the present invention adopts a special 4-line calibration plate, and utilizes the imaging characteristics of the single-line array camera and the cross-ratio invariance of the collinear 4 points to calculate the single-line The array camera homography matrix H solves the problem that the homography matrix H cannot be calculated due to non-uniform motion between the single line array camera and the calibration plate. The method is simple in system and less restrictive, and has great significance and practical value for the application of single line array camera calibration.
附图说明Description of drawings
图1 是本发明方法流程示意图;Fig. 1 is a schematic flow chart of the method of the present invention;
图2 是单线阵相机成像示意图;Figure 2 is a schematic diagram of imaging with a single line array camera;
图2中,F为线阵相机的焦点。a、b、c、d为图像点,A、B、C、D为图像点a、b、c、d相对应的目标点。A'、B'、C'和D'为A、B、C、D在y轴的值。D1,D2,D3,D4为共面的4条标定线,虚拟线D5过D点与D1,D2,D3平行共面的线。In Figure 2, F is the focal point of the line scan camera. a, b, c, and d are image points, and A, B, C, and D are target points corresponding to image points a, b, c, and d. A', B', C' and D' are the values of A, B, C and D on the y-axis. D1, D2, D3, and D4 are 4 coplanar calibration lines, and the virtual line D5 passes through point D and is parallel and coplanar with D1, D2, and D3.
具体实施方式detailed description
为了更好地理解本发明的技术方案,下面结合附图对本发明的实施方式进行详细的说明。In order to better understand the technical solutions of the present invention, the implementation manners of the present invention will be described in detail below in conjunction with the accompanying drawings.
如图1所示,本发明首先对所得图像进行Hough运算得到图像中的直线,选取目标点计算交比。根据单线阵相机成像系统的特点,结合交比不变性得到目标点的交比。利用标定板中标定线的方程,求得D点的坐标。As shown in Fig. 1, the present invention first performs Hough operation on the obtained image to obtain the straight line in the image, and selects the target point to calculate the cross ratio. According to the characteristics of the single line array camera imaging system, the cross-ratio of the target point is obtained by combining the invariance of the cross-ratio. Use the equation of the calibration line in the calibration plate to obtain the coordinates of point D.
本发明的具体实施如下:The concrete implementation of the present invention is as follows:
1.运用Hough运算方法提取单线阵相机到的图像中的线条,取像平面中的一行,此行交与拍摄到的4线条标定板(4条线满足以下规则:,,,,为可根据需求自设定)的图像中4线,取交点为a、b、c和d;1. Use the Hough algorithm to extract the lines in the image captured by the single-line array camera, take a line in the image plane, and intersect this line with the captured 4-line calibration board (the 4 lines meet the following rules: , , , , It is the 4 lines in the image that can be set according to the requirements, and the intersection points are a, b, c and d;
2. 运用成像点a、b、c和d的交比2. Using the cross-ratio of imaging points a, b, c and d
,ac为a和c两点之间距离。bc、ad和bd同理。 , ac is the distance between two points a and c. The same applies to bc, ad, and bd.
3.利用交比不变性得到成像点a、b、c和d相对应目标点A、B、C和D的交比,进而计算D点(x,y,z)坐标。3. Using cross-ratio invariance to obtain the cross-ratio of imaging points a, b, c and d corresponding to target points A, B, C and D , and then calculate the (x, y, z) coordinates of point D.
步骤1:利用交比不变性得 Step 1: Using cross-ratio invariance to get
步骤2:如图2所示,考虑一个虚拟线D5,它与D1,D2,D3平行共面,D1,D2,D3和通过D点D5这四个平行线与y轴交点为A',B',C'和D’。由交比不变性,我们有 Step 2: As shown in Figure 2, consider a virtual line D5, which is parallel and coplanar with D1, D2, D3, D1, D2, D3 and passing through D point D5, these four parallel lines intersect with the y-axis as A', B ', C' and D'. By cross-ratio invariance, we have
因此, therefore,
步骤3:A,B,C和D在标定板的四条标定线上,因此可得Step 3: A, B, C and D are on the four calibration lines of the calibration board, so it can be obtained
进一步可得:Further available:
步骤4:由于标定板4条标定线共面,在此标靶板空间坐标的z坐标为,为可根据需求自设定,可得D点(x,y,z)坐标。Step 4: Since the 4 calibration lines of the calibration board are coplanar, the z coordinate of the spatial coordinates of the target board is , which can be set according to the needs, and the (x, y, z) coordinates of point D can be obtained.
4.目标点到成像点的单应性矩阵H公式,可计算出相应的H矩阵4. The homography matrix H formula from the target point to the imaging point can calculate the corresponding H matrix
所述的步骤(1)中4线条标定板,4条线满足以下规则:,,,,为可根据需求自设定。The 4-line calibration board in the step (1), the 4 lines meet the following rules: , , , , It can be set according to the requirement.
步骤1:由普通线阵相机单应性公式Step 1: From the general line scan camera homography formula
推导出线单阵相机单应性公式Deriving the homography formula of linear single-array camera
为尺度参数; is the scale parameter;
因此单应性矩阵H为 So the homography matrix H is
步骤2:由普通线阵相机单应性公式,根据目标点(x,y,z)和相应的成像点坐标d(u),成像坐标的零坐标点为da方向的顶点,可计算出单应性矩阵H。Step 2: According to the homography formula of the ordinary line array camera, according to the target point (x, y, z) and the corresponding imaging point coordinate d(u), the zero coordinate point of the imaging coordinate is the vertex in the da direction, and the homography can be calculated Responsive matrix H.
为了验证本发明的有效性,使用线阵相机型号为DALSA Piranha系列P2-2x-04K30,分辨率为1×4096,像元尺寸为7μm。标定板4线条参数mm,标定板空间z轴坐标为零。In order to verify the effectiveness of the present invention, a line scan camera model of DALSA Piranha series P2-2x-04K30 with a resolution of 1×4096 and a pixel size of 7 μm was used. Calibration board 4 line parameters mm, the z-axis coordinate of the calibration plate space is zero.
最后所应说明的是,以上实施例仅用以说明本发明的技术方案而非限制。尽管实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,对本发明的技术方案进行修改或者等同替换,都不脱离本发明技术方案的精神和范围,其均应涵盖在本发明的权利要求范围当中。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than limit them. Although the embodiments have described the present invention in detail, those of ordinary skill in the art should understand that modifications or equivalent replacements to the technical solutions of the present invention do not depart from the spirit and scope of the technical solutions of the present invention, and all of them should be included in the scope of the present invention. within the scope of the claim.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410332592.7A CN104123725B (en) | 2014-07-14 | 2014-07-14 | A kind of computational methods of single line array camera homography matrix H |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410332592.7A CN104123725B (en) | 2014-07-14 | 2014-07-14 | A kind of computational methods of single line array camera homography matrix H |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104123725A CN104123725A (en) | 2014-10-29 |
CN104123725B true CN104123725B (en) | 2017-06-13 |
Family
ID=51769122
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410332592.7A Expired - Fee Related CN104123725B (en) | 2014-07-14 | 2014-07-14 | A kind of computational methods of single line array camera homography matrix H |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104123725B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105653503B (en) * | 2015-12-30 | 2018-04-20 | 东华大学 | A kind of quick plane list being multiplied based on multiple simple matrixes answers method of estimation |
CN106023234B (en) * | 2016-06-08 | 2019-01-08 | 南京航空航天大学 | A kind of linear array CCD camera alignment adjusting method |
CN107462174B (en) * | 2017-06-19 | 2019-06-21 | 北京交通大学 | Method and device for measuring geometrical parameters of catenary by using scale factor and frame difference |
CN108428252A (en) * | 2018-03-14 | 2018-08-21 | 河南科技大学 | A kind of single line array camera distortion scaling method |
CN110060305B (en) * | 2019-04-12 | 2022-09-30 | 河南科技大学 | High-precision simplified linear array camera calibration method |
CN112614188B (en) * | 2020-12-07 | 2022-09-16 | 上海交通大学 | Dot-matrix calibration board based on cross ratio invariance and identification method thereof |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101650828A (en) * | 2009-09-07 | 2010-02-17 | 东南大学 | Method for reducing random error of round object location in camera calibration |
US8009930B2 (en) * | 2008-03-26 | 2011-08-30 | City University Of Hong Kong | Auto-calibration method for a projector-camera system |
-
2014
- 2014-07-14 CN CN201410332592.7A patent/CN104123725B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8009930B2 (en) * | 2008-03-26 | 2011-08-30 | City University Of Hong Kong | Auto-calibration method for a projector-camera system |
CN101650828A (en) * | 2009-09-07 | 2010-02-17 | 东南大学 | Method for reducing random error of round object location in camera calibration |
Non-Patent Citations (2)
Title |
---|
基于单应性约束的重叠视域内多目标定位和匹配技术研究;李方波;《中国优秀硕士学位论文全文数据库 信息科技辑》;20130715(第07期);论文第3.1.1节 * |
多线阵CCD摄像机标定及应用研究;姚庆源;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》;20140615(第06期);论文第4章第2章第2.1.2、2.1.5-2.1.6节、第4.2-4.3、4.5节 * |
Also Published As
Publication number | Publication date |
---|---|
CN104123725A (en) | 2014-10-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104123725B (en) | A kind of computational methods of single line array camera homography matrix H | |
CN102927908B (en) | Robot eye-on-hand system structured light plane parameter calibration device and method | |
CN105913439B (en) | A kind of large-field shooting machine scaling method based on laser tracker | |
CN106056620B (en) | Line laser camera measurement system calibrating method | |
CN103499302B (en) | The camshaft diameter dimension On-line Measuring Method of structure based light Vision imaging system | |
CN103903260B (en) | Target method for quickly calibrating intrinsic parameters of vidicon | |
CN105139411B (en) | Big visual field camera calibration method based on four sets of conllinear constraint demarcation chis | |
CN102221331B (en) | Measuring method based on asymmetric binocular stereovision technology | |
CN103530880A (en) | Camera calibration method based on projected Gaussian grid pattern | |
CN103606147B (en) | Coordinate system conversion and calibration method for multiple measurement cameras with different fields of view | |
CN105067011A (en) | Overall measurement system calibration method based on vision calibration and coordinate transformation | |
CN110163918A (en) | A kind of line-structured light scaling method based on projective geometry | |
CN111260720A (en) | A target height determination system based on deep learning method | |
CN106949851A (en) | A kind of line structured light vision sensor calibration method based on SVMs | |
CN105184857A (en) | Scale factor determination method in monocular vision reconstruction based on dot structured optical ranging | |
CN104697463B (en) | The blanking feature constraint scaling method and device of a kind of binocular vision sensor | |
CN103559707B (en) | Based on the industrial fixed-focus camera parameter calibration method of motion side's target earnest | |
CN203274682U (en) | Special-purpose calibration board for light surface of line-structured light | |
CN101975560A (en) | Optical detection method for parallelism of planar array CCD target surface and installation locating surface | |
CN110223355A (en) | A kind of feature mark poiX matching process based on dual epipolar-line constraint | |
CN106352806A (en) | High-precision calibration method for stereoscopic vision three-dimensional digital image correlation measurement | |
CN103247048A (en) | Camera mixing calibration method based on quadratic curve and straight lines | |
Dong et al. | The calibration method of the circle-structured light measurement system for inner surfaces considering systematic errors | |
CN104406770B (en) | The distortion measurement device and distortion correction method of wave aberration measurement module | |
CN102136140A (en) | Rectangular pattern-based video image distance detecting method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into 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 |
Granted publication date: 20170613 Termination date: 20190714 |
|
CF01 | Termination of patent right due to non-payment of annual fee |