A method for reconstructing 3D topography of pebble bed based on underwater images
Through the three-dimensional terrain reconstruction method based on underwater images and the use of control points and refraction correction technology, the error problem of underwater three-dimensional terrain measurement on pebble beds in the existing technology is solved, and high-precision and high-resolution measurements are achieved, which is suitable for Non-invasive monitoring of underwater environments.
Patent Information
- Application Number
- CN202310525357.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-11
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-05-11
AI Technical Summary
It is difficult to directly obtain the high-precision underwater three-dimensional topography of the pebble bed with existing technology. Especially in the underwater environment, the measurement error is large due to the refraction of visible light and the influence of the bed surface material. Moreover, the existing method requires water to be stopped for measurement, and the introduction of to account for terrain changes and errors.
Using a three-dimensional terrain reconstruction method based on underwater images, the underwater image sequence is acquired by fixing the camera focal length and moving along the Correction and secondary correction to obtain high-precision underwater three-dimensional terrain of the pebble bed.
It achieves high spatial resolution and precision underwater three-dimensional topographic measurement of pebble bed surfaces, with errors reaching sub-millimeter to millimeter levels. It is a non-invasive measurement that does not affect the water body and bed surface and is easy to operate.
Smart Images

Figure CN116630558B
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of environment and water conservancy engineering, river landform and mountain disaster measurement, and in particular to a method for reconstructing three-dimensional terrain of a pebble bed based on underwater images. Background Art
[0002] Pebble rivers are widely distributed in nature. The riverbed material has a wide gradation, among which the coarse particles are pebbles and gravels. The wide-gradation riverbed material is 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 steep bedrock river and the gentle sandy river. It generally appears in the transition zone between high and steep mountains and plains. Some lakes originating from the ancient river channels of pebble rivers also have pebble beds. There are a large number of pebble rivers and lakes with pebble beds in the hinterland and edge of the Qinghai-Tibet Plateau in my country. The continuous change characteristics of the pebble bed topography are important basic information for infrastructure construction, urbanization development, geological disaster prevention, improvement of human settlement environment, water pollution control, ecological diversity restoration and protection in these areas. However, whether it is field observation or laboratory simulation experiment, it is very difficult to directly obtain the underwater three-dimensional topography of the pebble bed. In a laboratory environment, because the conditions for measuring topography are met after water is cut off, it is generally necessary to interrupt the water flow process before measuring the bed topography. However, the bed topography may change easily when the water is cut off and turned on, thus introducing measurement errors.
[0003] With the rapid development of machine vision technology, photogrammetry methods based on visible light have been widely used in the field of topographic measurement. For example, the Structure from Motion (SfM) technology based on multi-view vision can obtain high spatial resolution and high-precision three-dimensional topographic information of the target area based on overlapping image sequences, which has great potential in obtaining pebble bed topography. When the water body clarity is high, the camera shoots the pebble bed above the water surface to obtain an image sequence. Based on this image sequence, the underwater three-dimensional topography of the bed can be directly reconstructed by the SfM method. However, visible light will be reflected and refracted on the water surface. In particular, the refraction effect makes the underwater topographic imaging higher than the actual elevation. This effect will cause the underwater three-dimensional topography of the pebble bed obtained based on the underwater image sequence to be lower than the actual topography. Moreover, when the above method is used to obtain the underwater three-dimensional topography of the pebble bed, it will also be affected by the bed material and introduce errors. Therefore, when the SfM method is used to directly obtain the underwater three-dimensional topography of the pebble bed, it is necessary to remove the influence of water surface refraction and bed material.
[0004] In summary, in view of the continuous monitoring needs of the underwater three-dimensional topography of the pebble bed and the problems existing in the existing technology, it is necessary to develop a special pebble bed three-dimensional topography reconstruction method based on underwater images. Summary of the invention
[0005] The present disclosure aims to solve at least one of the technical problems existing in the prior art.
[0006] To this end, the present disclosure provides a method for reconstructing a three-dimensional terrain of a pebble bed based on an underwater image, which has high spatial resolution and accuracy, is simple to operate, and has low cost, and includes:
[0007] (1) The length direction along the water surface of the target area is defined as the X-axis, the width direction along the water surface of the target area is defined as the Y-axis, and the Z-axis perpendicular to the XY plane is defined as the Z-axis; a camera is used to obtain an underwater image sequence of the pebble bed surface, and during the shooting process, the focal length of the camera and the spatial step length of the movement along the X-axis and the Y-axis are fixed, and the lens of the camera is oriented perpendicular to the water surface. The underwater image sequence is composed of a plurality of underwater images of the pebble bed surface obtained by shooting the water surface of the target area cross-section by cross-section, and at least two control points can be captured in each underwater image and two adjacent underwater images meet the overlap requirement. The control points are arranged on both sides of the water surface of the target area, including a flat plate with a regular geometric pattern painted on the upper surface and a horizontal slope, and the geometric pattern has a clear center point position, and the center point position is defined as the coordinates of the control point;
[0008] (2) performing underwater terrain modeling on the underwater image sequence of the pebble bed surface based on the motion recovery structure method to obtain a three-dimensional point cloud, performing spatial data registration on the three-dimensional point cloud using control points, obtaining an initial encrypted three-dimensional point cloud based on the registered three-dimensional point cloud, and generating a corresponding digital orthophoto;
[0009] (3) generating a water surface model including the target area based on the digital orthophoto, filtering out the portion of the initial encrypted three-dimensional point cloud located below the water surface model to obtain a three-dimensional point cloud located in the underwater area, and performing refraction correction on the three-dimensional point cloud located in the underwater area to obtain a corrected underwater terrain and an initial water depth;
[0010] (4) The corrected underwater topography is corrected again using the initial water depth, thereby obtaining underwater three-dimensional topographic measurement results of the pebble bed.
[0011] In some embodiments, step (2) specifically includes the following steps:
[0012] Based on the motion recovery structure method, spatial calculation is performed on the underwater image sequence, the camera spatial position and lens orientation corresponding to each image are reconstructed, and a sparse three-dimensional point cloud of the target area is obtained by feature point matching; the center position of each control point appearing in the underwater image sequence is identified and marked by a manual or automatic method, the image coordinates of the control point are obtained, and the sparse three-dimensional point cloud is spatially registered using the correspondence between the real coordinates and the image coordinates of the control point. Based on the registered three-dimensional point cloud, an encryption method is used to obtain an initial encrypted three-dimensional point cloud, and a corresponding digital orthophoto is generated.
[0013] In some embodiments, step (3) specifically includes the following steps:
[0014] In the digital orthophoto, a single point is used to calibrate the water surface boundary points and project them to the initial encrypted three-dimensional point cloud to obtain the spatial coordinates of a series of water surface boundary points, and a Delaunay triangulated mesh is generated based on the water surface boundary points as a water surface model containing the target area; the initial encrypted three-dimensional point cloud is rasterized, and the bed elevation of the grid is taken as the maximum elevation of all point cloud points contained in the grid range to obtain a rasterized initial three-dimensional point cloud; the distance from the rasterized initial three-dimensional point cloud to the water surface model is calculated as the initial water depth; the three-dimensional points with an initial water depth less than 0 in the rasterized initial three-dimensional point cloud are deleted to obtain grid points located in the underwater area; for the camera position corresponding to each image, the actual space range corresponding to the image taken at the camera position is 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 camera photosensitive element, and the grid points falling within the actual space range are considered to be visible to the camera position;
[0015] For each selected 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:
[0016]
[0017] d a =Z w -Z a
[0018]
[0019]
[0020]
[0021] Where j represents a grid point in the underwater area that is 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 , Y cj are the X-axis and Y-axis coordinates of the j-th camera position, respectively, wj is the vertical distance between the jth camera position and the water surface model, X a , Y a , Z a are the X-axis, Y-axis and Z-axis coordinates of a certain grid point, respectively, a is the initial water depth of a certain grid point, d j is the corrected water depth of a grid point calculated based on the j-th camera position, The average corrected water depth calculated for the camera position corresponding to all images containing the grid point in the image range, Z w is the elevation of the water surface model corresponding to the horizontal position of a certain grid point, Z p is the corrected bed surface elevation of a certain grid point, n1 and n2 are the refractive indices of water and air respectively.
[0022] Furthermore, in step (3), when the grid points located in the underwater area obtained after deleting the three-dimensional points with initial water depth less than 0 in the rasterized initial three-dimensional point cloud still include some grid points that are actually located above the water surface model, it is necessary to generate a spatial fitting plane of the water surface boundary points, calculate the distance from the rasterized initial three-dimensional point cloud to the fitting plane, and use this distance to perform a secondary screening of the above-water three-dimensional points, test different screening thresholds until all the grid points located above the water surface model are eliminated, thereby finally obtaining the grid points located in the underwater area.
[0023] Furthermore, 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 screened underwater area:
[0024]
[0025] Z p =Z w -d.
[0026] Furthermore, step (4) specifically includes:
[0027] The bed surface elevation Z of each point cloud grid in the underwater area after refraction correction p The final corrected bed elevation Z is obtained by further correction using the following formula: p ':
[0028] ΔZ=-0.0049d-0.0019
[0029] z p '=z p -Δz
[0030] The X-axis coordinates X of all grid points a , Y-axis direction coordinate Y a And the final corrected bed elevation Z p 'Constitute the underwater three-dimensional topographic measurement results of the pebble bed.
[0031] The beneficial effects of the present disclosure are:
[0032] 1. It can obtain the underwater three-dimensional topography of the pebble bed with high spatial resolution and accuracy; wherein, based on the visible light and image used, the reconstructed underwater three-dimensional topography of the pebble bed has high spatial resolution, which can reach the sub-millimeter level at the highest; the overall error is controlled based on the control point, especially when the coordinates of the control point with higher accuracy 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 point, the error is at the millimeter level). In addition, the present disclosure performs a secondary correction after the refraction correction, and removes the elevation error introduced by the refraction correction and the bed material. Therefore, the above two reasons make the reconstructed underwater three-dimensional topography of the pebble bed have high accuracy, which can reach the millimeter level at the highest;
[0033] 2. It is a non-intrusive measurement, with no interference to the water body and bed surface;
[0034] 3. Easy to operate, no need to calibrate the camera. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a flow chart of the method for reconstructing three-dimensional terrain of a pebble bed provided in an embodiment of the present disclosure.
[0036] Figure 2 (a) to (d) are schematic diagrams of the structure of control points arranged in the reconstruction method provided in an embodiment of the present disclosure.
[0037] Figure 3 It is a digital elevation model diagram of the underwater three-dimensional terrain of the pebble bed surface obtained by the reconstruction method provided in the 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 digital elevation model after refraction correction.
[0038] In the figure, 1 is the control point, 1-1 is the frame, 1-2 is the plate, 1-3 is the ground nail, 1-4 is the shaft, and 1-5 is the support rod. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0040] On the contrary, the present application covers any substitution, modification, equivalent method and scheme made on the essence and scope of the present application as defined by the claims. Further, in order to make the public have a better understanding of the present application, some specific details are described in detail in the detailed description of the present application below. Those skilled in the art can fully understand the present application without the description of these details.
[0041] In the description of the present disclosure, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present disclosure and simplifying the description, rather than indicating or implying that the basis or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present disclosure. In addition, the terms "first" and "second" are used only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present disclosure, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0042] In the description of the present disclosure, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present disclosure can be understood according to specific circumstances.
[0043] In the present disclosure, unless otherwise expressly specified and limited, a first feature being “above” or “below” a second feature may include that the first and second features are in direct contact, or may include that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, a first feature being “above”, “above”, and “above” a second feature includes that the first feature is directly above and obliquely above the second feature, or simply indicates that the first feature is higher in level than the second feature. A first feature being “below”, “below”, and “below” a second feature includes that the first feature is directly below and obliquely below the second feature, or simply indicates that the first feature is lower in level than the second feature.
[0044] See also Figure 1 The method for reconstructing three-dimensional terrain of a pebble bed based on underwater images provided in the embodiment of the present disclosure includes:
[0045] (1) The length direction along the water surface of the target area is defined as the X-axis, the width direction along the water surface of the target area is defined as the Y-axis, and the Z-axis perpendicular to the XY plane is defined as the Z-axis; a camera is used to obtain an underwater image sequence of the pebble bed surface. During the shooting process, the focal length of the camera and the spatial step length of the movement along the X-axis and the Y-axis are fixed. The lens of the camera is oriented substantially perpendicular to the water surface. The underwater image sequence obtained is composed of a plurality of underwater images of the pebble bed surface obtained by shooting the water surface of the target area cross-section by cross-section. At least two control points 1 can be captured in each underwater image, and two adjacent underwater images meet the overlap requirement (generally, the overlap area of two adjacent underwater images in the X-axis and Y-axis directions is required to be not less than a set threshold. It should be noted that the overlap 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 threshold is set to 80%), see Figure 2 The control point 1 is arranged on both sides of the water surface of the target area, including a frame 1-1 fixed on the waterless ground on both sides of the water surface of the target area and a plate 1-2 rotatably connected to the frame 1-1. The slope of the plate 1-2 is kept horizontal. The upper surface of the plate 1-2 is painted with a regular geometric pattern composed of black and white colors, and has a clear center point position, which is defined as the coordinate of the control point 1; the side length of the control point 1 should ensure that the center point position of the control point 1 can be clearly identified in the camera image. Figure 2 In the figure, (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, which is fixed to the outer frame of the control point through the screw segment.
[0046] Furthermore, the control point 1 is a solid rectangular (mostly square) plastic plate with a thickness of 5-10 mm. The side length is determined according to the height of the camera, and the value is selected based on the principle that the center point position of the control point 1 can be clearly identified in the camera image. The plate 1-2 of the control point is connected to one side of the frame 1-1 through the shaft 1-4, and the plate 1-2 is connected to the other side of the frame 1-1 through the support rod 1-5. The frame 1-1 has screw holes for installing ground nails 1-3. The control point 1 is generally installed on the shore, and the ground nails 1-3 are embedded in the bed surface to fix the control point 1. Then, the slope of the plate 1-2 is adjusted to a basic level through the shaft 1-4, so that the camera can shoot clearly from the top.
[0047] It should be noted that when conducting field measurements, you can also use a drone equipped with a camera instead of a camera for shooting. During the shooting process, keep the camera lens perpendicular to the water surface to reduce water surface reflections.
[0048] Furthermore, when arranging control points 1 on the waterless ground around the water surface of the target area, control points 1 should be as close to the water surface as possible, and the spacing between two adjacent control points 1 on the same bank should be relatively uniform. The spacing is related to the height and focal length of the camera. The arrangement principle is that at least 2 control points 1 can be photographed in each camera image, and preferably more than 4 control points 1 can be photographed at the same time. The spacing between two adjacent control points 1 on the same bank is preliminarily determined by the following formula. Regardless of whether the direction of the water flow can be clearly identified in the target area, the spacing between the control points can also be preliminarily selected according to the following standards. It should be noted that after the control points 1 are preliminarily arranged, it is necessary to test whether the aforementioned standard of at least 2 control points 1 can be photographed in each camera image after the camera is installed. If not, the number and spacing of control points 1 need to be adjusted until the requirements are met.
[0049] L G ≤0.5W
[0050] 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).
[0051] After the control point layout 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 point. Take the position of RTK GPS, total station or laser scanner as the origin, define the horizontal direction along the water flow as the positive direction of the X axis, the horizontal direction perpendicular to the left as the positive direction of the Y axis, and the vertical upward as the positive direction of the Z axis; when the water flow direction is not clear, the water surface width direction is the Y axis direction, 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.
[0052] 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. It is generally maintained at 1s to eliminate the impact of the shaking when the camera stops. If the lighting conditions during shooting are good and the shutter speed can be kept above 1 / 500s while maintaining clear imaging, the camera can be kept in constant motion without pausing. The setting of the movement speed U is also based on clear imaging and sharp edges. If uniform motion is used, the camera shutter needs to be set to shoot at fixed intervals. The time interval Δt is calculated and set according to the following formula:
[0053]
[0054] All the images taken by the camera are arranged in chronological order to form an underwater image sequence of the pebble bed, denoted as P = {P1, P2, ..., P l ,…P q}, P lis the lth underwater image of the pebble bed taken by the camera, l∈[1,q]. q is the total number of images,
[0055] (2) Underwater terrain modeling is performed based on the Structure from Motion (SfM) method to obtain a three-dimensional point cloud, and control points are used for spatial data registration.
[0056] Based on the Structure from Motion (SfM) method, the underwater image sequence P is spatially calculated to reconstruct the camera spatial position and lens orientation corresponding to each image, and the sparse three-dimensional point cloud of the target area is obtained by matching feature points. The center position of each control point appearing in the underwater image sequence P is identified and marked by manual or automatic methods to obtain the image coordinates of the control point. The manual method is to visually identify the position of the control point center in each image; the automatic method is to identify the control point mark area in the image by image processing (such as edge detection) or training convolutional neural network (CNN), and then use the set regular geometric shape (such as circle, ellipse, rectangle, etc., depending on the actual shape of the control point pattern) to approximate and calculate the centroid as the image coordinates of the control point center. The sparse three-dimensional point cloud is spatially registered using the correspondence between the real coordinates of the control point and the image coordinates. Based on the registered three-dimensional point cloud, the initial encrypted three-dimensional point cloud is obtained by encryption method (such as multi-view stereo, MVS) and the corresponding digital orthophoto is generated.
[0057] (3) Perform refraction correction on the initial encrypted 3D point cloud to obtain the corrected underwater topography and water depth.
[0058] In the digital orthophoto containing the target area, the water surface boundary points are manually calibrated using a single point to obtain the plane spatial coordinates of a series of water surface boundary points, which are then projected onto the initial encrypted three-dimensional point cloud to obtain the vertical coordinates of the water surface boundary points. Based on the water surface boundary points, a Delaunay triangulated mesh is generated as a water surface model. The initial encrypted three-dimensional point cloud is rasterized, and the grid size is determined by the spatial resolution requirements of the data analysis and should be smaller than the spatial resolution required by the data analysis. The bed elevation of the grid is taken as the maximum elevation of all the point cloud points contained in the grid range to obtain the rasterized initial three-dimensional point cloud. The distance from the rasterized initial three-dimensional point cloud to the water surface model is calculated as the initial water depth. The three-dimensional points with an initial water depth less than 0 in the rasterized initial three-dimensional point cloud can be deleted, that is, the grid points located above the water surface model are deleted. If the grid points selected based on the above screening criteria still include some grid points that are actually located above the water surface model, it is necessary to generate a spatial fitting plane of the water surface boundary points, calculate the distance from the rasterized initial 3D point cloud to the fitting plane, and use this distance to perform secondary screening on the above-water 3D points, test different screening thresholds until all grid points located above the water surface model are eliminated, thereby obtaining grid points located in the underwater area. For each camera position corresponding to an image, the actual spatial range corresponding to the image taken at the camera position is calculated based on the camera orientation angle (pitch, roll and yaw angle) calculated by the SfM method, the focal length of the camera and the size of the camera's photosensitive element. The grid points that fall 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.
[0059] For each screened grid point located in the underwater area, its initial water depth is corrected according to the following formula:
[0060]
[0061] d a =z w -Z a
[0062]
[0063]
[0064]
[0065] Where j represents a grid point in the underwater area that is 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 , Y cj are the X-axis and Y-axis coordinates of the j-th camera position, respectively, wj is the vertical distance between the jth camera position and the water surface model, Xa , Y a , Z a are the X-axis, Y-axis and Z-axis coordinates of a certain grid point, respectively, a is the initial water depth of a certain grid point, d j is the corrected water depth of a grid point calculated based on the j-th camera position, The average corrected water depth calculated for the camera position corresponding to all images containing the grid point in the image range, Z w is the elevation of the water surface model corresponding to the horizontal position of a certain grid point, Z p is the corrected bed surface elevation of a certain grid point, n1 and n2 are the refractive indices of water and air respectively.
[0066] When the measurement accuracy requirement is low, or the focal plane of the camera can be guaranteed to be 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 screened underwater area:
[0067]
[0068] z p =z w -d
[0069] The embodiment of the present disclosure eliminates the influence of the refraction of visible light passing through the water surface on the three-dimensional reconstruction result based on SfM through step (3).
[0070] (4) The corrected underwater topography is corrected again using the initial water depth to obtain the underwater three-dimensional topographic measurement results of the pebble bed.
[0071] The bed surface elevation Z of each point cloud grid in the underwater area after refraction correction p It needs to be further corrected by the following formula (the length unit is m) to obtain the final corrected bed elevation Z p ':
[0072] ΔZ=-0.0049d-0.0019
[0073] Z p '=Z p -ΔZ
[0074] The X-axis coordinates X of all grid points a , Y-axis direction coordinate Y a And the final corrected bed elevation Z p 'Constitute the underwater three-dimensional topographic measurement results of the pebble bed.
[0075] The disclosed embodiment further eliminates the error in bed elevation after refraction correction through step (4), which is related to the refraction correction itself and the bed material. This error has a linear relationship with the water depth and can therefore be corrected by the provided linear formula.
[0076] In one embodiment of the method for reconstructing the three-dimensional terrain of a pebble bed disclosed in the present invention, the three-dimensional terrain of the pebble bed is reconstructed based on the underwater image of an indoor water tank. The particle size range of the pebbles that make up the bed is 9mm-50mm, and the median particle size is about 15mm. The width of the bed is 2.2m, and the measured length along the way 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, and the size of the photosensitive element is 22.3×14.9mm 2 , photo resolution is 6000×4000pix 2 . Four control points are arranged in the measurement area, with two control points on each bank. The control points are made of plastic plates with a side length of 10 cm and are located on the bank close to the water surface. The distance between the two control points on the same bank along the water flow direction (X-axis direction) is 2m. The real coordinates of the control points are measured using a total station with an accuracy of 3mm. This embodiment is used to illustrate the processing flow of the underwater image of the pebble bed.
[0077] The specific process is as follows:
[0078] 1. Turn on the water tank circulation system and set a constant inflow flow of 40L / s. After the flow is stable, start measuring. The camera moves horizontally and vertically with a spatial interval of 0.5m, and it is a stepping motion, stopping for 1s between two adjacent steps. During the shooting process, the aperture is set to 4.0, the shutter is higher than 1 / 80s, ISO = 1600~2000, and a total of 101 images are collected for the target area.
[0079] 2. Use the SfM method to reconstruct the obtained images in 3D to obtain a sparse 3D point cloud. Manually mark the center position of the control point in each image as the image coordinates of the control point. Use the correspondence between the real coordinates of the control point and the image coordinates to perform spatial registration on the sparse 3D point cloud. Based on the registered 3D point cloud, use the MVS method to encrypt and calculate to obtain the initial encrypted 3D point cloud. See Figure 3 (a) and generate the corresponding digital orthophoto with a spatial resolution of 0.65 mm / pix.
[0080] 3. 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 triangulated mesh based on the water surface boundary points as a water surface model. The initial encrypted three-dimensional point cloud is rasterized at 0.005m. The bed elevation of the grid is taken as the maximum elevation of all point cloud points contained in the grid range to obtain the rasterized initial three-dimensional point cloud, and its distance to the water surface is calculated as the initial water depth. According to the initial water depth less than 0, the grid points above the water surface model are deleted. Since there are problems with the calculation distance of the triangular mesh of the water surface model boundary, a spatial fitting plane of the water surface boundary points is generated, and different distance thresholds are tested for secondary screening until all grid points above the water surface are deleted, and finally the grid points located in the underwater area are obtained. At this time, the data of the grid point contains the grid point coordinates X a , Y a , Z a , water surface elevation Z w and initial water depth d a .
[0081] 4. Export the grid points to csv format, export the camera position (3D coordinates and three angles representing the orientation) data from the SfM method, and prepare the camera's own photosensitive element data. Based on the above three data, perform refraction correction on the underwater grid points to obtain the corrected water depth of each grid point. and the corrected bed elevation Z p Finally, according to the empirical formula, the bed surface elevation Z p After further correction, the final corrected bed elevation Z is obtained. p ', generate underwater 3D terrain, see Figure 3 Middle (b).
[0082] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0083] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the claims and their equivalents.
Claims
1. A method for reconstructing 3D topography of pebble beds based on underwater images. It is characterized in that include: (1) The length direction along the water surface of the target area is defined as the X-axis, the width direction along the water surface of the target area is defined as the Y-axis, and the Z-axis perpendicular to the XY plane is defined as the Z-axis; a camera is used to obtain an underwater image sequence of the pebble bed surface, and during the shooting process, the focal length of the camera and the spatial step length of the movement along the X-axis and the Y-axis are fixed, and the lens of the camera is oriented perpendicular to the water surface. The underwater image sequence is composed of a plurality of underwater images of the pebble bed surface obtained by shooting the water surface of the target area cross-section by cross-section, and at least two control points can be captured in each underwater image and two adjacent underwater images meet the overlap requirement. The control points are arranged on both sides of the water surface of the target area, including a flat plate with a regular geometric pattern painted on the upper surface and a horizontal slope, and the geometric pattern has a clear center point position, and the center point position is defined as the coordinates of the control point; (2) performing underwater terrain modeling on the underwater image sequence of the pebble bed surface based on the motion recovery structure method to obtain a three-dimensional point cloud, performing spatial data registration on the three-dimensional point cloud using control points, obtaining an initial encrypted three-dimensional point cloud based on the registered three-dimensional point cloud, and generating a corresponding digital orthophoto; (3) generating a water surface model including the target area based on the digital orthophoto, filtering out the portion of the initial encrypted three-dimensional point cloud located below the water surface model to obtain a three-dimensional point cloud located in the underwater area, and performing refraction correction on the three-dimensional point cloud located in the underwater area to obtain a corrected underwater terrain and an initial water depth; (4) using the initial water depth to correct the corrected underwater topography again, thereby obtaining an underwater three-dimensional topographic measurement result of the pebble bed; Step (3) specifically includes the following steps: In the digital orthophoto, a single point is used to calibrate the water surface boundary points and project them to the initial encrypted three-dimensional point cloud to obtain the spatial coordinates of a series of water surface boundary points, and a Delaunay triangulated mesh is generated based on the water surface boundary points as a water surface model containing the target area; the initial encrypted three-dimensional point cloud is rasterized, and the bed elevation of the grid is taken as the maximum elevation of all point cloud points contained in the grid range to obtain a rasterized initial three-dimensional point cloud; the distance from the rasterized initial three-dimensional point cloud to the water surface model is calculated as the initial water depth; the three-dimensional points with an initial water depth less than 0 in the rasterized initial three-dimensional point cloud are deleted to obtain grid points located in the underwater area; for the camera position corresponding to each image, the actual space range corresponding to the image taken at the camera position is 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 camera photosensitive element, and the grid points falling within the actual space range are considered to be visible to the camera position; For each selected 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: Where j represents a grid point in the underwater area that is 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 , Y cj are the X-axis and Y-axis coordinates of the j-th camera position, respectively, wj is the vertical distance between the jth camera position and the water surface model, X a , Y a , Z a are the X-axis, Y-axis and Z-axis coordinates of a certain grid point, respectively, a is the initial water depth of a certain grid point, d j is the corrected water depth of a grid point calculated based on the j-th camera position, The average corrected water depth calculated for the camera position corresponding to all images containing the grid point in the image range, Z w is the elevation of the water surface model corresponding to the horizontal position of a certain grid point, Z p is the corrected bed elevation of a certain grid point, n 1 , n 2 are the refractive indices of water and air, respectively.
2. The method for reconstructing the three-dimensional topography of a pebble bed according to claim 1, It is characterized in that Step (2) specifically includes the following steps: Based on the motion recovery structure method, spatial calculation is performed on the underwater image sequence, the camera spatial position and lens orientation corresponding to each image are reconstructed, and a sparse three-dimensional point cloud of the target area is obtained by feature point matching; the center position of each control point appearing in the underwater image sequence is identified and marked by a manual or automatic method, the image coordinates of the control point are obtained, and the sparse three-dimensional point cloud is spatially registered using the correspondence between the real coordinates and the image coordinates of the control point. Based on the registered three-dimensional point cloud, an encryption method is used to obtain an initial encrypted three-dimensional point cloud, and a corresponding digital orthophoto is generated.
3. The method for reconstructing three-dimensional topography of a pebble bed according to claim 1, It is characterized in that In step (3), when the grid points located in the underwater area obtained after deleting the three-dimensional points with initial water depth less than 0 in the rasterized initial three-dimensional point cloud still include some grid points that are actually located above the water surface model, it is necessary to generate a spatial fitting plane of the water surface boundary points, calculate the distance from the rasterized initial three-dimensional point cloud to the fitting plane, and use this distance to perform a secondary screening of the above-water three-dimensional points, and test different screening thresholds until all the grid points located above the water surface model are eliminated, thereby finally obtaining the grid points located in the underwater area.
4. The method for reconstructing three-dimensional topography of a pebble bed according to claim 1, It is 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 calculate the initial water depth of each grid point in the screened underwater area: Z p =Z w -d。 5. The method for reconstructing three-dimensional topography of a pebble bed according to claim 1, 3 or 4, It is characterized in that Step (4) specifically includes: The bed surface elevation Z of each point cloud grid in the underwater area after refraction correction p The final corrected bed elevation Z is obtained by further correction using the following formula: p ': ΔZ=-0.0049d-0.0019 With p '=Z p -ΔZ The X-axis coordinates X of all grid points a , Y-axis coordinate Y a And the final corrected bed elevation Z p 'Constitute the underwater three-dimensional topographic measurement results of the pebble bed.
