CN112163309B - A fast method for extracting the spatial center of a single planar circle image - Google Patents

A fast method for extracting the spatial center of a single planar circle image Download PDF

Info

Publication number
CN112163309B
CN112163309B CN202010731975.7A CN202010731975A CN112163309B CN 112163309 B CN112163309 B CN 112163309B CN 202010731975 A CN202010731975 A CN 202010731975A CN 112163309 B CN112163309 B CN 112163309B
Authority
CN
China
Prior art keywords
ellipse
plane
circle
cone
equation
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.)
Active
Application number
CN202010731975.7A
Other languages
Chinese (zh)
Other versions
CN112163309A (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.)
Yangzhou Xinrui Automobile Development Co ltd
Yangzhou Polytechnic College
Original Assignee
Yangzhou Xinrui Automobile Development Co ltd
Yangzhou Polytechnic College
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 Yangzhou Xinrui Automobile Development Co ltd, Yangzhou Polytechnic College filed Critical Yangzhou Xinrui Automobile Development Co ltd
Priority to CN202010731975.7A priority Critical patent/CN112163309B/en
Publication of CN112163309A publication Critical patent/CN112163309A/en
Application granted granted Critical
Publication of CN112163309B publication Critical patent/CN112163309B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/10Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/14Pipes
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E30/00Energy generation of nuclear origin
    • Y02E30/30Nuclear fission reactors

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Software Systems (AREA)
  • Computer Graphics (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a method for rapidly extracting the spatial circle center of a single plane circle image, which comprises a first step, a second step, a third step and a fourth step. The invention relates to the technical field of vision measurement systems, in particular to a method for quickly extracting the space circle center of a single plane circle image, which aims at solving the problem that the space coordinate extraction precision and efficiency of the current circle center target circle center are low.

Description

单张平面圆图像的空间圆心快速提取方法A fast method for extracting the spatial center of a single planar circle image

技术领域technical field

本发明涉及视觉测量系统技术领域,具体是指一种单张平面圆图像的空间圆心快速提取方法。The invention relates to the technical field of visual measurement systems, in particular to a method for quickly extracting the spatial center of a single plane circle image.

背景技术Background technique

随着计算机技术与测绘技术的发展,光学三维测量技术得到了越来越广泛的应用,在该过程中圆形目标圆心空间坐标的精确快速提取是影响测量精度和效率的一个重要方面。With the development of computer technology and surveying and mapping technology, optical three-dimensional measurement technology has been more and more widely used. In this process, the accurate and fast extraction of the spatial coordinates of the center of the circular target is an important aspect that affects the measurement accuracy and efficiency.

多种研究资料表明,目前空间圆心坐标提取主要依赖立体视觉方法,首先提取出椭圆中心,再利用双目成像原理求解出空间圆心坐标,由于透视投影变换该过程中椭圆中心往往并不是空间圆心的投影点,因此重建出的空间圆心坐标精度不高,尤其是面对大型圆心目标时这个问题尤为明显。针对该问题很多学者提出了多种解决方法,主要分为两类:一是畸变补偿法,即根据已知标记点与像平面的夹角以及标记点与像平面的距离分析设计给出圆心补偿的数学模型,根据该数学模型对提取出的椭圆圆心进行补偿,该方法虽然在仿真中得到验证,但是标记点与像平面的姿态信息在实际应用中很难获取到,因此该方法在实际应用中受到了很大的制约,在实际应用中意义不大;二是利用非线性优化方法优化位姿,即拍摄两个视角图像,根据极线匹配求解出相机姿态变换,再根据初始姿态进行边缘轮廓的重投影,构建最小二乘模型使边缘重投影误差最小化,该方法需要在两个视角图像下对边缘进行匹配,而椭圆边缘依靠极线匹配得到的效果并不好;文献提出了基于对偶二次曲线的方法求解圆心,根据共面的3个标志点求解任意两个圆心之间的圆心投影向量,再通过向量叉乘求解圆心投影,该方法从一定程度上提高了圆心提取精度,但是需要标志点共面,且至少需要3个不共线标志点,实际测量中很难保证标志点共面,且提取圆心三维坐标时也需要两个视角的图像。总体来说,目前的方法都需要多个视角图片或者多个标志点才能完成圆形目标中心三维坐标的提取,且精度不可靠,尤其在依靠大型圆形目标定位应用,比如机器人定位,圆形管道测量等需求中难以取得较好效果。A variety of research data show that the extraction of space center coordinates mainly relies on the stereo vision method. First, the ellipse center is extracted, and then the binocular imaging principle is used to solve the space center coordinates. Because the perspective projection transformation process is often not the space center of the ellipse center Therefore, the accuracy of the reconstructed space center coordinates is not high, especially when facing large-scale center targets. Many scholars have proposed a variety of solutions to this problem, which are mainly divided into two categories: one is the distortion compensation method, that is, the circle center compensation is given according to the angle between the known marker point and the image plane and the distance between the marker point and the image plane. According to the mathematical model, the extracted ellipse center is compensated. Although this method has been verified in the simulation, it is difficult to obtain the attitude information of the marker point and the image plane in practical applications, so this method is used in practical applications. is greatly restricted in practical applications, and has little significance in practical applications; the second is to use nonlinear optimization methods to optimize poses, that is, to take two perspective images, solve the camera pose transformation according to epipolar matching, and then perform edge Contour reprojection, building a least squares model to minimize the edge reprojection error, this method needs to match the edge under two perspective images, and the effect of ellipse edge matching by epipolar line is not good; the literature proposes a method based on The dual quadratic curve method is used to solve the center of the circle, and the center projection vector between any two circle centers is solved according to the three coplanar marker points, and then the center projection is solved by vector cross multiplication. This method improves the accuracy of the center extraction to a certain extent. However, the marker points need to be coplanar, and at least three non-collinear marker points are required. It is difficult to ensure that the marker points are coplanar in actual measurement, and images from two perspectives are also required when extracting the three-dimensional coordinates of the center of the circle. Generally speaking, the current methods require multiple perspective pictures or multiple marker points to complete the extraction of the three-dimensional coordinates of the circular target center, and the accuracy is not reliable, especially in applications that rely on large circular target positioning, such as robot positioning, circular It is difficult to achieve good results in requirements such as pipeline measurement.

发明内容Contents of the invention

为解决上述现有难题,本发明提供了一种针对目前圆心目标圆心空间坐标提取精度与效率低的问题,利用相机光心与成像椭圆构建了空间圆锥方程,再构建出圆锥正底面,根据正底面求解出空间圆的平行平面方程,最后根据平行平面与实际半径找出正确空间圆方程,避免了空间圆心投影坐标求解问题,且只需单张图像即可求解出空间圆心坐标,稳定可靠的单张平面圆图像的空间圆心快速提取方法。In order to solve the above-mentioned existing problems, the present invention provides a method to solve the problem of low accuracy and efficiency in extracting the spatial coordinates of the center of the circle target at present. The spatial conic equation is constructed by using the optical center of the camera and the imaging ellipse, and then the positive base of the cone is constructed. According to the positive The bottom surface solves the parallel plane equation of the space circle, and finally finds the correct space circle equation according to the parallel plane and the actual radius, which avoids the problem of solving the space center projection coordinates, and only needs a single image to solve the space center coordinates, stable and reliable A fast method for extracting the spatial center of a single planar circle image.

本发明采取的技术方案如下:The technical scheme that the present invention takes is as follows:

圆锥曲线是由平面与二次锥面相交得到的曲线,该曲线具有镜像对称的特性,根据圆锥曲线理论以及上述成像模型有以下两个结论:A conic section is a curve obtained by the intersection of a plane and a quadratic cone surface. This curve has the characteristics of mirror symmetry. According to the conic section theory and the above imaging model, there are two conclusions as follows:

i.存在唯一锐角θ,圆锥正底面绕长轴顺时针逆时针旋转θ可得两个圆截面;i. There is a unique acute angle θ, and the positive base of the cone rotates θ clockwise and counterclockwise around the major axis to obtain two circular sections;

ii.若平面A与圆锥交线为圆,对于任意平行于平面A的平面B,若存在交线,则该交线为圆。ii. If the intersection of plane A and the cone is a circle, for any plane B parallel to plane A, if there is an intersection, then the intersection is a circle.

根据以上结论,本发明单张平面圆图像的空间圆心快速提取方法,包括以下步骤:According to the above conclusions, the method for rapidly extracting the center of space of a single plane circle image of the present invention comprises the following steps:

步骤一:构建圆锥正底面;Step 1: Construct the positive bottom of the cone;

步骤二:将底面所在平面绕长轴旋转,找到截面为圆的θ角,记此时平面为α;Step 2: Rotate the plane where the bottom surface is located around the long axis, find the angle θ where the section is a circle, and record the plane as α at this time;

步骤三:寻找与α平行且截面圆直径为D的平面β;Step 3: Find the plane β parallel to α and the diameter of the cross-sectional circle is D;

步骤四:求解此时的截面圆方程,求解出圆心坐标。Step 4: Solve the cross-sectional circle equation at this time, and solve the coordinates of the center of the circle.

进一步地,所述步骤一中,构建圆锥正底面包括以下步骤:Further, in said step one, constructing the conical bottom surface includes the following steps:

(1)求解坐标系下的椭圆锥方程:(1) Solve the elliptic cone equation in the coordinate system:

椭圆锥图像坐标系P-XpYpZp下椭圆锥方程为

Figure BDA0002603647950000031
其中Y=(y0,y1,y2),/>
Figure BDA0002603647950000032
为3×3对称矩阵,/>
Figure BDA0002603647950000033
为3×1向量,/>
Figure BDA0002603647950000034
为标量,取A=[aij],B=[bi],c=1,The ellipse cone equation in the image coordinate system PX p Y p Z p is
Figure BDA0002603647950000031
where Y=(y 0 ,y 1 ,y 2 ),/>
Figure BDA0002603647950000032
is a 3×3 symmetric matrix, />
Figure BDA0002603647950000033
is a 3×1 vector, />
Figure BDA0002603647950000034
is a scalar, take A=[a ij ], B=[b i ], c=1,

由于椭圆在XOY平面,那么y2为0,Since the ellipse is on the XOY plane, then y 2 is 0,

此时令Q(Y)=0可得以下方程:At this time, if Q(Y)=0, the following equation can be obtained:

Figure BDA0002603647950000035
Figure BDA0002603647950000035

由椭圆的标准方程式(2)可知,According to the standard equation (2) of the ellipse,

Figure BDA0002603647950000036
Figure BDA0002603647950000036

假设椭圆长轴半径为d0,短轴半径为d1Assume that the major axis radius of the ellipse is d 0 , and the minor axis radius is d 1 ,

Figure BDA0002603647950000037
but
Figure BDA0002603647950000037

在椭圆锥顶点处梯度为0,即

Figure BDA0002603647950000038
The gradient is 0 at the vertex of the ellipse cone, that is
Figure BDA0002603647950000038

Figure BDA0002603647950000039
在椭圆锥上,则有/>
Figure BDA00026036479500000310
联立式(1)、式(2)之可得and
Figure BDA0002603647950000039
On an elliptical cone, there is />
Figure BDA00026036479500000310
Simultaneous formula (1) and formula (2) can be obtained

Figure BDA00026036479500000311
Figure BDA00026036479500000311

此时

Figure BDA00026036479500000312
求解如式(3)所示:at this time
Figure BDA00026036479500000312
The solution is shown in formula (3):

Figure BDA00026036479500000313
Figure BDA00026036479500000313

(2)求解相机坐标系下的椭圆锥方程:(2) Solve the ellipse cone equation in the camera coordinate system:

假设图像坐标系在相机坐标系下的一组标准正交基为Re=[Ue Ve Ne],Re也可看作两个坐标系间的旋转变换矩阵,假设Ce为盘面上某一点在相机坐标系下坐标,X为图像坐标系下椭圆坐标, Y为相机坐标系下椭圆坐标,则有如下式(4)所示:Assume that a set of orthonormal bases of the image coordinate system in the camera coordinate system is Re=[Ue Ve Ne], Re can also be regarded as the rotation transformation matrix between the two coordinate systems, assuming C e is a point on the disk surface in the camera Coordinates in the coordinate system, X is the ellipse coordinates in the image coordinate system, Y is the ellipse coordinates in the camera coordinate system, as shown in the following formula (4):

Figure BDA0002603647950000041
Figure BDA0002603647950000041

因此一般椭圆锥方程推导如下式(5)所示:Therefore, the general elliptic cone equation is derived as shown in the following formula (5):

Figure BDA0002603647950000042
Figure BDA0002603647950000042

其中:in:

Figure BDA0002603647950000043
Figure BDA0002603647950000043

假设存在投影平面其原点为Cp,单位法向量为Np,构建其余两个正交单位向量Up和Vp,则旋转矩阵为Rp=[UpVpNp]该平面与椭圆锥相交,该交线为椭圆,Assuming that there is a projection plane whose origin is C p and unit normal vector is N p , construct the other two orthogonal unit vectors U p and V p , then the rotation matrix is R p =[U p V p N p ] the plane and the ellipse Cones intersect, the line of intersection is an ellipse,

则该椭圆上点可由Xp=Cp+y2Up+y3,Np=Cp+JpYp表示,该椭圆方程推导如下式(7)所示:Then the point on the ellipse can be represented by X p =C p +y2U p +y3, N p =C p +J p Y p , and the derivation of the ellipse equation is shown in the following formula (7):

Figure RE-GDA0002805725410000051
Figure RE-GDA0002805725410000051

(7)其中

Figure BDA0002603647950000045
椭圆方程可以重构为如下形式:(7) of which
Figure BDA0002603647950000045
The elliptic equation can be reconstructed as follows:

(Yp-K)TM(Yp-K)=1 (8)(Y p -K) T M (Y p -K) = 1 (8)

(8)其中

Figure RE-GDA0002805725410000054
为圆心坐标,(8) of which
Figure RE-GDA0002805725410000054
is the coordinates of the center of the circle,

对M进行SVD分解RDRT=M,Perform SVD decomposition on M RDR T = M,

其中R为2×2矩阵表示正交基向量,Where R is a 2×2 matrix representing an orthogonal basis vector,

Figure BDA0002603647950000051
λ0和λ1分别表示椭圆的长短轴;
Figure BDA0002603647950000051
λ 0 and λ 1 represent the major and minor axes of the ellipse, respectively;

(3)构建正底面:(3) Construct the positive bottom surface:

由椭圆锥对称性易知,圆锥顶点与正底面圆心连线必然垂直于正底面,在投影轮廓上任取一点c1,以c1为原点,直线c1E为法向量方向构建平面π1,交圆锥于椭圆l,根据上述步骤(1)和(2)的算法求出圆心坐标c2,判断连线c2E与平面法向量是否夹角小于门限值,该门限值一般取e-6,若不满足则继续以c2E为法线构建平面与圆锥求交,直至找到正底面。From the symmetry of the elliptical cone, it is easy to know that the line connecting the apex of the cone and the center of the positive bottom surface must be perpendicular to the positive bottom surface. A point c 1 is randomly selected on the projection contour, with c 1 as the origin and the straight line c 1 E as the normal vector direction to construct a plane π 1 . Intersect the cone with the ellipse l, calculate the coordinate c 2 of the center of the circle according to the algorithm of the above steps (1) and (2), and judge whether the angle between the connecting line c 2 E and the normal vector of the plane is smaller than the threshold value, and the threshold value is generally taken as e -6 , if it is not satisfied, continue to use c 2 E as the normal to construct a plane and intersect the cone until the positive bottom is found.

进一步地,所述步骤二、步骤三和步骤四中,求解圆形目标平面,包括以下步骤:Further, in the step 2, step 3 and step 4, solving the circular target plane includes the following steps:

S1:平面α与椭圆锥相交于椭圆,根据所述步骤一构建圆锥正底面过程中的步骤可求出该椭圆长短轴半径,S1: The plane α intersects the ellipse cone with the ellipse, and the radius of the major and minor axes of the ellipse can be obtained according to the steps in the process of constructing the positive base of the cone in the first step,

以最小增量Δθ扰动该过程如式(9)所示:Disturbing the process with the minimum increment Δθ is shown in equation (9):

01)=f(θ+ηΔθ)01 )=f(θ+ηΔθ)

其中,η表示学习率,用以控制扰动步长,构造最小二乘问题寻找参数θ使椭圆长短轴半径相差最小,如式(10)所示:Among them, η represents the learning rate, which is used to control the disturbance step size, and constructs the least squares problem to find the parameter θ to minimize the difference between the long and short axis radii of the ellipse, as shown in formula (10):

Figure BDA0002603647950000052
Figure BDA0002603647950000052

S2:通过S1可以求得交线为圆时的平面方程,记该平面为β,原点为圆心坐标c,易知圆形目标中心必然在射线Ec上,假设该中心距离c点距离为l,那么该坐标为根据线性变换可求得该点坐标,以该点为原点构造平行于平面β的平面β′,根据所述步骤一构建圆锥正底面过程中的步骤求出β′与椭圆锥相交圆直径d,已知圆形目标直径D,那么可构造最小二乘问题如下式 (11)和式(12)所示:S2: Through S1, the plane equation when the intersecting line is a circle can be obtained, and the plane is recorded as β, and the origin is the coordinate c of the center of the circle. It is easy to know that the center of the circular target must be on the ray Ec, assuming that the distance between the center and point c is l, Then the coordinates are the point coordinates that can be obtained according to the linear transformation, and the plane β' parallel to the plane β is constructed with this point as the origin, and the intersection of β' and the elliptical cone is obtained according to the steps in the process of constructing the positive bottom of the cone in the first step. The circle diameter d is known, and the circular target diameter D is known, then the least squares problem can be constructed as shown in the following equations (11) and (12):

d=f(l+ηΔl) (11)d=f(l+ηΔl) (11)

Figure BDA0002603647950000061
Figure BDA0002603647950000061

S3:通过迭代可求得正确l值,继而求得空间圆形目标方程与圆心坐标。S3: The correct l value can be obtained through iteration, and then the spatial circular target equation and the coordinates of the center of the circle can be obtained.

采用上述结构本发明取得的有益效果如下:本方案单张平面圆图像的空间圆心快速提取方法,针对目前圆心目标圆心空间坐标提取精度与效率低的问题,首先利用相机光心与成像椭圆构建了空间圆锥方程,再构建出圆锥正底面,根据正底面求解出空间圆方程,最后根据平行平面与实际半径找出正确空间圆方程,避免了空间圆心投影坐标求解问题,且只需单张图像即可求解出空间圆心坐标,方法稳定可靠,在机器人定位与圆形管道测量等问题中均具有较好的实用性。本方案也可以应用于摄影测量领域,利用多个视角观测数据进行光束法平差,提高测量精度。The beneficial effects obtained by the present invention by adopting the above-mentioned structure are as follows: the rapid extraction method of the spatial center of a single planar circle image in this scheme aims at the problem of low accuracy and low efficiency in the extraction of the spatial coordinates of the current center of the circle target circle, and first uses the optical center of the camera and the imaging ellipse to construct The spatial conic equation, and then construct the positive base of the cone, solve the spatial circle equation according to the positive base, and finally find the correct spatial circle equation according to the parallel plane and the actual radius, avoiding the problem of solving the spatial center projection coordinates, and only need a single image The coordinates of the space center can be solved, the method is stable and reliable, and it has good practicability in problems such as robot positioning and circular pipe measurement. This scheme can also be applied to the field of photogrammetry, and the observation data of multiple viewing angles is used for beam adjustment to improve measurement accuracy.

附图说明Description of drawings

图1是本发明单张平面圆图像的空间圆心快速提取方法的目标成像模型示意图;Fig. 1 is the schematic diagram of the target imaging model of the method for quickly extracting the center of space of a single plane circle image of the present invention;

图2是本发明单张平面圆图像的空间圆心快速提取方法的构建正底面的示意图;Fig. 2 is the schematic diagram of constructing the positive bottom surface of the spatial circle center rapid extraction method of a single plane circle image of the present invention;

图3是本发明单张平面圆图像的空间圆心快速提取方法的学习率的分析示意图;Fig. 3 is the analysis schematic diagram of the learning rate of the method for quickly extracting the center of space of a single plane circle image of the present invention;

图4是本发明单张平面圆图像的空间圆心快速提取方法的实施例1中管道测绘仪与管道检测机器人的结构示意图;Fig. 4 is a schematic structural diagram of a pipe surveying instrument and a pipe detection robot in Embodiment 1 of the method for rapidly extracting the center of space of a single plane circle image of the present invention;

图5是本发明单张平面圆图像的空间圆心快速提取方法的实施例1中管道长度测量的结果对比图;Fig. 5 is a comparison diagram of the results of pipe length measurement in Embodiment 1 of the method for quickly extracting the center of space of a single plane circle image of the present invention;

图6是本发明单张平面圆图像的空间圆心快速提取方法的实施例2中圆形靶标的示意图。FIG. 6 is a schematic diagram of a circular target in Embodiment 2 of the method for quickly extracting the spatial center of a single plane circular image according to the present invention.

图7是本发明单张平面圆图像的空间圆心快速提取方法的实施例1中管道长度测量的结果对比图;Fig. 7 is a comparison diagram of the results of pipe length measurement in Embodiment 1 of the method for quickly extracting the center of space of a single plane circle image of the present invention;

图8是本发明单张平面圆图像的空间圆心快速提取方法的实施例2中圆形靶标的示意图。Fig. 8 is a schematic diagram of a circular target in Embodiment 2 of the method for quickly extracting the spatial center of a single plane circular image of the present invention.

附图用来提供对本发明的进一步理解,并且构成说明书的一部分,与本发明的实施例一起用于解释本发明,并不构成对本发明的限制。The accompanying drawings are used to provide a further understanding of the present invention, and constitute a part of the description, and are used together with the embodiments of the present invention to explain the present invention, and do not constitute a limitation to the present invention.

图1中,E点为视点,E-XeYeZe为相机坐标系,P点为相机主点,P-XpYpZp为图像坐标系;图2中,c1为原点,π1为直线c1E法向量方向构建的平面,c2为圆心坐标,π2为直线c2E法向量方向构建的平面;图6中,(a)为管道测绘仪,(b)为管道测绘机器人;图7中,(a)表示仿真环境,(b)表示实物环境,(c)为仿真环境与实物环境的测量对比图。In Figure 1, point E is the viewpoint, EX e Y e Z e is the camera coordinate system, point P is the principal point of the camera, and PX p Y p Z p is the image coordinate system; in Figure 2, c 1 is the origin, π 1 is The plane constructed in the direction of the normal vector of the straight line c 1 E, c 2 is the coordinates of the center of the circle, and π 2 is the plane constructed in the direction of the normal vector of the straight line c 2 E; in Figure 6, (a) is the pipeline surveying instrument, (b) is the pipeline surveying and mapping robot ; In Fig. 7, (a) represents the simulation environment, (b) represents the physical environment, and (c) is a measurement comparison chart between the simulation environment and the physical environment.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例;基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them; based on The embodiments of the present invention and all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

如图1-8所示,本发明单张平面圆图像的空间圆心快速提取方法,包括以下步骤:As shown in Figures 1-8, the method for quickly extracting the center of space of a single plane circle image of the present invention includes the following steps:

步骤一:构建圆锥正底面;Step 1: Construct the positive bottom of the cone;

步骤二:将底面所在平面绕长轴旋转,找到截面为圆的θ角,记此时平面为α;Step 2: Rotate the plane where the bottom surface is located around the long axis, find the angle θ where the section is a circle, and record the plane as α at this time;

步骤三:寻找与α平行且截面圆直径为D的平面β;Step 3: Find the plane β parallel to α and the diameter of the cross-sectional circle is D;

步骤四:求解此时的截面圆方程,求解出圆心坐标。Step 4: Solve the cross-sectional circle equation at this time, and solve the coordinates of the center of the circle.

所述步骤一中,构建圆锥正底面包括以下步骤:In said step one, constructing the conical bottom surface includes the following steps:

(1)求解坐标系下的椭圆锥方程:(1) Solve the elliptic cone equation in the coordinate system:

椭圆锥图像坐标系P-XpYpZp下椭圆锥方程为

Figure BDA0002603647950000081
其中Y=(y0,y1,y2),/>
Figure BDA0002603647950000082
为3×3对称矩阵,/>
Figure BDA0002603647950000083
为3×1向量,/>
Figure BDA0002603647950000084
为标量,取A=[aij],B=[bi],c=1,The ellipse cone equation in the image coordinate system PX p Y p Z p is
Figure BDA0002603647950000081
where Y=(y 0 ,y 1 ,y 2 ),/>
Figure BDA0002603647950000082
is a 3×3 symmetric matrix, />
Figure BDA0002603647950000083
is a 3×1 vector, />
Figure BDA0002603647950000084
is a scalar, take A=[a ij ], B=[b i ], c=1,

由于椭圆在XOY平面,那么y2为0,Since the ellipse is on the XOY plane, then y 2 is 0,

此时令Q(Y)=0可得以下方程:At this time, if Q(Y)=0, the following equation can be obtained:

Figure BDA0002603647950000085
Figure BDA0002603647950000085

由椭圆的标准方程式(2)可知,According to the standard equation (2) of the ellipse,

Figure BDA0002603647950000086
Figure BDA0002603647950000086

假设椭圆长轴半径为d0,短轴半径为d1Assume that the major axis radius of the ellipse is d 0 , and the minor axis radius is d 1 ,

Figure BDA0002603647950000087
but
Figure BDA0002603647950000087

在椭圆锥顶点处梯度为0,即

Figure BDA0002603647950000088
The gradient is 0 at the vertex of the ellipse cone, that is
Figure BDA0002603647950000088

Figure BDA0002603647950000089
在椭圆锥上,则有/>
Figure BDA00026036479500000810
联立式(1)、式(2)之可得and
Figure BDA0002603647950000089
On an elliptical cone, there is />
Figure BDA00026036479500000810
Simultaneous formula (1) and formula (2) can be obtained

Figure BDA00026036479500000811
Figure BDA00026036479500000811

此时

Figure BDA00026036479500000812
求解如式(3)所示:at this time
Figure BDA00026036479500000812
The solution is shown in formula (3):

Figure BDA00026036479500000813
Figure BDA00026036479500000813

(2)求解相机坐标系下的椭圆锥方程:(2) Solve the ellipse cone equation in the camera coordinate system:

假设图像坐标系在相机坐标系下的一组标准正交基为 Re=[Ue Ve Ne],Re也可看作两个坐标系间的旋转变换矩阵,假设Ce为盘面上某一点在相机坐标系下坐标,X为图像坐标系下椭圆坐标,Y为相机坐标系下椭圆坐标,则有如下式(4)所示:Assume that a set of orthonormal bases of the image coordinate system in the camera coordinate system is Re=[Ue Ve Ne], Re can also be regarded as the rotation transformation matrix between the two coordinate systems, assuming C e is a point on the disk surface in the camera The coordinates in the coordinate system, X is the ellipse coordinates in the image coordinate system, and Y is the ellipse coordinates in the camera coordinate system, as shown in the following formula (4):

Figure BDA0002603647950000091
Figure BDA0002603647950000091

因此一般椭圆锥方程推导如下式(5)所示:Therefore, the general elliptic cone equation is derived as shown in the following formula (5):

Figure BDA0002603647950000092
Figure BDA0002603647950000092

其中:in:

Figure BDA0002603647950000093
Figure BDA0002603647950000093

假设存在投影平面其原点为Cp,单位法向量为Np,构建其余两个正交单位向量Up和Vp,则旋转矩阵为Rp=[UpVpNp]该平面与椭圆锥相交,该交线为椭圆,Assuming that there is a projection plane whose origin is C p and unit normal vector is N p , construct the other two orthogonal unit vectors U p and V p , then the rotation matrix is R p =[U p V p N p ] the plane and the ellipse Cones intersect, the line of intersection is an ellipse,

则该椭圆上点可由Xp=Cp+y2Up+y3,Np=Cp+JpYp表示,该椭圆方程推导如下式(7)所示:Then the point on the ellipse can be represented by X p =C p +y2U p +y3, N p =C p +J p Y p , and the derivation of the ellipse equation is shown in the following formula (7):

Figure RE-GDA0002805725410000102
Figure RE-GDA0002805725410000102

其中

Figure BDA0002603647950000095
椭圆方程可以重构为如下形式:in
Figure BDA0002603647950000095
The elliptic equation can be reconstructed as follows:

(Yp-K)TM(Yp-K)=1 (8)(Y p -K) T M (Y p -K) = 1 (8)

(8)其中

Figure RE-GDA0002805725410000105
为圆心坐标,(8) of which
Figure RE-GDA0002805725410000105
is the coordinates of the center of the circle,

对M进行SVD分解RDRT=M,Perform SVD decomposition on M RDR T = M,

其中R为2×2矩阵表示正交基向量,

Figure BDA0002603647950000101
λ0和λ1分别表示椭圆的长短轴;Where R is a 2×2 matrix representing an orthogonal basis vector,
Figure BDA0002603647950000101
λ 0 and λ 1 represent the major and minor axes of the ellipse, respectively;

(3)构建正底面:(3) Construct the positive bottom surface:

由椭圆锥对称性易知,圆锥顶点与正底面圆心连线必然垂直于正底面,在投影轮廓上任取一点c1,以c1为原点,直线c1E为法向量方向构建平面π1,交圆锥于椭圆l,根据上述步骤(1)和(2)的算法求出圆心坐标c2,判断连线c2E与平面法向量是否夹角小于门限值,该门限值一般取e-6,若不满足则继续以c2E为法线构建平面与圆锥求交,直至找到正底面。From the symmetry of the elliptical cone, it is easy to know that the line connecting the apex of the cone and the center of the positive bottom surface must be perpendicular to the positive bottom surface. A point c 1 is randomly selected on the projection contour, with c 1 as the origin and the straight line c 1 E as the normal vector direction to construct a plane π 1 . Intersect the cone with the ellipse l, calculate the coordinate c 2 of the center of the circle according to the algorithm of the above steps (1) and (2), and judge whether the angle between the connecting line c 2 E and the normal vector of the plane is smaller than the threshold value, and the threshold value is generally taken as e -6 , if it is not satisfied, continue to use c 2 E as the normal to construct a plane and intersect the cone until the positive bottom is found.

所述步骤二、步骤三和步骤四中,求解圆形目标平面,包括以下步骤:In said step 2, step 3 and step 4, solving the circular target plane includes the following steps:

S1:平面α与椭圆锥相交于椭圆,根据所述步骤一构建圆锥正底面过程中的步骤可求出该椭圆长短轴半径,S1: The plane α intersects the ellipse cone with the ellipse, and the radius of the major and minor axes of the ellipse can be obtained according to the steps in the process of constructing the positive base of the cone in the first step,

以最小增量Δθ扰动该过程如式(9)所示:Disturbing the process with the minimum increment Δθ is shown in equation (9):

01)=f(θ+ηΔθ)01 )=f(θ+ηΔθ)

其中,η表示学习率,用以控制扰动步长,构造最小二乘问题寻找参数θ使椭圆长短轴半径相差最小,如式(10)所示:Among them, η represents the learning rate, which is used to control the disturbance step size, and constructs the least squares problem to find the parameter θ to minimize the difference between the long and short axis radii of the ellipse, as shown in formula (10):

Figure BDA0002603647950000102
Figure BDA0002603647950000102

S2:通过S1可以求得交线为圆时的平面方程,记该平面为β,原点为圆心坐标c,易知圆形目标中心必然在射线Ec上,假设该中心距离c点距离为l,那么该坐标为根据线性变换可求得该点坐标,以该点为原点构造平行于平面β的平面β′,根据所述步骤一构建圆锥正底面过程中的步骤求出β′与椭圆锥相交圆直径d,已知圆形目标直径D,那么可构造最小二乘问题如下式(11)和式(12)所示:S2: Through S1, the plane equation when the intersecting line is a circle can be obtained, and the plane is recorded as β, and the origin is the coordinate c of the center of the circle. It is easy to know that the center of the circular target must be on the ray Ec, assuming that the distance between the center and point c is l, Then the coordinates are the point coordinates that can be obtained according to the linear transformation, and the plane β' parallel to the plane β is constructed with this point as the origin, and the intersection of β' and the elliptical cone is obtained according to the steps in the process of constructing the positive bottom of the cone in the first step. The circle diameter d is known, and the circular target diameter D is known, then the least squares problem can be constructed as shown in the following equations (11) and (12):

d=f(l+ηΔl) (11)d=f(l+ηΔl) (11)

Figure BDA0002603647950000111
Figure BDA0002603647950000111

S3:通过迭代可求得正确l值,继而求得空间圆形目标方程与圆心坐标。S3: The correct l value can be obtained through iteration, and then the spatial circular target equation and the coordinates of the center of the circle can be obtained.

上述步骤中参数η表示学习率,该参数一般称为超参数,其取值影响最小二乘问题的优化求解,易知求解圆形目标平面中最小二乘问题属于凸优化问题,因此利用梯度下降法一定可以求得极值,实验表明,当取值为常数时,即以恒定步长扰动最小二乘模型时,若取值较小则收敛较慢,若取值较大则会出现震荡收敛的情况,如图3所示,而将η随着求解过程逐渐衰减则能取得较好效果。In the above steps, the parameter η represents the learning rate. This parameter is generally called a hyperparameter, and its value affects the optimal solution of the least squares problem. It is easy to know that the least squares problem in the circular target plane is a convex optimization problem, so the gradient descent is used The method must be able to obtain the extreme value. Experiments show that when the value is constant, that is, when the least squares model is perturbed with a constant step size, if the value is small, the convergence will be slow, and if the value is large, there will be oscillation convergence. In the case of , as shown in Figure 3, better results can be achieved by gradually reducing η along with the solution process.

如图3-5所示,起始下降速度较快,随着学习率的衰减逐渐收敛到最小值,迭代次数也较小。As shown in Figure 3-5, the initial decline speed is faster, and as the learning rate decays, it gradually converges to the minimum value, and the number of iterations is also small.

实施例1,应用于管道长度测量中:Embodiment 1, applied to pipeline length measurement:

图6所示设备为管道测绘仪与管道检测机器人,测绘仪用于静态测量场景,而管道检测机器人则用于狭窄空间下的管道测量,两台测量设备均包含了照明装置与相机,相机由张氏标定法完成内参标定,本方案以实物管道测量与三维仿真环境作对比,管道长度2m,管道口径已知为0.4m,利用本方案中的算法步骤分别求出两端圆形端口中心坐标,再求出管道长度,多个角度求解20 次,统计数据如图7所示,可见本文算法能准确求解出管道长度,实际测量平均误差在2cm左右,而数据中实际测量方差要大于仿真环境测量方差,这是因为再实际环境中圆形目标边缘噪声较多,提取精度低于仿真环境,而在实际测量中也可以多测测量求平均来降低测量值方差。The equipment shown in Figure 6 is a pipeline surveyor and a pipeline inspection robot. The surveyor is used in static measurement scenarios, while the pipeline inspection robot is used for pipeline measurement in narrow spaces. Both measurement equipment include lighting devices and cameras. The cameras are controlled by Zhang’s calibration method completes the calibration of the internal parameters. This program compares the measurement of the physical pipeline with the 3D simulation environment. The length of the pipeline is 2m, and the diameter of the pipeline is known to be 0.4m. Use the algorithm steps in this program to calculate the center coordinates of the circular ports at both ends. , and then calculate the length of the pipeline, and solve it 20 times from multiple angles. The statistical data are shown in Figure 7. It can be seen that the algorithm in this paper can accurately calculate the length of the pipeline. Measurement variance, because in the actual environment, there are more noises on the edge of the circular target, and the extraction accuracy is lower than that in the simulation environment. In actual measurement, multiple measurements can be averaged to reduce the variance of the measurement value.

实施例2,圆心投影提取精度测量:Embodiment 2, measurement of extraction accuracy of circle center projection:

为测量本方案提取圆心的精度,将如图8所示的标志圆作为靶标进行测试。待测圆的半径为5cm,中间角点即为实际圆心,在像平面与靶标平面呈45 °夹角时在不同距离采集图像,并提取到角点亚像素坐标作为基准,利用本方案求解出圆心三维坐标并通过相机模型投影到成像平面后得到像素坐标,再对拟合椭圆圆心亚像素坐标进行提取。In order to measure the accuracy of the extraction of the center of the scheme, the symbol circle shown in Figure 8 is used as the target for testing. The radius of the circle to be measured is 5cm, and the middle corner point is the actual center of the circle. When the image plane and the target plane form an angle of 45°, images are collected at different distances, and the sub-pixel coordinates of the corner points are extracted as a reference. This solution is used to solve the The three-dimensional coordinates of the center of the circle are projected to the imaging plane through the camera model to obtain the pixel coordinates, and then the sub-pixel coordinates of the center of the fitted ellipse are extracted.

三者结果如下表1所示,The results of the three are shown in Table 1 below.

表1圆心坐标对比结果Table 1 Comparison results of the coordinates of the center of the circle

Figure BDA0002603647950000121
Figure BDA0002603647950000121

本方案提取的圆心坐标与基准坐标相差大概0.1~2个像素,但是椭圆中心与基准相差了5~12个像素,因此本文方法所求得的圆心坐标更精确,与实际坐标误差非常小。The difference between the coordinates of the center of the circle extracted by this scheme and the reference coordinates is about 0.1 to 2 pixels, but the difference between the center of the ellipse and the reference is 5 to 12 pixels. Therefore, the coordinates of the center of the circle obtained by the method in this paper are more accurate, and the error with the actual coordinates is very small.

以上对本发明及其实施方式进行了描述,这种描述没有限制性,附图中所示的也只是本发明的实施方式之一,实际的结构并不局限于此。总而言之如果本领域的普通技术人员受其启示,在不脱离本发明创造宗旨的情况下,不经创造性的设计出与该技术方案相似的结构方式及实施例,均应属于本发明的保护范围。The present invention and its implementations have been described above, and this description is not limiting. What is shown in the drawings is only one of the implementations of the present invention, and the actual structure is not limited thereto. All in all, if a person of ordinary skill in the art is inspired by it, without departing from the inventive concept of the present invention, without creatively designing a structure and an embodiment similar to the technical solution, it shall fall within the scope of protection of the present invention.

Claims (1)

1.单张平面圆图像的空间圆心快速提取方法,其特征在于,采用管道测绘仪和管道检测机器人对实物管道进行测量,所述管道测绘仪和管道检测机器人均包含有照明装置与相机,相机由张氏标定法完成内参标定,管道长度测量包括如下步骤:1. The method for quickly extracting the center of space of a single plane circle image is characterized in that, a pipeline surveying instrument and a pipeline detection robot are used to measure the physical pipeline, and the pipeline surveying instrument and the pipeline detection robot all include a lighting device and a camera, a camera The internal reference calibration is completed by Zhang’s calibration method, and the pipe length measurement includes the following steps: S1:首先通过相机获取单张图像,利用相机光心与成像椭圆构成空间圆锥方程,再构建出圆锥正底面;S1: First obtain a single image through the camera, use the optical center of the camera and the imaging ellipse to form a spatial conic equation, and then construct the positive base of the cone; S2:根据圆锥正底面求解出空间圆的平行平面方程;S2: Solve the parallel plane equation of the space circle according to the positive base of the cone; S3:最后根据平行平面与实际半径找出正确空间圆方程;S3: Finally, find out the correct space circle equation according to the parallel plane and the actual radius; 所述空间圆方程的建立具体包括以下步骤:The establishment of the space circle equation specifically includes the following steps: 步骤一:构建圆锥正底面;Step 1: Construct the positive bottom of the cone; 步骤二:将底面所在平面绕长轴旋转,找到截面为圆的θ角,记此时平面为α;Step 2: Rotate the plane where the bottom surface is located around the long axis, find the angle θ where the section is a circle, and record the plane as α at this time; 步骤三:寻找与α平行且截面圆直径为D的平面β;Step 3: Find the plane β parallel to α and the diameter of the cross-sectional circle is D; 步骤四:求解此时的截面圆方程,求解出圆心坐标;Step 4: Solve the cross-sectional circle equation at this time, and solve the coordinates of the center of the circle; 所述步骤一中,构建圆锥正底面包括以下步骤:In said step one, constructing the conical bottom surface includes the following steps: (1)求解坐标系下的椭圆锥方程:(1) Solve the elliptic cone equation in the coordinate system: 椭圆锥图像坐标系P-XpYpZp下椭圆锥方程为
Figure FDA0004199304630000011
其中Y=(y0,y1,y2),/>
Figure FDA0004199304630000012
为3×3对称矩阵,/>
Figure FDA0004199304630000013
为3×1向量,/>
Figure FDA0004199304630000014
为标量,取A=[aij],B=[bi],c=1,由于椭圆在XOY平面,那么y2为0,此时令Q(Y)=0可得以下方程:
The ellipse cone equation in the image coordinate system PX p Y p Z p is
Figure FDA0004199304630000011
where Y=(y 0 ,y 1 ,y 2 ),/>
Figure FDA0004199304630000012
is a 3×3 symmetric matrix, />
Figure FDA0004199304630000013
is a 3×1 vector, />
Figure FDA0004199304630000014
As a scalar, take A=[a ij ], B=[b i ], c=1, since the ellipse is on the XOY plane, then y2 is 0, at this time, Q(Y)=0 can get the following equation:
Figure FDA0004199304630000015
Figure FDA0004199304630000015
式(1)中,Y为相机坐标系下椭圆坐标,Y=(y0,y1,y2),在XOY平面中y2为0,A=[aij]简化为2*2矩阵,B=[bi]简化为2*1矩阵;In formula (1), Y is the ellipse coordinate in the camera coordinate system, Y=(y 0 , y 1 , y 2 ), y 2 is 0 in the XOY plane, A=[a ij ] is simplified to a 2*2 matrix, B=[b i ] is simplified to a 2*1 matrix; 由椭圆的标准方程式(2)可知,According to the standard equation (2) of the ellipse,
Figure FDA0004199304630000016
Figure FDA0004199304630000016
式(2)中,y0、y1为XOY平面中Y的x轴、y轴的坐标;假设椭圆长轴半径为d0,短轴半径为d1In formula (2), y 0 and y 1 are the coordinates of the x-axis and y-axis of Y in the XOY plane; assuming that the radius of the major axis of the ellipse is d 0 and the radius of the minor axis is d 1 ,
Figure FDA0004199304630000021
but
Figure FDA0004199304630000021
在椭圆锥顶点处梯度为0,即
Figure FDA0004199304630000022
且/>
Figure FDA0004199304630000023
在椭圆锥上,则有/>
Figure FDA0004199304630000024
联立式(1)、式(2)之可得:
The gradient is 0 at the vertex of the ellipse cone, that is
Figure FDA0004199304630000022
and/>
Figure FDA0004199304630000023
On an elliptical cone, there is />
Figure FDA0004199304630000024
Simultaneous formula (1), formula (2) can get:
Figure FDA0004199304630000025
Figure FDA0004199304630000025
此时
Figure FDA0004199304630000026
求解如式(3)所示:
at this time
Figure FDA0004199304630000026
The solution is shown in formula (3):
Figure FDA0004199304630000027
Figure FDA0004199304630000027
(2)求解相机坐标系下的椭圆锥方程:(2) Solve the ellipse cone equation in the camera coordinate system: 假设图像坐标系在相机坐标系下的一组标准正交基为Re=[Ue Ve Ne],Re也可看作两个坐标系间的旋转变换矩阵,假设Ce为盘面上某一点在相机坐标系下坐标,X为图像坐标系下椭圆坐标,Y为相机坐标系下椭圆坐标,则有如下式(4)所示:Assume that a set of orthonormal bases of the image coordinate system in the camera coordinate system is Re=[Ue Ve Ne], Re can also be regarded as the rotation transformation matrix between the two coordinate systems, assuming C e is a point on the disk surface in the camera The coordinates in the coordinate system, X is the ellipse coordinates in the image coordinate system, and Y is the ellipse coordinates in the camera coordinate system, as shown in the following formula (4):
Figure FDA0004199304630000028
Figure FDA0004199304630000028
因此一般椭圆锥方程推导如下式(5)所示:Therefore, the general elliptic cone equation is derived as shown in the following formula (5):
Figure FDA0004199304630000029
Figure FDA0004199304630000029
其中:in:
Figure FDA00041993046300000210
Figure FDA00041993046300000210
假设存在投影平面其原点为Cp,单位法向量为Np,构建其余两个正交单位向量Up和Vp,则旋转矩阵为Rp=[UpVpNp]该平面与椭圆锥相交,该交线为椭圆,Assuming that there is a projection plane whose origin is C p and unit normal vector is N p , construct the other two orthogonal unit vectors U p and V p , then the rotation matrix is R p =[U p V p N p ] the plane and the ellipse Cones intersect, the line of intersection is an ellipse, 则该椭圆上点可由Xp=Cp+y2Up+y3,Np=Cp+JpYp表示,该椭圆方程推导如下式(7)所示:Then the point on the ellipse can be represented by X p =C p +y2U p +y3, N p =C p +J p Y p , and the derivation of the ellipse equation is shown in the following formula (7):
Figure FDA0004199304630000031
Figure FDA0004199304630000031
其中:
Figure FDA0004199304630000032
in:
Figure FDA0004199304630000032
椭圆方程可以重构为如下形式:The elliptic equation can be reconstructed as follows: (Yp-K)TM(Yp-K)=1 (8)(Y p -K) T M (Y p -K) = 1 (8) 其中
Figure FDA0004199304630000033
为圆心坐标,对M进行SVD分解得到RDRT=M,其中R为2×2矩阵表示正交基向量,/>
Figure FDA0004199304630000034
λ0和λ1分别表示椭圆的长短轴;
in
Figure FDA0004199304630000033
is the coordinates of the center of the circle, perform SVD decomposition on M to obtain RDR T = M, where R is a 2×2 matrix representing an orthogonal basis vector, />
Figure FDA0004199304630000034
λ 0 and λ 1 represent the major and minor axes of the ellipse, respectively;
(3)构建正底面:(3) Construct the positive bottom surface: 由椭圆锥对称性易知,圆锥顶点与正底面圆心连线必然垂直于正底面,在投影轮廓上任取一点c1,以c1为原点,直线c1E为法向量方向构建平面π1,交圆锥于椭圆l,根据上述步骤(1)和(2)的算法求出圆心坐标c2,判断连线c2E与平面法向量是否夹角小于门限值,该门限值一般取e-6,若不满足则继续以c2E为法线构建平面与圆锥求交,直至找到正底面;From the symmetry of the elliptical cone, it is easy to know that the line connecting the apex of the cone and the center of the positive bottom surface must be perpendicular to the positive bottom surface. A point c 1 is randomly selected on the projection contour, with c 1 as the origin and the straight line c 1 E as the normal vector direction to construct a plane π 1 . Intersect the cone with the ellipse l, calculate the coordinate c 2 of the center of the circle according to the algorithm of the above steps (1) and (2), and judge whether the angle between the connecting line c 2 E and the normal vector of the plane is smaller than the threshold value, and the threshold value is generally taken as e -6 , if it is not satisfied, continue to use c 2 E as the normal to construct the plane and the cone to intersect until the positive bottom is found; 所述步骤二、步骤三和步骤四中,求解截面圆方程,包括以下步骤:In said step 2, step 3 and step 4, solving the section circle equation includes the following steps: S1:平面α与椭圆锥相交于椭圆,根据所述步骤一构建圆锥正底面过程中的步骤可求出该椭圆长短轴半径,S1: The plane α intersects the ellipse cone with the ellipse, and the radius of the major and minor axes of the ellipse can be obtained according to the steps in the process of constructing the positive base of the cone in the first step, 以最小增量Δθ扰动该过程如式(9)所示:Disturbing the process with the minimum increment Δθ is shown in equation (9): 01)=f(θ+ηΔθ) (9)01 )=f(θ+ηΔθ) (9) 其中,η表示学习率,用以控制扰动步长,构造最小二乘问题寻找参数θ使椭圆长短轴半径相差最小,如式(10)所示:Among them, η represents the learning rate, which is used to control the disturbance step size, and constructs a least squares problem to find the parameter θ to minimize the difference between the long and short axis radii of the ellipse, as shown in formula (10):
Figure FDA0004199304630000035
Figure FDA0004199304630000035
S2:通过S1可以求得交线为圆时的平面方程,记该平面为β,原点为圆心坐标c,易知目标的空间圆中心必然在射线Ec上,假设该中心距离c点距离为l,那么该坐标为根据线性变换可求得该点坐标,以该点为原点构造平行于平面β的平面β′,根据所述步骤一构建圆锥正底面过程中的步骤求出β′与椭圆锥相交圆直径d,已知待求截面圆的直径为D,那么可构造最小二乘问题如下式(11)和式(12)所示:S2: Through S1, the plane equation when the intersection line is a circle can be obtained, and the plane is recorded as β, and the origin is the coordinate c of the center of the circle. It is easy to know that the space circle center of the target must be on the ray Ec, assuming that the distance between the center and point c is l , then the coordinates are the coordinates of the point that can be obtained according to the linear transformation, and the plane β' parallel to the plane β is constructed with this point as the origin, and the relationship between β' and the elliptical cone is obtained according to the steps in the process of constructing the positive base of the cone in the first step. The diameter of the intersecting circle is d, and the diameter of the cross-section circle to be obtained is known to be D, then the least squares problem can be constructed as shown in the following equations (11) and (12): d=f(l+ηΔl) (11)d=f(l+ηΔl) (11)
Figure FDA0004199304630000041
Figure FDA0004199304630000041
S3:通过迭代可求得正确l值,继而求得截面圆方程与圆心坐标。S3: The correct l value can be obtained through iteration, and then the section circle equation and the coordinates of the circle center can be obtained.
CN202010731975.7A 2020-07-27 2020-07-27 A fast method for extracting the spatial center of a single planar circle image Active CN112163309B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010731975.7A CN112163309B (en) 2020-07-27 2020-07-27 A fast method for extracting the spatial center of a single planar circle image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010731975.7A CN112163309B (en) 2020-07-27 2020-07-27 A fast method for extracting the spatial center of a single planar circle image

Publications (2)

Publication Number Publication Date
CN112163309A CN112163309A (en) 2021-01-01
CN112163309B true CN112163309B (en) 2023-06-02

Family

ID=73859879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010731975.7A Active CN112163309B (en) 2020-07-27 2020-07-27 A fast method for extracting the spatial center of a single planar circle image

Country Status (1)

Country Link
CN (1) CN112163309B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112381847B (en) * 2020-10-27 2024-02-13 新拓三维技术(深圳)有限公司 Pipeline end space pose measurement method and system
CN114782553B (en) * 2022-05-11 2023-07-28 江南大学 Iterative Camera Calibration Method and Device Based on Ellipse Dual Conic

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101607078B1 (en) * 2015-04-27 2016-03-29 서울과학기술대학교 산학협력단 Method of measuring curvature and mapping of underground pipeline using vision
CN106815872A (en) * 2017-01-06 2017-06-09 芜湖瑞思机器人有限公司 Monocular vision space-location method based on conical projection conversion
CN108844463A (en) * 2018-06-12 2018-11-20 南京理工大学 Underground piping dimensional orientation measuring system and method based on laser spot position
CN109655017A (en) * 2019-02-25 2019-04-19 沈阳航空航天大学 A kind of pipeline the coaxial degree measurement

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6859747B2 (en) * 2001-04-26 2005-02-22 Siemens Energy & Automation, Inc. Method and apparatus for self-calibrating a motion control system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101607078B1 (en) * 2015-04-27 2016-03-29 서울과학기술대학교 산학협력단 Method of measuring curvature and mapping of underground pipeline using vision
CN106815872A (en) * 2017-01-06 2017-06-09 芜湖瑞思机器人有限公司 Monocular vision space-location method based on conical projection conversion
CN108844463A (en) * 2018-06-12 2018-11-20 南京理工大学 Underground piping dimensional orientation measuring system and method based on laser spot position
CN109655017A (en) * 2019-02-25 2019-04-19 沈阳航空航天大学 A kind of pipeline the coaxial degree measurement

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
FPGA-based Real Time Embedded Hough Transform Architecture for circles detection;Orlando Chuquimia等;《2018 CONFERENCE ON DESIGN AND ARCHITECTURES FOR SIGNAL AND IMAGE PROCESSING》;31-36 *
平面标定靶标标记点的圆心提取;解则晓等;《光学精密工程》;第27卷(第2期);440-449 *
磁浮交通试验线压力管道直线度的测量方法研究及应用;韩冰等;《测绘通报》(第6期);126-130+135 *

Also Published As

Publication number Publication date
CN112163309A (en) 2021-01-01

Similar Documents

Publication Publication Date Title
US20200111250A1 (en) Method for reconstructing three-dimensional space scene based on photographing
CN104392435B (en) Fisheye camera scaling method and caliberating device
CN105913417B (en) Geometrical constraint pose method based on perspective projection straight line
CN112308925B (en) Dual-target positioning method, device and storage medium for wearable device
Gai et al. A novel dual-camera calibration method for 3D optical measurement
CN102750704B (en) Step-by-step video camera self-calibration method
CN105486289B (en) A kind of laser photography measuring system and camera calibration method
CN102243074A (en) Method for simulating geometric distortion of aerial remote sensing image based on ray tracing technology
CN104019799A (en) Relative orientation method by using optimization of local parameter to calculate basis matrix
CN105184857A (en) Scale factor determination method in monocular vision reconstruction based on dot structured optical ranging
CN111462241B (en) Target positioning method based on monocular vision
CN112163309B (en) A fast method for extracting the spatial center of a single planar circle image
CN110275179A (en) A Map Construction Method Based on LiDAR and Vision Fusion
CN114187589A (en) A target detection method, apparatus, device and storage medium
CN106157322A (en) A kind of camera installation site scaling method based on plane mirror
Fabbri et al. Camera pose estimation using first-order curve differential geometry
TW565736B (en) Method for determining the optical parameters of a camera
CN109859276A (en) A kind of fish eye lens inner parameter self-calibrating method
Yan et al. A decoupled calibration method for camera intrinsic parameters and distortion coefficients
CN110555880B (en) Focal length unknown P6P camera pose estimation method
Shang et al. Research on the rapid 3D measurement of satellite antenna reflectors using stereo tracking technique
WO2021111613A1 (en) Three-dimensional map creation device, three-dimensional map creation method, and three-dimensional map creation program
Liang et al. Common pole-polar and common tangent properties of dual coplanar circles and their application in camera calibration
Yang et al. Common pole–polar properties of central catadioptric sphere and line images used for camera calibration
CN116309815A (en) Feature point weighting uncertainty camera pose estimation method based on rotation parameters

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