A volumetric space subtractive tree point cloud reconstruction method based on multi-view images

Through the volume space reduction method of multi-view images, combined with interactive marking and cutting buffer technology, the problem of low density and missing structure in tree 3D model reconstruction is solved, and high-density and accurate point clouds in complex environments are achieved. reconstruction.

CN114494600BActive Publication Date: 2024-10-08NORTHWEST A & F UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210108374.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-28
Publication Date
2024-10-08
Estimated Expiration
2042-01-28

AI Technical Summary

Technical Problem

In the existing technology, it is difficult to reconstruct three-dimensional tree models to achieve high-density and complete point cloud reconstruction when the canopy is dense and the tree texture features are not obvious. In particular, methods based on multi-view images have the problems of low reconstruction density and missing structure. .

Method used

A volume space reduction tree point cloud reconstruction method based on multi-view images is used to interactively mark the background and target areas, voxelize the space, back-project and cut the point cloud, and use the cutting buffer to reduce miscuts caused by camera parameter errors. , ensuring the accuracy and completeness of the point cloud.

Benefits of technology

It improves the density and accuracy of point cloud reconstruction and can completely reconstruct tree structures in complex environments, especially trees with dense crowns and unremarkable texture features. It is more robust than traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114494600B_ABST
    Figure CN114494600B_ABST
Patent Text Reader

Abstract

The present invention discloses a volume space reduction type tree point cloud reconstruction method based on multi-view images, collects a set of images, marks each image, interactively marks the background area and target tree area of ​​the tree and stores them as mask images, the mask set is recorded as, and initializes the view cone of each image; then selects two images, obtains the bounding box of the target tree by solving the common area of ​​the two camera view cones, and voxelizes the space in the bounding box, the position of the voxel center is the position of the point cloud, and the point cloud set of the bounding box is obtained after voxelization, and then the point cloud in the bounding box is back-projected into each mask image, and the point cloud back-projected to the background area is cut and removed, and the remaining point cloud is the target tree point cloud. The present invention solves the problems that the laser radar scanning equipment is expensive and inconvenient to carry, and the traditional point cloud reconstruction method based on multi-view images has low density of reconstructed point clouds and missing structures.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of point cloud reconstruction, and in particular to a volume space reduction type tree point cloud reconstruction method based on multi-view images. Background Art

[0002] Trees are ubiquitous in nature. The reconstruction of 3D models of real trees has wide application and research value in VR, garden design, game animation industry, digital agriculture and other fields. Its embedding can greatly improve the realism of virtual scenes. In plant and agricultural research, it can be applied to plant measurement, mechanized harvesting, drone spraying, virtual pruning, etc. Due to the high complexity of tree structure, reconstructing 3D models of real trees has always been a challenging problem in computer graphics and virtual plant research.

[0003] When obtaining point cloud data of tree three-dimensional models, high-precision lidar scanning equipment can be used to obtain high-precision and high-density tree point clouds, but the equipment is expensive and not easy to carry. Although the point cloud reconstruction method based on multi-view images is low-cost and easy to carry, the traditional method of recovering structure from motion to reconstruct tree point clouds has a low density and many structural omissions when the tree crown is dense and the tree texture features are not obvious. Summary of the invention

[0004] The purpose of the present invention is to overcome the problems existing in the above-mentioned prior art and to provide a volume space reduction type tree point cloud reconstruction method based on multi-view images to solve the problems existing in the above-mentioned background technology.

[0005] To this end, the present invention provides a volume space reduction type tree point cloud reconstruction method based on multi-view images, comprising the following steps:

[0006] 1. Input data preparation

[0007] Collect N images through the camera, and the set of N images is E;

[0008] By interactively marking the background area and the target tree area of ​​each image in the image set E and storing them as mask images, the mask set is denoted as M;

[0009] 2. Reconstruction of tree point cloud

[0010] Select two images from the image set E to initialize the view frustum and obtain the tree bounding box;

[0011] The space within the bounding box is voxelized, and the position of the voxel center is the position of the point cloud of the bounding box;

[0012] The voxel set of the voxelized bounding box is used as a point cloud set, and the point cloud set in the bounding box is back-projected into each mask image;

[0013] The point cloud back-projected to the background area is cut off and removed. When cutting the point cloud, the one-time coloring principle is used to extract the color. The remaining point cloud is the target tree point cloud.

[0014] Furthermore, when two images are selected from the image set E to initialize the view frustum to obtain the tree bounding box, the following steps are included:

[0015] Each image in the image set E is converted according to the camera parameters (R, T, f, P cam ) is initialized as a frustum, where R represents the rotation matrix, T represents the translation matrix, f represents the focal length, and P cam Indicates the camera position;

[0016] Initialize the intersection area of ​​the two view frustums as the tree bounding box.

[0017] Furthermore, the angle between the two images corresponding to the two viewing cones in the intersection area is 90°.

[0018] Furthermore, when the point cloud set G in the bounding box is back-projected into each mask image, the following steps are included:

[0019] Point P in the point cloud set G G The world coordinate P w Convert to the camera coordinate system, and then to the image coordinate system;

[0020] Determine the point P in the point cloud set G G Whether the back-projection point is on the mask background. If so, delete the point directly; otherwise, keep it.

[0021] Assume that the rotation matrix of the image of the current back-projection point is R, the translation matrix is ​​T, the focal length is f, and P w The coordinate in the camera coordinate system is P c (x c ,y c , z c ),have

[0022] P c =P w ×R+T

[0023] Let the pixel coordinate in the image coordinate system be P M (x M ,y M ),have

[0024]

[0025] Among them, (C x , C y ) are the center coordinates of the mask image.

[0026] Furthermore, when the point cloud back-projected to the background area is cut and removed, the following steps are included:

[0027] Suppose the point cloud set G is back-projected back to the point cloud set of the background area in the i-th image mask as D i ;

[0028] Cut D from G i , then the remaining points are the target tree point cloud S,

[0029]

[0030] Furthermore, when point P G When back-projecting to the mask, traverse the corresponding cutting buffer. If there are tree pixels in the cutting buffer of all masks, the point is determined to be a tree point cloud.

[0031] The cutting buffer is composed of the image coordinates P of the point M Combined with w calculation, w is a constant, and the range of the cutting buffer is determined by the maximum point (x up ,y up ) and the minimum point (x down ,y down )Sure.

[0032] The present invention provides a volume space reduction type tree point cloud reconstruction method based on multi-view images, which has the following beneficial effects:

[0033] Compared with mature incremental point cloud reconstruction algorithms, the present invention is more robust and has higher reconstruction density. By interactively marking the difficult-to-separate background and tree areas to form an image mask, the structure of the target tree is accurately extracted; a cutting buffer is proposed for the subtractive point cloud reconstruction method to reduce the problem of miscutting caused by camera parameter errors, and the tree structure in the visible and invisible areas can be completely reconstructed. In complex natural environments, it still has significant effects and functions for the reconstruction of trees with dense crowns and insignificant tree texture features;

[0034] The present invention uses an interactive background target tree marking method. The automated segmentation method has a high probability of false segmentation in the case of dense tree crowns, while human-computer interaction can accurately separate the target trees and the background, and mark the background area as the background color, so as to accurately cut the point cloud in the bounding box that is back-projected to the image background area. This method ensures that the trees can be accurately separated in the case of dense tree crowns, and improves the accuracy of point cloud cutting;

[0035] The present invention is based on a voxel-based subtractive point cloud reconstruction algorithm and proposes to construct a subtractive cutting buffer for three-dimensional point cloud reconstruction. The cutting buffer is an original technology proposed for the subtractive three-dimensional reconstruction method, which is used to reduce the problem of mis-cut point clouds caused by camera parameter errors. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a schematic diagram of the overall process of the present invention;

[0037] Figure 2 A schematic diagram of a camera collecting images around a tree;

[0038] Figure 3 An example of a labeling method for an image;

[0039] Figure 4 It is a flowchart for the subtractive point cloud reconstruction;

[0040] Figure 5 is an example of a viewing cone;

[0041] Figure 6 Initialize the effect diagram for the bounding box;

[0042] Figure 7 Schematic diagram of cutting for point cloud back projection;

[0043] Figure 8 For cutting buffer example;

[0044] Fig. 9 The reconstruction effect of cherry blossom trees under different buffer sizes;

[0045] Fig.10 The principle of one-time coloring;

[0046] Fig.11 Compare the reconstruction results of the three methods;

[0047] Fig.12 It is a simple mask collection;

[0048] Fig.13 Take screenshots of the software rebuild process;

[0049] Fig.14 Example of reconstruction results for the software;

[0050] Fig.15 The reconstruction result of the cherry blossom tree with a simple mask. DETAILED DESCRIPTION

[0051] A specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings, but it should be understood that the protection scope of the present invention is not limited by the specific implementation.

[0052] Specifically, Figure 1-15 As shown, the embodiment of the present invention provides a volume space reduction type tree point cloud reconstruction method based on multi-view images, which includes two main steps: the first step is input data preparation, collecting N image sets E, marking each image, interactively marking the background area and target tree area of ​​the tree and storing them as a mask image (mask), recording the mask set as M, and obtaining the camera parameters (R, T, f, P) by the SFM method. cam )(where R is the rotation matrix, T is the translation matrix, f is the focal length, P cam is the camera position), and the view cone of each image is initialized; the second step is to reconstruct the tree point cloud. First, two images are selected, and the bounding box of the target tree is obtained by solving the common area of ​​the two camera view cones, and the space in the bounding box is voxelized. The position of the voxel center is the position of the point cloud. After voxelization, the point cloud set of the bounding box is obtained, and then the point cloud in the bounding box is back-projected into each mask image, and the point cloud back-projected to the background area is cut and removed. When cutting the point cloud, the one-time coloring principle is used for coloring, and the remaining point cloud is the target tree point cloud. The present invention aims at the problems that the laser radar scanning equipment is expensive and not easy to carry, and the traditional point cloud reconstruction method based on multi-view images has low density of reconstructed point clouds and missing structures. The present invention proposes a reduction-based tree point cloud reconstruction algorithm based on multiple views. Figure 1 Shown is the complete workflow of this reconstruction method.

[0053] The present invention specifically comprises the following steps:

[0054] 1. Input data preparation

[0055] 1. Collect N images through the camera, and the set of N images is E.

[0056] The data collection phase will collect images around trees, such as Figure 2 As shown in the figure, the circle in the middle is the target tree position, and the small circles around it are different shooting positions. The number of collected images is N. When collecting images, try to keep the camera position consistent with the distance from the tree. The interval angle of the shooting positions is approximately consistent and can be roughly estimated.

[0057] 2 Interactively mark the background area and target tree area of ​​each tree in the image set E and store them as mask images. The mask set is denoted as M.

[0058] After collecting the image, it is necessary to obtain the camera parameters of the image set obtained by the traditional SFM method (the traditional method will not be repeated here), and interactively mark the image. In this method, the background area is marked as white, such as Figure 3(a) and (b) are example tree images and their corresponding masks, marking the target tree and background area. Trees are marked with different levels of detail according to the visibility of different branches. First, for deciduous trees in winter, such trees have only a few leaves and only a few branches are in the invisible area. For such trees, the main purpose should be to highlight the branch structure. For example, when marking winter ginkgo trees ( Figure 3 (c)) image, its corresponding mask ( Figure 3 (d) Only the branch structure is retained. To highlight the branch structure, the leaves are also marked as the background. Second, for evergreen trees and non-winter deciduous trees, these trees have dense crowns. It is difficult and time-consuming to perform detailed interactive processing on such trees. Only the background and the rough position of the trees are marked. For example, the crown density of pine trees is high ( Figure 3 (e)), corresponding to the mask ( Figure 3 (f)) Only the larger background areas outside and inside the pine tree are roughly marked. Figure 3 From left to right in the figure are (a) example tree image, (b) example tree image mask, (c) ginkgo tree image, (d) ginkgo tree image mask, (e) pine tree image, and (f) pine tree image mask.

[0059] 2. Reconstruction of tree point cloud (reduced point cloud reconstruction)

[0060] This section will introduce the subtractive point cloud reconstruction using the mask set and camera parameters after obtaining them. First, select two images to initialize the view frustum, and then voxelize the tree bounding box (voxelization refers to cutting the entire cubic space into many cubes of equal size, and this cube is the voxel. The method of the present invention uses the center position of the voxel as the tree point position, and obtains the point cloud position of each tree. The point cloud is then back-projected to the mask for iterative judgment, and the point cloud back-projected to the mask background area is cut and removed. The remaining point cloud is the target tree point cloud. The method flow chart is shown below. Figure 4 shown.

[0061] 1 Select two images from the image set E to initialize the view frustum and obtain the tree bounding box.

[0062] Figure 5 This is an example of a viewing cone, where point O is the camera position, point O' is the center point of the image, f is the focal length, the light green plane is the physical imaging plane, and the dark green range on it is the image range. The viewing cone is the unclosed area formed by the purple dotted rays from point O to the four corners of the image.

[0063] Suppose there are N images, each image will be based on the camera parameters (R, T, f, P cam ) is initialized as Figure 5The viewing cone, where R represents the rotation matrix, T represents the translation matrix, f represents the focal length, P cam Indicates the camera position (should be Figure 5 O point in the middle). G is the point cloud set, (C x ,C y ) is the image center coordinate (that is, half of the image resolution, for example, if the original resolution is 3000x4000, the image center coordinate is (1500,2000)), S is the point cloud set of the target tree, P G (x G ,y G ,z G ) is the coordinate of the point in the world coordinate system, P M (x M ,y M ) is the pixel coordinate of the image. (The viewing cone here is composed of the camera position P cam , and the extendable area formed by the four corners of the image, that is, the unclosed area surrounded by the four purple dot rays), where f is the focal length.

[0064] 2. Voxelize the space within the bounding box, and the position of the voxel center is the position of the point cloud of the bounding box.

[0065] like Figure 6 As shown in the left figure, Figure 6 The left image in the middle is an example of an initialized bird's-eye view, with the light green circle representing the location of the tree; the right image is the actual initialization effect, with the red line representing the cone ray, the light purple frame representing the bounding box, the orange point representing the intersection point, and the blue point representing the camera position. Since each image contains a complete tree structure, the intersection area of ​​the two cones will also contain the complete structure of the tree, and the intersection area is initialized as the bounding box of the tree. To ensure that the initialized bounding box is the smallest, first select two images with an angle of about 90°, and assume that the cones corresponding to the two images are cone 1 and cone 2. Calculate the intersection point formed by the outer edge of cone 1 and the side of cone 2, and the intersection point formed by the outer edge of cone 2 and the side of cone 1, and calculate the bounding box of the tree based on these intersection points. In order to avoid the intersection points that are too far away from each other making the bounding box volume too large, which will increase the amount of calculation for cutting the point cloud, the line-surface limiting angle θ is added to constrain the intersection points. When the angle formed by the outer edge of the view cone and the side of another view cone is less than θ, this intersection point is far from the position of the real tree and is judged as a redundant intersection point. Such intersection points will not participate in the calculation of the bounding box. After a lot of experiments, it is generally found that when θ=10, such redundant intersection points can be excluded. Then traverse the intersection points that meet the θ limit, and find the maximum and minimum points in the x, y, and z directions, respectively, which are recorded as P min (x min ,y min ,z min ) and P max (x max ,ymax ,z max ). Use P min and P max Initialize the tree bounding box area as two points on the diagonal of the cube, denoted as B(P min ,P max ). Then, the bounding box is voxelized (voxelization means dividing the bounding box B into cubes of equal size, and the specific position of the cube is represented by the coordinates of the center of the cube), and a voxel set G is obtained, G satisfies {G|PG(x,y,z)∈B}. The voxel center coordinates are used as point cloud coordinates, and the voxel set is the point cloud set.

[0066] As can be seen from the above, when the present invention selects two images from the image set E to initialize the view frustum to obtain the tree bounding box, each image in the image set E is initialized according to the camera parameters (R, T, f, P cam ) is initialized as a frustum, where R represents the rotation matrix, T represents the translation matrix, f represents the focal length, and P cam represents the camera position; the intersection area of ​​the two view cones is initialized as the tree bounding box. The angle between the two images corresponding to the two view cones in the intersection area is 90°.

[0067] 3. The voxel set of the voxelized bounding box is used as a point cloud set, and the point cloud set in the bounding box is back-projected into each mask image.

[0068] After obtaining the point cloud set G, perform a reduction-based reconstruction. Back-project the point into each image mask. If the point belongs to the background area in any mask, it will be cut out. After traversing all the points, the remaining points are the target tree point cloud. Figure 7 As shown, the red part is the outer boundary of the target tree area, the yellow part is the inner boundary, and the outer part of the red boundary and the inner part of the yellow boundary belong to the background area.

[0069] Figure 7 This is the principle diagram of point cloud back-projection cutting. The red boundary is the outer boundary of the tree, and the yellow boundary is the inner boundary of the tree. The outside of the red boundary and the inside of the yellow boundary belong to the background and are deleted when the point cloud in the bounding box is back-projected to the background area.

[0070] When the present invention back-projects the point cloud set G in the bounding box into each mask image, the method includes the following steps:

[0071] (1) Point P in the point cloud set G G The world coordinate P w Convert to the camera coordinate system, and then to the image coordinate system;

[0072] (2) Determine the point P in the point cloud set G GWhether the back-projection point is on the mask background. If so, delete the point directly; otherwise, keep it.

[0073] (3) Let the rotation matrix of the image at the current back-projection point be R, the translation matrix be T, the focal length be f, and P w The coordinate in the camera coordinate system is P c (x c ,y c , z c ),have

[0074] P c =P w ×R+T

[0075] (4) Let the pixel coordinate in the image coordinate system be P M (x M ,y M ),have

[0076]

[0077] Among them, (C x , C y ) are the center coordinates of the mask image.

[0078] 4. Cut and remove the point cloud that is back-projected to the background area. When cutting the point cloud, the one-time coloring principle is used to extract the color. The remaining point cloud is the target tree point cloud.

[0079] When the present invention cuts and removes the point cloud back-projected to the background area, the method includes the following steps:

[0080] (1) Let the point cloud set G back projected back to the point cloud set of the background area in the i-th image mask be D i ;

[0081] (2) Remove D from G i , then the remaining points are the target tree point cloud S,

[0082]

[0083] During the cutting process, due to the error in camera parameters, the subtractive reconstruction method has the problem of miscutting, which will cause the loss of tree edge structure. Therefore, the concept of cutting buffer is proposed for the subtractive point cloud reconstruction method. The cutting buffer is defined as the back-projected pixel ( Figure 8 The extended area around the middle green area ( Figure 8 The buffer size is represented by w, such as Figure 8The figure shows the principle diagram of the cutting buffer. When a point is back-projected to the mask, the corresponding pixels and cutting buffer are traversed. If there are tree pixels in the cutting buffer of all masks, the point is determined to be a tree point cloud. Cutting buffer application time After the image coordinates of the back-projected point of the three-dimensional point are calculated, if this coordinate point is a background point, it is not deleted directly at this time, but it is necessary to determine whether there is a tree point in its cutting buffer. If so, this point is also regarded as a tree point, otherwise it is a background point and is directly deleted. First, the image coordinates P of this point are used M Combined with w, calculate its cutting buffer range (the cutting buffer range is determined by the maximum point (x up ,y up ) and the minimum point (x down ,y down ) confirm), then traverse this area, if there is a tree pixel in this area, then this point is considered to be a tree point in this image, and true is returned, otherwise, false is returned. Figure 8 In the figure, the left picture shows the situation without a buffer zone, the green part is the detection area, and the blue shadow part is the target area; the right picture shows the situation with a buffer zone, the orange area is the added cutting buffer zone, and the red area indicates that the buffer zone detects the target area.

[0084] That is, when point P G When back-projecting to the mask, the corresponding cutting buffer is traversed. If there are tree pixels in the cutting buffer of all masks, the point is determined to be a tree point cloud; the cutting buffer is composed of the image coordinates P of the point M Combined with w calculation, w is a constant, and the range of the cutting buffer is determined by the maximum point (x up ,y up ) and the minimum point (x down ,y down )Sure.

[0085] The present invention uses a collection of cherry blossom tree images to experiment and illustrate the effect of cutting buffer. Fig. 9 As shown in the figure, from top to bottom, the point cloud reconstruction effects and details of the cherry tree are w=0, w=4, and w=8. When w=0, the point cloud of the top and side structures of the cherry tree are sparse and incomplete. When w=4, the outline of the top structure is clearer and the side structure is more continuous. When w=8, the point cloud of the top reconstruction result is more coherent and the side structure is complete. Experiments have shown that adding a cutting buffer to the reduced point cloud reconstruction can effectively preserve the tree structure.

[0086] The present invention uses a mask to assign color to the point cloud, which is performed synchronously with the point cloud cutting. Each point in G has corresponding pixels on multiple images. If the color assignment uses the fusion value of all corresponding pixels, the final color assignment result will be chaotic. Therefore, the tree point cloud color assignment of the present invention adopts a one-time rule, that is, a point only obtains color from the most recent image. The color assignment rule is as follows: Let the jth three-dimensional point be P j , calculate P j The distance d to the kth camera position kj Finally, the image corresponding to the camera closest to the target is taken, that is, {k|min(d kj )}, and then P j Back-projected onto the kth image, the color value of the corresponding pixel is P j Color value. Fig.10 The figure shows the principle of one-time color assignment. The green irregular circle indicates the range of trees. The black dot in the left figure is the current point to be judged. The circles of different colors around it represent the positions of each captured image. The red dotted arrow indicates the calculated distance from the point to be judged to the positions of each captured image. The right figure shows the image corresponding to the nearest shooting position selected after traversal. The red solid arrow indicates that the pixel color corresponding to the point to be judged in the image is assigned to the point to be judged 0.

[0087] 3. Reconstruction Results

[0088] The point cloud reconstruction was compared between the mature incremental algorithm software VisualSFM, COLMAP and the algorithm of the present invention. VisualSFM and COLMAP used the same image set (with the same resolution of 3000×4000) for the experiment. The method of the present invention only used part of the images in the image set for point cloud reconstruction. Table 1 shows the number of images in the experiments of the three algorithms, where N vis The number of images used by VisualSFM, N col is the number of images used by COLMAP, N m is the number of images used by the subtractive reconstruction algorithm of the present invention. Table 2 shows the setting parameters of the method of the present invention, r represents the multiple relationship between the mask resolution and the original image resolution (the original image resolution is 3000×4000, r=0.5 represents the mask resolution is 1500×2000, and so on), s represents the voxel size, θ is the limited angle, and w represents the cutting buffer size.

[0089] Table 1 shows the number of images in the reconstruction experiment.

[0090]

[0091]

[0092] Table 2 shows the parameter settings of the reduction method

[0093]

[0094] Fig.11 Comparison of the reconstruction results of the three methods. The tree species from top to bottom are horse chestnut, pine, ginkgo and cherry. Each row of images from left to right is a comparison of the captured image, VisualSFM, COLMAP and the point cloud generated by the method in this paper.

[0095] The angle test of the input image. Fig.11 The image shooting angle of the medium pine tree is about 150°. Under this condition, both VisualSFM and COLMAP cannot reconstruct the side of the tree without image. However, the algorithm of the present invention is not limited by the shooting angle. The reconstruction effect of the algorithm of the present invention shows that the algorithm of the present invention can still reconstruct the invisible area structure outside the 150° image range of the pine tree.

[0096] Reconstruction detail test. Fig.11 The mask of the ginkgo tree only retains the branches, so the reconstructed point cloud of the reduction algorithm does not include the leaf structure. In this set of experimental results, VisualSFM can reconstruct the clear branches in the middle of the tree, but fails to reconstruct the branches in the lower and middle parts of the tree and the main trunk in the upper and middle parts. COLMAP reconstructs the point cloud of the obvious branches and a few leaves in the lower and middle parts of the tree, but fails to reconstruct the upper area with dense branches. The reconstruction effects of the two incremental methods are not good in areas with dense branches. Compared with these two methods, the reconstruction results of the algorithm of the present invention are complete and high in density. Fig.11 In the cherry tree point cloud reconstruction test case, the branch structure is seriously missing in the reconstruction results of VisualSFM and COLMAP, and the leaf structure reconstruction fails. However, the algorithm of the present invention can even preserve the complete leaf structure after adjusting the appropriate cutting buffer parameter w. The above experiments prove the robustness of the algorithm of the present invention.

[0097] The effect of mask thickness on experimental results. The more detailed the mask is, the more accurate the tree structure is. However, it takes a lot of time to mark the mask set in detail, so this experiment only uses a simple marked image set for reconstruction. The mask only marks the obvious outer tree contours and internal hollow contours, and the small gaps between branches and leaves are not marked. The experimental object is a cherry tree, and the reconstruction parameter settings are shown in Table 3. Fig.12 Shown is a simple mask set, with the red outline being the background area boundary. Fig.14 Shown is an example of software reconstruction results. Fig.15 The software reconstruction results are displayed. Fig.15 The results of the simple mask reconstruction are shown at different angles, proving that the simple mask can completely and quickly reconstruct the structure of the cherry tree in the algorithm of the present invention while expressing the structural characteristics of the cherry tree.

[0098] Table 3 shows the reconstruction parameters of the simple mask point cloud of cherry blossoms

[0099]

[0100]

[0101] Fig.12 is a simple mask set. The red circle indicates the boundary of image segmentation. Fig.13 This is a screenshot of the software reconstruction process. The left picture shows the initialized bounding box and two frustums, and the right picture shows the image corresponding to the current camera. Fig.14 This is an example of the software reconstruction result. The left picture is the reconstructed tree point cloud, and the right picture is the image corresponding to the current camera. Fig.15 The reconstruction result of the cherry blossom tree with a simple mask.

[0102] The present invention proposes a voxel-based subtractive tree point cloud reconstruction algorithm, which verifies that the algorithm of the present invention is more robust and has higher reconstruction density than the mature incremental point cloud reconstruction algorithm. By interactively marking the difficult-to-separate background and tree areas to form an image mask, the structure of the target tree is accurately extracted; a cutting buffer is proposed for the subtractive point cloud reconstruction method to reduce the problem of miscutting caused by camera parameter errors, and the tree structure in the visible and invisible areas can be completely reconstructed. In complex natural environments, it still has a significant effect on the reconstruction of trees with dense crowns and insignificant tree texture features.

[0103] The above disclosures are only several specific embodiments of the present invention. However, the embodiments of the present invention are not limited thereto. Any changes that can be conceived by those skilled in the art should fall within the protection scope of the present invention.

Claims

1. A volume space reduction-based tree point cloud reconstruction method based on multi-view images, characterized in that: The steps include:

1. Input data preparation Collect N images through the camera, and the set of N images is E; By interactively marking the background area and the target tree area of ​​each image in the image set E and storing them as mask images, the mask set is denoted as M; 2. Reconstruction of tree point cloud Select two images from the image set E to initialize the view frustum and obtain the tree bounding box; The space within the bounding box is voxelized, and the position of the voxel center is the position of the point cloud of the bounding box; The voxel set of the voxelized bounding box is used as a point cloud set, and the point cloud set in the bounding box is back-projected into each mask image. When the point cloud set G in the bounding box is back-projected into each mask image, the following steps are included: Point P in the point cloud set G G The world coordinate P w Convert to the camera coordinate system, and then to the image coordinate system; Assume that the rotation matrix of the image of the current back-projection point is R, the translation matrix is ​​T, the focal length is f, and P w The coordinate in the camera coordinate system is P c (x c ,y c , z c ),have P c =P w ×R+T Let the pixel coordinate in the image coordinate system be P M (x M ,y M ),have Among them, (C x , C y ) is the center coordinate of the mask image; The point cloud back-projected to the background area is cut and removed. When cutting the point cloud, the one-time coloring principle is used for coloring. The remaining point cloud is the target tree point cloud. When cutting and removing the point cloud back-projected to the background area, the following steps are included: When a point is back-projected to the mask, the corresponding pixels and cutting buffers are traversed. If there are tree pixels in the cutting buffers of all masks, the point is determined to be a tree point cloud. The cutting buffer is applied after the image coordinates of the back-projected point of the 3D point are calculated. If the coordinate point is a background point, it is not deleted directly at this time. Instead, it is necessary to determine whether there is a tree point in its cutting buffer. If so, the point is also regarded as a tree point, otherwise it is a background point and is directly deleted. When point P G When back-projecting to the mask, traverse the corresponding cutting buffer. If there are tree pixels in the cutting buffer of all masks, the point is determined to be a tree point cloud. The cutting buffer is composed of the image coordinates P of the point M Combined with w calculation, w is a constant, and the range of the cutting buffer is determined by the maximum point (x up ,y up ) and the minimum point (x down ,y down )Sure.

2. The method for volume space reduction-based tree point cloud reconstruction based on multi-view images as claimed in claim 1, characterized in that: When selecting two images from the image set E to initialize the view frustum to obtain the tree bounding box, the following steps are included: Each image in the image set E is converted according to the camera parameters (R, T, f, P cam ) is initialized as a frustum, where R represents the rotation matrix, T represents the translation matrix, f represents the focal length, and P cam Indicates the camera position; Initialize the intersection area of ​​the two view frustums as the tree bounding box.

3. The method for volume space reduction-based tree point cloud reconstruction based on multi-view images as claimed in claim 2, characterized in that: The angle between the two images corresponding to the two viewing cones in the intersection area is 90°.

4. The method for volume space reduction-based tree point cloud reconstruction based on multi-view images as claimed in claim 1, characterized in that: When cutting and removing the point cloud back-projected to the background area, the following steps are included: Suppose the point cloud set G is back-projected back to the point cloud set of the background area in the i-th image mask as D i ; Cut D from G i , then the remaining points are the target tree point cloud S,

Citation Information

Patent Citations

  • Automatic segmentation method for point cloud of facade of large scene city building

    CN105844629A

  • Method and device for removing external points in 3D modeling, and 3D modeling method

    CN106887043A

  • Target object three-dimensional point cloud reconstruction method based on image foreground segmentation

    CN110517348A

  • Three-dimensional scene reconstruction method based on two-dimensional target detection and model alignment, storage medium and terminal

    CN112927353A