[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109269472B - Method, device and storage medium for extracting feature line of oblique photogrammetry building - Google Patents

Method, device and storage medium for extracting feature line of oblique photogrammetry building Download PDF

Info

Publication number
CN109269472B
CN109269472B CN201810896609.XA CN201810896609A CN109269472B CN 109269472 B CN109269472 B CN 109269472B CN 201810896609 A CN201810896609 A CN 201810896609A CN 109269472 B CN109269472 B CN 109269472B
Authority
CN
China
Prior art keywords
intersection line
calculate
oblique
facades
buildings
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
CN201810896609.XA
Other languages
Chinese (zh)
Other versions
CN109269472A (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.)
Guangzhou Urban Planning Survey and Design Institute
Original Assignee
Guangzhou Urban Planning Survey and Design Institute
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 Guangzhou Urban Planning Survey and Design Institute filed Critical Guangzhou Urban Planning Survey and Design Institute
Priority to CN201810896609.XA priority Critical patent/CN109269472B/en
Publication of CN109269472A publication Critical patent/CN109269472A/en
Application granted granted Critical
Publication of CN109269472B publication Critical patent/CN109269472B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C11/00Photogrammetry or videogrammetry, e.g. stereogrammetry; Photographic surveying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Quality & Reliability (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

本发明公开了一种倾斜摄影测量建筑物特征线提取方法、装置与存储介质,该方法,包括:根据多视倾斜影像,构建指定建筑的实景三维模型;从所述实景三维模型的外立面中选取不共线的三点,以计算所述外立面对应的最优平面;根据所述实景三维模型中两个相邻的外立面对应的最优平面,计算所述两个相邻的外立面的交线。上述方法能够依据多视倾斜影像,准确提取建筑的特征线,提高建筑的测绘精度和效率。

Figure 201810896609

The invention discloses a method, device and storage medium for extracting characteristic lines of buildings by oblique photogrammetry. The method includes: constructing a three-dimensional model of a specified building according to a multi-view oblique image; Three points that are not collinear in the 3D model are selected to calculate the optimal plane corresponding to the facade; the intersection of the façade. The above method can accurately extract the characteristic line of the building according to the multi-view oblique image, and improve the surveying and mapping accuracy and efficiency of the building.

Figure 201810896609

Description

倾斜摄影测量建筑物特征线提取方法、装置与存储介质Method, device and storage medium for extracting feature line of oblique photogrammetry building

技术领域technical field

本发明涉及建筑测绘技术领域,具体涉及一种倾斜摄影测量建筑物特征线提取方法、装置与存储介质。The invention relates to the technical field of architectural surveying and mapping, in particular to a method, a device and a storage medium for extracting characteristic lines of buildings by oblique photogrammetry.

背景技术Background technique

倾斜摄影测量是国际摄影测量领域近年来兴起的一项高新技术,它通过从不同的视角采集影像,获取到丰富的建筑物顶面及侧视的高分辨率纹理。它不仅能够真实地反映地物情况,高精度地获取物方纹理信息,还可通过先进的定位、融合、建模等技术,生成近乎真实的三维城市模型。Oblique photogrammetry is a high-tech emerging in the field of international photogrammetry in recent years. It acquires rich high-resolution textures of the top and side views of buildings by collecting images from different perspectives. It can not only truly reflect the situation of ground objects and obtain the texture information of objects with high precision, but also generate nearly real three-dimensional city models through advanced positioning, fusion, modeling and other technologies.

倾斜影像能让用户从多个角度观察地物,更加真实地反映地物的实际情况,极大地弥补了传统正射影像应用的不足。通过配套应用,可直接基于成果影像生成点云和实景三维模型,用户能够多角度进行点选和量测,扩展了倾斜摄影测量技术的应用。Oblique images allow users to observe objects from multiple angles and reflect the actual situation of objects more realistically, which greatly makes up for the shortcomings of traditional orthophoto applications. Through supporting applications, point clouds and real-world 3D models can be generated directly based on the result images, and users can click and measure from multiple angles, expanding the application of oblique photogrammetry technology.

实景三维模型一般是由海量点云基于三角网而贴面生成的。随着倾斜摄影测量的相机分辨率越来越高、镜头数量也越来越多,实景三维模型的数据量呈几何级数的递增,直接利用三角网实现特征线搜索的效率越来越低;并且,由于三角网本身特性的制约,它对于面的拟合效果较好,但对于建筑物外轮廓非平缓的线状目标难以准确拟合;而若由人工直接辨认特征线,又往往因为线性目标在视图中呈现尖角易产生较大的勾选偏差;另外,由于树木植被和其他地物的影响,很多建筑物的特征线还不能直接呈现在倾斜影像上。上述种种问题会导致建筑物的特征线提取精度不足效率不高,难以满足规划、建设、城管和市政等领域对建筑物量测有较高精度要求的场合。The real 3D model is generally generated by the veneer of massive point clouds based on the triangulation. As the camera resolution of oblique photogrammetry is getting higher and higher and the number of lenses is also increasing, the data volume of the 3D model of the real scene increases geometrically, and the efficiency of directly using the triangulation to realize the feature line search is getting lower and lower; In addition, due to the constraints of the characteristics of the triangulation network itself, it has a good fitting effect on surfaces, but it is difficult to accurately fit linear targets with non-smooth building outlines. The sharp corners of the target in the view are likely to cause a large selection deviation; in addition, due to the influence of trees, vegetation and other features, the feature lines of many buildings cannot be directly displayed on the oblique image. The above problems will lead to insufficient extraction accuracy of building feature lines and low efficiency, and it is difficult to meet the occasions where high precision requirements for building measurement are required in the fields of planning, construction, urban management and municipal administration.

发明内容SUMMARY OF THE INVENTION

基于此,本发明提供了一种倾斜摄影测量建筑物特征线提取方法、装置与存储介质,能够依据多视倾斜影像,准确提取建筑的特征线,提高建筑的测绘精度和效率。Based on this, the present invention provides a method, device and storage medium for extracting characteristic lines of buildings by oblique photogrammetry, which can accurately extract characteristic lines of buildings based on multi-view oblique images and improve the accuracy and efficiency of building surveying and mapping.

本发明实施例提供一种倾斜摄影测量建筑物特征线提取方法,包括:An embodiment of the present invention provides a method for extracting characteristic lines of buildings from oblique photogrammetry, including:

根据多视倾斜影像,构建指定建筑的实景三维模型;According to the multi-view oblique image, construct the real 3D model of the specified building;

从所述实景三维模型的外立面中选取不共线的三点,以计算所述外立面对应的最优平面;Three non-collinear points are selected from the outer facade of the three-dimensional model of the real scene to calculate the optimal plane corresponding to the outer facade;

根据所述实景三维模型中两个相邻的外立面对应的最优平面,计算所述两个相邻的外立面的交线。According to the optimal plane corresponding to the two adjacent facades in the three-dimensional model of the real scene, the intersection line of the two adjacent facades is calculated.

优选地,所述从所述实景三维模型的外立面中选取不共线的三点,以计算所述外立面对应的最优平面,具体包括:Preferably, the three non-collinear points are selected from the outer facade of the three-dimensional model of the real scene to calculate the optimal plane corresponding to the outer facade, which specifically includes:

Figure BDA0001758331950000021
计算所述外立面对应的最优平面;
Figure BDA0001758331950000021
Calculate the optimal plane corresponding to the outer facade;

其中,P1(x1,y1,z1)、P2(x2,y2,z2)、P3(x3,y3,z3)为所述外立面不共线的三点对应的坐标。Wherein, P 1 (x 1 , y 1 , z 1 ), P 2 (x 2 , y 2 , z 2 ), P 3 (x 3 , y 3 , z 3 ) are the non-collinear facades The coordinates corresponding to the three points.

优选地,所述根据所述实景三维模型中两个相邻的外立面对应的最优平面,计算所述两个相邻的外立面的交线,具体包括:Preferably, calculating the intersection line of the two adjacent facades according to the optimal plane corresponding to the two adjacent facades in the three-dimensional model of the real scene specifically includes:

根据两个相邻的外立面对应的最优平面的法向量,计算所述交线的方向向量以及过所述交线的指定坐标;Calculate the direction vector of the intersection line and the specified coordinates passing through the intersection line according to the normal vector of the optimal plane corresponding to the two adjacent facades;

根据所述交线的方向向量以及过所述交线的指定坐标,获得所述两个相邻的外立面的交线。According to the direction vector of the intersection line and the specified coordinates passing through the intersection line, the intersection line of the two adjacent facades is obtained.

优选地,根据两个相邻的外立面对应的最优平面的法向量,计算所述交线的方向向量以及过所述交线的指定坐标,具体包括:Preferably, according to the normal vectors of the optimal planes corresponding to the two adjacent facades, the direction vector of the intersection line and the specified coordinates passing through the intersection line are calculated, specifically including:

根据公式

Figure BDA0001758331950000022
计算所述交线的方向向量;According to the formula
Figure BDA0001758331950000022
Calculate the direction vector of the intersection line;

根据公式

Figure BDA0001758331950000031
计算过所述交线的指定坐标;According to the formula
Figure BDA0001758331950000031
Calculated the specified coordinates of the intersection line;

其中,

Figure BDA0001758331950000032
分别为两个相邻的外立面对应的最优平面的法向量。in,
Figure BDA0001758331950000032
are the normal vectors of the optimal planes corresponding to the two adjacent facades, respectively.

优选地,所述根据所述交线的方向向量以及过所述交线的指定坐标,获得所述两个相邻的外立面的交线,具体包括:Preferably, obtaining the intersection line of the two adjacent facades according to the direction vector of the intersection line and the specified coordinates passing through the intersection line specifically includes:

根据公式

Figure BDA0001758331950000033
计算所述交线的方程,以获得所述两个相邻的外立面的交线;According to the formula
Figure BDA0001758331950000033
calculating the equation of the intersection line to obtain the intersection line of the two adjacent facades;

其中,(0,y0,z0)为过所述交线的指定坐标,t为参数。Wherein, (0, y 0 , z 0 ) are the designated coordinates passing through the intersection line, and t is a parameter.

优选地,所述根据多视倾斜影像,构建指定建筑的实景三维模型之前还包括:Preferably, before constructing the real-life 3D model of the designated building according to the multi-view oblique images, the method further includes:

根据所述多视倾斜影像的位置数据和姿态数据,对所述多视倾斜影像进行空中三角测量、几何校正、坐标转换以及影像拼接。According to the position data and attitude data of the multi-view oblique image, aerial triangulation, geometric correction, coordinate conversion and image stitching are performed on the multi-view oblique image.

本发明实施例还提供了一种倾斜摄影测量建筑物特征线提取装置,包括:The embodiment of the present invention also provides a device for extracting characteristic lines of buildings from oblique photogrammetry, including:

模型构建模块,用于根据多视倾斜影像,构建指定建筑的实景三维模型;The model building module is used to construct a real 3D model of a specified building based on multi-view oblique images;

平面计算模块,用于从所述实景三维模型的外立面中选取不共线的三点,以计算所述外立面对应的最优平面;a plane calculation module, used to select three non-collinear points from the outer facade of the three-dimensional model of the real scene to calculate the optimal plane corresponding to the outer facade;

交线计算模块,用于根据所述实景三维模型中两个相邻的外立面对应的最优平面,计算所述两个相邻的外立面的交线。The intersection line calculation module is configured to calculate the intersection line of the two adjacent outer facades according to the optimal plane corresponding to the two adjacent outer facades in the three-dimensional model of the real scene.

本发明实施例还提供了一种倾斜摄影测量建筑物特征线提取装置,包括处理器、存储器以及存储在所述存储器中且被配置为由所述处理器执行的计算机程序,所述处理器执行所述计算机程序时实现如上述的倾斜摄影测量建筑物特征线提取方法。An embodiment of the present invention further provides an apparatus for extracting feature lines of a building using oblique photogrammetry, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor executing The computer program implements the above-mentioned method for extracting characteristic lines of buildings from oblique photogrammetry.

本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质包括存储的计算机程序,其中,在所述计算机程序运行时控制所述计算机可读存储介质所在设备执行如上述的倾斜摄影测量建筑物特征线提取方法。An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, wherein when the computer program runs, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned A method for extracting characteristic lines of buildings in oblique photogrammetry.

相对于现有技术,本发明实施例提供的一种倾斜摄影测量建筑物特征线提取方法的有益效果在于:所述倾斜摄影测量建筑物特征线提取方法,包括:根据多视倾斜影像,构建指定建筑的实景三维模型;从所述实景三维模型的外立面中选取不共线的三点,以计算所述外立面对应的最优平面;根据所述实景三维模型中两个相邻的外立面对应的最优平面,计算所述两个相邻的外立面的交线。上述方法能够依据多视倾斜影像,准确提取建筑的特征线,提高建筑的测绘精度和效率。Compared with the prior art, the beneficial effect of the method for extracting feature lines of oblique photogrammetry buildings provided by the embodiments of the present invention is that: the method for extracting feature lines of buildings using oblique photogrammetry includes: constructing a specified model according to multi-view oblique images. The real 3D model of the building; three non-collinear points are selected from the external facade of the real three-dimensional model to calculate the optimal plane corresponding to the external facade; For the optimal plane corresponding to the facade, the intersection of the two adjacent facades is calculated. The above method can accurately extract the characteristic line of the building according to the multi-view oblique image, and improve the surveying and mapping accuracy and efficiency of the building.

附图说明Description of drawings

图1是本发明实施例提供的一种倾斜摄影测量建筑物特征线提取方法的流程图;Fig. 1 is a flow chart of a method for extracting characteristic lines of oblique photogrammetry buildings provided by an embodiment of the present invention;

图2是某示意性建筑的部分代表性特征线的示意图;Fig. 2 is a schematic diagram of some representative characteristic lines of a schematic building;

图3是由三个点组成向量确定相应平面的示意图;Fig. 3 is the schematic diagram that the corresponding plane is determined by the three-point vector;

图4是根据两个相邻平面和的法向量,求解出交线的方向向量的示意图;Fig. 4 is the schematic diagram of solving the direction vector of the intersection line according to the normal vector of two adjacent plane sums;

图5是本发明实施例提供的一种倾斜摄影测量建筑物特征线提取装置的示意图。FIG. 5 is a schematic diagram of an apparatus for extracting characteristic lines of buildings in oblique photogrammetry according to an embodiment of the present invention.

具体实施方式Detailed ways

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

请参阅图1,其是本发明实施例所提供的一种倾斜摄影测量建筑物特征线提取方法的流程图,所述倾斜摄影测量建筑物特征线提取方法,包括:Please refer to FIG. 1 , which is a flowchart of a method for extracting feature lines of oblique photogrammetry buildings provided by an embodiment of the present invention. The method for extracting feature lines of oblique photogrammetry buildings includes:

S100:根据多视倾斜影像,构建指定建筑的实景三维模型;S100: Construct a real-life 3D model of a designated building according to the multi-view oblique image;

待提取的建筑物特征线是由两个相邻的外立面相交形成的交线。建筑物特征线是体现建构筑物外轮廓的各种边线、交线等直线,包括但不仅限于建筑面之间的交线、建筑立面与顶面形成的边缘线、坡面的边坡线及坡脚线等,可以依据建筑物的复杂程度和建模的精细要求程度而定;例如,参见图2所示的某示意性建筑的部分代表性特征线的示意图。The building feature line to be extracted is the intersection formed by the intersection of two adjacent facades. Building feature lines are straight lines such as various edge lines and intersection lines that reflect the outer contour of a building, including but not limited to the intersection lines between building surfaces, the edge lines formed by the building facade and the top surface, the slope lines of the slope, and The slope toe line, etc., can be determined according to the complexity of the building and the fineness of the modeling requirements; for example, see the schematic diagram of some representative characteristic lines of a schematic building shown in FIG. 2 .

S200:从所述实景三维模型的外立面中选取不共线的三点,以计算所述外立面对应的最优平面;S200: Selecting three non-collinear points from the outer facade of the three-dimensional model of the real scene to calculate the optimal plane corresponding to the outer facade;

在本实施例中,由于不共线的三点即可唯一确定一个平面,故平面的确定可以直接在所述实景三维模型中任意一个外立面指定三个特征位置,也可以经由设计图、现场测量等方式直接获取和输入点位坐标。点位选取的原则是位于相应的建筑面上,且具有较高影像辨识度,便于点选。同时,为提高立面计算精度,建议两点间的距离尽可能远。In this embodiment, since three non-collinear points can uniquely determine a plane, the plane can be determined by directly specifying three characteristic positions on any external facade in the three-dimensional model of the real scene, or through design drawings, On-site measurement and other methods can directly obtain and input point coordinates. The principle of point selection is that it is located on the corresponding building surface, and has high image recognition, which is easy to click. At the same time, in order to improve the calculation accuracy of the elevation, it is recommended that the distance between the two points be as far as possible.

参见图3,以外立面不共线的三点P1(x1,y1,z1)、P2(x2,y2,z2)、P3(x3,y3,z3)为例,求解得到最优的平面M1。本发明以向量P1P2和向量P1P3所确定的法向量

Figure BDA0001758331950000051
与平面M1相垂直的关系进行解算。Referring to Figure 3, the three points P 1 (x 1 , y 1 , z 1 ), P 2 (x 2 , y 2 , z 2 ), P 3 (x 3 , y 3 , z 3 ) are not collinear with the facades ) as an example, solve to obtain the optimal plane M 1 . The present invention uses the normal vector determined by the vector P 1 P 2 and the vector P 1 P 3
Figure BDA0001758331950000051
The relationship perpendicular to the plane M1 is solved.

S300:根据所述实景三维模型中两个相邻的外立面对应的最优平面,计算所述两个相邻的外立面的交线。S300: Calculate the intersection line of the two adjacent facades according to the optimal plane corresponding to the two adjacent facades in the three-dimensional model of the real scene.

对所述实景三维模型中所有待提取特征线按照上述步骤依次处理。所生成的交线可直接向用户设备展示或用于建筑物的高精度建模。为便于其它显示,还可再转换至不同坐标系中。另外,如有需要还可利用直线方程直接给出特征线在指定位置处的具体坐标值。All feature lines to be extracted in the three-dimensional model of the real scene are processed sequentially according to the above steps. The generated intersection lines can be displayed directly to user equipment or used for high-precision modeling of buildings. It can also be converted to a different coordinate system for other displays. In addition, if necessary, the specific coordinate value of the characteristic line at the specified position can be directly given by the straight line equation.

本发明以交互式的过程实现了针对多视倾斜影像的特征线的自动构造和提取,基于构造相邻外立面来生成相应的特征线,通过多个面的约束确保了特征线的精确性、严密性和稳健性。本发明改进了传统方法在作业效率、便捷性和精确性等方面的不足。而且,即使对于由于遮挡、视角等问题而在影像上无法直接看到的建筑物的特征线,采用本发明也可以精确地进行提取,实现了准确提取建筑的特征线,提高建筑的测绘精度和效率。在无人机低空航测、地面或空中倾斜摄影测量、大比例尺地形图快速测制等相关领域具有广泛的应用前景。The invention realizes the automatic construction and extraction of feature lines for multi-view oblique images in an interactive process, generates corresponding feature lines based on the construction of adjacent facades, and ensures the accuracy of feature lines through the constraints of multiple surfaces , rigor and robustness. The invention improves the shortcomings of the traditional method in terms of operation efficiency, convenience and accuracy. Moreover, even for the feature lines of buildings that cannot be directly seen on the image due to problems such as occlusion, viewing angle, etc., the present invention can be used to accurately extract the feature lines of buildings. efficiency. It has broad application prospects in related fields such as UAV low-altitude aerial surveys, ground or aerial oblique photogrammetry, and rapid measurement of large-scale topographic maps.

在一种可选的实施例中,S200:从所述实景三维模型的外立面中选取不共线的三点,以计算所述外立面对应的最优平面,具体包括:In an optional embodiment, S200: Select three non-collinear points from the outer facade of the three-dimensional model of the real scene to calculate the optimal plane corresponding to the outer facade, which specifically includes:

根据公式

Figure BDA0001758331950000061
计算所述外立面对应的最优平面;According to the formula
Figure BDA0001758331950000061
Calculate the optimal plane corresponding to the outer facade;

其中,P1(x1,y1,z1)、P2(x2,y2,z2)、P3(x3,y3,z3)为所述外立面不共线的三点对应的坐标。Wherein, P 1 (x 1 , y 1 , z 1 ), P 2 (x 2 , y 2 , z 2 ), P 3 (x 3 , y 3 , z 3 ) are the non-collinear facades The coordinates corresponding to the three points.

在一种可选的实施例中,所述根据所述实景三维模型中两个相邻的外立面对应的最优平面,计算所述两个相邻的外立面的交线,具体包括:In an optional embodiment, calculating the intersection line of the two adjacent facades according to the optimal plane corresponding to the two adjacent facades in the three-dimensional model of the real scene, specifically includes: :

根据两个相邻的外立面对应的最优平面的法向量,计算所述交线的方向向量以及过所述交线的指定坐标;Calculate the direction vector of the intersection line and the specified coordinates passing through the intersection line according to the normal vector of the optimal plane corresponding to the two adjacent facades;

根据所述交线的方向向量以及过所述交线的指定坐标,获得所述两个相邻的外立面的交线。According to the direction vector of the intersection line and the specified coordinates passing through the intersection line, the intersection line of the two adjacent facades is obtained.

在一种可选的实施例中,根据两个相邻的外立面对应的最优平面的法向量,计算所述交线的方向向量以及过所述交线的指定坐标,具体包括:In an optional embodiment, according to the normal vectors of the optimal planes corresponding to two adjacent facades, the direction vector of the intersection line and the specified coordinates passing through the intersection line are calculated, specifically including:

根据公式

Figure BDA0001758331950000062
计算所述交线的方向向量;According to the formula
Figure BDA0001758331950000062
Calculate the direction vector of the intersection line;

根据公式

Figure BDA0001758331950000063
计算过所述交线的指定坐标;According to the formula
Figure BDA0001758331950000063
Calculated the specified coordinates of the intersection line;

令过所述交线的指定坐标中x=0,通过上述公式可以求解出过所述交线的指定坐标为(0,y0,z0)。Assuming that x=0 in the specified coordinates passing through the intersection line, the specified coordinates passing through the intersection line can be solved as (0, y 0 , z 0 ) through the above formula.

其中,

Figure BDA0001758331950000064
分别为两个相邻的外立面对应的最优平面的法向量。in,
Figure BDA0001758331950000064
are the normal vectors of the optimal planes corresponding to the two adjacent facades, respectively.

请参阅图4,根据两个相邻的外立面M1和M2的法向量,利用正交性求解出所述交线L的方向向量

Figure BDA0001758331950000065
Referring to Fig. 4, according to the normal vectors of the two adjacent facades M 1 and M 2 , the direction vector of the intersection line L is obtained by using the orthogonality
Figure BDA0001758331950000065

在一种可选的实施例中,所述根据所述交线的方向向量以及过所述交线的指定坐标,获得所述两个相邻的外立面的交线,具体包括:In an optional embodiment, obtaining the intersection line of the two adjacent facades according to the direction vector of the intersection line and the specified coordinates passing through the intersection line specifically includes:

根据公式

Figure BDA0001758331950000071
计算所述交线的方程,以获得所述两个相邻的外立面的交线;According to the formula
Figure BDA0001758331950000071
calculating the equation of the intersection line to obtain the intersection line of the two adjacent facades;

其中,(0,y0,z0)为过所述交线的指定坐标,t为参数。Wherein, (0, y 0 , z 0 ) are the designated coordinates passing through the intersection line, and t is a parameter.

在一种可选的实施例中,S100:根据多视倾斜影像,构建指定建筑的实景三维模型之前还包括:In an optional embodiment, S100: according to the multi-view oblique image, before constructing the real-life three-dimensional model of the specified building, the method further includes:

根据所述多视倾斜影像的位置数据和姿态数据,对所述多视倾斜影像进行空中三角测量、几何校正、坐标转换以及影像拼接。According to the position data and attitude data of the multi-view oblique image, aerial triangulation, geometric correction, coordinate conversion and image stitching are performed on the multi-view oblique image.

由于无人机航高较低、分辨率很高,受视角所限,针对房屋等大型建筑的测绘需通过多个测站的多角度影像采集才能完整覆盖,因此,需要采集指定建筑的多视倾斜影像,并依据多视倾斜影像的位置(GPS)数据和姿态(POS)数据采用通用方法进行空中三角测量、几何校正、坐标转换和影像拼接等预处理,生成具有数据量大、重叠度高和视角丰富的特点的影像数据,以使得构建的点云和实景三维模型处于与测量投影面处于同一空间直角坐标系中,便于后续的统一处理。Due to the low altitude and high resolution of UAVs, and limited by the viewing angle, the surveying and mapping of large buildings such as houses can only be fully covered by collecting multi-angle images from multiple stations. Therefore, it is necessary to collect multi-view images of designated buildings Oblique images, and based on the position (GPS) data and attitude (POS) data of the multi-view oblique images, the general methods are used for aerial triangulation, geometric correction, coordinate transformation and image stitching and other preprocessing, resulting in a large amount of data and a high degree of overlap. And the image data with rich viewing angles, so that the constructed point cloud and the real 3D model are in the same space rectangular coordinate system as the measurement projection plane, which is convenient for subsequent unified processing.

若所述多视倾斜影像所采用的是大地经纬度坐标或仪器坐标、影像坐标等其它坐标系统的,也完全可以事先转换至空间直角坐标系。If the multi-view oblique image adopts other coordinate systems such as geodetic latitude and longitude coordinates or instrument coordinates, image coordinates, etc., it can also be converted to a space rectangular coordinate system in advance.

进一步地,所述实景三维模型的构建过程如下:Further, the construction process of the three-dimensional model of the real scene is as follows:

(1)根据所述位置数据和所述姿态数据,将所述多视倾斜影像进行空中三角测量,获得所有影像的高精度外方位元素,(1) according to the position data and the attitude data, perform aerial triangulation on the multi-view oblique images to obtain high-precision outer orientation elements of all images,

(2)基于畸变校正后的多视倾斜影像和所述外方位元素通过多视影像密集匹配,获得高密度三维点云,构建3D TIN模型;(2) A high-density 3D point cloud is obtained by intensive matching of the multi-view oblique image and the external orientation elements based on the distortion-corrected multi-view image, and a 3D TIN model is constructed;

多视影像密集匹配能得到高密度数字点云,通过优化构网算法构建数字表而模型(DSM)可用于后期模型构建及正射影像生成。多视倾斜影像联合空三后解算出各影像的外方位元素,分析并选择最佳影像匹配单元进行特征匹配和逐像素级匹配,引入并行算法,可以提高计算效率。在获取高密度DSM数据后,可进行滤波处理,即将不同匹配单元进行融合,形成统一的DSM。经过密集匹配获得的高密度点云数据量很大,需要进行切割分块。可根据计算机性能以及设置的优先级别对切块的点云数据进行不规则三角网构建。具体为:(1)利用同一地物不同角度的多视倾斜影像信息,采用参考多视倾斜影像不固定的匹配策略逐像素匹配;(2)基于多视匹配的冗余信息,避免遮挡对匹配产生的影响,再引入并行算法提高计算效率以快速准确地获取多视倾斜影像上同名点坐标,进而获取地物的高密度三维点云数据;(3)基于点云构建不同层次细节度(Levels of Detail)下的三角网(TIN)模型。通过对三角网优化,将内部三角的尺寸调整至与原始多视倾斜影像分辨相匹配的比例,同时通过对连续曲而变化的分析对相对平坦地区的三角网络进行简化,降低数据冗余,获得TIN模型矢量架构。The dense matching of multi-view images can obtain high-density digital point clouds, and the digital table and model (DSM) can be used for later model construction and orthophoto generation by optimizing the network construction algorithm. After the multi-view oblique image is combined with the aerial triangulation, the external orientation elements of each image are calculated, and the best image matching unit is analyzed and selected for feature matching and pixel-by-pixel matching. The introduction of parallel algorithms can improve the calculation efficiency. After obtaining high-density DSM data, filtering can be performed, that is, different matching units are fused to form a unified DSM. The high-density point cloud data obtained through dense matching is very large and needs to be cut and divided into blocks. According to the computer performance and the set priority, the irregular triangulation network can be constructed for the diced point cloud data. Specifically: (1) using the multi-view oblique image information of the same object at different angles, and adopting a matching strategy that refers to the multi-view oblique image is not fixed pixel by pixel; (2) based on the redundant information of multi-view matching to avoid occlusion pair matching In addition, the parallel algorithm is introduced to improve the computing efficiency to quickly and accurately obtain the coordinates of the point with the same name on the multi-view oblique image, and then obtain the high-density 3D point cloud data of the ground objects; (3) Based on the point cloud, construct different levels of detail (Levels of Detail) triangulation network (TIN) model. By optimizing the triangulation network, the size of the inner triangles is adjusted to a ratio matching the resolution of the original multi-view oblique image, and the triangulation network in relatively flat areas is simplified by analyzing the changes of the continuum, reducing data redundancy, and obtaining TIN model vector architecture.

(3)根据3D TIN模型中每个三角形面片的法线方程与二维图像(即所述多视倾斜影像)之间的夹角选择相对应的最佳纹理信息,实现纹理的自动关联;(3) According to the angle between the normal equation of each triangular facet in the 3D TIN model and the two-dimensional image (that is, the multi-view oblique image), the corresponding optimal texture information is selected to realize the automatic association of textures;

自动纹理映射主要基于瓦片技术,即将整个建模区域分割成若干个一定大小的子区域(瓦片),基于集群处理系统的并行处理机制将每个瓦片打包建立成为一个任务自动分配给各计算节点进行模型与纹理影像的配准和纹理贴附,同时为带纹理的模型建立多细节、多层次的LOD,便于优化相应的文件组织结构,提高模型分层次浏览的效率,从而生成最终的实景三维模型。Automatic texture mapping is mainly based on tile technology, that is, the entire modeling area is divided into several sub-regions (tiles) of a certain size, and each tile is packaged and established as a task based on the parallel processing mechanism of the cluster processing system. The computing node performs the registration and texture attachment of the model and the texture image, and at the same time establishes a multi-detail and multi-level LOD for the textured model, which is convenient for optimizing the corresponding file organization structure and improving the efficiency of hierarchical browsing of the model, so as to generate the final Realistic 3D model.

(4)输出并获得所述实景三维模型。(4) Output and obtain the three-dimensional model of the real scene.

本发明实施例还提供了一种倾斜摄影测量建筑物特征点提取装置,包括处理器、存储器以及存储在所述存储器中且被配置为由所述处理器执行的计算机程序,所述处理器执行所述计算机程序时实现如上述的倾斜摄影测量建筑物特征点提取方法。An embodiment of the present invention further provides an apparatus for extracting feature points of a building using oblique photogrammetry, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor executes The computer program implements the above-mentioned method for extracting feature points of buildings by oblique photogrammetry.

请参阅图5,其是本发明实施例提供的一种倾斜摄影测量建筑物特征线提取装置的示意图,所述倾斜摄影测量建筑物特征线提取装置,包括:Please refer to FIG. 5 , which is a schematic diagram of a device for extracting characteristic lines of buildings using oblique photogrammetry provided by an embodiment of the present invention. The device for extracting characteristic lines of buildings using oblique photogrammetry includes:

模型构建模块1,用于根据多视倾斜影像,构建指定建筑的实景三维模型;The model building module 1 is used to build a real 3D model of a designated building according to the multi-view oblique image;

待提取的建筑物特征线是由两个相邻的外立面相交形成的交线。建筑物特征线是体现建构筑物外轮廓的各种边线、交线等直线,包括但不仅限于建筑面之间的交线、建筑立面与顶面形成的边缘线、坡面的边坡线及坡脚线等,可以依据建筑物的复杂程度和建模的精细要求程度而定;例如,参见图2所示的某示意性建筑的部分代表性特征线的示意图。The building feature line to be extracted is the intersection formed by the intersection of two adjacent facades. Building feature lines are straight lines such as various edge lines and intersection lines that reflect the outer contour of a building, including but not limited to the intersection lines between building surfaces, the edge lines formed by the building facade and the top surface, the slope lines of the slope, and The slope toe line, etc., can be determined according to the complexity of the building and the fineness of the modeling requirements; for example, see the schematic diagram of some representative characteristic lines of a schematic building shown in FIG. 2 .

平面计算模块2,用于从所述实景三维模型的外立面中选取不共线的三点,以计算所述外立面对应的最优平面;The plane calculation module 2 is used to select three non-collinear points from the outer facade of the three-dimensional model of the real scene to calculate the optimal plane corresponding to the outer facade;

在本实施例中,由于不共线的三点即可唯一确定一个平面,故平面的确定可以直接在所述实景三维模型中任意一个外立面指定三个特征位置,也可以经由设计图、现场测量等方式直接获取和输入点位坐标。点位选取的原则是位于相应的建筑面上,且具有较高影像辨识度,便于点选。同时,为提高立面计算精度,建议两点间的距离尽可能远。In this embodiment, since three non-collinear points can uniquely determine a plane, the plane can be determined by directly specifying three characteristic positions on any external facade in the three-dimensional model of the real scene, or through design drawings, On-site measurement and other methods can directly obtain and input point coordinates. The principle of point selection is that it is located on the corresponding building surface, and has high image recognition, which is easy to click. At the same time, in order to improve the calculation accuracy of the elevation, it is recommended that the distance between the two points be as far as possible.

参见图3,以外立面不共线的三点P1(x1,y1,z1)、P2(x2,y2,z2)、P3(x3,y3,z3)为例,求解得到最优的平面M1。本发明以向量P1P2和向量P1P3所确定的法向量

Figure BDA0001758331950000091
与平面M1相垂直的关系进行解算。Referring to Figure 3, the three points P 1 (x 1 , y 1 , z 1 ), P 2 (x 2 , y 2 , z 2 ), P 3 (x 3 , y 3 , z 3 ) are not collinear with the facades ) as an example, solve to obtain the optimal plane M 1 . The present invention uses the normal vector determined by the vector P 1 P 2 and the vector P 1 P 3
Figure BDA0001758331950000091
The relationship perpendicular to the plane M1 is solved.

交线计算模块3,用于根据所述实景三维模型中两个相邻的外立面对应的最优平面,计算所述两个相邻的外立面的交线。The intersection line calculation module 3 is configured to calculate the intersection line of the two adjacent outer facades according to the optimal plane corresponding to the two adjacent outer facades in the three-dimensional model of the real scene.

对所述实景三维模型中所有待提取特征线按照上述步骤依次处理。所生成的交线可直接向用户设备展示或用于建筑物的高精度建模。为便于其它显示,还可再转换至不同坐标系中。另外,如有需要还可利用直线方程直接给出特征线在指定位置处的具体坐标值。All feature lines to be extracted in the three-dimensional model of the real scene are processed sequentially according to the above steps. The generated intersection lines can be displayed directly to user equipment or used for high-precision modeling of buildings. It can also be converted to a different coordinate system for other displays. In addition, if necessary, the specific coordinate value of the characteristic line at the specified position can be directly given by the straight line equation.

本发明以交互式的过程实现了针对多视倾斜影像的特征线的自动构造和提取,基于构造相邻外立面来生成相应的特征线,通过多个面的约束确保了特征线的精确性、严密性和稳健性。本发明改进了传统方法在作业效率、便捷性和精确性等方面的不足。而且,即使对于由于遮挡、视角等问题而在影像上无法直接看到的建筑物的特征线,采用本发明也可以精确地进行提取,实现了准确提取建筑的特征线,提高建筑的测绘精度和效率。在无人机低空航测、地面或空中倾斜摄影测量、大比例尺地形图快速测制等相关领域具有广泛的应用前景。The invention realizes the automatic construction and extraction of feature lines for multi-view oblique images in an interactive process, generates corresponding feature lines based on the construction of adjacent facades, and ensures the accuracy of feature lines through the constraints of multiple surfaces , rigor and robustness. The invention improves the shortcomings of the traditional method in terms of operation efficiency, convenience and accuracy. Moreover, even for the feature lines of buildings that cannot be directly seen on the image due to problems such as occlusion, viewing angle, etc., the present invention can be used to accurately extract the feature lines of buildings. efficiency. It has broad application prospects in related fields such as UAV low-altitude aerial surveys, ground or aerial oblique photogrammetry, and rapid measurement of large-scale topographic maps.

在一种可选的实施例中,平面计算模块2,具体用于根据公式In an optional embodiment, the plane calculation module 2 is specifically configured to calculate according to the formula

Figure BDA0001758331950000101
计算所述外立面对应的最优平面;
Figure BDA0001758331950000101
Calculate the optimal plane corresponding to the outer facade;

其中,P1(x1,y1,z1)、P2(x2,y2,z2)、P3(x3,y3,z3)为所述外立面不共线的三点对应的坐标。Wherein, P 1 (x 1 , y 1 , z 1 ), P 2 (x 2 , y 2 , z 2 ), P 3 (x 3 , y 3 , z 3 ) are the non-collinear facades The coordinates corresponding to the three points.

在一种可选的实施例中,交线计算模块3具体包括:In an optional embodiment, the intersection calculation module 3 specifically includes:

交线特征计算单元,用于根据两个相邻的外立面对应的最优平面的法向量,计算所述交线的方向向量以及过所述交线的指定坐标;The intersection line feature calculation unit is used to calculate the direction vector of the intersection line and the specified coordinates passing through the intersection line according to the normal vector of the optimal plane corresponding to the two adjacent facades;

交线获取单元,用于根据所述交线的方向向量以及过所述交线的指定坐标,获得所述两个相邻的外立面的交线。The intersection line obtaining unit is configured to obtain the intersection line of the two adjacent facades according to the direction vector of the intersection line and the specified coordinates passing through the intersection line.

在一种可选的实施例中,交线特征计算单元,包括:In an optional embodiment, the intersection line feature calculation unit includes:

方向向量计算单元,用于根据公式

Figure BDA0001758331950000102
计算所述交线的方向向量;Direction vector calculation unit, used to calculate according to the formula
Figure BDA0001758331950000102
Calculate the direction vector of the intersection line;

坐标计算单元,用于根据公式

Figure BDA0001758331950000103
计算过所述交线的指定坐标;Coordinate calculation unit, used to calculate according to the formula
Figure BDA0001758331950000103
Calculated the specified coordinates of the intersection line;

令过所述交线的指定坐标中x=0,通过上述公式可以求解出过所述交线的指定坐标为(0,y0,z0)。Assuming that x=0 in the specified coordinates passing through the intersection line, the specified coordinates passing through the intersection line can be solved as (0, y 0 , z 0 ) through the above formula.

其中,

Figure BDA0001758331950000104
分别为两个相邻的外立面对应的最优平面的法向量。in,
Figure BDA0001758331950000104
are the normal vectors of the optimal planes corresponding to the two adjacent facades, respectively.

请参阅图4,根据两个相邻的外立面M1和M2的法向量,利用正交性求解出所述交线L的方向向量

Figure BDA0001758331950000105
Referring to Fig. 4, according to the normal vectors of the two adjacent facades M 1 and M 2 , the direction vector of the intersection line L is obtained by using the orthogonality
Figure BDA0001758331950000105

在一种可选的实施例中,所述交线获取单元,具体用于根据公式

Figure BDA0001758331950000106
计算所述交线的方程,以获得所述两个相邻的外立面的交线;In an optional embodiment, the intersection line obtaining unit is specifically configured to
Figure BDA0001758331950000106
calculating the equation of the intersection line to obtain the intersection line of the two adjacent facades;

其中,(0,y0,z0)为过所述交线的指定坐标,t为参数。Wherein, (0, y 0 , z 0 ) are the designated coordinates passing through the intersection line, and t is a parameter.

在一种可选的实施例中,所述倾斜摄影测量建筑物特征线提取装置还包括:In an optional embodiment, the device for extracting characteristic lines of buildings from oblique photogrammetry further includes:

数据预处理模块,用于根据所述多视倾斜影像的位置数据和姿态数据,对所述多视倾斜影像进行空中三角测量、几何校正、坐标转换以及影像拼接。The data preprocessing module is configured to perform aerial triangulation, geometric correction, coordinate conversion and image stitching on the multi-view oblique image according to the position data and attitude data of the multi-view oblique image.

由于无人机航高较低、分辨率很高,受视角所限,针对房屋等大型建筑的测绘需通过多个测站的多角度影像采集才能完整覆盖,因此,需要采集指定建筑的多视倾斜影像,并依据多视倾斜影像的位置(GPS)数据和姿态(POS)数据采用通用方法进行空中三角测量、几何校正、坐标转换和影像拼接等预处理,生成具有数据量大、重叠度高和视角丰富的特点的影像数据,以使得构建的点云和实景三维模型处于与测量投影面处于同一空间直角坐标系中,便于后续的统一处理。Due to the low altitude and high resolution of UAVs, and limited by the viewing angle, the surveying and mapping of large buildings such as houses can only be fully covered by collecting multi-angle images from multiple stations. Therefore, it is necessary to collect multi-view images of designated buildings Oblique images, and based on the position (GPS) data and attitude (POS) data of the multi-view oblique images, the general methods are used for aerial triangulation, geometric correction, coordinate transformation and image stitching and other preprocessing, resulting in a large amount of data and a high degree of overlap. And the image data with rich viewing angles, so that the constructed point cloud and the real 3D model are in the same space rectangular coordinate system as the measurement projection plane, which is convenient for subsequent unified processing.

若所述多视倾斜影像所采用的是大地经纬度坐标或仪器坐标、影像坐标等其它坐标系统的,也完全可以事先转换至空间直角坐标系。If the multi-view oblique image adopts other coordinate systems such as geodetic latitude and longitude coordinates or instrument coordinates, image coordinates, etc., it can also be converted to a space rectangular coordinate system in advance.

进一步地,所述实景三维模型的构建过程如下:Further, the construction process of the three-dimensional model of the real scene is as follows:

(1)根据所述位置数据和所述姿态数据,将所述多视倾斜影像进行空中三角测量,获得所有影像的高精度外方位元素,(1) according to the position data and the attitude data, perform aerial triangulation on the multi-view oblique images to obtain high-precision outer orientation elements of all images,

(2)基于畸变校正后的多视倾斜影像和所述外方位元素通过多视影像密集匹配,获得高密度三维点云,构建3D TIN模型;(2) A high-density 3D point cloud is obtained by intensive matching of the multi-view oblique image and the external orientation elements based on the distortion-corrected multi-view image, and a 3D TIN model is constructed;

多视影像密集匹配能得到高密度数字点云,通过优化构网算法构建数字表而模型(DSM)可用于后期模型构建及正射影像生成。多视倾斜影像联合空三后解算出各影像的外方位元素,分析并选择最佳影像匹配单元进行特征匹配和逐像素级匹配,引入并行算法,可以提高计算效率。在获取高密度DSM数据后,可进行滤波处理,即将不同匹配单元进行融合,形成统一的DSM。经过密集匹配获得的高密度点云数据量很大,需要进行切割分块。可根据计算机性能以及设置的优先级别对切块的点云数据进行不规则三角网构建。具体为:(1)利用同一地物不同角度的多视倾斜影像信息,采用参考多视倾斜影像不固定的匹配策略逐像素匹配;(2)基于多视匹配的冗余信息,避免遮挡对匹配产生的影响,再引入并行算法提高计算效率以快速准确地获取多视倾斜影像上同名点坐标,进而获取地物的高密度三维点云数据;(3)基于点云构建不同层次细节度(Levels of Detail)下的三角网(TIN)模型。通过对三角网优化,将内部三角的尺寸调整至与原始多视倾斜影像分辨相匹配的比例,同时通过对连续曲而变化的分析对相对平坦地区的三角网络进行简化,降低数据冗余,获得TIN模型矢量架构。The dense matching of multi-view images can obtain high-density digital point clouds, and the digital table and model (DSM) can be used for later model construction and orthophoto generation by optimizing the network construction algorithm. After the multi-view oblique image is combined with the aerial triangulation, the external orientation elements of each image are calculated, and the best image matching unit is analyzed and selected for feature matching and pixel-by-pixel matching. The introduction of parallel algorithms can improve the calculation efficiency. After obtaining high-density DSM data, filtering can be performed, that is, different matching units are fused to form a unified DSM. The high-density point cloud data obtained through dense matching is very large and needs to be cut and divided into blocks. According to the computer performance and the set priority, the irregular triangulation network can be constructed for the diced point cloud data. Specifically: (1) using the multi-view oblique image information of the same object at different angles, and adopting a matching strategy that refers to the multi-view oblique image is not fixed pixel by pixel; (2) based on the redundant information of multi-view matching to avoid occlusion pair matching In addition, the parallel algorithm is introduced to improve the computing efficiency to quickly and accurately obtain the coordinates of the point with the same name on the multi-view oblique image, and then obtain the high-density 3D point cloud data of the ground objects; (3) Based on the point cloud, construct different levels of detail (Levels of Detail) triangulation network (TIN) model. By optimizing the triangulation network, the size of the inner triangles is adjusted to a ratio matching the resolution of the original multi-view oblique image, and the triangulation network in relatively flat areas is simplified by analyzing the changes of the continuum, reducing data redundancy, and obtaining TIN model vector architecture.

(3)根据3D TIN模型中每个三角形面片的法线方程与二维图像(即所述多视倾斜影像)之间的夹角选择相对应的最佳纹理信息,实现纹理的自动关联;(3) According to the angle between the normal equation of each triangular facet in the 3D TIN model and the two-dimensional image (that is, the multi-view oblique image), the corresponding optimal texture information is selected to realize the automatic association of textures;

自动纹理映射主要基于瓦片技术,即将整个建模区域分割成若干个一定大小的子区域(瓦片),基于集群处理系统的并行处理机制将每个瓦片打包建立成为一个任务自动分配给各计算节点进行模型与纹理影像的配准和纹理贴附,同时为带纹理的模型建立多细节、多层次的LOD,便于优化相应的文件组织结构,提高模型分层次浏览的效率,从而生成最终的实景三维模型。Automatic texture mapping is mainly based on tile technology, that is, the entire modeling area is divided into several sub-regions (tiles) of a certain size, and each tile is packaged and established as a task based on the parallel processing mechanism of the cluster processing system. The computing node performs the registration and texture attachment of the model and the texture image, and at the same time establishes a multi-detail and multi-level LOD for the textured model, which is convenient for optimizing the corresponding file organization structure and improving the efficiency of hierarchical browsing of the model, so as to generate the final Realistic 3D model.

(4)输出并获得所述实景三维模型。(4) Output and obtain the three-dimensional model of the real scene.

本发明实施例还提供了一种倾斜摄影测量建筑物特征点提取装置,包括处理器、存储器以及存储在所述存储器中且被配置为由所述处理器执行的计算机程序,所述处理器执行所述计算机程序时实现如上述的倾斜摄影测量建筑物特征点提取方法。An embodiment of the present invention further provides an apparatus for extracting feature points of a building using oblique photogrammetry, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor executes The computer program implements the above-mentioned method for extracting feature points of buildings by oblique photogrammetry.

本发明实施例还提供了一种倾斜摄影测量建筑物特征线提取装置,包括处理器、存储器以及存储在所述存储器中且被配置为由所述处理器执行的计算机程序,所述处理器执行所述计算机程序时实现如上述的倾斜摄影测量建筑物特征线提取方法。An embodiment of the present invention further provides an apparatus for extracting feature lines of a building using oblique photogrammetry, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor executing The computer program implements the above-mentioned method for extracting characteristic lines of buildings from oblique photogrammetry.

示例性的,所述计算机程序可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器中,并由所述处理器执行,以完成本发明。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序在所述倾斜摄影测量建筑物特征线提取装置中的执行过程。例如,所述计算机程序可以被分割成图5所述倾斜摄影测量建筑物特征线提取装置的功能模块。Exemplarily, the computer program may be divided into one or more modules/units, and the one or more modules/units are stored in the memory and executed by the processor to accomplish the present invention. The one or more modules/units may be a series of computer program instruction segments capable of accomplishing specific functions, and the instruction segments are used to describe the execution process of the computer program in the apparatus for extracting characteristic lines of buildings using oblique photogrammetry. For example, the computer program can be divided into functional modules of the apparatus for extracting characteristic lines of buildings with oblique photogrammetry as shown in FIG. 5 .

所述倾斜摄影测量建筑物特征线提取装置可以是手机、桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述倾斜摄影测量建筑物特征线提取装置可包括,但不仅限于,处理器、存储器。例如所述倾斜摄影测量建筑物特征线提取装置还可以包括输入输出设备、网络接入设备、总线等。The device for extracting characteristic lines of buildings by tilt photogrammetry can be computing devices such as mobile phones, desktop computers, notebooks, palmtop computers, and cloud servers. The device for extracting characteristic lines of buildings using oblique photogrammetry may include, but is not limited to, a processor and a memory. For example, the apparatus for extracting characteristic lines of buildings using oblique photogrammetry may further include input and output devices, network access devices, buses, and the like.

所称处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器是所述倾斜摄影测量建筑物特征线提取装置的控制中心,利用各种接口和线路连接整个倾斜摄影测量建筑物特征线提取装置的各个部分。The processor may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf processors Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., the processor is the control center of the device for extracting characteristic lines of a building in oblique photogrammetry, and uses various interfaces and lines to connect the entire system. Oblique photogrammetry of various parts of the building feature line extraction device.

所述存储器可用于存储所述计算机程序和/或模块,所述处理器通过运行或执行存储在所述存储器内的计算机程序和/或模块,以及调用存储在存储器内的数据,实现所述倾斜摄影测量建筑物特征线提取装置的各种功能。所述存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(SecureDigital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory can be used to store the computer program and/or module, and the processor implements the tilt by running or executing the computer program and/or module stored in the memory and calling the data stored in the memory. Various functions of the photogrammetric building feature line extraction device. The memory may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the storage data area may store Data (such as audio data, phonebook, etc.) created according to the usage of the mobile phone, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, internal memory, plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, Flash Card, at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

其中,所述倾斜摄影测量建筑物特征线提取装置集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。Wherein, if the integrated modules/units of the device for extracting characteristic lines of buildings using oblique photogrammetry are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on this understanding, the present invention can implement all or part of the processes in the methods of the above embodiments, and can also be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer When the program is executed by the processor, the steps of the foregoing method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable media may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer-readable media Electric carrier signals and telecommunication signals are not included.

本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质包括存储的计算机程序,其中,在所述计算机程序运行时控制所述计算机可读存储介质所在设备执行如上述的倾斜摄影测量建筑物特征线提取方法。An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, wherein when the computer program runs, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned A method for extracting characteristic lines of buildings in oblique photogrammetry.

相对于现有技术,本发明实施例提供的一种倾斜摄影测量建筑物特征线提取方法的有益效果在于:所述倾斜摄影测量建筑物特征线提取方法,包括:根据多视倾斜影像,构建指定建筑的实景三维模型;从所述实景三维模型的外立面中选取不共线的三点,以计算所述外立面对应的最优平面;根据所述实景三维模型中两个相邻的外立面对应的最优平面,计算所述两个相邻的外立面的交线。上述方法能够依据多视倾斜影像,准确提取建筑的特征线,提高建筑的测绘精度和效率。Compared with the prior art, the beneficial effect of the method for extracting feature lines of oblique photogrammetry buildings provided by the embodiments of the present invention is that: the method for extracting feature lines of buildings using oblique photogrammetry includes: constructing a specified model according to multi-view oblique images. The real 3D model of the building; three non-collinear points are selected from the external facade of the real three-dimensional model to calculate the optimal plane corresponding to the external facade; For the optimal plane corresponding to the facade, the intersection of the two adjacent facades is calculated. The above method can accurately extract the characteristic line of the building according to the multi-view oblique image, and improve the surveying and mapping accuracy and efficiency of the building.

需说明的是,以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。另外,本发明提供的装置实施例附图中,模块之间的连接关系表示它们之间具有通信连接,具体可以实现为一条或多条通信总线或信号线。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。It should be noted that the device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical unit, that is, it can be located in one place, or it can be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. In addition, in the drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art can understand and implement it without creative effort.

以上是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。The above are the preferred embodiments of the present invention, it should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can also be made, and these improvements and modifications are also regarded as the present invention. the scope of protection of the invention.

Claims (5)

1.一种倾斜摄影测量建筑物特征线提取方法,其特征在于,包括:1. a method for extracting characteristic lines of oblique photogrammetry buildings, is characterized in that, comprises: 根据多视倾斜影像,构建指定建筑的实景三维模型;According to the multi-view oblique image, construct the real 3D model of the specified building; 从所述实景三维模型的外立面中选取不共线的三点,以计算所述外立面对应的最优平面;Three non-collinear points are selected from the outer facade of the three-dimensional model of the real scene to calculate the optimal plane corresponding to the outer facade; 根据所述实景三维模型中两个相邻的外立面对应的最优平面,计算所述两个相邻的外立面的交线;Calculate the intersection line of the two adjacent facades according to the optimal plane corresponding to the two adjacent facades in the three-dimensional model of the real scene; 所述从所述实景三维模型的外立面中选取不共线的三点,以计算所述外立面对应的最优平面,具体包括:The selection of three non-collinear points from the outer façade of the three-dimensional model of the real scene to calculate the optimal plane corresponding to the outer façade specifically includes: 根据公式
Figure FDA0002645993120000011
计算所述外立面对应的最优平面;
According to the formula
Figure FDA0002645993120000011
Calculate the optimal plane corresponding to the outer facade;
其中,P1(x1,y1,z1)、P2(x2,y2,z2)、P3(x3,y3,z3)为所述外立面不共线的三点对应的坐标;Wherein, P 1 (x 1 , y 1 , z 1 ), P 2 (x 2 , y 2 , z 2 ), P 3 (x 3 , y 3 , z 3 ) are the non-collinear facades The coordinates corresponding to the three points; 所述根据所述实景三维模型中两个相邻的外立面对应的最优平面,计算所述两个相邻的外立面的交线,具体包括:The calculation of the intersection line of the two adjacent facades according to the optimal plane corresponding to the two adjacent facades in the three-dimensional model of the real scene specifically includes: 根据公式
Figure FDA0002645993120000012
计算所述交线的方向向量;
According to the formula
Figure FDA0002645993120000012
Calculate the direction vector of the intersection line;
根据公式
Figure FDA0002645993120000013
计算过所述交线的指定坐标;
According to the formula
Figure FDA0002645993120000013
Calculated the specified coordinates of the intersection line;
其中,
Figure FDA0002645993120000014
分别为两个相邻的外立面对应的最优平面的法向量;
in,
Figure FDA0002645993120000014
are the normal vectors of the optimal planes corresponding to the two adjacent facades;
根据公式
Figure FDA0002645993120000015
计算所述交线的方程,以获得所述两个相邻的外立面的交线;
According to the formula
Figure FDA0002645993120000015
calculating the equation of the intersection line to obtain the intersection line of the two adjacent facades;
其中,(0,y0,z0)为过所述交线的指定坐标,t为参数。Wherein, (0, y 0 , z 0 ) are the designated coordinates passing through the intersection line, and t is a parameter.
2.如权利要求1所述的倾斜摄影测量建筑物特征线提取方法,其特征在于,所述根据多视倾斜影像,构建指定建筑的实景三维模型之前还包括:2. The method for extracting feature lines of oblique photogrammetry buildings as claimed in claim 1, wherein, before constructing the real 3D model of the designated building according to the multi-view oblique image, the method further comprises: 根据所述多视倾斜影像的位置数据和姿态数据,对所述多视倾斜影像进行空中三角测量、几何校正、坐标转换以及影像拼接。According to the position data and attitude data of the multi-view oblique image, aerial triangulation, geometric correction, coordinate conversion and image stitching are performed on the multi-view oblique image. 3.一种倾斜摄影测量建筑物特征线提取装置,其特征在于,包括:3. A device for extracting characteristic lines of oblique photogrammetry buildings, characterized in that, comprising: 模型构建模块,用于根据多视倾斜影像,构建指定建筑的实景三维模型;The model building module is used to construct a real 3D model of a specified building based on multi-view oblique images; 平面计算模块,用于从所述实景三维模型的外立面中选取不共线的三点,以计算所述外立面对应的最优平面;a plane calculation module, used to select three non-collinear points from the outer facade of the three-dimensional model of the real scene to calculate the optimal plane corresponding to the outer facade; 交线计算模块,用于根据所述实景三维模型中两个相邻的外立面对应的最优平面,计算所述两个相邻的外立面的交线;an intersection calculation module, configured to calculate the intersection of the two adjacent facades according to the optimal plane corresponding to the two adjacent facades in the three-dimensional model of the real scene; 所述平面计算模块,具体用于根据公式
Figure FDA0002645993120000021
计算所述外立面对应的最优平面;
The plane calculation module is specifically used to calculate according to the formula
Figure FDA0002645993120000021
Calculate the optimal plane corresponding to the outer facade;
其中,P1(x1,y1,z1)、P2(x2,y2,z2)、P3(x3,y3,z3)为所述外立面不共线的三点对应的坐标;Wherein, P 1 (x 1 , y 1 , z 1 ), P 2 (x 2 , y 2 , z 2 ), P 3 (x 3 , y 3 , z 3 ) are the non-collinear facades The coordinates corresponding to the three points; 所述交线计算模块,具体用于根据公式
Figure FDA0002645993120000024
计算所述交线的方向向量;
The intersection line calculation module is specifically used to calculate according to the formula
Figure FDA0002645993120000024
Calculate the direction vector of the intersection line;
根据公式
Figure FDA0002645993120000022
计算过所述交线的指定坐标;
According to the formula
Figure FDA0002645993120000022
Calculated the specified coordinates of the intersection line;
其中,
Figure FDA0002645993120000023
分别为两个相邻的外立面对应的最优平面的法向量;
in,
Figure FDA0002645993120000023
are the normal vectors of the optimal planes corresponding to the two adjacent facades;
根据公式
Figure FDA0002645993120000031
计算所述交线的方程,以获得所述两个相邻的外立面的交线;
According to the formula
Figure FDA0002645993120000031
calculating the equation of the intersection line to obtain the intersection line of the two adjacent facades;
其中,(0,y0,z0)为过所述交线的指定坐标,t为参数。Wherein, (0, y 0 , z 0 ) are the designated coordinates passing through the intersection line, and t is a parameter.
4.一种倾斜摄影测量建筑物特征线提取装置,其特征在于,包括处理器、存储器以及存储在所述存储器中且被配置为由所述处理器执行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1至2中任意一项所述的倾斜摄影测量建筑物特征线提取方法。4. An apparatus for extracting characteristic lines of buildings using oblique photogrammetry, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor executing the When the computer program is used, the method for extracting characteristic lines of buildings in oblique photogrammetry according to any one of claims 1 to 2 is realized. 5.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括存储的计算机程序,其中,在所述计算机程序运行时控制所述计算机可读存储介质所在设备执行如权利要求1至2中任意一项所述的倾斜摄影测量建筑物特征线提取方法。5. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored computer program, wherein, when the computer program is run, the device where the computer-readable storage medium is located is controlled to execute as claimed in the claims The method for extracting characteristic lines of oblique photogrammetry buildings according to any one of 1 to 2.
CN201810896609.XA 2018-08-08 2018-08-08 Method, device and storage medium for extracting feature line of oblique photogrammetry building Active CN109269472B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810896609.XA CN109269472B (en) 2018-08-08 2018-08-08 Method, device and storage medium for extracting feature line of oblique photogrammetry building

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810896609.XA CN109269472B (en) 2018-08-08 2018-08-08 Method, device and storage medium for extracting feature line of oblique photogrammetry building

Publications (2)

Publication Number Publication Date
CN109269472A CN109269472A (en) 2019-01-25
CN109269472B true CN109269472B (en) 2020-12-22

Family

ID=65153205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810896609.XA Active CN109269472B (en) 2018-08-08 2018-08-08 Method, device and storage medium for extracting feature line of oblique photogrammetry building

Country Status (1)

Country Link
CN (1) CN109269472B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110838129A (en) * 2019-11-18 2020-02-25 四川视慧智图空间信息技术有限公司 Three-dimensional building model contour characteristic line extraction method based on oblique photogrammetry
CN111951402B (en) * 2020-08-18 2024-02-23 北京市测绘设计研究院 Three-dimensional model generation method, three-dimensional model generation device, computer equipment and storage medium
CN112632681B (en) * 2020-12-30 2024-04-19 苏州美舫科技股份有限公司 Digital twin city model data individuation realization method and device based on illusion engine and storage medium
CN112907724B (en) * 2020-12-31 2023-08-04 河南工程学院 An interactive automatic mapping method for buildings using oblique photography of drones
CN115641401A (en) * 2021-07-05 2023-01-24 华为技术有限公司 Construction method and related device of three-dimensional live-action model
CN113232880B (en) * 2021-07-08 2021-10-29 深圳市勘察研究院有限公司 Method for tilting photographic suspension arm and automatic feature extraction
CN114896679B (en) * 2022-07-13 2022-10-04 深圳大学 Three-dimensional model optimization method of building, intelligent terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1151651A (en) * 1997-08-06 1999-02-26 Nippon Steel Corp Measuring method of inclination angle of collimation mark surface, method of measuring three-dimensional coordinates, and collimation mark
CN104361628A (en) * 2014-11-27 2015-02-18 南宁市界围工程咨询有限公司 Three-dimensional real scene modeling system based on aviation oblique photograph measurement
CN107607090A (en) * 2017-09-12 2018-01-19 中煤航测遥感集团有限公司 Building projects method and device for correcting
CN107633504A (en) * 2017-08-07 2018-01-26 广东电网有限责任公司机巡作业中心 Shaft tower inclined degree detection method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1151651A (en) * 1997-08-06 1999-02-26 Nippon Steel Corp Measuring method of inclination angle of collimation mark surface, method of measuring three-dimensional coordinates, and collimation mark
CN104361628A (en) * 2014-11-27 2015-02-18 南宁市界围工程咨询有限公司 Three-dimensional real scene modeling system based on aviation oblique photograph measurement
CN107633504A (en) * 2017-08-07 2018-01-26 广东电网有限责任公司机巡作业中心 Shaft tower inclined degree detection method and device
CN107607090A (en) * 2017-09-12 2018-01-19 中煤航测遥感集团有限公司 Building projects method and device for correcting

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《倾斜影像应用于建筑物三维建模研究》;李卉;《测绘与空间地理信息》;20170531;第40卷(第5期);第130-132,136 *

Also Published As

Publication number Publication date
CN109269472A (en) 2019-01-25

Similar Documents

Publication Publication Date Title
CN109186551B (en) Method and device for extracting characteristic points of oblique photogrammetry building and storage medium
CN109269472B (en) Method, device and storage medium for extracting feature line of oblique photogrammetry building
CN108665536B (en) Three-dimensional and live-action data visualization method and device and computer readable storage medium
WO2020192027A1 (en) Embedded city design scene simulation method and system
Yang et al. Image-based 3D scene reconstruction and exploration in augmented reality
CN114998536A (en) Model generation method and device based on novel basic mapping and storage medium
CN109163708B (en) Optimization method, device and medium for unmanned aerial vehicle large-scale topographic map house line
CN108648269A (en) The monomerization approach and system of three-dimensional building object model
CN109887003A (en) A kind of method and apparatus initialized for carrying out three-dimensional tracking
CN107481321B (en) Three-dimensional model generation method and three-dimensional model generation system
CN104463969B (en) A kind of method for building up of the model of geographical photo to aviation tilt
CN112489099B (en) Point cloud registration method and device, storage medium and electronic equipment
CN112469967B (en) Mapping system, mapping method, mapping device, mapping apparatus, and recording medium
CN111028358A (en) Augmented reality display method and device for indoor environment and terminal equipment
CN114937130B (en) A topographic map surveying and mapping method, device, equipment and storage medium
CN116883604A (en) Three-dimensional modeling technical method based on space, air and ground images
CN114549616A (en) Calculation method, device and electronic equipment for earthwork quantity
CN109059864A (en) Unmanned plane large scale topographical map house alien invasion mapping method, device and medium
CN117557617B (en) Multi-view dense matching method, system and equipment based on plane priori optimization
CN115457212A (en) Tree image processing method and device, terminal equipment and storage medium
CN112100297A (en) 3D Visualization Method of Data Management in Urban Renewal
US8509522B2 (en) Camera translation using rotation from device
KR20020068151A (en) Digital Photogrammetric System
CN116086411A (en) Digital topography generation method, device, equipment and readable storage medium
CN103236083B (en) Real-time three-dimensional measuring method based on stereo image library

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