[go: up one dir, main page]

CN116630558A - Three-dimensional terrain reconstruction method of pebble bed based on underwater images - Google Patents

Three-dimensional terrain reconstruction method of pebble bed based on underwater images Download PDF

Info

Publication number
CN116630558A
CN116630558A CN202310525357.0A CN202310525357A CN116630558A CN 116630558 A CN116630558 A CN 116630558A CN 202310525357 A CN202310525357 A CN 202310525357A CN 116630558 A CN116630558 A CN 116630558A
Authority
CN
China
Prior art keywords
underwater
point cloud
water surface
point
initial
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.)
Granted
Application number
CN202310525357.0A
Other languages
Chinese (zh)
Other versions
CN116630558B (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.)
Institute of Geographic Sciences and Natural Resources of CAS
Original Assignee
Institute of Geographic Sciences and Natural Resources of CAS
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 Institute of Geographic Sciences and Natural Resources of CAS filed Critical Institute of Geographic Sciences and Natural Resources of CAS
Priority to CN202310525357.0A priority Critical patent/CN116630558B/en
Publication of CN116630558A publication Critical patent/CN116630558A/en
Application granted granted Critical
Publication of CN116630558B publication Critical patent/CN116630558B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/05Geographic models
    • 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
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C13/00Surveying specially adapted to open water, e.g. sea, lake, river or canal
    • 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
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/30Assessment of water resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Remote Sensing (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Geometry (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Hydrology & Water Resources (AREA)
  • Multimedia (AREA)
  • Computer Graphics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The pebble bed surface three-dimensional terrain reconstruction method based on the underwater image comprises the following steps: acquiring an underwater image sequence of a pebble bed surface, wherein the image sequence consists of a plurality of underwater images of the pebble bed surface obtained by shooting the water surface of a target area cross section by cross section, a plurality of control points can be shot in each underwater image, the control points are arranged on two sides of the water surface of the target area, the upper surfaces of the control points are painted with regular geometric patterns and have definite center point positions, and the center point positions are defined as coordinates of the control points; performing space calculation on the image sequence based on a motion restoration structure method to obtain an initial encrypted three-dimensional point cloud and a digital orthographic image; and establishing a water surface model, calculating the initial water depth of the gridding point cloud, carrying out refraction correction on the initial water depth of each point of the gridding point cloud, calculating the height of the corrected bed surface, and carrying out secondary correction to obtain the underwater three-dimensional topography of the target pebble bed surface. The method has high spatial resolution and precision, and can not interfere an observed object.

Description

基于水下图像的卵石床面三维地形重构方法Three-dimensional terrain reconstruction method of pebble bed based on underwater images

技术领域technical field

本公开属于环境与水利工程、河流地貌、山地灾害测量领域,尤其涉及一种基于水下图像的卵石床面三维地形重构方法。The disclosure belongs to the fields of environment and water conservancy engineering, river geomorphology, and mountain disaster measurement, and in particular relates to a three-dimensional terrain reconstruction method for pebble beds based on underwater images.

背景技术Background technique

卵石河流在自然界广泛分布,河床物质级配较宽,其中粗颗粒为卵砾石,宽级配河床物质在水流作用下易形成多种河床结构,床面地形的三维性特征明显。卵石河流的坡度介于坡度较陡的基岩河流与坡度较缓的沙质河流,一般出现在高陡山地与平原之间的过渡地带,一些发源于卵石河流古河道的湖泊也具有卵石床面。我国青藏高原腹地及边缘分布有大量卵石河流及卵石床面的湖泊,卵石床面的地形连续变化特征是这些区域内基础设施工程建设、城镇化发展、地质灾害防范、人居环境改善、水污染治理、生态多样性修复和保护等方面工作的重要基础信息。然而,不论是野外观测还是实验室模拟试验,直接获取卵石床面水下三维地形难度都很大。在实验室环境中,因为有停水后测地形的条件而一般需要先中断水流过程再进行床面地形测量,但在停水和开水时易引起床面地形变化,从而引入测量误差。Pebble rivers are widely distributed in nature, and the riverbed materials have a wide gradation, in which the coarse particles are pebbles and gravels. The wide-graded riverbed materials are easy to form a variety of riverbed structures under the action of water flow, and the three-dimensional characteristics of the bed topography are obvious. The slope of the pebble river is between the bedrock river with a steep slope and the sandy river with a gentle slope. It generally occurs in the transition zone between high and steep mountains and plains. Some lakes originating from the ancient channel of pebble rivers also have pebble beds. . There are a large number of pebble rivers and lakes on the pebble bed in the hinterland and edge of the Qinghai-Tibet Plateau in my country. The continuous topographical changes of the pebble bed are characterized by infrastructure engineering construction, urbanization development, geological disaster prevention, living environment improvement, and water pollution in these areas. Important basic information for governance, biodiversity restoration and protection. However, whether it is field observation or laboratory simulation test, it is very difficult to directly obtain the underwater three-dimensional topography of the pebble bed. In the laboratory environment, it is generally necessary to interrupt the water flow process before measuring the topography of the bed surface because of the condition of measuring the topography after the water is cut off.

随着机器视觉技术的快速发展,基于可见光的摄影测量方法在地形测量领域得到大量应用,如基于多目视觉的运动恢复结构(Structure from Motion,SfM)技术可基于彼此重叠的图像序列获取目标区域的高空间分辨率和高精度的三维地形信息,在卵石床面地形获取方面有巨大潜力。当水体清晰度较高时,相机在水面以上对卵石床面拍摄获取图像序列,基于此图像序列可通过SfM方法直接对床面水下三维地形进行重构。然而,可见光在水面会发生反射和折射,特别是折射作用使水下地形成像与实际高程相比偏高,该影响将导致基于水下图像序列获取的卵石床面水下三维地形与实际地形相比偏低。而且,利用上述方法获取卵石床面水下三维地形时还会受到床面材质的影响而引入误差。因此,SfM方法如应用于直接获取卵石床面水下三维地形时需要去除水面折射和床面材质的影响。With the rapid development of machine vision technology, photogrammetry methods based on visible light have been widely used in the field of topographic measurement, such as the structure from motion (SfM) technology based on multi-eye vision, which can acquire target areas based on overlapping image sequences The high spatial resolution and high-precision 3D topographic information have great potential in the acquisition of pebble bed topography. When the clarity of the water body is high, the camera captures an image sequence above the water surface on the pebble bed. Based on this image sequence, the SfM method can be used to directly reconstruct the 3D underwater topography of the bed surface. However, visible light will be reflected and refracted on the water surface, especially the refraction effect makes the underwater terrain imaging higher than the actual elevation. than low. Moreover, when using the above method to obtain the underwater three-dimensional topography of the pebble bed surface, errors will be introduced due to the influence of the material of the bed surface. Therefore, when the SfM method is applied to directly obtain the underwater three-dimensional topography of the pebble bed surface, it is necessary to remove the influence of water surface refraction and bed surface material.

综上,针对前述卵石床面水下三维地形的连续监测需求和现有技术存在的问题,需要开发专门的基于水下图像的卵石床面三维地形重构方法。To sum up, in view of the above-mentioned continuous monitoring requirements of the underwater 3D topography of the pebble bed and the problems existing in the existing technology, it is necessary to develop a special reconstruction method for the 3D topography of the pebble bed based on underwater images.

发明内容Contents of the invention

本公开旨在至少解决现有技术中存在的技术问题之一。The present disclosure aims to solve at least one of the technical problems existing in the prior art.

为此,本公开实施例提供的空间分辨率和精度高、操作简便和成本较低的基于水下图像的卵石床面三维地形重构方法,包括:To this end, the embodiment of the present disclosure provides a three-dimensional terrain reconstruction method based on underwater images of pebble beds with high spatial resolution and precision, easy operation and low cost, including:

(1)规定沿目标区域水面的长度方向为X轴,沿目标区域水面的宽度方向为Y轴,垂直于XY平面为Z轴;利用相机获取卵石床面的水下图像序列,拍摄过程中固定所述相机的焦距及沿X轴和Y轴运动的空间步长,所述相机的镜头朝向与水面垂直,所述水下图像序列由对目标区域水面进行逐横断面拍摄得到的多张卵石床面的水下图像组成,每张水下图像中至少能拍到2个控制点且相邻两张水下图像满足重叠度要求,所述控制点布设在目标区域水面的两侧,包括上表面绘有规则几何图案且坡度保持水平的平板,所述几何图案具有明确的中心点位置,将该中心点位置定义为控制点的坐标;(1) It is stipulated that the X-axis is along the length direction of the water surface of the target area, the Y-axis is along the width direction of the water surface of the target area, and the Z-axis is perpendicular to the XY plane; the camera is used to obtain the underwater image sequence of the pebble bed surface, and the fixed The focal length of the camera and the space step along the X-axis and the Y-axis, the lens of the camera is directed perpendicular to the water surface, and the underwater image sequence is a plurality of pebble beds obtained by shooting cross-sections of the water surface in the target area Each underwater image can capture at least 2 control points and two adjacent underwater images meet the overlap requirements. The control points are arranged on both sides of the water surface in the target area, including the upper surface A slab drawn with a regular geometric pattern with a horizontal slope, the geometric pattern has a definite center point position, and the center point position is defined as the coordinates of the control point;

(2)基于运动恢复结构方法所述对卵石床面的水下图像序列进行水下地形建模获得三维点云,利用控制点对所述三维点云进行空间数据配准,基于配准后的三维点云获得初始加密三维点云,并生成对应的数字正射影像;(2) Perform underwater terrain modeling on the underwater image sequence of the pebble bed based on the motion restoration structure method to obtain a three-dimensional point cloud, and use the control points to perform spatial data registration on the three-dimensional point cloud, based on the registered 3D point cloud Obtain the initial encrypted 3D point cloud and generate the corresponding digital orthophoto;

(3)基于所述数字正射影像生成包含目标区域的水面模型,将所述初始加密三维点云中位于所述水面模型以下部分筛选出,得到位于水下区域的三维点云,对所述位于水下区域的三维点云进行折射校正,获得校正后的水下地形和初始水深;(3) Generate a water surface model containing the target area based on the digital orthophoto, filter out the part below the water surface model in the initial encrypted 3D point cloud, and obtain a 3D point cloud located in the underwater area. The 3D point cloud located in the underwater area is refraction corrected to obtain the corrected underwater terrain and initial water depth;

(4)利用所述初始水深对校正后的水下地形再次修正,以此得到卵石床面的水下三维地形测量结果。(4) Using the initial water depth to correct the corrected underwater topography again, so as to obtain the underwater three-dimensional topography measurement result of the pebble bed.

在一些实施例中,步骤(2)具体包括以下步骤:In some embodiments, step (2) specifically includes the following steps:

基于运动恢复结构方法对所述水下图像序列进行空间计算,重构各图像对应的相机空间位置及镜头朝向,通过特征点匹配获得目标区域的稀疏三维点云;通过人工或自动方法对所述水下图像序列中出现的各控制点的中心位置进行识别和标记,获取控制点的图像坐标,利用控制点的真实坐标和图像坐标的对应关系对所述稀疏三维点云进行空间数据配准,基于配准后的三维点云利用加密方法获得初始加密三维点云,并生成对应的数字正射影像。Perform spatial calculation on the underwater image sequence based on the motion recovery structure method, reconstruct the spatial position of the camera and the orientation of the lens corresponding to each image, and obtain a sparse three-dimensional point cloud of the target area through feature point matching; Identifying and marking the center position of each control point appearing in the underwater image sequence, obtaining the image coordinates of the control point, using the corresponding relationship between the real coordinates of the control point and the image coordinates to perform spatial data registration on the sparse 3D point cloud, Based on the registered 3D point cloud, the encryption method is used to obtain the initial encrypted 3D point cloud, and the corresponding digital orthophoto is generated.

在一些实施例中,步骤(3)具体包括以下步骤:In some embodiments, step (3) specifically includes the following steps:

在所述数字正射影像中,使用单点对水面边界点进行标定,并投影到初始加密三维点云,获取一系列水面边界点的空间坐标,基于水面边界点生成德劳内三角网格作为包含目标区域的水面模型;对所述初始加密三维点云进行栅格化处理,栅格的床面高程取值为栅格范围内包含的全部点云点的高程最大值,得到栅格化初始三维点云;计算所述栅格化初始三维点云到所述水面模型的距离,作为初始水深;将所述栅格化初始三维点云中初始水深小于0的三维点删除,得到位于水下区域的栅格点;对于每幅图像对应的相机位置,将根据运动恢复结构方法计算出的相机朝向角度以及相机的焦距和相机感光元件的尺寸计算该相机位置拍摄的图像对应的实际空间范围,落在该实际空间范围内的栅格点被认为对该相机位置可见;In the digital orthophoto, a single point is used to calibrate the boundary points of the water surface, and projected to the initial encrypted 3D point cloud to obtain a series of spatial coordinates of the boundary points of the water surface, and a Delaunay triangular mesh is generated based on the boundary points of the water surface as Including the water surface model of the target area; performing rasterization processing on the initial encrypted 3D point cloud, the bed surface elevation value of the raster is the maximum elevation value of all point cloud points contained in the raster range, and the rasterization initial Three-dimensional point cloud; calculate the distance from the gridded initial three-dimensional point cloud to the water surface model as the initial water depth; delete the three-dimensional points in the gridded initial three-dimensional point cloud whose initial water depth is less than 0, and obtain the underwater The grid points of the area; for the camera position corresponding to each image, the actual spatial range corresponding to the image captured by the camera position will be calculated according to the camera orientation angle calculated by the motion recovery structure method, the focal length of the camera, and the size of the photosensitive element of the camera. Grid points that fall within this actual spatial extent are considered visible to this camera position;

对于每个筛选出的位于水下区域的栅格点,根据下式对其进行折射校正,获得校正后的水下地形和初始水深:For each screened grid point located in the underwater area, refraction correction is performed according to the following formula to obtain the corrected underwater terrain and initial water depth:

da=Zw-Za d a =Z w -Z a

其中,j代表位于水下区域的某一栅格点对第j个相机位置可见,rj为该第j个相机位置处相机光轴与水面之间的夹角,Xcj、Ycj分别为该第j个相机位置的X轴方向和Y轴方向坐标,Hwj为该第j个相机位置距水面模型的垂直距离,Xa、Ya、Za分别为该某一栅格点的X轴方向、Y轴方向和Z轴方向坐标,da为该某一栅格点的初始水深,dj为依据第j个相机位置计算的该某一栅格点的校正水深,为图像范围包含该某一栅格点的全部图像对应的相机位置计算的平均校正水深,Zw为该某一栅格点水平位置对应的水面模型的高程,Zp为该某一栅格点校正后的床面高程,n1,n2分别为水与空气的折射率。Among them, j represents a certain grid point in the underwater area visible to the jth camera position, r j is the angle between the camera optical axis and the water surface at the jth camera position, X cj and Y cj are respectively The X-axis and Y-axis coordinates of the j-th camera position, H wj is the vertical distance between the j-th camera position and the water surface model, X a , Y a , Z a are the X of the certain grid point axis direction, Y axis direction and Z axis direction coordinates, d a is the initial water depth of the certain grid point, d j is the corrected water depth of the certain grid point calculated based on the jth camera position, is the average corrected water depth calculated for the camera position corresponding to all the images that include the certain grid point in the image range, Z w is the elevation of the water surface model corresponding to the horizontal position of the certain grid point, and Z p is the certain grid point The corrected bed elevation, n 1 and n 2 are the refractive indices of water and air, respectively.

进一步地,步骤(3)中,当将所述栅格化初始三维点云中初始水深小于0的三维点删除后得到的位于水下区域的栅格点中依然包含部分实际位于水面模型以上的栅格点,则还需生成水面边界点的空间拟合平面,计算所述栅格化初始三维点云到所述拟合平面的距离,利用此距离对水上三维点进行二次筛选,测试不同筛选阈值直到将位于水面模型以上的栅格点全部剔除,从而最终得到位于水下区域的栅格点。Further, in step (3), when the 3D points in the rasterized initial 3D point cloud whose initial water depth is less than 0 are deleted, the grid points located in the underwater area still contain some points that are actually located above the water surface model. Grid points, it is also necessary to generate a space fitting plane of the boundary points of the water surface, calculate the distance from the gridded initial 3D point cloud to the fitting plane, and use this distance to perform secondary screening on the 3D points on the water, and test different Filter the threshold until all the grid points above the water surface model are eliminated, and finally the grid points located in the underwater area are obtained.

进一步地,步骤(3)中,当相机焦平面与水面平行时,采用下面的近似校正方法对筛选出的水下区域每一个栅格点的初始水深进行计算:Further, in step (3), when the focal plane of the camera is parallel to the water surface, the following approximate correction method is used to calculate the initial water depth of each grid point in the selected underwater area:

Zp=Zw-d。 Zp = Zw -d.

进一步地,步骤(4)具体包括:Further, step (4) specifically includes:

对折射校正后的水下区域每一个点云栅格的床面高程Zp通过下式进一步校正,得到最终校正后的床面高程Zp':The bed elevation Z p of each point cloud grid in the underwater area after refraction correction is further corrected by the following formula to obtain the final corrected bed elevation Z p ':

ΔZ=-0.0049d-0.0019ΔZ=-0.0049d-0.0019

zp'=zp-Δzz p '=z p -Δz

由所有栅格点的X轴方向坐标Xa、Y轴方向坐标Ya和最终校正后的床面高程Zp'构成卵石床面水下三维地形测量结果。The underwater three-dimensional topographic measurement results of the pebble bed are composed of the X-axis coordinate X a , the Y-axis coordinate Y a and the final corrected bed surface elevation Z p ' of all grid points.

本公开的有益效果为:The beneficial effects of the disclosure are:

1、可获取高空间分辨率和精度的卵石床面水下三维地形;其中,基于采用的可见光和图像使得重构的卵石床面水下三维地形具有高空间分辨率,最高可达亚毫米级;基于控制点对整体误差进行了控制,特别是当可获取较高精度的控制点的坐标时可使误差进一步缩小(如使用全站仪和激光扫描仪测量控制点坐标,则误差是毫米级),此外,本公开在进行折射校正后又进行了二次校正,去除了折射校正及床面材质引入的高程误差,因此上述两方面原因使得重构的卵石床面水下三维地形具有高精度,最高可达毫米级;1. The underwater three-dimensional topography of the pebble bed surface can be obtained with high spatial resolution and precision; among them, based on the visible light and images used, the reconstructed three-dimensional underwater topography of the pebble bed surface has high spatial resolution, up to submillimeter level ; The overall error is controlled based on the control points, especially when the coordinates of the control points with higher precision can be obtained, the error can be further reduced (such as using a total station and a laser scanner to measure the coordinates of the control points, the error is millimeter level ), in addition, the present disclosure performs secondary correction after the refraction correction, and removes the elevation error introduced by the refraction correction and the material of the bed surface. Therefore, the above two reasons make the reconstructed underwater three-dimensional topography of the pebble bed surface highly accurate , up to millimeter level;

2、为非侵入式测量,对水体和床面均没有干扰;2. It is a non-invasive measurement, which does not interfere with the water body and the bed surface;

3、操作简便,不需要专门对拍摄相机进行标定。3. It is easy to operate and does not need to calibrate the shooting camera.

附图说明Description of drawings

图1是本公开实施例提供的卵石床面三维地形重构方法的流程图。Fig. 1 is a flow chart of a three-dimensional terrain reconstruction method for a pebble bed provided by an embodiment of the present disclosure.

图2的(a)~(d)是本公开实施例提供的重构方法中布设的控制点的结构示意图。(a)-(d) of FIG. 2 are schematic structural diagrams of control points laid out in the reconstruction method provided by the embodiment of the present disclosure.

图3是本公开实施例提供的重构方法获得的卵石床面水下三维地形的数字高程模型图,其中,(a)为折射校正前卵石床面水下数字高程模型,(b)为折射校正后的数字高程模型。Fig. 3 is a digital elevation model diagram of the three-dimensional underwater terrain of the pebble bed surface obtained by the reconstruction method provided by an embodiment of the present disclosure, wherein (a) is the underwater digital elevation model of the pebble bed surface before refraction correction, and (b) is the refraction Corrected digital elevation model.

图中,1是控制点,1-1是边框,1-2是平板,1-3是地钉,1-4是转轴,1-5是支撑杆。In the figure, 1 is a control point, 1-1 is a frame, 1-2 is a flat plate, 1-3 is a ground nail, 1-4 is a rotating shaft, and 1-5 is a support rod.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细描述。应当理解,此处所描述的具体实施例仅仅用于解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, not to limit the present application.

相反,本申请涵盖任何由权利要求定义的在本申请精髓和范围上做的替代、修改、等效方法以及方案。进一步,为了使公众对本申请有更好的了解,在下文对本申请的细节描述中,详尽描述了一些特定的细节部分。对本领域技术人员来说没有这些细节部分的描述也可以完全理解本申请。On the contrary, this application covers any alternatives, modifications, equivalent methods and schemes within the spirit and scope of this application as defined by the claims. Further, in order to make the public have a better understanding of the application, some specific details are described in detail in the detailed description of the application below. The present application can be fully understood by those skilled in the art without the description of these detailed parts.

在本公开的描述中,需要理解的是,术语“中心”、“纵向”、“横向”、“长度”、“宽度”、“厚度”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”、“内”、“外”、“顺时针”、“逆时针”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本公开和简化描述,而不是指示或暗示所指的基础或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本公开的限制。此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本公开的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In describing the present disclosure, it is to be understood that the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", " Orientation indicated by rear, left, right, vertical, horizontal, top, bottom, inside, outside, clockwise, counterclockwise, etc. The positional relationship is based on the orientation or positional relationship shown in the drawings, which is only for the convenience of describing the present disclosure and simplifying the description, and does not indicate or imply that the referred base or element must have a specific orientation, be constructed and operated in a specific orientation, Therefore, it should not be construed as limiting the present disclosure. In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the present disclosure, "plurality" means two or more, unless otherwise specifically defined.

在本公开的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本公开中的具体含义。In the description of the present disclosure, it should be noted that unless otherwise specified and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a fixed connection or a detachable connection. Connection, or integral connection; can be mechanical connection or electrical connection; can be direct connection or indirect connection through an intermediary, and can be the internal communication of two elements or the interaction relationship between two elements. Those of ordinary skill in the art can understand the specific meanings of the above terms in the present disclosure according to specific situations.

在本公开中,除非另有明确的规定和限定,第一特征在第二特征之“上”或之“下”可以包括第一和第二特征直接接触,也可以包括第一和第二特征不是直接接触而是通过它们之间的另外的特征接触。而且,第一特征在第二特征“之上”、“上方”和“上面”包括第一特征在第二特征正上方和斜上方,或仅仅表示第一特征水平高度高于第二特征。第一特征在第二特征“之下”、“下方”和“下面”包括第一特征在第二特征正下方和斜下方,或仅仅表示第一特征水平高度小于第二特征。In the present disclosure, unless otherwise clearly stated and limited, a first feature being "on" or "under" a second feature may include direct contact between the first and second features, and may also include the first and second features Not in direct contact but through another characteristic contact between them. Moreover, "above", "above" and "above" the first feature on the second feature include that the first feature is directly above and obliquely above the second feature, or simply means that the first feature is horizontally higher than the second feature. "Below", "beneath" and "under" the first feature to the second feature include that the first feature is directly below and obliquely below the second feature, or simply means that the first feature has a lower level than the second feature.

参见图1,本公开实施例提供的基于水下图像的卵石床面三维地形重构方法,包括:Referring to FIG. 1 , the method for reconstructing the three-dimensional terrain of the pebble bed based on the underwater image provided by the embodiment of the present disclosure includes:

(1)规定沿目标区域水面的长度方向为X轴,沿目标区域水面的宽度方向为Y轴,垂直于XY平面为Z轴;利用相机获取卵石床面的水下图像序列,拍摄过程中固定相机的焦距及沿X轴和Y轴运动的空间步长,相机的镜头朝向与水面基本垂直,获取的水下图像序列由对目标区域水面进行逐横断面拍摄得到的多张卵石床面的水下图像组成,每张水下图像中至少能拍到2个控制点1且相邻两张水下图像满足重叠度要求(一般要求X轴和Y轴方向相邻两张水下图像的重叠面积不低于设定阈值,需要说明的是,X轴和Y轴方向相邻两张水下图像的重叠面积要求可以相同或不同,本实施例中取两者要求相同,设定阈值均取为80%),参见图2,控制点1布设在目标区域水面的两侧,包括固定于目标区域水面两侧的无水地面的边框1-1和与边框1-1转动连接的平板1-2,平板1-2的坡度保持水平,平板1-2的上表面绘有用黑白双色组成的规则的几何图案,且有明确的中心点位置,将该中心点位置定义为控制点1的坐标;控制点1的边长应保证在相机的图像中能清晰识别出控制点1的中心点位置。图2中,(a)为放置位置水平时的控制点形态,(b)为放置位置为斜坡时的控制点形态,(c)为控制点的下视图,(d)为控制点的地钉,通过螺杆段固定在控制点的外框上。(1) It is stipulated that the X-axis is along the length direction of the water surface of the target area, the Y-axis is along the width direction of the water surface of the target area, and the Z-axis is perpendicular to the XY plane; the camera is used to obtain the underwater image sequence of the pebble bed surface, and the fixed The focal length of the camera and the space step along the X-axis and Y-axis, the lens of the camera is basically perpendicular to the water surface, and the acquired underwater image sequence is obtained by taking cross-sections of the water surface in the target area. Underwater image composition, at least two control points 1 can be photographed in each underwater image, and two adjacent underwater images meet the overlap requirements (generally, the overlapping area of two adjacent underwater images in the X-axis and Y-axis directions is required It should not be lower than the set threshold. It should be noted that the overlapping area requirements of two adjacent underwater images in the X-axis and Y-axis directions can be the same or different. In this embodiment, the two requirements are the same, and the set thresholds are both taken as 80%), referring to Fig. 2, the control point 1 is arranged on both sides of the water surface in the target area, including the frame 1-1 fixed on the water surface of the target area on both sides of the water surface and the flat plate 1-2 connected with the frame 1-1 in rotation , the slope of the flat plate 1-2 remains level, and the upper surface of the flat plate 1-2 is painted with a regular geometric pattern composed of black and white two colors, and has a clear center point position, which is defined as the coordinate of the control point 1; control The side length of point 1 should ensure that the center point of control point 1 can be clearly identified in the camera image. In Figure 2, (a) is the shape of the control point when the placement position is horizontal, (b) is the shape of the control point when the placement position is a slope, (c) is the bottom view of the control point, and (d) is the ground nail of the control point , fixed on the outer frame of the control point through the screw segment.

进一步地,控制点1整体为固体矩形(多为正方形)塑料平板,厚度为5-10mm,边长根据相机的高度确定,取值原则为可在相机的图像中清晰识别出控制点1的中心点位置。控制点的平板1-2与边框1-1一侧通过转轴1-4连接,平板1-2与边框1-1另一侧通过支撑杆1-5连接,边框1-1上留有螺口用于安装地钉1-3。控制点1一般安装在岸边,通过地钉1-3嵌入床面以固定控制点1,之后通过转轴1-4调节平板1-2的坡度到基本水平,从而方便相机从顶部清晰拍摄。Furthermore, the control point 1 is a solid rectangular (mostly square) plastic flat plate with a thickness of 5-10 mm, and the side length is determined according to the height of the camera. The principle of value selection is that the center of the control point 1 can be clearly identified in the camera image point location. The plate 1-2 of the control point is connected to one side of the frame 1-1 through the rotating shaft 1-4, and the other side of the plate 1-2 and the frame 1-1 is connected through the support rod 1-5, and the frame 1-1 has a screw hole Used to install ground nails 1-3. The control point 1 is generally installed on the shore, and the ground nails 1-3 are embedded into the bed surface to fix the control point 1, and then the slope of the flat plate 1-2 is adjusted to the basic level through the rotating shaft 1-4, so that the camera can take pictures clearly from the top.

需要说明的是,在野外测量时也可以使用安装有摄像头的无人机代替相机进行拍摄,拍摄过程中保持相机镜头垂直于水面,减少水面反光。It should be noted that during field measurements, drones equipped with cameras can also be used instead of cameras for shooting. During the shooting process, the camera lens should be kept perpendicular to the water surface to reduce reflections on the water surface.

进一步地,在目标区域水面周围的无水地面布置控制点1时,控制点1应尽量靠近水面,同岸相邻两控制点1的位置间距比较均匀,间距则与相机的高度和焦距有关,布置原则为每张相机图像中最少能拍到2个控制点1,优选能同时拍到多于4个控制点1。同岸相邻两控制点1的间距由下式初步确定,不论目标区域是否可明确水流方向,控制点间距也可以按下面标准初步选定。需要说明的是,控制点1初步布置后,待相机安装后需测试是否可以满足前述每张相机图像中最少能拍到2个控制点1的标准,如果不能,则需要调整控制点1数量和间距直至满足要求。Furthermore, when the control point 1 is arranged on the water-free ground around the water surface in the target area, the control point 1 should be as close to the water surface as possible, and the distance between the two adjacent control points 1 on the same bank is relatively uniform, and the distance is related to the height and focal length of the camera. The layout principle is that at least 2 control points 1 can be captured in each camera image, and preferably more than 4 control points 1 can be captured at the same time. The distance between two adjacent control points 1 on the same bank is preliminarily determined by the following formula. Regardless of whether the direction of water flow can be determined in the target area, the distance between control points can also be preliminarily selected according to the following criteria. It should be noted that after the preliminary arrangement of control points 1, it is necessary to test whether the above-mentioned standard of capturing at least two control points 1 in each camera image can be met after the camera is installed. If not, it is necessary to adjust the number of control points 1 and spacing until the requirements are met.

LG≤0.5WL G ≤0.5W

其中,LG为同岸相邻两控制点的间距,W为单张相机图像宽度方向(图像两个边长中的较小值)对应的实际空间尺寸。Among them, L G is the distance between two adjacent control points on the same bank, and W is the actual spatial size corresponding to the width direction of a single camera image (the smaller value of the two side lengths of the image).

控制点布置确定后,使用RTK GPS、全站仪或激光扫描仪等测量精度较高的设备测量控制点中心点的坐标位置。以RTK GPS、全站仪或者激光扫描仪位置为原点,规定顺水流方向的水平方向为X轴正方向,与之垂直向左的水平方向为Y轴正方向,垂直向上为Z轴正方向;当没有明确水流方向时,则以水面宽度方向为Y轴方向,与之垂直的水平方向为X轴方向,X轴和Y轴正方向根据图像拍摄方向确定。After the layout of the control points is determined, use RTK GPS, total station or laser scanner and other equipment with high measurement accuracy to measure the coordinate position of the center point of the control points. Taking the position of RTK GPS, total station or laser scanner as the origin, the horizontal direction along the water flow direction is the positive direction of the X-axis, the horizontal direction vertical to the left is the positive direction of the Y-axis, and the vertical upward direction is the positive direction of the Z-axis; When the water flow direction is not specified, the width direction of the water surface is the Y-axis direction, and the horizontal direction perpendicular to it is the X-axis direction, and the positive directions of the X-axis and Y-axis are determined according to the image shooting direction.

测量过程中控制相机拍摄参数(图像尺寸、图像格式、光圈、快门、ISO等)不变,且运动速度不变。相机在横断面测量停顿时间由是否可以获取清晰图像决定,一般维持在1s,以消除相机运动停止时的晃动对拍摄的影响。如拍摄时光照条件较好可以保证在成像清晰的前提下保持快门速度在1/500s以上,则可以保持相机匀速运动而不停顿,运动速度U的设置则同样以成像清晰、边缘锐利为准。如采用匀速运动,则相机快门需设置间隔固定时间拍摄,时间间隔Δt按下式计算并设置:During the measurement process, the camera shooting parameters (image size, image format, aperture, shutter, ISO, etc.) are controlled to remain unchanged, and the movement speed remains unchanged. The pause time of the camera in the cross-section measurement is determined by whether a clear image can be obtained, and it is generally maintained at 1s to eliminate the impact of the camera shaking on the shooting when the camera stops moving. If the lighting conditions are good when shooting, you can keep the shutter speed above 1/500s under the premise of clear imaging, and you can keep the camera moving at a constant speed without stopping. The setting of the moving speed U is also subject to clear imaging and sharp edges. If a uniform motion is used, the camera shutter needs to be set at a fixed time interval to shoot, and the time interval Δt is calculated and set according to the following formula:

将相机拍摄的全部图像按照时间先后顺序排列组成卵石床面的水下图像序列,记为P={P1,P2,…,Pl,…Pq},Pl为相机拍摄的第l张卵石床面的水下图像,l∈[1,q]。q为图像总张数, All the images captured by the camera are arranged in chronological order to form the underwater image sequence of the pebble bed, which is recorded as P={P 1 ,P 2 ,...,P l ,...P q }, P l is the lth image captured by the camera An underwater image of a pebble bed, l∈[1,q]. q is the total number of images,

(2)基于运动恢复结构(Structure from Motion,SfM)方法进行水下地形建模获得三维点云,利用控制点进行空间数据配准。(2) Based on the Structure from Motion (SfM) method, the underwater terrain is modeled to obtain a 3D point cloud, and the control points are used for spatial data registration.

基于运动恢复结构(Structure from Motion,SfM)方法对水下图像序列P进行空间计算,重构各图像对应的相机空间位置及镜头朝向,通过特征点匹配获得目标区域的稀疏三维点云。通过人工或自动方法对水下图像序列P中出现的各控制点中心位置进行识别和标记,获取控制点的图像坐标,其中,手动方法即为通过目视识别控制点中心在各图像中的位置;自动方法则通过图像处理(如边缘检测)或训练卷积神经网络(CNN)的方式识别图像中控制点标志区域,然后利用设定规则的几何形状(如圆形、椭圆、矩形等,取决于控制点图案实际形状)逼近后计算形心作为控制点中心的图像坐标。利用控制点的真实坐标和图像坐标的对应关系对稀疏三维点云进行空间数据配准,基于配准后的三维点云利用加密方法(如multi-view stereo,MVS)方法获得初始加密三维点云,并生成对应的数字正射影像。Based on the structure from motion (SfM) method, the underwater image sequence P is spatially calculated, and the corresponding camera spatial position and lens orientation of each image are reconstructed, and the sparse 3D point cloud of the target area is obtained through feature point matching. The center position of each control point appearing in the underwater image sequence P is identified and marked by manual or automatic methods, and the image coordinates of the control points are obtained. The manual method is to visually identify the position of the center of the control point in each image The automatic method recognizes the control point mark area in the image through image processing (such as edge detection) or training convolutional neural network (CNN), and then uses the geometric shape of the set rule (such as circle, ellipse, rectangle, etc., depending on After approximating the actual shape of the control point pattern), the centroid is calculated as the image coordinate of the control point center. Use the corresponding relationship between the real coordinates of the control points and the image coordinates to perform spatial data registration on the sparse 3D point cloud, and use encryption methods (such as multi-view stereo, MVS) to obtain the initial encrypted 3D point cloud based on the registered 3D point cloud , and generate the corresponding digital orthophoto.

(3)对初始加密三维点云进行折射校正,获得校正后的水下地形和水深。(3) Refraction correction is performed on the initial encrypted 3D point cloud to obtain the corrected underwater topography and water depth.

在包含目标区域的数字正射影像中,使用单点对水面边界点进行手动标定,获取一系列水面边界点的平面空间坐标,再投影到初始加密三维点云获得水面边界点的垂向坐标,基于水面边界点生成德劳内三角网格作为水面模型。对初始加密三维点云进行栅格化处理,栅格尺寸由数据分析的空间分辨率需求确定,应小于数据分析要求的空间分辨率。栅格的床面高程取值为栅格范围内包含的全部点云点的高程最大值,得到栅格化初始三维点云。计算栅格化初始三维点云到水面模型的距离,作为初始水深。可将栅格化初始三维点云中初始水深小于0的三维点删除,即删除位于水面模型以上的栅格点。如果基于上述筛选标准选出的栅格点依然包含部分实际位于水面模型以上的栅格点,则还需生成水面边界点的空间拟合平面,计算栅格化初始三维点云到拟合平面的距离,利用此距离对水上三维点进行二次筛选,测试不同筛选阈值直到将位于水面模型以上的栅格点全部剔除,从而得到位于水下区域的栅格点。对于每幅图像对应的相机位置,将根据SfM方法计算出的相机朝向角度(俯仰角、横滚角和偏航角)以及相机的焦距和相机感光元件的尺寸计算该相机位置拍摄的图像对应的实际空间范围,落在该实际空间范围内的栅格点被认为对该相机位置可见,每个栅格点一般对多个相机位置可见。In the digital orthophoto image containing the target area, a single point is used to manually calibrate the water surface boundary points to obtain a series of plane space coordinates of the water surface boundary points, and then projected to the initial encrypted 3D point cloud to obtain the vertical coordinates of the water surface boundary points. A Delaunay triangular mesh is generated based on the boundary points of the water surface as a water surface model. The initial encrypted 3D point cloud is rasterized, and the grid size is determined by the spatial resolution requirements of the data analysis, which should be smaller than the spatial resolution required by the data analysis. The bed surface elevation of the grid is the maximum value of the elevation of all point cloud points contained in the grid range, and the initial gridded 3D point cloud is obtained. Calculate the distance from the rasterized initial 3D point cloud to the water surface model as the initial water depth. The 3D points whose initial water depth is less than 0 in the rasterized initial 3D point cloud can be deleted, that is, the grid points located above the water surface model can be deleted. If the grid points selected based on the above screening criteria still contain some grid points that are actually located above the water surface model, it is also necessary to generate the space fitting plane of the water surface boundary points, and calculate the distance between the rasterized initial 3D point cloud and the fitting plane. Distance, use this distance to perform secondary screening on the 3D points on the water, test different screening thresholds until all the grid points above the water surface model are eliminated, so as to obtain the grid points located in the underwater area. For the camera position corresponding to each image, the camera orientation angle (pitch angle, roll angle, and yaw angle) calculated by the SfM method, the focal length of the camera, and the size of the photosensitive element of the camera are used to calculate the corresponding The actual spatial range, the grid points falling within the actual spatial range are considered to be visible to the camera position, and each grid point is generally visible to multiple camera positions.

对于每个筛选出的位于水下区域的栅格点,根据下式对其初始水深进行校正:For each filtered grid point located in the underwater area, the initial water depth is corrected according to the following formula:

da=zw-Za d a =z w -Z a

其中,j代表位于水下区域的某一栅格点对第j个相机位置可见,rj为该第j个相机位置处相机光轴与水面之间的夹角,Xcj、Ycj分别为该第j个相机位置的X轴方向和Y轴方向坐标,Hwj为该第j个相机位置距水面模型的垂直距离,Xa、Ya、Za分别为该某一栅格点的X轴方向、Y轴方向和Z轴方向坐标,da为该某一栅格点的初始水深,dj为依据第j个相机位置计算的该某一栅格点的校正水深,为图像范围包含该某一栅格点的全部图像对应的相机位置计算的平均校正水深,Zw为该某一栅格点水平位置对应的水面模型的高程,Zp为该某一栅格点校正后的床面高程,n1,n2分别为水与空气的折射率。Among them, j represents a certain grid point in the underwater area visible to the jth camera position, r j is the angle between the camera optical axis and the water surface at the jth camera position, X cj and Y cj are respectively The X-axis and Y-axis coordinates of the j-th camera position, H wj is the vertical distance between the j-th camera position and the water surface model, X a , Y a , Z a are the X of the certain grid point axis direction, Y axis direction and Z axis direction coordinates, d a is the initial water depth of the certain grid point, d j is the corrected water depth of the certain grid point calculated based on the jth camera position, is the average corrected water depth calculated for the camera position corresponding to all the images that include the certain grid point in the image range, Z w is the elevation of the water surface model corresponding to the horizontal position of the certain grid point, and Z p is the certain grid point The corrected bed elevation, n 1 and n 2 are the refractive indices of water and air, respectively.

当对测量精度要求较低,或者可以保证相机焦平面与水面严格平行时,也可以采用下面的近似校正方法对筛选出的水下区域每一个栅格点的初始水深进行计算:When the measurement accuracy is low, or the focal plane of the camera is strictly parallel to the water surface, the following approximate correction method can also be used to calculate the initial water depth of each grid point in the selected underwater area:

zp=zw-dz p =z w -d

本公开实施例通过步骤(3),消除了可见光经过水面发生折射对基于SfM的三维重构结果的影响。In the embodiment of the present disclosure, through step (3), the influence of the refraction of visible light passing through the water surface on the SfM-based three-dimensional reconstruction result is eliminated.

(4)利用初始水深对校正后的水下地形再次修正,以此得到卵石床面的水下三维地形测量结果。(4) Use the initial water depth to correct the corrected underwater terrain again, so as to obtain the underwater three-dimensional topographic measurement results of the pebble bed.

对折射校正后的水下区域每一个点云栅格的床面高程Zp需要进一步通过下式(长度单位均为m)校正,得到最终校正后的床面高程Zp':The bed surface elevation Z p of each point cloud grid in the underwater area after refraction correction needs to be further corrected by the following formula (the unit of length is m) to obtain the final corrected bed surface elevation Z p ':

ΔZ=-0.0049d-0.0019ΔZ=-0.0049d-0.0019

Zp'=Zp-ΔZZ p '=Z p -ΔZ

由所有栅格点的X轴方向坐标Xa、Y轴方向坐标Ya和最终校正后的床面高程Zp'构成卵石床面水下三维地形测量结果。The underwater three-dimensional topographic measurement results of the pebble bed are composed of the X-axis coordinate X a , the Y-axis coordinate Y a and the final corrected bed surface elevation Z p ' of all grid points.

本公开实施例通过步骤(4),进一步消除了折射校正后床面高程存在的误差,该误差与折射校正本身有关,跟床面材质也有关系。这种误差与水深存在线性关系,因此可以通过提供的线性公式修正。The embodiment of the present disclosure further eliminates the error in the elevation of the bed surface after the refraction correction through step (4). The error is related to the refraction correction itself, and is also related to the material of the bed surface. This error has a linear relationship with water depth, so it can be corrected by the linear formula provided.

本公开的卵石床面三维地形重构方法的一个实施例中,基于室内水槽的水下图像对卵石床面的三维地形进行重构。构成床面的卵石粒径范围是9mm-50mm,中值粒径约为15mm。床面宽度为2.2m,测量沿程长度为4m。测试使用单相机方案(佳能80D单反),相机距离床面的高度约为3.4m。相机焦距固定为18mm,感光元件尺寸为22.3×14.9mm2,照片分辨率为6000×4000pix2。在测量区域布置4个控制点,每岸有2个控制点,控制点由边长为10cm的塑料板制作,位于靠近水面的岸边,同岸的2个控制点顺水流方向(X轴方向)间距为2m。控制点的真实坐标使用全站仪测量,精度为3mm。以本实施例说明卵石床面水下图像的处理流程。In one embodiment of the method for reconstructing the three-dimensional topography of the pebble bed surface of the present disclosure, the three-dimensional topography of the pebble bed surface is reconstructed based on the underwater image of the indoor water tank. The particle size range of the pebbles making up the bed surface is 9mm-50mm, with a median particle size of about 15mm. The width of the bed is 2.2m, and the length along the measurement is 4m. The test uses a single-camera solution (Canon 80D SLR), and the height of the camera from the bed is about 3.4m. The focal length of the camera is fixed at 18mm, the photosensitive element size is 22.3×14.9mm 2 , and the photo resolution is 6000×4000pix 2 . Arrange 4 control points in the measurement area, each bank has 2 control points, the control points are made of plastic plates with a side length of 10cm, located on the shore close to the water surface, and the 2 control points on the same bank are along the direction of the water flow (X-axis direction ) spacing is 2m. The real coordinates of the control points are measured with a total station with an accuracy of 3 mm. This embodiment is used to illustrate the processing flow of the underwater image of the pebble bed surface.

具体过程如下:The specific process is as follows:

1、开启水槽循环系统并设置40L/s的恒定入流流量。待流量稳定后开始测量,相机横向和纵向移动空间间隔均为0.5m,且为步进运动,相邻两步间停止1s。拍摄过程设定光圈为4.0,快门高于1/80s,ISO=1600~2000,对目标区域共采集101张图像。1. Turn on the tank circulation system and set a constant inflow rate of 40L/s. After the flow is stable, the measurement is started. The spatial interval of the horizontal and vertical movement of the camera is 0.5m, and it is a stepping motion, and the stop is 1s between two adjacent steps. During the shooting process, the aperture was set to 4.0, the shutter speed was higher than 1/80s, ISO=1600-2000, and a total of 101 images were collected for the target area.

2、使用SfM方法对获得的图像进行三维重构,获得稀疏三维点云,手动标记每张图像中控制点中心位置作为控制点的图像坐标,利用控制点的真实坐标和图像坐标的对应关系对稀疏三维点云进行空间配准,基于配准后的三维点云利用MVS方法加密计算获得初始加密三维点云,参见图3中(a),并生成对应的数字正射影像,空间分辨率为0.65mm/pix。2. Use the SfM method to perform three-dimensional reconstruction of the obtained image, obtain a sparse three-dimensional point cloud, manually mark the center position of the control point in each image as the image coordinate of the control point, and use the corresponding relationship between the real coordinates of the control point and the image coordinates to Sparse 3D point cloud is used for spatial registration, and based on the registered 3D point cloud, the MVS method is used to encrypt and calculate the initial encrypted 3D point cloud, see (a) in Figure 3, and the corresponding digital orthophoto image is generated with a spatial resolution of 0.65mm/pix.

3、在数字正射影像图中,使用单点对水面边界点进行手动标定,获取195个水面边界点的空间坐标并导出。使用CloudCompare软件基于水面边界点生成德劳内三角网格作为水面模型。将初始加密三维点云进行0.005m栅格化处理,栅格的床面高程取值为栅格范围内包含的全部点云点的高程最大值,得到栅格化初始三维点云,并计算其到水面的距离作为初始水深。根据初始水深小于0删除位于水面模型以上的栅格点,由于水面模型边界的三角网格计算距离存在问题,因此生成水面边界点的空间拟合平面,测试不同的距离阈值进行二次筛选,直至删除所有水面以上的栅格点,最终得到位于水下区域的栅格点。此时,栅格点的数据包含栅格点坐标Xa、Ya、Za,水面高程Zw和初始水深da3. In the digital orthophoto map, use a single point to manually calibrate the water surface boundary points, obtain the spatial coordinates of 195 water surface boundary points and export them. Use CloudCompare software to generate a Delaunay triangular mesh based on the water surface boundary points as the water surface model. The initial encrypted 3D point cloud is processed into a 0.005m grid, and the bed elevation of the grid is the maximum value of the elevation of all point cloud points contained in the grid range to obtain the gridded initial 3D point cloud, and calculate its The distance to the water surface is taken as the initial water depth. Delete the grid points above the water surface model according to the initial water depth less than 0. Since there is a problem in calculating the distance of the triangular mesh at the boundary of the water surface model, the space fitting plane of the water surface boundary points is generated, and different distance thresholds are tested for secondary screening until Delete all the grid points above the water surface, and finally get the grid points in the underwater area. At this time, the grid point data includes grid point coordinates X a , Y a , Z a , water surface elevation Z w and initial water depth d a .

4、将栅格点导出为csv格式,从SfM方法中导出相机位置(三维坐标,及表征朝向的三个角度)数据,并准备好相机自身的感光元件数据,基于以上三方面数据对水下栅格点进行折射矫正,得到各栅格点校正后水深与校正后的床面高程Zp。最后根据经验公式对床面高程Zp进一步通过校正,得到最终校正后的床面高程Zp',生成水下三维地形,参见图3中(b)。4. Export the grid points into csv format, export the camera position (three-dimensional coordinates, and three angles representing the orientation) data from the SfM method, and prepare the photosensitive element data of the camera itself, based on the above three aspects of data for underwater The grid points are corrected for refraction, and the corrected water depth of each grid point is obtained and the corrected bed elevation Z p . Finally, according to the empirical formula, the bed surface elevation Z p is further corrected to obtain the final corrected bed surface elevation Z p ', and the underwater three-dimensional terrain is generated, as shown in (b) in Fig. 3 .

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示意性实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, references to the terms "one embodiment," "some embodiments," "exemplary embodiments," "example," "specific examples," or "some examples" are intended to mean that the implementation A specific feature, structure, material, or characteristic described by an embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

尽管已经示出和描述了本申请的实施例,本领域的普通技术人员可以理解:在不脱离本申请的原理和宗旨的情况下可以对这些实施例进行多种变化、修改、替换和变型,本申请的范围由权利要求及其等同物限定。Although the embodiments of the present application have been shown and described, those skilled in the art can understand that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principle and spirit of the present application. The scope of the application is defined by the claims and their equivalents.

Claims (6)

1.一种基于水下图像的卵石床面三维地形重构方法,其特征在于,包括:1. A three-dimensional terrain reconstruction method based on underwater images, characterized in that it comprises: (1)规定沿目标区域水面的长度方向为X轴,沿目标区域水面的宽度方向为Y轴,垂直于XY平面为Z轴;利用相机获取卵石床面的水下图像序列,拍摄过程中固定所述相机的焦距及沿X轴和Y轴运动的空间步长,所述相机的镜头朝向与水面垂直,所述水下图像序列由对目标区域水面进行逐横断面拍摄得到的多张卵石床面的水下图像组成,每张水下图像中至少能拍到2个控制点且相邻两张水下图像满足重叠度要求,所述控制点布设在目标区域水面的两侧,包括上表面绘有规则几何图案且坡度保持水平的平板,所述几何图案具有明确的中心点位置,将该中心点位置定义为控制点的坐标;(1) It is stipulated that the X-axis is along the length direction of the water surface of the target area, the Y-axis is along the width direction of the water surface of the target area, and the Z-axis is perpendicular to the XY plane; the camera is used to obtain the underwater image sequence of the pebble bed surface, and the fixed The focal length of the camera and the space step along the X-axis and the Y-axis, the lens of the camera is directed perpendicular to the water surface, and the underwater image sequence is a plurality of pebble beds obtained by shooting cross-sections of the water surface in the target area Each underwater image can capture at least 2 control points and two adjacent underwater images meet the overlap requirements. The control points are arranged on both sides of the water surface in the target area, including the upper surface A slab drawn with a regular geometric pattern with a horizontal slope, the geometric pattern has a definite center point position, and the center point position is defined as the coordinates of the control point; (2)基于运动恢复结构方法所述对卵石床面的水下图像序列进行水下地形建模获得三维点云,利用控制点对所述三维点云进行空间数据配准,基于配准后的三维点云获得初始加密三维点云,并生成对应的数字正射影像;(2) Perform underwater terrain modeling on the underwater image sequence of the pebble bed based on the motion restoration structure method to obtain a three-dimensional point cloud, and use the control points to perform spatial data registration on the three-dimensional point cloud, based on the registered 3D point cloud Obtain the initial encrypted 3D point cloud and generate the corresponding digital orthophoto; (3)基于所述数字正射影像生成包含目标区域的水面模型,将所述初始加密三维点云中位于所述水面模型以下部分筛选出,得到位于水下区域的三维点云,对所述位于水下区域的三维点云进行折射校正,获得校正后的水下地形和初始水深;(3) Generate a water surface model containing the target area based on the digital orthophoto, filter out the part below the water surface model in the initial encrypted 3D point cloud, and obtain a 3D point cloud located in the underwater area. The 3D point cloud located in the underwater area is refraction corrected to obtain the corrected underwater terrain and initial water depth; (4)利用所述初始水深对校正后的水下地形再次修正,以此得到卵石床面的水下三维地形测量结果。(4) Using the initial water depth to correct the corrected underwater topography again, so as to obtain the underwater three-dimensional topography measurement result of the pebble bed. 2.根据权利要求1所述的卵石床面三维地形重构方法,其特征在于,步骤(2)具体包括以下步骤:2. The three-dimensional terrain reconstruction method on the cobble bed surface according to claim 1, wherein step (2) specifically comprises the following steps: 基于运动恢复结构方法对所述水下图像序列进行空间计算,重构各图像对应的相机空间位置及镜头朝向,通过特征点匹配获得目标区域的稀疏三维点云;通过人工或自动方法对所述水下图像序列中出现的各控制点的中心位置进行识别和标记,获取控制点的图像坐标,利用控制点的真实坐标和图像坐标的对应关系对所述稀疏三维点云进行空间数据配准,基于配准后的三维点云利用加密方法获得初始加密三维点云,并生成对应的数字正射影像。Perform spatial calculation on the underwater image sequence based on the motion recovery structure method, reconstruct the spatial position of the camera and the orientation of the lens corresponding to each image, and obtain a sparse three-dimensional point cloud of the target area through feature point matching; Identifying and marking the center position of each control point appearing in the underwater image sequence, obtaining the image coordinates of the control point, using the corresponding relationship between the real coordinates of the control point and the image coordinates to perform spatial data registration on the sparse 3D point cloud, Based on the registered 3D point cloud, the encryption method is used to obtain the initial encrypted 3D point cloud, and the corresponding digital orthophoto is generated. 3.根据权利要求1所述的卵石床面三维地形重构方法,其特征在于,步骤(3)具体包括以下步骤:3. The three-dimensional terrain reconstruction method on the cobble bed surface according to claim 1, wherein step (3) specifically comprises the following steps: 在所述数字正射影像中,使用单点对水面边界点进行标定,并投影到初始加密三维点云,获取一系列水面边界点的空间坐标,基于水面边界点生成德劳内三角网格作为包含目标区域的水面模型;对所述初始加密三维点云进行栅格化处理,栅格的床面高程取值为栅格范围内包含的全部点云点的高程最大值,得到栅格化初始三维点云;计算所述栅格化初始三维点云到所述水面模型的距离,作为初始水深;将所述栅格化初始三维点云中初始水深小于0的三维点删除,得到位于水下区域的栅格点;对于每幅图像对应的相机位置,将根据运动恢复结构方法计算出的相机朝向角度以及相机的焦距和相机感光元件的尺寸计算该相机位置拍摄的图像对应的实际空间范围,落在该实际空间范围内的栅格点被认为对该相机位置可见;In the digital orthophoto, a single point is used to calibrate the boundary points of the water surface, and projected to the initial encrypted 3D point cloud to obtain a series of spatial coordinates of the boundary points of the water surface, and a Delaunay triangular mesh is generated based on the boundary points of the water surface as Including the water surface model of the target area; performing rasterization processing on the initial encrypted 3D point cloud, the bed surface elevation value of the raster is the maximum elevation value of all point cloud points contained in the raster range, and the rasterization initial Three-dimensional point cloud; calculate the distance from the gridded initial three-dimensional point cloud to the water surface model as the initial water depth; delete the three-dimensional points in the gridded initial three-dimensional point cloud whose initial water depth is less than 0, and obtain the underwater The grid points of the area; for the camera position corresponding to each image, the actual spatial range corresponding to the image captured by the camera position will be calculated according to the camera orientation angle calculated by the motion recovery structure method, the focal length of the camera, and the size of the photosensitive element of the camera. Grid points that fall within this actual spatial extent are considered visible to this camera position; 对于每个筛选出的位于水下区域的栅格点,根据下式对其进行折射校正,获得校正后的水下地形和初始水深:For each screened grid point located in the underwater area, refraction correction is performed according to the following formula to obtain the corrected underwater terrain and initial water depth: da=Zw-Za d a =Z w -Z a 其中,j代表位于水下区域的某一栅格点对第j个相机位置可见,rj为该第j个相机位置处相机光轴与水面之间的夹角,Xcj、Ycj分别为该第j个相机位置的X轴方向和Y轴方向坐标,Hwj为该第j个相机位置距水面模型的垂直距离,Xa、Ya、Za分别为该某一栅格点的X轴方向、Y轴方向和Z轴方向坐标,da为该某一栅格点的初始水深,dj为依据第j个相机位置计算的该某一栅格点的校正水深,为图像范围包含该某一栅格点的全部图像对应的相机位置计算的平均校正水深,Zw为该某一栅格点水平位置对应的水面模型的高程,Zp为该某一栅格点校正后的床面高程,n1,n2分别为水与空气的折射率。Among them, j represents a certain grid point in the underwater area visible to the jth camera position, r j is the angle between the camera optical axis and the water surface at the jth camera position, X cj and Y cj are respectively The X-axis and Y-axis coordinates of the j-th camera position, H wj is the vertical distance between the j-th camera position and the water surface model, X a , Y a , Z a are the X of the certain grid point axis direction, Y axis direction and Z axis direction coordinates, d a is the initial water depth of the certain grid point, d j is the corrected water depth of the certain grid point calculated based on the jth camera position, is the average corrected water depth calculated for the camera position corresponding to all the images that include the certain grid point in the image range, Z w is the elevation of the water surface model corresponding to the horizontal position of the certain grid point, and Z p is the certain grid point The corrected bed elevation, n 1 and n 2 are the refractive indices of water and air, respectively. 4.根据权利要求3所述的卵石床面三维地形重构方法,其特征在于,步骤(3)中,当将所述栅格化初始三维点云中初始水深小于0的三维点删除后得到的位于水下区域的栅格点中依然包含部分实际位于水面模型以上的栅格点,则还需生成水面边界点的空间拟合平面,计算所述栅格化初始三维点云到所述拟合平面的距离,利用此距离对水上三维点进行二次筛选,测试不同筛选阈值直到将位于水面模型以上的栅格点全部剔除,从而最终得到位于水下区域的栅格点。4. The three-dimensional terrain reconstruction method on the cobble bed surface according to claim 3, characterized in that, in step (3), after deleting the three-dimensional points whose initial water depth is less than 0 in the gridded initial three-dimensional point cloud, the obtained If the grid points located in the underwater area still contain some grid points that are actually located above the water surface model, it is also necessary to generate a space fitting plane of the water surface boundary points, and calculate the gridded initial 3D point cloud to the simulated Using this distance to perform secondary screening on the 3D points above the water, test different screening thresholds until all the grid points above the water surface model are eliminated, and finally the grid points located in the underwater area are obtained. 5.根据权利要求3所述的卵石床面三维地形重构方法,其特征在于,步骤(3)中,当相机焦平面与水面平行时,采用下面的近似校正方法对筛选出的水下区域每一个栅格点的初始水深进行计算:5. The three-dimensional terrain reconstruction method of pebble bed surface according to claim 3, characterized in that, in step (3), when the focal plane of the camera is parallel to the water surface, the following approximate correction method is used to filter out the underwater area The initial water depth of each grid point is calculated: Zp=Zw-d。 Zp = Zw -d. 6.根据权利要求3、4或5所述的卵石床面三维地形重构方法,其特征在于,步骤(4)具体包括:6. according to claim 3,4 or 5 described three-dimensional terrain reconstruction method of pebble bed surface, it is characterized in that, step (4) specifically comprises: 对折射校正后的水下区域每一个点云栅格的床面高程Zp通过下式进一步校正,得到最终校正后的床面高程Zp′:The bed surface elevation Z p of each point cloud grid in the underwater area after refraction correction is further corrected by the following formula to obtain the final corrected bed surface elevation Z p ′: ΔZ=-0.0049d-0.0019ΔZ=-0.0049d-0.0019 Zp′=Zp-ΔZZ p '=Z p -ΔZ 由所有栅格点的X轴方向坐标Xa、Y轴方向坐标Ya和最终校正后的床面高程Zp′构成卵石床面水下三维地形测量结果。The underwater three-dimensional topographic measurement results of the pebble bed are composed of the X-axis coordinate X a , the Y-axis coordinate Y a and the final corrected bed surface elevation Z p ′ of all grid points.
CN202310525357.0A 2023-05-11 2023-05-11 Pebble bed surface three-dimensional terrain reconstruction method based on underwater image Active CN116630558B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310525357.0A CN116630558B (en) 2023-05-11 2023-05-11 Pebble bed surface three-dimensional terrain reconstruction method based on underwater image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310525357.0A CN116630558B (en) 2023-05-11 2023-05-11 Pebble bed surface three-dimensional terrain reconstruction method based on underwater image

Publications (2)

Publication Number Publication Date
CN116630558A true CN116630558A (en) 2023-08-22
CN116630558B CN116630558B (en) 2024-09-10

Family

ID=87637430

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310525357.0A Active CN116630558B (en) 2023-05-11 2023-05-11 Pebble bed surface three-dimensional terrain reconstruction method based on underwater image

Country Status (1)

Country Link
CN (1) CN116630558B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119863584A (en) * 2024-12-26 2025-04-22 威海晶合数字矿山技术有限公司 Three-dimensional terrain modeling method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110111413A (en) * 2019-04-08 2019-08-09 西安电子科技大学 A kind of sparse cloud three-dimension modeling method based on land and water coexistence scenario
US20190266712A1 (en) * 2018-02-24 2019-08-29 United States Of America As Represented By The Administrator Of The Nasa System and method for imaging underwater environments using fluid lensing
CN111462298A (en) * 2020-02-24 2020-07-28 西安电子科技大学 A method for reconstructing underwater 3D scene
CN114612626A (en) * 2022-03-10 2022-06-10 四川农业大学 Method and system for acquiring underwater terrain
CN116608830A (en) * 2023-05-11 2023-08-18 中国科学院地理科学与资源研究所 Measuring method of underwater three-dimensional topography on pebble bed

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190266712A1 (en) * 2018-02-24 2019-08-29 United States Of America As Represented By The Administrator Of The Nasa System and method for imaging underwater environments using fluid lensing
CN110111413A (en) * 2019-04-08 2019-08-09 西安电子科技大学 A kind of sparse cloud three-dimension modeling method based on land and water coexistence scenario
CN111462298A (en) * 2020-02-24 2020-07-28 西安电子科技大学 A method for reconstructing underwater 3D scene
CN114612626A (en) * 2022-03-10 2022-06-10 四川农业大学 Method and system for acquiring underwater terrain
CN116608830A (en) * 2023-05-11 2023-08-18 中国科学院地理科学与资源研究所 Measuring method of underwater three-dimensional topography on pebble bed

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
XIAORUI QIAO 等: ""Underwater Structure from Motion for Cameras Under Refractive Surfaces"", 《JOURNAL OR ROBOTICS AND MECHATRONICS》, 31 August 2019 (2019-08-31), pages 603 - 611 *
王浩;彭国平;陈启刚;龚家国;: "基于SFM地形测量多尺度河工模型结构变化研究", 工程科学与技术, no. 05, 30 September 2020 (2020-09-30), pages 117 - 124 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119863584A (en) * 2024-12-26 2025-04-22 威海晶合数字矿山技术有限公司 Three-dimensional terrain modeling method and system
CN119863584B (en) * 2024-12-26 2025-09-02 威海晶合数字矿山技术有限公司 A three-dimensional terrain modeling method and system

Also Published As

Publication number Publication date
CN116630558B (en) 2024-09-10

Similar Documents

Publication Publication Date Title
CN112288848B (en) Method for calculating engineering quantity by aerial three-dimensional modeling of unmanned aerial vehicle
CN111473739A (en) Video monitoring-based surrounding rock deformation real-time monitoring method for tunnel collapse area
CN102538763B (en) Method for measuring three-dimensional terrain in river model test
CN116608830A (en) Measuring method of underwater three-dimensional topography on pebble bed
CN110806199A (en) A method and system for terrain surveying based on laser line projection instrument and unmanned aerial vehicle
CN113538668A (en) Geological model construction method, system, storage medium and electronic device
CN115014224A (en) LiDAR point cloud and oblique aerial image-based ground surface deformation monitoring method
CN113744393A (en) Multi-level slope landslide change monitoring method
CN102692213A (en) Traffic accident field surveying instrument based on active omnidirectional visual sensor
CN118134994A (en) Large irregular stacking volume real-time measurement method based on binocular stereo matching
CN110243347A (en) A Monitoring Method of Erosion Gullies Based on Close-range Photogrammetry
CN118292498A (en) A real-time monitoring and early warning method and system for deformation of deep foundation pit steel sheet piles
Hancock et al. The production of digital elevation models for experimental model landscapes
CN116977576B (en) Three-dimensional terrain reconstruction method of sandy bed based on underwater images
CN116630558B (en) Pebble bed surface three-dimensional terrain reconstruction method based on underwater image
CN114943890A (en) Transformer substation field flatness identification method adopting unmanned aerial vehicle-mounted laser point cloud
CN118314188A (en) Image acquisition and processing method for three-dimensional reconstruction of construction scene under view angle of tower crane
WO2022078440A1 (en) Device and method for acquiring and determining space occupancy comprising moving object
CN118072238A (en) River flow real-time monitoring method based on unmanned aerial vehicle remote sensing and tower foundation video
AGUILAR et al. 3D coastal monitoring from very dense UAV-Based photogrammetric point clouds
Cardenal et al. Close range digital photogrammetry techniques applied to landslide monitoring
Heng Siong et al. The application of smartphone based structure from motion (SFM) photogrammetry in ground volume measurement
CN110458945A (en) Automatic modeling method and system combined with video data by aerial oblique photography
CN108050995A (en) It is a kind of based on the oblique photograph of DEM without photo control point Hang Shece areas merging method
CN119722946A (en) A method for measuring soil erosion in waste dumps based on three-dimensional model

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