CN1896682A - X-shaped angular-point sub-pixel extraction - Google Patents
X-shaped angular-point sub-pixel extraction Download PDFInfo
- Publication number
- CN1896682A CN1896682A CNA200510082766XA CN200510082766A CN1896682A CN 1896682 A CN1896682 A CN 1896682A CN A200510082766X A CNA200510082766X A CN A200510082766XA CN 200510082766 A CN200510082766 A CN 200510082766A CN 1896682 A CN1896682 A CN 1896682A
- Authority
- CN
- China
- Prior art keywords
- point
- sub
- angle point
- location
- extraction
- 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.)
- Pending
Links
- 238000000605 extraction Methods 0.000 title claims abstract description 36
- 239000011159 matrix material Substances 0.000 claims abstract description 15
- 238000000034 method Methods 0.000 claims description 20
- 238000001914 filtration Methods 0.000 claims description 3
- 238000001514 detection method Methods 0.000 abstract description 2
- 238000005516 engineering process Methods 0.000 abstract description 2
- 230000000007 visual effect Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000011179 visual inspection Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
Images
Landscapes
- Image Analysis (AREA)
Abstract
本发明属于三维视觉检测系统标定技术,涉及对X型角点亚像素提取方法的改进。本发明的提取步骤是:根据Hessian矩阵判定X型角点的像素位置;然后利用二阶泰勒展开式描述该点附近区域内的灰度值,其鞍点即X型角点的亚像素位置。本发明提取过程简单,速度快。即使是在图像存在畸变及较大噪声的情况下,仍具有较高的提取精度。
The invention belongs to the calibration technology of a three-dimensional visual detection system, and relates to the improvement of an X-shaped corner point sub-pixel extraction method. The extraction step of the present invention is: determine the pixel position of the X-shaped corner point according to the Hessian matrix; then use the second-order Taylor expansion to describe the gray value in the area around the point, and its saddle point is the sub-pixel position of the X-shaped corner point. The extraction process of the invention is simple and fast. Even in the case of image distortion and large noise, it still has high extraction accuracy.
Description
技术领域technical field
本发明属于三维视觉检测系统标定技术,涉及对X型角点亚像素提取方法的改进。The invention belongs to the calibration technology of a three-dimensional visual detection system, and relates to the improvement of an X-shaped corner point sub-pixel extraction method.
背景技术Background technique
标定点的提取是三维视觉检测系统标定过程中的重要环节,通常为了保证系统标定结果的精度及稳定性,要求标定点的提取精度要在亚像素级。X型角点(见图1)由于其易于识别、提取方法简单及提取精度高在视觉检测系统的标定中应用十分广泛,传统的亚像素提取方法主要有:The extraction of calibration points is an important link in the calibration process of the 3D visual inspection system. Usually, in order to ensure the accuracy and stability of the system calibration results, the extraction accuracy of the calibration points is required to be at the sub-pixel level. X-shaped corner points (see Figure 1) are widely used in the calibration of visual inspection systems due to their easy identification, simple extraction method and high extraction accuracy. The traditional sub-pixel extraction methods mainly include:
(1)Harris角点提取。(1) Harris corner extraction.
Harris算子是一种比较常用的特征点提取算子,主要是根据特征点附近区域内图像灰度变化的相关度来判定特征点的形状。基于Harris的X型角点亚像素提取通常先根据Harris算子判定角点的像素位置,然后利用插值算法计算该点附近区域内亚像素位置点的灰度值,并根据这些点拟合局部图像的灰度分布曲面,再计算该曲面的鞍点即为X型角点的亚像素位置。该方法的优点是提取精度高,缺点是计算复杂,提取过程繁琐。The Harris operator is a commonly used feature point extraction operator, which mainly determines the shape of the feature point according to the correlation degree of the image gray level change in the area near the feature point. Harris-based X-type corner point sub-pixel extraction usually first determines the pixel position of the corner point according to the Harris operator, and then uses an interpolation algorithm to calculate the gray value of the sub-pixel position point in the area around the point, and fits the local image based on these points The gray distribution surface of the surface, and then calculate the saddle point of the surface, which is the sub-pixel position of the X-shaped corner point. The advantage of this method is that the extraction accuracy is high, and the disadvantage is that the calculation is complicated and the extraction process is cumbersome.
(2)边缘拟合求交点。(2) Edge fitting to find the intersection point.
该方法主要是利用Sobel等边缘算子提取角点附近区域内黑白块的边缘点,并利用直线拟合计算两边缘的直线方程,则两直线的交点即为X型角点的亚像素位置。该方法的优点是提取过程简单,缺点是当图像存在畸变或较大噪声时,提取精度不高。This method mainly uses edge operators such as Sobel to extract the edge points of black and white blocks in the area near the corner points, and uses straight line fitting to calculate the straight line equation of the two edges, then the intersection of the two straight lines is the sub-pixel position of the X-shaped corner point. The advantage of this method is that the extraction process is simple, but the disadvantage is that the extraction accuracy is not high when there is distortion or large noise in the image.
发明内容Contents of the invention
本发明的目的是:针对现有方法的不足,提出一种提取过程简单、精度高的X型角点的亚像素提取方法。The object of the present invention is to propose a sub-pixel extraction method of X-shaped corner points with simple extraction process and high precision for the deficiencies of the existing methods.
本发明的技术方案是:一种X型角点亚像素提取方法,其特征在于,提取步骤如下:The technical solution of the present invention is: a method for extracting X-shaped corner sub-pixels, characterized in that the extraction steps are as follows:
1、根据Hessian矩阵判定X型角点的像素位置;Hessian矩阵的表达式如式1所示:1. Determine the pixel position of the X-shaped corner point according to the Hessian matrix; the expression of the Hessian matrix is shown in formula 1:
其中,fxx、fxy、fyy分别为图像灰度相对于x、y的二阶偏导数,可以通过图像灰度与相应微分形式的高斯算子卷积得到,对于X型角点,Hessian矩阵的两个特征值一个为正,另一个为负,则判定其像素位置的算子s表示为:Among them, f xx , f xy , and f yy are the second-order partial derivatives of the image grayscale with respect to x and y, respectively, which can be obtained by convolving the image grayscale with the Gaussian operator in the corresponding differential form. For X-shaped corner points, Hessian One of the two eigenvalues of the matrix is positive and the other is negative, then the operator s to determine its pixel position is expressed as:
其中,λ1、λ2为Hessian矩阵的特征值;Among them, λ 1 and λ 2 are the eigenvalues of the Hessian matrix;
2、确定X型角点的亚像素位置;2. Determine the sub-pixel position of the X-shaped corner;
在判定角点的像素位置后,利用一个二阶泰勒展开式描述该点附近区域内任意一点的灰度值,其表达式为:After determining the pixel position of the corner point, a second-order Taylor expansion is used to describe the gray value of any point in the area near the point, and the expression is:
其中,(x0,y0)是角点的像素位置,r0为该点的灰度,rx、ry、rxx、rxy、ryy分别为该点灰度相对于x、y的一二阶偏导数,s,t为角点相对于(x0,y0)的亚像素位置,经过低通滤波后角点附近区域图像灰度的分布曲面为一平滑鞍面,其鞍点即X型角点的亚像素位置,根据鞍点的性质,在式(3)的基础上得到确定鞍点位置的线性方程组:Among them, (x 0 , y 0 ) is the pixel position of the corner point, r 0 is the gray level of the point, r x , ry , r xx , r xy , ry yy are the gray level of the point relative to x, y The first and second order partial derivatives of , s, t are the sub-pixel position of the corner point relative to (x 0 , y 0 ). After low-pass filtering, the distribution surface of the image gray level near the corner point is a smooth saddle surface, and the saddle point That is, the sub-pixel position of the X-shaped corner point. According to the nature of the saddle point, the linear equation system for determining the position of the saddle point is obtained on the basis of formula (3):
则X型角点的亚像素位置即(x0+s,y0+t),其中,Then the sub-pixel position of the X-shaped corner point is (x 0 +s, y 0 +t), where,
本发明的优点是:The advantages of the present invention are:
(1)相对于传统的基于Harris的角点提取算法,本发明不需要插值和曲面拟合,提取过程简单,速度快。(1) Compared with the traditional corner point extraction algorithm based on Harris, the present invention does not need interpolation and surface fitting, and the extraction process is simple and fast.
(2)相对于边缘拟合求交点的方法,本发明只是利用角点临近区域内的图像灰度,因此,即使是在图像存在畸变及较大噪声的情况下,仍具有较高的提取精度。(2) Compared with the method of edge fitting to find the intersection point, the present invention only utilizes the image grayscale in the adjacent area of the corner point, so even in the case of image distortion and large noise, it still has high extraction accuracy .
附图说明Description of drawings
图1是具有X型角点的靶标示意图。Figure 1 is a schematic diagram of a target with X-shaped corners.
图2是X型角点附近区域的S值分布示意图。Fig. 2 is a schematic diagram of the S value distribution in the area near the X-shaped corner.
图3是X型角点附近区域的灰度分布示意图。Fig. 3 is a schematic diagram of the gray level distribution of the area near the X-shaped corner point.
图4是一个由计算机生成的虚拟平面靶标。Figure 4 is a computer-generated virtual planar target.
图5是图4的靶标经虚拟摄像机成像之后的靶标图像。FIG. 5 is a target image of the target in FIG. 4 after being imaged by a virtual camera.
具体实施方式Detailed ways
下面对本发明做进一步详细说明。本发明根据Hassian矩阵的特征值判定X型角点的像素位置,然后利用一个二阶泰勒展开式描述该角点附近区域图像灰度的分布曲面,则该曲面的鞍点即所求角点的亚像素位置。具体提取步骤如下:The present invention will be described in further detail below. The present invention determines the pixel position of the X-shaped corner point according to the eigenvalue of the Hassian matrix, and then uses a second-order Taylor expansion to describe the distribution surface of the image gray level in the vicinity of the corner point, and then the saddle point of the curved surface is the sub-point of the corner point. pixel location. The specific extraction steps are as follows:
(1)根据Hessian矩阵判定X型角点的像素位置(1) Determine the pixel position of the X-shaped corner point according to the Hessian matrix
Hessian矩阵的表达式如式1所示:The expression of the Hessian matrix is shown in formula 1:
其中,fxx、fxt、fyy分别为图像灰度相对于x、y的二阶偏导数,可以通过图像灰度与相应微分形式的高斯算子卷积得到。对于X型角点,Hessian矩阵的两个特征值一个为正,另一个为负,则判定其像素位置的算子表示为:Among them, f xx , f xt , and f yy are the second-order partial derivatives of the image grayscale with respect to x and y, respectively, which can be obtained by convolving the image grayscale with the Gaussian operator in the corresponding differential form. For an X-shaped corner point, one of the two eigenvalues of the Hessian matrix is positive and the other is negative, then the operator for determining its pixel position is expressed as:
其中,λ1、λ2为Hessian矩阵的特征值。图2为理想情况下角点附近区域的S值分布,其负极值点即角点所在位置。Among them, λ 1 and λ 2 are the eigenvalues of the Hessian matrix. Figure 2 shows the distribution of S values in the area near the corner under ideal conditions, and its negative extreme point is the location of the corner.
(2)确定X型角点的亚像素位置(2) Determine the sub-pixel position of the X-shaped corner point
在判定角点的像素位置后,可以利用一个二阶泰勒展开式描述该点附近区域内任意一点的灰度值,其表达式为:After determining the pixel position of the corner point, a second-order Taylor expansion can be used to describe the gray value of any point in the area near the point, and the expression is:
其中,(x0,y0)是角点的像素位置,r0为该点的灰度,rx、ry、rxx、rxy、ryy分别为该点灰度相对于x、y的一二阶偏导数,(s,t)为角点相对于(x0,y0)的亚像素位置。Among them, (x 0 , y 0 ) is the pixel position of the corner point, r 0 is the gray level of the point, r x , ry , r xx , r xy , ry yy are the gray level of the point relative to x, y The first and second order partial derivatives of , (s, t) is the sub-pixel position of the corner point relative to (x 0 , y 0 ).
图3是经过低通滤波后角点附近区域图像灰度的分布曲面,该曲面为一平滑鞍面,其鞍点即X型角点的亚像素位置。根据鞍点的性质,在式3的基础上可得确定鞍点位置的线性方程组:Fig. 3 is a distribution surface of the gray level of the image near the corner after low-pass filtering. The surface is a smooth saddle surface, and the saddle point is the sub-pixel position of the X-shaped corner. According to the nature of the saddle point, the linear equations for determining the position of the saddle point can be obtained on the basis of formula 3:
则X型角点的亚像素位置即(x0+s,y0+t),其中,Then the sub-pixel position of the X-shaped corner point is (x 0 +s, y 0 +t), where,
实施例Example
以下是一组仿真实例。图4是一个由计算机生成的虚拟平面靶标,靶标上共有144个X型角点,每两点间距16mm。虚拟摄像机的图像分辨率设为512×512;内部参数设定为:α=1000,β=1000,γ=0,u0=256,v0=256;外部参数设定为:r1=[0.951 -0.174 0.255]T,r2=[0.168 0.9850.045]T,t=[0 0 500]T。图5是经虚拟摄像机成像之后的靶标图像。具体提取过程如下:The following is a set of simulation examples. Fig. 4 is a virtual plane target generated by computer, there are 144 X-shaped corner points on the target, and the distance between every two points is 16mm. The image resolution of the virtual camera is set to 512×512; the internal parameters are set as: α=1000, β=1000, γ=0, u 0 =256, v 0 =256; the external parameters are set as: r 1 =[ 0.951 -0.174 0.255] T , r 2 =[0.168 0.9850.045] T , t = [0 0 500] T . Fig. 5 is the target image after being imaged by the virtual camera. The specific extraction process is as follows:
(1)针对图像中的每一个像点,利用微分形式的高斯卷积核计算该点灰度相对于x,y的各阶偏导数rx,ry,rxx,rxy,ryy;(1) For each image point in the image, use the Gaussian convolution kernel in differential form to calculate the partial derivatives r x , r y , r xx , r xy , r yy of the point gray relative to x, y;
(2)计算各像点所对应的Hessian矩阵及其特征值,并根据式2判断该点是否为X型角点的像素位置;(2) Calculate the corresponding Hessian matrix and eigenvalue thereof of each image point, and judge whether this point is the pixel position of the X-shaped corner point according to
(3)对符合式2的像素点,根据式5计算X型角点的亚像素位置。(3) For the pixels conforming to
表1是传统的Harris角点提取方法与新方法提取结果的对比,本发明的提取精度要略优于传统方法。Table 1 is a comparison of the extraction results of the traditional Harris corner point extraction method and the new method, and the extraction accuracy of the present invention is slightly better than that of the traditional method.
表1两种方法的提取精度对比
表2是两种方法对144个角点提取时间的对比,可知新方法的提取速度要明显快于传统方法。Table 2 is a comparison of the extraction time of the two methods for 144 corner points. It can be seen that the extraction speed of the new method is significantly faster than that of the traditional method.
表2两种方法的提取速度对比
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA200510082766XA CN1896682A (en) | 2005-07-12 | 2005-07-12 | X-shaped angular-point sub-pixel extraction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA200510082766XA CN1896682A (en) | 2005-07-12 | 2005-07-12 | X-shaped angular-point sub-pixel extraction |
Publications (1)
Publication Number | Publication Date |
---|---|
CN1896682A true CN1896682A (en) | 2007-01-17 |
Family
ID=37609260
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA200510082766XA Pending CN1896682A (en) | 2005-07-12 | 2005-07-12 | X-shaped angular-point sub-pixel extraction |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1896682A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102095370A (en) * | 2010-11-22 | 2011-06-15 | 北京航空航天大学 | Detection identification method for three-X combined mark |
CN103345755A (en) * | 2013-07-11 | 2013-10-09 | 北京理工大学 | Chessboard angular point sub-pixel extraction method based on Harris operator |
CN103824275B (en) * | 2012-10-31 | 2018-02-06 | 康耐视公司 | Saddle dots structure and the system and method for determining its information are searched in the picture |
CN108428250A (en) * | 2018-01-26 | 2018-08-21 | 山东大学 | A kind of X angular-point detection methods applied to vision positioning and calibration |
CN111833405A (en) * | 2020-07-27 | 2020-10-27 | 北京大华旺达科技有限公司 | Calibration identification method and device based on machine vision |
-
2005
- 2005-07-12 CN CNA200510082766XA patent/CN1896682A/en active Pending
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102095370A (en) * | 2010-11-22 | 2011-06-15 | 北京航空航天大学 | Detection identification method for three-X combined mark |
CN103824275B (en) * | 2012-10-31 | 2018-02-06 | 康耐视公司 | Saddle dots structure and the system and method for determining its information are searched in the picture |
CN103345755A (en) * | 2013-07-11 | 2013-10-09 | 北京理工大学 | Chessboard angular point sub-pixel extraction method based on Harris operator |
CN108428250A (en) * | 2018-01-26 | 2018-08-21 | 山东大学 | A kind of X angular-point detection methods applied to vision positioning and calibration |
CN108428250B (en) * | 2018-01-26 | 2021-09-21 | 山东大学 | X-corner detection method applied to visual positioning and calibration |
CN111833405A (en) * | 2020-07-27 | 2020-10-27 | 北京大华旺达科技有限公司 | Calibration identification method and device based on machine vision |
CN111833405B (en) * | 2020-07-27 | 2023-12-08 | 北京大华旺达科技有限公司 | Calibration and identification method and device based on machine vision |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1273937C (en) | Infrared and visible light image merging method | |
CN112651968B (en) | A method for detecting the deformation and pits of wooden boards based on depth information | |
Huang et al. | Sub-pixel edge detection algorithm based on canny–zernike moment method | |
CN110866924A (en) | A kind of linear structured light centerline extraction method and storage medium | |
CN102360503B (en) | SAR (Specific Absorption Rate) image change detection method based on space approach degree and pixel similarity | |
CN102324099B (en) | Step edge detection method oriented to humanoid robot | |
CN101408985A (en) | Method and apparatus for extracting circular luminous spot second-pixel center | |
CN112767359B (en) | Method and system for detecting corner points of steel plate under complex background | |
CN110906875B (en) | A Vision Processing Method for Aperture Measurement | |
CN107203973A (en) | A kind of sub-pixel positioning method of three-dimensional laser scanning system center line laser center | |
CN104899888B (en) | A kind of image sub-pixel edge detection method based on Legendre squares | |
CN106780455A (en) | A kind of product surface detection method based on the local neighborhood window for sliding | |
CN102496161A (en) | Method for extracting contour of image of printed circuit board (PCB) | |
CN113506246B (en) | Concrete 3D printing component fine detection method based on machine vision | |
CN114820773A (en) | Silo transport vehicle carriage position detection method based on computer vision | |
CN113554646B (en) | Intelligent urban road pavement detection method and system based on computer vision | |
CN112233116A (en) | Concave-convex mark visual detection method based on neighborhood decision and gray level co-occurrence matrix description | |
CN105469408A (en) | Building group segmentation method for SAR image | |
CN103455985B (en) | Crack on road Enhancement Method based on Hessian structural analysis | |
CN103077499B (en) | SAR (Synthetic Aperture Radar) image pre-processing method based on similar block | |
CN103968772A (en) | Piston ring detection method based on monocular vision detection | |
CN1896682A (en) | X-shaped angular-point sub-pixel extraction | |
Berwo et al. | Automotive engine cylinder head crack detection: Canny edge detection with morphological dilation | |
CN111429437B (en) | Object Detection-Oriented Image No-Reference Sharpness Quality Detection Method | |
Zhao et al. | A new method for detecting compensation hole parameters of automobile brake master cylinder based on machine vision |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |