WO2021081958A1 - Terrain detection method, movable platform, control device, system, and storage medium - Google Patents
Terrain detection method, movable platform, control device, system, and storage medium Download PDFInfo
- Publication number
- WO2021081958A1 WO2021081958A1 PCT/CN2019/114890 CN2019114890W WO2021081958A1 WO 2021081958 A1 WO2021081958 A1 WO 2021081958A1 CN 2019114890 W CN2019114890 W CN 2019114890W WO 2021081958 A1 WO2021081958 A1 WO 2021081958A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- position information
- pixel
- dimensional
- point
- cloud data
- Prior art date
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 97
- 238000000034 method Methods 0.000 claims abstract description 30
- 239000011159 matrix material Substances 0.000 claims description 156
- 230000000877 morphologic effect Effects 0.000 claims description 29
- 238000004590 computer program Methods 0.000 claims description 23
- 238000004364 calculation method Methods 0.000 claims description 10
- 238000004422 calculation algorithm Methods 0.000 claims description 9
- 238000006243 chemical reaction Methods 0.000 claims description 9
- 230000003628 erosive effect Effects 0.000 claims description 7
- 230000000295 complement effect Effects 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 10
- RZVHIXYEVGDQDX-UHFFFAOYSA-N 9,10-anthraquinone Chemical compound C1=CC=C2C(=O)C3=CC=CC=C3C(=O)C2=C1 RZVHIXYEVGDQDX-UHFFFAOYSA-N 0.000 description 4
- 238000005260 corrosion Methods 0.000 description 2
- 230000007797 corrosion Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 210000002304 esc Anatomy 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D1/00—Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
- G05D1/10—Simultaneous control of position or course in three dimensions
- G05D1/101—Simultaneous control of position or course in three dimensions specially adapted for aircraft
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
- G06T17/05—Geographic models
Definitions
- the invention relates to the field of detection technology, in particular to a terrain detection method, a movable platform, a control device, a system and a storage medium.
- three-dimensional point cloud data is generally collected, and the detection equipment is, for example, a radar, a laser device, or a camera.
- the detection equipment is, for example, a radar, a laser device, or a camera.
- most of the existing noise removal methods are based on prior information, set certain clustering rules and search methods,
- the original observation points in the point cloud data are clustered.
- the original observation points that do not meet the clustering rules and cannot form a point cluster are regarded as noise removal, and the remaining original observation points are divided according to the point cluster to which they belong.
- this method relies on the choice of clustering rules and search methods. If the appropriate clustering rules and search methods are not selected, the final clustering effect will deviate greatly from the actual situation, resulting in relatively large errors in the terrain detection results. Large, and the clustering algorithm has higher requirements on the processor, and consumes more computing resources.
- this application provides a terrain detection method, a movable platform, a control device, a system, and a storage medium to improve the accuracy of terrain detection.
- this application provides a terrain detection method, which includes:
- Pixel assignment is performed on pixels lacking pixel values in the two-dimensional image to obtain a two-dimensional image with pixel complementation
- the terrain information is determined.
- the present application also provides a movable platform, which includes a detection device, a memory, and a processor;
- the detection device is used for terrain detection and collecting three-dimensional point cloud data containing terrain information
- the memory is used to store a computer program
- the processor is configured to execute the computer program and, when executing the computer program, implement the following steps:
- Pixel assignment is performed on pixels lacking pixel values in the two-dimensional image to obtain a two-dimensional image with pixel complementation
- the terrain information is determined.
- the present application also provides a control device, the control device including a memory and a processor;
- the memory is used to store a computer program
- the processor is configured to execute the computer program and, when executing the computer program, implement the steps of the above-mentioned terrain detection method, and send the determined terrain information to the movable platform.
- the present application also provides a control system, the control system includes an aircraft and the control device as described in the third aspect; wherein, the movable platform is used to collect three-dimensional point cloud data and include The three-dimensional point cloud data of the terrain information is sent to the control device.
- the present application also provides a computer-readable storage medium that stores a computer program, and when the computer program is executed by a processor, the processor implements the above-mentioned terrain detection method.
- the terrain detection method, movable platform, control equipment, system and storage medium proposed by the present invention can improve the accuracy of terrain detection.
- Fig. 1 is a schematic block diagram of a control system provided by an embodiment of the present application
- FIG. 2 is a schematic structural diagram of an aircraft provided by an embodiment of the present application.
- FIG. 3 is a schematic diagram of a radar when collecting terrain information according to an embodiment of the present application
- FIG. 4 is a schematic flowchart of steps of a terrain detection method provided by an embodiment of the present application.
- FIG. 5 is a schematic diagram of a Delaunay triangulation network constructed according to an embodiment of the present application.
- Fig. 6 is a schematic block diagram of a movable platform provided by an embodiment of the present application.
- Fig. 7 is a schematic block diagram of a control device provided by an embodiment of the present application.
- the embodiments of the present application provide a terrain detection method, a movable platform, a control device, a system, and a storage medium, which are used to improve the accuracy of terrain detection by the detection device mounted on the movable platform.
- the three-dimensional point cloud data is converted into a two-dimensional image, the two-dimensional image is processed, the noise is removed from the two-dimensional image, and other operations are performed according to the processed two-dimensional image.
- Image reconstruction of three-dimensional point cloud data to achieve accurate detection of terrain information, and improve the accuracy of terrain detection.
- control system includes a movable platform and control equipment.
- the movable platform includes an aircraft, a robot, or an autonomous vehicle, etc.
- the movable platform is equipped with a detection device, and the detection device includes a radar, a ranging sensor, etc., for ease of description, this application uses the control device as the radar for detailed introduction .
- control device includes a ground control platform, mobile phone, tablet computer, notebook computer, PC computer, and the like.
- control system is a terrain detection system
- terrain detection system 100 includes an aircraft 110 and a control device 120.
- the aircraft 110 includes a drone, which includes a rotary-wing drone, such as a four-rotor drone, a hexarotor drone, and an eight-rotor drone. It can also be a fixed-wing drone or a rotary-wing drone. The combination of type and fixed-wing UAV is not limited here.
- FIG. 2 is a schematic structural diagram of an aircraft 110 according to an embodiment of the present specification.
- a rotary wing unmanned aerial vehicle is taken as an example for description.
- the aircraft 110 may include a power system, a flight control system, and a frame.
- the aircraft 110 may communicate with the control device 120 wirelessly, and the control device 120 may display flight information of the aircraft.
- the control device 120 may communicate with the aircraft 110 in a wireless manner for remote control of the aircraft 110.
- the frame may include a fuselage 111 and a tripod 112 (also referred to as a landing gear).
- the fuselage 111 may include a center frame 1111 and one or more arms 1112 connected to the center frame 1111, and the one or more arms 1112 extend radially from the center frame.
- the tripod 112 is connected to the fuselage 111 for supporting the aircraft 110 when the aircraft 110 is landing.
- the power system may include one or more electronic governors (referred to as ESCs for short), one or more propellers 113, and one or more motors 114 corresponding to the one or more propellers 113, where the motors 114 are connected to the electronic governors.
- the motor 114 and the propeller 113 are arranged on the arm 1112 of the aircraft 110; the electronic governor is used to receive the driving signal generated by the flight control system, and provide a driving current to the motor according to the driving signal to control the motor 114 speed.
- the motor 114 is used to drive the propeller 113 to rotate, so as to provide power for the flight of the aircraft 110, and the power enables the aircraft 110 to realize movement of one or more degrees of freedom.
- the aircraft 110 may rotate about one or more rotation axes.
- the aforementioned rotation axis may include a roll axis, a yaw axis, and a pitch axis.
- the motor 114 may be a DC motor or an AC motor.
- the motor 114 may be a brushless motor or a brushed motor.
- the flight control system may include a flight controller and a sensing system.
- the sensing system is used to measure the attitude information of the unmanned aerial vehicle, that is, the position information and state information of the aerial vehicle 110 in space, such as three-dimensional position, three-dimensional angle, three-dimensional velocity, three-dimensional acceleration, and three-dimensional angular velocity.
- the sensing system may include, for example, at least one of sensors such as a gyroscope, an ultrasonic sensor, an electronic compass, an inertial measurement unit (IMU), a vision sensor, a global navigation satellite system, and a barometer.
- the global navigation satellite system may be the Global Positioning System (GPS).
- the flight controller is used to control the flight of the aircraft 110, for example, it can control the flight of the aircraft 110 according to the attitude information measured by the sensing system. It should be understood that the flight controller may control the aircraft 110 according to pre-programmed program instructions, or may control the aircraft 110 by responding to one or more control instructions from the control device 120.
- the tripod 112 of the aircraft 110 is equipped with a radar 115, and the radar 115 is used to realize the function of surveying terrain information.
- the aircraft 110 may include two or more tripods 112, and the radar 115 is mounted on one of the tripods 112.
- the radar mainly includes an RF front-end module and a signal processing module.
- the RF front-end module includes a transmitting antenna and a receiving antenna.
- the signal processing module is responsible for generating modulated signals and processing and analyzing the collected intermediate frequency signals.
- the RF front-end module receives the modulated signal to generate a high-frequency signal whose frequency changes linearly with the modulated signal, and radiates downward through the transmitting antenna.
- the electromagnetic wave encounters the ground, targets or obstacles and is reflected back, and then is received by the receiving antenna and transmitted.
- the signal and the intermediate frequency are mixed to obtain an intermediate frequency signal, and the speed information and distance information can be obtained according to the frequency of the intermediate frequency signal.
- Radar encounters a target object by radiating electromagnetic waves in space, and the scattered echo from the target object is received by the radar to detect the target object.
- the radar When the radar is flying with the movable platform, it continuously collects the coordinates of the observation point by radiating electromagnetic waves, and finally collects three-dimensional point cloud data including terrain information.
- the movable platform sends the collected three-dimensional point cloud data including terrain information to the control device, and the control device processes the three-dimensional point cloud data to determine the terrain information, and the control device can also send the determined terrain information to the movable platform .
- FIG. 3 it is a schematic diagram of radar collecting terrain information.
- the data collected by the radar includes the depth of field detection distance, the horizontal detection distance, and the height position information, that is, the elevation value.
- the three-dimensional point clouds used for the two-dimensional image construction are all in the geodetic coordinate system.
- FIG. 4 is a schematic flowchart of steps of a terrain detection method according to an embodiment of the present application. This method can be applied to control equipment to improve the accuracy of terrain detection.
- the terrain detection method will be introduced in detail below in conjunction with the control system in FIG. 1. It should be understood that the control system in FIG. 1 does not constitute a limitation on the application scenario of the terrain detection method.
- the terrain detection method includes step S101 to step S106.
- the three-dimensional point cloud data includes a plurality of observation points, each of the observation points includes first position information, second position information, and height position information, wherein the first position information and the second position information are different.
- the first position information, the second position information, and the height position information are perpendicular to each other.
- the first position information may be a depth of field detection distance
- the second position information may be a horizontal detection distance
- the height position information may be an elevation value.
- the radar mounted on the aircraft scans the terrain information of the flight area of the aircraft to obtain three-dimensional point cloud data containing terrain information, and send the obtained three-dimensional point cloud data containing terrain information to controlling device.
- the three-dimensional point cloud data is mapped to the corresponding two-dimensional image according to the three-dimensional point cloud data.
- control device projects the three-dimensional point cloud data into a two-dimensional image according to the acquired three-dimensional point cloud data to obtain a two-dimensional image corresponding to the three-dimensional point cloud data.
- the method of obtaining a two-dimensional image corresponding to the three-dimensional point cloud data according to the three-dimensional point cloud data is specifically: determining a two-dimensional matrix according to the three-dimensional point cloud data, and comparing all data according to the two-dimensional matrix.
- the three-dimensional point cloud data is projected to obtain a two-dimensional image.
- the corresponding two-dimensional matrix is determined according to the three-dimensional point cloud data.
- Each observation point in the three-dimensional point cloud data corresponds to a matrix unit in the two-dimensional matrix, where the two-dimensional matrix is a two-dimensional pixel matrix that constitutes a two-dimensional image.
- Each matrix unit in the matrix is a pixel in the two-dimensional image.
- all observation points in the three-dimensional point cloud data are projected one by one to obtain a two-dimensional image corresponding to the three-dimensional point cloud data.
- one observation point can correspond to one matrix unit, or multiple observation points can correspond to one matrix unit.
- the manner of determining the two-dimensional matrix according to the three-dimensional point cloud data is specifically: determining the first target location information and the second location information of the observation points in the three-dimensional point cloud data.
- the range resolution refers to the resolution used by the radar mounted on the aircraft to scan terrain information.
- determining the first target location information and the second target location information according to the first location information and the second location information of the observation points in the three-dimensional point cloud data may be calculated by calculating the average of the first location information of the multiple observation points.
- the value determines the first target position information, and the average value of the second position information of the multiple observation points is calculated to determine the second target position information.
- the specific implementation process obtain the first position information of all observation points in the 3D point cloud data, that is, the depth of field detection distance, calculate the sum of the depth detection distances of all observation points, and then divide by the sum of the depth detection distances of all observation points According to the number of observation points, the average value of the depth-of-field detection distance is obtained, and the average value of the depth-of-field detection distance is used as the first target position information.
- the second position information of all observation points in the 3D point cloud data that is, the horizontal detection distance
- calculate the sum of the horizontal detection distances of all observation points and then divide the sum of the horizontal detection distances of all observation points by the number of observation points ,
- the average value of the horizontal detection distance is obtained, and the average value of the horizontal detection distance is used as the second target position information.
- the method of determining the first target location information and the second target location information according to the first location information and the second location information of the observation point in the three-dimensional point cloud data may be: the observation point from the three-dimensional point cloud data
- the largest first location information and the largest second location information are determined in the first location information and the second location information as the first target location information and the second target location information, respectively.
- the first position information of all observation points in the three-dimensional point cloud data that is, the depth-of-field detection distance
- the largest depth-of-field detection distance is determined from the depth-of-field detection distances of multiple observation points as the first target position information.
- the second position information of all observation points in the three-dimensional point cloud data that is, the horizontal detection distance
- determine the largest horizontal detection distance from the horizontal detection distances of the multiple observation points as the first target position information.
- the length and width of the two-dimensional matrix are determined according to the distance resolution.
- the length of the two-dimensional matrix may be twice the first target location information divided by the distance resolution
- the width of the two-dimensional matrix may be twice the second target location information divided by the distance resolution. It is understandable that the length and width of the two-dimensional matrix can be interchanged.
- the method of projecting the three-dimensional point cloud data according to the two-dimensional matrix to obtain a two-dimensional image is specifically: determining that the observation point of the three-dimensional point cloud data corresponds in the two-dimensional matrix The matrix index of the observation point; assign the height position information of the observation point to the matrix element corresponding to the matrix index of the observation point; use the matrix index of the two-dimensional matrix as a pixel and correspond to the matrix element of the two-dimensional matrix The height position information is used as the pixel value of the pixel to obtain a two-dimensional image.
- determine the matrix index of each observation point in the three-dimensional point cloud data in the two-dimensional matrix use the matrix index corresponding to the observation point as the pixel point, and use the height position information of the observation point, that is, the elevation value of the observation point as the pixel
- the pixel value of the point to obtain a two-dimensional image.
- Determine the matrix index corresponding to each observation point in the 3D point cloud data use the matrix index to project the 3D point cloud data, improve the accuracy of the 3D point cloud data during projection, and improve the accuracy of the obtained 2D image .
- the step of determining the matrix index corresponding to the observation point of the three-dimensional point cloud data in the two-dimensional matrix is specifically as follows:
- the first index value and the second index value are used to determine the matrix unit corresponding to the observation point in a two-dimensional matrix.
- the first index value may be that the observation point is in the The coordinates in the length direction in the two-dimensional matrix
- the second index value may be the coordinates in the width direction of the observation point in the two-dimensional matrix.
- the first index value may be the coordinates of the observation point in the length direction of the two-dimensional matrix
- the second index value may be the coordinates of the observation point in the width direction of the two-dimensional matrix
- the first index value may be The coordinates of the observation point in the width direction of the two-dimensional matrix
- the second index value may be the coordinates of the observation point in the length direction of the two-dimensional matrix
- the height position information of the observation point is assigned to the matrix element corresponding to the matrix index of the observation point, thereby obtaining the pixel value of the pixel point corresponding to the observation point .
- the coordinates of the observation point are (x i , y i ), where x i is the first position information of the observation point, which is the depth of field detection distance, and x i is the second position information of the observation point, which is the horizontal detection distance .
- r is the range resolution
- L x is the maximum first position information, that is, the maximum depth of field detection distance
- Ly is the maximum second position information, that is, the maximum horizontal detection distance.
- the step of assigning the height position information of the observation point to the matrix element corresponding to the matrix index of the observation point is specifically as follows:
- the matrix index corresponding to the observation point is judged separately, and if multiple observation points correspond to the same matrix index, the largest value in the height position information of the several observation points is assigned to the matrix element corresponding to the matrix index.
- the maximum height position information of the multiple observation points is used as the matrix index
- Corresponding matrix elements to improve the integrity of the information retention of the three-dimensional point cloud data in the two-dimensional image obtained by the projection.
- S103 Perform pixel assignment on pixels lacking pixel values in the two-dimensional image to obtain a two-dimensional image with pixel complementation.
- the radar scans terrain information
- the radar scan has a scanning blind area
- the radar uses different range resolutions to scan the same scanning area multiple times
- Some of the pixels lack pixel values. Therefore, pixel values need to be assigned to pixels lacking pixel values to complement the missing parts in the two-dimensional image to avoid errors in the subsequent morphological processing of the two-dimensional image.
- the pixel assignment of the pixels lacking pixel values in the two-dimensional image specifically includes: determining the pixels lacking pixel values in the two-dimensional image; and determining the pixels lacking pixel values according to an image interpolation algorithm.
- the pixel points are subjected to interpolation processing to complement the pixel value of the pixel point lacking pixel value.
- the image interpolation algorithm includes one of the nearest neighbor interpolation method, linear interpolation method and bilinear interpolation method.
- the steps of assigning values to pixels of pixels lacking pixel values in a two-dimensional image are specifically as follows:
- the Delaunay Triangle includes multiple Delaunay Triangles. According to the Delaunay Triangulation, the height position information corresponding to the pixels lacking pixel values in the two-dimensional image is determined, and the determined height position information is assigned to the pixels lacking pixel values in the two-dimensional image.
- constructing a Delaunay triangulation based on three-dimensional point cloud data is specifically: constructing a plurality of triangles with the observation points in the three-dimensional point cloud data as vertices, and forming the Delaunay triangulation for the plurality of triangles; Wherein, there are no other observation points in the circumcircle of any of the triangles in the Delaunay triangulation network.
- Figure 5 is a Delaunay triangulation constructed based on the obtained three-dimensional point cloud data. Take the observation points in the three-dimensional point cloud data as the vertices to construct multiple triangles, where the constructed triangles do not intersect each other and there are no other observation points in the circumcircle of any triangle. The constructed multiple triangles constitute Delaunay Triangulation.
- the step of the Delaunay triangulation determining the height position information corresponding to the pixel points lacking pixel values in the two-dimensional image is specifically:
- the target triangle is a triangle including pixels lacking pixel values in the triangle plane. After the target triangle is determined, the height position information corresponding to the pixels lacking pixel values in the two-dimensional image can be determined according to the target triangle.
- the step of determining, according to the target triangle, the height position information corresponding to the pixel point lacking pixel value in the two-dimensional image is specifically:
- the calculation process of determining the first position information and the second position information corresponding to the pixel point lacking pixel value in the three-dimensional point cloud data may be the calculation of the matrix index corresponding to the observation point in the three-dimensional point cloud data The inverse operation of the calculation process will not be described in detail here.
- the target triangle After determining the target triangle, obtain the first position information, second position information, and height position information of the three vertices of the target triangle, and calculate the target triangle's position information according to the first position information, second position information, and height position information of the three vertices. Plane equation in ternary space. Substituting the first position information and the second position information of the pixels lacking pixel values into the ternary space plane equation, and solving the height position information of the pixels lacking pixel values. When the terrain changes drastically, reduce the factor The smooth distortion caused by pixel completion improves the accuracy of the calculated height position information of the pixels lacking pixel values.
- the step of determining the height position information corresponding to the pixels lacking pixel values in the two-dimensional image according to the target triangle is specifically for:
- the information serves as height position information corresponding to the pixel point lacking pixel value.
- the target triangle after determining the target triangle, calculate the distance between the pixel point lacking pixel value and the three vertices of the target triangle, and use the vertex corresponding to the calculated minimum distance as the closest target to the pixel point lacking pixel value Vertex, the height position information of the target vertex is taken as the height position information of the pixel point lacking pixel value, and the calculation amount of the height position information is reduced when the terrain changes relatively smoothly.
- the average value of the height position information of the target vertices is calculated, and the calculated average value is used as the height position information of pixels lacking pixel values.
- S104 Perform morphological processing on the two-dimensional image after the pixel complementation to obtain a processed two-dimensional image.
- the morphological processing includes: closing operation, opening operation, closing operation first and then opening operation, and opening operation first and then closing operation. Morphological processing is performed on the two-dimensional image after pixel complementation, and the noise in the two-dimensional image is eliminated.
- the closing operation operation includes: performing an expansion operation operation first, and then performing an erosion operation operation. After the closing operation, the noise in the two-dimensional image is filtered out, that is, the noise in the three-dimensional point cloud data is filtered out.
- the kernel is the structural element (that is, the convolution kernel), Is the expansion operator, and ⁇ is the corrosion operator.
- I i is the first index value of the matrix index, and J i is the second index value of the matrix index.
- the opening operation operation includes: first performing a corrosion operation operation, and then performing an expansion operation operation. After the open operation, the local lowest point is kept while removing the noise.
- the step of performing morphological processing on the two-dimensional image after the pixel complementation to obtain a processed two-dimensional image is specifically:
- a plurality of convolution kernels of different sizes are selected to perform morphological processing on the pixels of the two-dimensional image after the pixel complementation, and different weights are assigned to the results of the calculation processing to obtain a two-dimensional image with noise removed.
- the convolution kernel used is ⁇ kernal 1 ,kernal 2 ,kernal 3 ,...,kernal n ⁇ , and different weights are assigned to the corresponding morphological operation results ⁇ w 1 ,w 2 ,w 3 ,...,w n ⁇
- the resulting filtered pixel value is:
- the closing operation and/or the opening operation are Choose different convolution kernels.
- the closing operation and/or the opening operation are Different convolution kernels are selected, and different weights are set for the operation processing results of different convolution kernels.
- the terrain information includes one or more of ground height, ground flatness, and ground slope.
- the step of determining the terrain information according to the processed two-dimensional image is specifically as follows:
- S105 Reconstruct 3D point cloud data according to the processed 2D image.
- the 3D point cloud data is reconstructed according to the processed 2D image, and then the reconstructed 3D point cloud data is fitted to obtain a fitting plane.
- the ground height, ground slope, and ground flatness can be extracted by fitting the plane. information.
- the step of reconstructing three-dimensional point cloud data from a processed two-dimensional image is specifically: acquiring a matrix index corresponding to a pixel in the processed two-dimensional image;
- the pixel point undergoes coordinate conversion to obtain the first position information and the second position information of the reconstructed point corresponding to the pixel point;
- the pixel value of the pixel point is used as the height position information of the reconstructed point to complete a three-dimensional point cloud Reconstruction of data.
- the matrix index and pixel value corresponding to the pixel in the two-dimensional image are obtained, and the coordinate conversion of the pixel is performed according to the matrix index to obtain the first position information and the second position information of the reconstructed point corresponding to the pixel, and then the pixel The value is used as the height position information of the reconstructed point to complete the reconstruction of the three-dimensional point cloud data.
- performing coordinate conversion on the pixel point according to the matrix index of the pixel point to obtain the first position information and the second position information of the reconstructed point corresponding to the pixel point includes: calculating the The product of the first index value of the pixel point and the distance resolution, and the product of the first index value and the distance resolution minus the difference of the maximum depth of field distance is taken as the first reconstruction point corresponding to the pixel point Position information; calculate the product of the second index value of the pixel and the distance resolution, and take the product of the second index value and the distance resolution minus the difference of the second position information as the difference with the pixel The second location information of the corresponding reconstruction point.
- the coordinates of the reconstructed point are (x i , y i ), where x i is the first position information of the observation point, which is the depth of field detection distance, and x i is the second position information of the observation point, which is the horizontal detection distance .
- r is the range resolution
- L x is the maximum first position information, that is, the maximum depth of field detection distance
- Ly is the maximum second position information, that is, the maximum horizontal detection distance.
- the step of determining terrain information according to the reconstructed three-dimensional point cloud data is specifically: fitting the reconstructed three-dimensional point cloud data to obtain a fitting plane, and determining the terrain information according to the fitting plane.
- the 3D point cloud data is reconstructed according to the processed 2D image, and then the reconstructed 3D point cloud data is fitted to obtain a fitting plane.
- the ground height, ground slope, and ground flatness can be extracted by fitting the plane. information.
- the average value is calculated according to the height position information of the multiple reconstruction points in the fitting plane, and the ground flatness of the scanning area is determined according to the average value.
- the slope of the fitting plane is determined according to the height position information of multiple reconstruction points.
- the foregoing embodiment obtains three-dimensional point cloud data containing terrain information; obtains a two-dimensional image corresponding to the three-dimensional point cloud data according to the three-dimensional point cloud data; performs processing on the pixels in the two-dimensional image that lack pixel values Pixel assignment is used to obtain a two-dimensional image after pixel complementation; morphological processing is performed on the two-dimensional image after pixel complementation to obtain a processed two-dimensional image; terrain information is determined according to the processed two-dimensional image. Based on digital image morphology processing, the three-dimensional point cloud data is projected into the two-dimensional image, and the two-dimensional image is morphologically filtered.
- the ground can be separated from the ground target while removing the noise, so as to realize the accurate estimation of the ground.
- FIG. 6 is a schematic block diagram of a movable platform provided by an embodiment of the present application.
- the mobile platform 11 includes a processor 111, a memory 112, and a detection device 113.
- the processor 111, the memory 112, and the detection device 113 are connected by a bus, such as an I2C (Inter-integrated Circuit) bus or the detection device 113 and the processing device 113.
- the device 111 is connected via the CAN bus.
- the movable platform includes aircraft, robots or autonomous unmanned vehicles.
- the processor 111 may be a micro-controller unit (MCU), a central processing unit (CPU), a digital signal processor (Digital Signal Processor, DSP), or the like.
- MCU micro-controller unit
- CPU central processing unit
- DSP Digital Signal Processor
- the memory 112 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk, or a mobile hard disk.
- the detection device 113 is used for terrain detection and collecting three-dimensional point cloud data containing terrain information.
- the processor is used to run a computer program stored in a memory, and implement the following steps when executing the computer program:
- Pixel assignment is performed on pixels lacking pixel values in the two-dimensional image to obtain a two-dimensional image with pixel complementation
- the terrain information is determined.
- the processor implementing the step of obtaining a two-dimensional image corresponding to the three-dimensional point cloud data according to the three-dimensional point cloud data includes:
- a two-dimensional matrix is determined according to the three-dimensional point cloud data, and the three-dimensional point cloud data is projected according to the two-dimensional matrix to obtain a two-dimensional image.
- the three-dimensional point cloud data includes a plurality of observation points, and each of the observation points includes first position information, second position information, and height position information, wherein the first position information and the second position information The location information is different.
- the processor implementing the step of determining a two-dimensional matrix based on the three-dimensional point cloud data includes:
- the processor implementing the step of determining the first target location information and the second target location information based on the first location information and the second location information of the observation points in the three-dimensional point cloud data includes:
- the maximum first position information and the maximum second position information are determined from the first position information and the second position information of the observation point in the three-dimensional point cloud data, as the first target position information and the second target position information, respectively.
- the processor implementing the step of projecting the three-dimensional point cloud data according to the two-dimensional matrix to obtain a two-dimensional image includes:
- the processor implementing the step of determining the matrix index corresponding to the observation point of the three-dimensional point cloud data in the two-dimensional matrix includes:
- the processor implementing the step of assigning the height position information of the observation point to the matrix element corresponding to the matrix index of the observation point includes:
- the processor implementing the step of pixel assignment to pixels lacking pixel values in the two-dimensional image includes:
- the image interpolation algorithm includes one of: nearest neighbor interpolation, linear interpolation, and bilinear interpolation.
- the processor implementing the step of pixel assignment to pixels lacking pixel values in the two-dimensional image includes:
- the determined height position information is assigned to the pixel point lacking pixel value in the two-dimensional image to complete the pixel value of the pixel point lacking pixel value.
- the processor implementing the step of constructing Delaunay's triangle based on the three-dimensional point cloud data includes:
- the processor implementing the step of determining, according to the Delaunay triangulation, the step of determining height position information corresponding to pixels lacking pixel values in the two-dimensional image includes:
- the height position information corresponding to the pixel point lacking pixel value in the two-dimensional image is determined according to the target triangle.
- the processor implementing the step of determining height position information corresponding to pixels lacking pixel values in the two-dimensional image according to the target triangle includes:
- the height position information of the pixel point lacking pixel value is calculated according to the plane equation and the first position information and second position information corresponding to the pixel point lacking pixel value.
- the processor implementing the step of determining height position information corresponding to pixels lacking pixel values in the two-dimensional image according to the target triangle includes:
- the vertex closest to the pixel point lacking pixel value is determined as the target vertex according to the distance, and the height position information of the target vertex is used as the height position information corresponding to the pixel point lacking pixel value.
- the morphological processing includes one of a closing operation, an opening operation, a closing operation first and then an opening operation, and an opening operation before the closing operation.
- the closing operation includes: performing an expansion operation first, and then performing an erosion operation; or, the opening operation includes: performing an erosion operation first, and then an expansion operation.
- the step of performing morphological processing on the two-dimensional image after pixel complementation by the processor to obtain a processed two-dimensional image includes:
- a plurality of convolution kernels of different sizes are selected to perform morphological processing on the pixels of the two-dimensional image after the pixel complementation, and different weights are assigned to the results of the calculation processing to obtain a two-dimensional image with noise removed.
- a different convolution kernel is selected for the closing operation and/or the opening operation.
- the closing operation and/or the opening operation both select different convolution kernels, and for different convolution kernels Different weights are set for the operation processing results of.
- the processor implementing the step of reconstructing three-dimensional point cloud data from the processed two-dimensional image includes:
- the pixel value of the pixel point is used as the height position information of the reconstructed point to complete the reconstruction of the three-dimensional point cloud data.
- the processor implements the coordinate conversion of the pixel point according to the matrix index of the pixel point to obtain the first position information and the second position of the reconstructed point corresponding to the pixel point
- the information steps include:
- the processor implementing the step of determining terrain information according to the reconstructed three-dimensional point cloud data includes:
- the terrain information includes one or more of ground height, ground flatness, and ground slope.
- FIG. 7 is a schematic block diagram of a control device provided by an embodiment of the present application.
- the control device 12 includes a processor 121 and a memory 122, and the processor 121 and the memory 122 are connected by a bus, such as an I2C (Inter-integrated Circuit) bus.
- I2C Inter-integrated Circuit
- the processor 121 may be a micro-controller unit (MCU), a central processing unit (CPU), a digital signal processor (Digital Signal Processor, DSP), or the like.
- MCU micro-controller unit
- CPU central processing unit
- DSP Digital Signal Processor
- the memory 122 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk, or a mobile hard disk, etc.
- the memory 122 is used to store computer programs.
- the processor is used to run a computer program stored in a memory, and implement the following steps when executing the computer program:
- Pixel assignment is performed on pixels lacking pixel values in the two-dimensional image to obtain a two-dimensional image with pixel complementation
- the terrain information is determined, and the determined terrain information is sent to the movable platform.
- the embodiment of the present application also provides a control system, which may be, for example, the flight control system shown in FIG. 1.
- the control system includes a movable platform and a control device, and the control device is communicatively connected with the movable platform;
- the movable platform is used to collect three-dimensional point cloud data and send the three-dimensional point cloud data to the control device.
- the embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, the computer program includes program instructions, and the processor executes the program instructions to implement the foregoing implementation The steps of the terrain detection method provided in the example.
- the computer-readable storage medium may be the internal storage unit of the removable platform and the control device described in any of the foregoing embodiments, for example, the hard disk or memory of the control device.
- the computer-readable storage medium may also be an external storage device of the control device, such as a plug-in hard disk equipped on the control device, a smart memory card (Smart Media Card, SMC), and a Secure Digital (SD) ) Card, Flash Card, etc.
- a plug-in hard disk equipped on the control device such as a smart memory card (Smart Media Card, SMC), and a Secure Digital (SD) ) Card, Flash Card, etc.
- SD Secure Digital
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Remote Sensing (AREA)
- General Physics & Mathematics (AREA)
- Geometry (AREA)
- Software Systems (AREA)
- Aviation & Aerospace Engineering (AREA)
- Radar, Positioning & Navigation (AREA)
- Automation & Control Theory (AREA)
- Computer Graphics (AREA)
- Theoretical Computer Science (AREA)
- Length Measuring Devices By Optical Means (AREA)
Abstract
A terrain detection method, a movable platform, a control device, a system, and a storage medium. The method comprises: acquiring point cloud data (S101); obtaining a two-dimensional image according to the point cloud data (S102); performing pixel assignment on the two-dimensional image to obtain a completed two-dimensional image (S103); performing processing on the completed two-dimensional image to obtain a processed two-dimensional image (S104); reconstructing the point cloud data according to the processed two-dimensional image (S105); and determining terrain information according to the reconstructed point cloud data (S106).
Description
本发明涉及检测技术领域,尤其涉及一种地形检测方法、可移动平台、控制设备、系统及存储介质。The invention relates to the field of detection technology, in particular to a terrain detection method, a movable platform, a control device, a system and a storage medium.
目前,在利用检测设备对地面的地形进行检测时,一般采集的为三维点云数据,检测设备比如为雷达、激光装置或摄像装置等。为了提高地形检测的准确度,需要对采集到的三维点云数据进行杂点剔除,但现有的杂点剔除的方法大多是根据先验信息,设置一定的聚类规则以及搜寻方法,对三维点云数据中的原始观测点进行聚类,不符合聚类规则的原始观测点,无法形成点簇,则被视为杂点剔除,而剩余的原始观测点按照所属的点簇被分割。但这种方法依赖于聚类规则和搜寻方法的选择,若未选择到合适的聚类规则和搜寻方法,那么最终的聚类效果会与实际有较大的偏差,导致地形检测结果的误差较大,并且聚类算法对处理器的要求较高,运算资源消耗较大。At present, when using detection equipment to detect the terrain of the ground, three-dimensional point cloud data is generally collected, and the detection equipment is, for example, a radar, a laser device, or a camera. In order to improve the accuracy of terrain detection, it is necessary to remove noise from the collected 3D point cloud data. However, most of the existing noise removal methods are based on prior information, set certain clustering rules and search methods, The original observation points in the point cloud data are clustered. The original observation points that do not meet the clustering rules and cannot form a point cluster are regarded as noise removal, and the remaining original observation points are divided according to the point cluster to which they belong. However, this method relies on the choice of clustering rules and search methods. If the appropriate clustering rules and search methods are not selected, the final clustering effect will deviate greatly from the actual situation, resulting in relatively large errors in the terrain detection results. Large, and the clustering algorithm has higher requirements on the processor, and consumes more computing resources.
因此,如何提高地形检测的准确率成为亟待解决的问题。Therefore, how to improve the accuracy of terrain detection becomes an urgent problem to be solved.
发明内容Summary of the invention
基于此,本申请提供了一种地形检测方法、可移动平台、控制设备、系统及存储介质,以提高地形检测的准确率。Based on this, this application provides a terrain detection method, a movable platform, a control device, a system, and a storage medium to improve the accuracy of terrain detection.
第一方面,本申请提供了一种地形检测方法,所述方法包括:In the first aspect, this application provides a terrain detection method, which includes:
获取包含地形信息的三维点云数据;Obtain 3D point cloud data containing terrain information;
依据所述三维点云数据,得到与所述三维点云数据对应的二维图像;Obtaining a two-dimensional image corresponding to the three-dimensional point cloud data according to the three-dimensional point cloud data;
对所述二维图像中缺少像素值的像素点进行像素赋值,得到像素补全后的二维图像;Pixel assignment is performed on pixels lacking pixel values in the two-dimensional image to obtain a two-dimensional image with pixel complementation;
对所述像素补全后的二维图像进行形态学处理,得到已处理的二维图像;Performing morphological processing on the two-dimensional image after the pixel complementation to obtain a processed two-dimensional image;
根据所述已处理的二维图像,重建三维点云数据;以及Reconstructing three-dimensional point cloud data according to the processed two-dimensional image; and
根据重建的三维点云数据,确定地形信息。According to the reconstructed 3D point cloud data, the terrain information is determined.
第二方面,本申请还提供了一种可移动平台,所述可移动平台包括检测装置、存储器和处理器;In the second aspect, the present application also provides a movable platform, which includes a detection device, a memory, and a processor;
所述检测装置用于地形检测并采集包含地形信息的三维点云数据;The detection device is used for terrain detection and collecting three-dimensional point cloud data containing terrain information;
所述存储器用于存储计算机程序;The memory is used to store a computer program;
所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:The processor is configured to execute the computer program and, when executing the computer program, implement the following steps:
获取包含地形信息的三维点云数据;Obtain 3D point cloud data containing terrain information;
依据所述三维点云数据,得到与所述三维点云数据对应的二维图像;Obtaining a two-dimensional image corresponding to the three-dimensional point cloud data according to the three-dimensional point cloud data;
对所述二维图像中缺少像素值的像素点进行像素赋值,得到像素补全后的二维图像;Pixel assignment is performed on pixels lacking pixel values in the two-dimensional image to obtain a two-dimensional image with pixel complementation;
对所述像素补全后的二维图像进行形态学处理,得到已处理的二维图像;Performing morphological processing on the two-dimensional image after the pixel complementation to obtain a processed two-dimensional image;
根据所述已处理的二维图像,重建三维点云数据;以及Reconstructing three-dimensional point cloud data according to the processed two-dimensional image; and
根据重建的三维点云数据,确定地形信息。According to the reconstructed 3D point cloud data, the terrain information is determined.
第三方面,本申请还提供了一种控制设备,所述控制设备包括存储器和处理器;In a third aspect, the present application also provides a control device, the control device including a memory and a processor;
所述存储器用于存储计算机程序;The memory is used to store a computer program;
所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现如上述地形检测方法的步骤,并将确定的地形信息发送至可移动平台。The processor is configured to execute the computer program and, when executing the computer program, implement the steps of the above-mentioned terrain detection method, and send the determined terrain information to the movable platform.
第四方面,本申请还提供了一种控制系统,所述控制系统包括飞行器和如第三方面所述的控制设备;其中,所述可移动平台用于采集三维点云数据并将所述包括地形信息的三维点云数据发送至所述控制设备。In a fourth aspect, the present application also provides a control system, the control system includes an aircraft and the control device as described in the third aspect; wherein, the movable platform is used to collect three-dimensional point cloud data and include The three-dimensional point cloud data of the terrain information is sent to the control device.
第五方面,本申请还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现上述的地形检测方法。In a fifth aspect, the present application also provides a computer-readable storage medium that stores a computer program, and when the computer program is executed by a processor, the processor implements the above-mentioned terrain detection method.
本发明提出的一种地形检测方法、可移动平台、控制设备、系统及存储介质,可提高地形检测的准确率。The terrain detection method, movable platform, control equipment, system and storage medium proposed by the present invention can improve the accuracy of terrain detection.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the application.
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following will briefly introduce the drawings used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present application. Ordinary technicians can obtain other drawings based on these drawings without creative work.
图1是本申请一实施例提供的一种控制系统的示意性框图;Fig. 1 is a schematic block diagram of a control system provided by an embodiment of the present application;
图2是本申请一实施例提供的飞行器的示意性架构图;FIG. 2 is a schematic structural diagram of an aircraft provided by an embodiment of the present application;
图3是本申请一实施例提供的雷达进行地形信息采集时的示意图;FIG. 3 is a schematic diagram of a radar when collecting terrain information according to an embodiment of the present application;
图4是本申请一实施例提供的一种地形检测方法的步骤示意流程图;4 is a schematic flowchart of steps of a terrain detection method provided by an embodiment of the present application;
图5是本申请一实施例提供的构建的德劳内三角网的示意图;FIG. 5 is a schematic diagram of a Delaunay triangulation network constructed according to an embodiment of the present application;
图6是本申请一实施例提供的可移动平台的示意性框图;Fig. 6 is a schematic block diagram of a movable platform provided by an embodiment of the present application;
图7是本申请一实施例提供的控制设备的示意性框图。Fig. 7 is a schematic block diagram of a control device provided by an embodiment of the present application.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowchart shown in the drawings is only an example, and does not necessarily include all contents and operations/steps, nor does it have to be executed in the described order. For example, some operations/steps can also be decomposed, combined or partially combined, so the actual execution order may be changed according to actual conditions.
下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Hereinafter, some embodiments of the present application will be described in detail with reference to the accompanying drawings. In the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.
本申请的实施例提供了一种地形检测方法、可移动平台、控制设备、系统及存储介质,用于提高搭载在可移动平台上的检测设备对于地形检测的准确率。具体来说,在本发明的实施方式中,通过将三维点云数据转化为二维图像,在二维图像进行处理,在二维图像中进行剔除杂点等操作,再根据处理后的二维图像重建三维点云数据,实现对地形信息的准确检测,提高地形检测的准确率。The embodiments of the present application provide a terrain detection method, a movable platform, a control device, a system, and a storage medium, which are used to improve the accuracy of terrain detection by the detection device mounted on the movable platform. Specifically, in the embodiment of the present invention, the three-dimensional point cloud data is converted into a two-dimensional image, the two-dimensional image is processed, the noise is removed from the two-dimensional image, and other operations are performed according to the processed two-dimensional image. Image reconstruction of three-dimensional point cloud data, to achieve accurate detection of terrain information, and improve the accuracy of terrain detection.
其中,该控制系统包括可移动平台和控制设备。Among them, the control system includes a movable platform and control equipment.
示例性的,可移动平台包括飞行器、机器人或自动驾驶车辆等,可移动平台上搭载有检测装置,检测装置包括雷达、测距传感器等,为便于描述,本申请以控制设备为雷达进行详细介绍。Exemplarily, the movable platform includes an aircraft, a robot, or an autonomous vehicle, etc. The movable platform is equipped with a detection device, and the detection device includes a radar, a ranging sensor, etc., for ease of description, this application uses the control device as the radar for detailed introduction .
示例性的,控制设备包括地面控制平台、手机、平板电脑、笔记本电脑和PC电脑等。Exemplarily, the control device includes a ground control platform, mobile phone, tablet computer, notebook computer, PC computer, and the like.
示例性的,如图1所示,控制系统为地形检测系统,该地形检测系统100包括飞行器110和控制设备120。Exemplarily, as shown in FIG. 1, the control system is a terrain detection system, and the terrain detection system 100 includes an aircraft 110 and a control device 120.
飞行器110包括无人机,该无人机包括旋翼型无人机,例如四旋翼无人机、六旋翼无人机、八旋翼无人机,也可以是固定翼无人机,还可以是旋翼型与固定翼无人机的组合,在此不作限定。The aircraft 110 includes a drone, which includes a rotary-wing drone, such as a four-rotor drone, a hexarotor drone, and an eight-rotor drone. It can also be a fixed-wing drone or a rotary-wing drone. The combination of type and fixed-wing UAV is not limited here.
图2是根据本说明书的实施例的飞行器110的示意性架构图。本实施例以旋翼无人飞行器为例进行说明。FIG. 2 is a schematic structural diagram of an aircraft 110 according to an embodiment of the present specification. In this embodiment, a rotary wing unmanned aerial vehicle is taken as an example for description.
飞行器110可以包括动力系统、飞行控制系统和机架。飞行器110可以与控制设备120进行无线通信,该控制设备120可以显示飞行器的飞行信息等,控制设备120可以通过无线方式与飞行器110进行通信,用于对飞行器110进行远程操纵。The aircraft 110 may include a power system, a flight control system, and a frame. The aircraft 110 may communicate with the control device 120 wirelessly, and the control device 120 may display flight information of the aircraft. The control device 120 may communicate with the aircraft 110 in a wireless manner for remote control of the aircraft 110.
其中,机架可以包括机身111和脚架112(也称为起落架)。机身111可以包括中心架1111以及与中心架1111连接的一个或多个机臂1112,一个或多个机臂1112呈辐射状从中心架延伸出。脚架112与机身111连接,用于在飞行器110着陆时起支撑作用。Wherein, the frame may include a fuselage 111 and a tripod 112 (also referred to as a landing gear). The fuselage 111 may include a center frame 1111 and one or more arms 1112 connected to the center frame 1111, and the one or more arms 1112 extend radially from the center frame. The tripod 112 is connected to the fuselage 111 for supporting the aircraft 110 when the aircraft 110 is landing.
动力系统可以包括一个或多个电子调速器(简称为电调)、一个或多个螺旋桨113以及与一个或多个螺旋桨113相对应的一个或多个电机114,其中电机114连接在电子调速器与螺旋桨113之间,电机114和螺旋桨113设置在飞行器110的机臂1112上;电子调速器用于接收飞行控制系统产生的驱动信号,并根据驱动信号提供驱动电流给电机,以控制电机114的转速。电机114用于驱动螺旋桨113旋转,从而为飞行器110的飞行提供动力,该动力使得飞行器110能够实现一个或多个自由度的运动。在某些实施例中,飞行器110可以围绕一个或多个旋转轴旋转。例如,上述旋转轴可以包括横滚轴、偏航轴和俯仰轴。应理解,电机114可以是直流电机,也可以交流电机。另外,电机114可 以是无刷电机,也可以是有刷电机。The power system may include one or more electronic governors (referred to as ESCs for short), one or more propellers 113, and one or more motors 114 corresponding to the one or more propellers 113, where the motors 114 are connected to the electronic governors. Between the speed controller and the propeller 113, the motor 114 and the propeller 113 are arranged on the arm 1112 of the aircraft 110; the electronic governor is used to receive the driving signal generated by the flight control system, and provide a driving current to the motor according to the driving signal to control the motor 114 speed. The motor 114 is used to drive the propeller 113 to rotate, so as to provide power for the flight of the aircraft 110, and the power enables the aircraft 110 to realize movement of one or more degrees of freedom. In some embodiments, the aircraft 110 may rotate about one or more rotation axes. For example, the aforementioned rotation axis may include a roll axis, a yaw axis, and a pitch axis. It should be understood that the motor 114 may be a DC motor or an AC motor. In addition, the motor 114 may be a brushless motor or a brushed motor.
飞行控制系统可以包括飞行控制器和传感系统。传感系统用于测量无人飞行器的姿态信息,即飞行器110在空间的位置信息和状态信息,例如,三维位置、三维角度、三维速度、三维加速度和三维角速度等。传感系统例如可以包括陀螺仪、超声传感器、电子罗盘、惯性测量单元(Inertial Measurement Unit,IMU)、视觉传感器、全球导航卫星系统和气压计等传感器中的至少一种。例如,全球导航卫星系统可以是全球定位系统(Global Positioning System,GPS)。飞行控制器用于控制飞行器110的飞行,例如,可以根据传感系统测量的姿态信息控制飞行器110的飞行。应理解,飞行控制器可以按照预先编好的程序指令对飞行器110进行控制,也可以通过响应来自控制设备120的一个或多个控制指令对飞行器110进行控制。The flight control system may include a flight controller and a sensing system. The sensing system is used to measure the attitude information of the unmanned aerial vehicle, that is, the position information and state information of the aerial vehicle 110 in space, such as three-dimensional position, three-dimensional angle, three-dimensional velocity, three-dimensional acceleration, and three-dimensional angular velocity. The sensing system may include, for example, at least one of sensors such as a gyroscope, an ultrasonic sensor, an electronic compass, an inertial measurement unit (IMU), a vision sensor, a global navigation satellite system, and a barometer. For example, the global navigation satellite system may be the Global Positioning System (GPS). The flight controller is used to control the flight of the aircraft 110, for example, it can control the flight of the aircraft 110 according to the attitude information measured by the sensing system. It should be understood that the flight controller may control the aircraft 110 according to pre-programmed program instructions, or may control the aircraft 110 by responding to one or more control instructions from the control device 120.
如图1所示,飞行器110的脚架112上搭载有雷达115,该雷达115用于实现对地形信息进行勘测的功能。其中,飞行器110可以包括两个或两个以上脚架112,雷达115搭载在其中一个脚架112上。As shown in FIG. 1, the tripod 112 of the aircraft 110 is equipped with a radar 115, and the radar 115 is used to realize the function of surveying terrain information. Among them, the aircraft 110 may include two or more tripods 112, and the radar 115 is mounted on one of the tripods 112.
雷达主要包括射频前端模块和信号处理模块,射频前端模块包括一个发射天线和一个接收天线,信号处理模块负责产生调制信号以及对采集的中频信号进行处理分析。The radar mainly includes an RF front-end module and a signal processing module. The RF front-end module includes a transmitting antenna and a receiving antenna. The signal processing module is responsible for generating modulated signals and processing and analyzing the collected intermediate frequency signals.
具体地,射频前端模块接收到调制信号产生频率随调制信号线性变化的高频信号,通过发射天线向下辐射,电磁波遇到地面、目标物或障碍物被反射回来,再被接收天线接收,发射信号与中频进行混频得到中频信号,根据中频信号的频率就可得到速度信息和距离信息。Specifically, the RF front-end module receives the modulated signal to generate a high-frequency signal whose frequency changes linearly with the modulated signal, and radiates downward through the transmitting antenna. The electromagnetic wave encounters the ground, targets or obstacles and is reflected back, and then is received by the receiving antenna and transmitted. The signal and the intermediate frequency are mixed to obtain an intermediate frequency signal, and the speed information and distance information can be obtained according to the frequency of the intermediate frequency signal.
雷达通过辐射电磁波在空间中传播遇到目标物,由目标物散射回波被雷达接收实现探测目标物。雷达在随可移动平台飞行过程中,通过辐射电磁波不断采集观测点坐标,最终采集到包括地形信息的三维点云数据。可移动平台将采集到的包括地形信息的三维点云数据发送至控制设备,由控制设备对三维点云数据进行处理,确定地形信息,并且控制设备还可将确定的地形信息发送至可移动平台。Radar encounters a target object by radiating electromagnetic waves in space, and the scattered echo from the target object is received by the radar to detect the target object. When the radar is flying with the movable platform, it continuously collects the coordinates of the observation point by radiating electromagnetic waves, and finally collects three-dimensional point cloud data including terrain information. The movable platform sends the collected three-dimensional point cloud data including terrain information to the control device, and the control device processes the three-dimensional point cloud data to determine the terrain information, and the control device can also send the determined terrain information to the movable platform .
如图3所示,为雷达进行地形信息采集时的示意图。雷达采集的数据包括,景深探测距离、水平探测距离、以及高度位置信息,也即高程值。需要说明的是,用于二维图像构建的三维点云均在大地坐标系下。As shown in Figure 3, it is a schematic diagram of radar collecting terrain information. The data collected by the radar includes the depth of field detection distance, the horizontal detection distance, and the height position information, that is, the elevation value. It should be noted that the three-dimensional point clouds used for the two-dimensional image construction are all in the geodetic coordinate system.
应理解,上述对于飞行器各组成部分的命名仅是出于标识的目的,并不应理解为对本说明书的实施例的限制。It should be understood that the aforementioned naming of the various components of the aircraft is only for identification purposes, and should not be understood as a limitation to the embodiments of this specification.
请参阅图4,图4是本申请一实施例提供的一种地形检测方法的步骤示意流程图。该方法可以应用于控制设备中,用于提高地形检测的准确率。Please refer to FIG. 4, which is a schematic flowchart of steps of a terrain detection method according to an embodiment of the present application. This method can be applied to control equipment to improve the accuracy of terrain detection.
以下将结合图1中的控制系统对该地形检测方法进行详细介绍。需知,图1中的控制系统并不构成对该地形检测方法的应用场景的限定。The terrain detection method will be introduced in detail below in conjunction with the control system in FIG. 1. It should be understood that the control system in FIG. 1 does not constitute a limitation on the application scenario of the terrain detection method.
如图4所示,该地形检测方法包括步骤S101至步骤S106。As shown in Fig. 4, the terrain detection method includes step S101 to step S106.
S101、获取包含地形信息的三维点云数据。S101. Acquire three-dimensional point cloud data containing terrain information.
其中,所述三维点云数据包括多个观测点,每个所述观测点包括第一位置信息、第二位置信息和高度位置信息,其中,所述第一位置信息和第二位置信息不同。在具体实施过程中,第一位置信息、第二位置信息和高度位置信息三者互相垂直。在本实施例中,第一位置信息可以是景深探测距离,第二位置信息可以是水平探测距离,高度位置信息可以是高程值。Wherein, the three-dimensional point cloud data includes a plurality of observation points, each of the observation points includes first position information, second position information, and height position information, wherein the first position information and the second position information are different. In the specific implementation process, the first position information, the second position information, and the height position information are perpendicular to each other. In this embodiment, the first position information may be a depth of field detection distance, the second position information may be a horizontal detection distance, and the height position information may be an elevation value.
在飞行器的飞行过程中,由搭载在飞行器上的的雷达对飞行器的飞行区域的地形信息进行扫描,得到包含地形信息的三维点云数据,并且将得到的包含地形信息的三维点云数据发送至控制设备。During the flight of the aircraft, the radar mounted on the aircraft scans the terrain information of the flight area of the aircraft to obtain three-dimensional point cloud data containing terrain information, and send the obtained three-dimensional point cloud data containing terrain information to controlling device.
S102、依据所述三维点云数据,得到与所述三维点云数据对应的二维图像。S102. Obtain a two-dimensional image corresponding to the three-dimensional point cloud data according to the three-dimensional point cloud data.
根据本发明的一实施方式,依据三维点云数据,将所述三维点云数据映射到对应的二维图像。According to an embodiment of the present invention, the three-dimensional point cloud data is mapped to the corresponding two-dimensional image according to the three-dimensional point cloud data.
具体是控制设备根据获取到的三维点云数据,将三维点云数据投影到二维图像中,得到与三维点云数据对应的二维图像。Specifically, the control device projects the three-dimensional point cloud data into a two-dimensional image according to the acquired three-dimensional point cloud data to obtain a two-dimensional image corresponding to the three-dimensional point cloud data.
在一些实施例中,依据三维点云数据,得到与三维点云数据对应的二维图像的方式,具体为:根据所述三维点云数据确定二维矩阵,并根据所述二维矩阵对所述三维点云数据进行投影,得到二维图像。In some embodiments, the method of obtaining a two-dimensional image corresponding to the three-dimensional point cloud data according to the three-dimensional point cloud data is specifically: determining a two-dimensional matrix according to the three-dimensional point cloud data, and comparing all data according to the two-dimensional matrix. The three-dimensional point cloud data is projected to obtain a two-dimensional image.
其中,根据三维点云数据确定对应的二维矩阵,三维点云数据中的每一个观测点对应二维矩阵中的一个矩阵单元,其中,二维矩阵是构成二维图像的二维像素矩阵,矩阵中每一个矩阵单元为二维图像中一个像素点。根据该二维矩阵将三维点云数据中的全部观测点一一进行投影,得到三维点云数据对应的二维图像。Among them, the corresponding two-dimensional matrix is determined according to the three-dimensional point cloud data. Each observation point in the three-dimensional point cloud data corresponds to a matrix unit in the two-dimensional matrix, where the two-dimensional matrix is a two-dimensional pixel matrix that constitutes a two-dimensional image. Each matrix unit in the matrix is a pixel in the two-dimensional image. According to the two-dimensional matrix, all observation points in the three-dimensional point cloud data are projected one by one to obtain a two-dimensional image corresponding to the three-dimensional point cloud data.
在具体实施过程中,可以一个观测点对应一个矩阵单元,也可以多个观测 点对应一个矩阵单元。In the specific implementation process, one observation point can correspond to one matrix unit, or multiple observation points can correspond to one matrix unit.
根据三维点云数据确定二维矩阵,根据二维矩阵中的矩阵单元与三维点云数据中的观测点的对应关系,对三维点云数据进行投影,提高三维点云数据投影得到的二维图像的准确性。Determine the two-dimensional matrix according to the three-dimensional point cloud data, and project the three-dimensional point cloud data according to the correspondence between the matrix units in the two-dimensional matrix and the observation points in the three-dimensional point cloud data to improve the two-dimensional image obtained by the projection of the three-dimensional point cloud data Accuracy.
在一些实施例中,根据所述三维点云数据确定二维矩阵的方式,具体为:根据所述三维点云数据中观测点的第一位置信息、第二位置信息确定第一目标位置信息和第二目标位置信息;获取距离分辨率,并根据所述第一位置信息、所述第二位置信息和所述距离分辨率确定二维矩阵。In some embodiments, the manner of determining the two-dimensional matrix according to the three-dimensional point cloud data is specifically: determining the first target location information and the second location information of the observation points in the three-dimensional point cloud data. The second target location information; the distance resolution is acquired, and a two-dimensional matrix is determined according to the first location information, the second location information, and the distance resolution.
其中,距离分辨率是指飞行器上搭载的雷达在进行地形信息的扫描时所使用的分辨率。Among them, the range resolution refers to the resolution used by the radar mounted on the aircraft to scan terrain information.
示例性的,根据三维点云数据中观测点的第一位置信息、第二位置信息确定第一目标位置信息和第二目标位置信息,可以是通过计算多个观测点的第一位置信息的平均值确定第一目标位置信息,计算多个观测点的第二位置信息的平均值确定第二目标位置信息。Exemplarily, determining the first target location information and the second target location information according to the first location information and the second location information of the observation points in the three-dimensional point cloud data may be calculated by calculating the average of the first location information of the multiple observation points. The value determines the first target position information, and the average value of the second position information of the multiple observation points is calculated to determine the second target position information.
在具体实施过程中,获取三维点云数据中所有观测点的第一位置信息,也即景深探测距离,计算所有观测点的景深探测距离之和,然后用所有观测点的景深探测距离之和除以观测点的个数,得到景深探测距离的平均值,将景深探测距离的平均值作为第一目标位置信息。获取三维点云数据中所有观测点的第二位置信息,也即水平探测距离,计算所有观测点的水平探测距离之和,然后用所有观测点的水平探测距离之和除以观测点的个数,得到水平探测距离的平均值,将水平探测距离的平均值作为第二目标位置信息。In the specific implementation process, obtain the first position information of all observation points in the 3D point cloud data, that is, the depth of field detection distance, calculate the sum of the depth detection distances of all observation points, and then divide by the sum of the depth detection distances of all observation points According to the number of observation points, the average value of the depth-of-field detection distance is obtained, and the average value of the depth-of-field detection distance is used as the first target position information. Obtain the second position information of all observation points in the 3D point cloud data, that is, the horizontal detection distance, calculate the sum of the horizontal detection distances of all observation points, and then divide the sum of the horizontal detection distances of all observation points by the number of observation points , The average value of the horizontal detection distance is obtained, and the average value of the horizontal detection distance is used as the second target position information.
示例性的,根据三维点云数据中观测点的第一位置信息、第二位置信息确定第一目标位置信息和第二目标位置信息的方式,可以是:从所述三维点云数据中观测点的第一位置信息、第二位置信息中确定最大第一位置信息和最大第二位置信息,分别作为第一目标位置信息和第二目标位置信息。Exemplarily, the method of determining the first target location information and the second target location information according to the first location information and the second location information of the observation point in the three-dimensional point cloud data may be: the observation point from the three-dimensional point cloud data The largest first location information and the largest second location information are determined in the first location information and the second location information as the first target location information and the second target location information, respectively.
在具体实施过程中,获取三维点云数据中所有观测点的第一位置信息,也即景深探测距离,从多个观测点的景深探测距离中确定最大的景深探测距离作为第一目标位置信息。获取三维点云数据中所有观测点的第二位置信息,也即水平探测距离,从多个观测点的水平探测距离中确定最大的水平探测距离作为第一目标位置信息。In the specific implementation process, the first position information of all observation points in the three-dimensional point cloud data, that is, the depth-of-field detection distance, is acquired, and the largest depth-of-field detection distance is determined from the depth-of-field detection distances of multiple observation points as the first target position information. Obtain the second position information of all observation points in the three-dimensional point cloud data, that is, the horizontal detection distance, and determine the largest horizontal detection distance from the horizontal detection distances of the multiple observation points as the first target position information.
在得到第一目标位置信息和第二目标位置信息后,根据距离分辨率,确定二维矩阵的长和宽。After obtaining the first target location information and the second target location information, the length and width of the two-dimensional matrix are determined according to the distance resolution.
示例性的,二维矩阵的长可以是两倍的第一目标位置信息除以距离分辨率,二维矩阵的宽可以是两倍的第二目标位置信息除以距离分辨率。可以理解的是,二维矩阵的长和宽可以互换。Exemplarily, the length of the two-dimensional matrix may be twice the first target location information divided by the distance resolution, and the width of the two-dimensional matrix may be twice the second target location information divided by the distance resolution. It is understandable that the length and width of the two-dimensional matrix can be interchanged.
在一些实施例中,根据所述二维矩阵对所述三维点云数据进行投影,得到二维图像的方式,具体为:确定所述三维点云数据的观测点在所述二维矩阵中对应的矩阵索引;将所述观测点的高度位置信息赋值给所述观测点的矩阵索引对应的矩阵元素;将所述二维矩阵的矩阵索引作为像素点以及将所述二维矩阵的矩阵元素对应高度位置信息作为像素点的像素值,得到二维图像。In some embodiments, the method of projecting the three-dimensional point cloud data according to the two-dimensional matrix to obtain a two-dimensional image is specifically: determining that the observation point of the three-dimensional point cloud data corresponds in the two-dimensional matrix The matrix index of the observation point; assign the height position information of the observation point to the matrix element corresponding to the matrix index of the observation point; use the matrix index of the two-dimensional matrix as a pixel and correspond to the matrix element of the two-dimensional matrix The height position information is used as the pixel value of the pixel to obtain a two-dimensional image.
其中,确定三维点云数据中的各个观测点在二维矩阵中的矩阵索引,将观测点对应的矩阵索引作为像素点,并将观测点的高度位置信息,也即观测点的高程值作为像素点的像素值,从而得到二维图像。确定三维点云数据中的每一个观测点对应的矩阵索引,利用矩阵索引将三维点云数据进行投影,提高三维点云数据在进行投影时的准确率,以及提高得到的二维图像的准确率。Among them, determine the matrix index of each observation point in the three-dimensional point cloud data in the two-dimensional matrix, use the matrix index corresponding to the observation point as the pixel point, and use the height position information of the observation point, that is, the elevation value of the observation point as the pixel The pixel value of the point to obtain a two-dimensional image. Determine the matrix index corresponding to each observation point in the 3D point cloud data, use the matrix index to project the 3D point cloud data, improve the accuracy of the 3D point cloud data during projection, and improve the accuracy of the obtained 2D image .
示例性的,确定所述三维点云数据的观测点在所述二维矩阵中对应的矩阵索引的步骤,具体为:Exemplarily, the step of determining the matrix index corresponding to the observation point of the three-dimensional point cloud data in the two-dimensional matrix is specifically as follows:
计算所述观测点的第一位置信息与最大第一位置信息的和,以及将所述观测点的第一位置信息与最大第一位置信息的和除以距离分辨率的商作为矩阵索引的第一索引值;Calculate the sum of the first position information of the observation point and the largest first position information, and divide the sum of the first position information and the largest first position information of the observation point by the quotient of the distance resolution as the first matrix index An index value;
计算所述观测点的第二位置信息与最大第二位置信息的和,以及将所述观测点的第二位置信息与最大第二位置信息的和除以距离分辨率的商作为矩阵索引的第二索引值。Calculate the sum of the second position information of the observation point and the largest second position information, and divide the sum of the second position information and the largest second position information of the observation point by the quotient of the distance resolution as the first matrix index Two index value.
其中,所述第一索引值和第二索引值是用于在二维矩阵中确定所述观测点对应的矩阵单元,在具体实施过程中,第一索引值可以是所述观测点在所述二维矩阵中的长度方向上的坐标,第二索引值可以是所述观测点在所述二维矩阵中的宽度方向上的坐标。Wherein, the first index value and the second index value are used to determine the matrix unit corresponding to the observation point in a two-dimensional matrix. In a specific implementation process, the first index value may be that the observation point is in the The coordinates in the length direction in the two-dimensional matrix, and the second index value may be the coordinates in the width direction of the observation point in the two-dimensional matrix.
需要说明的是,当二维矩阵的长可以是两倍的第一目标位置信息除以距离分辨率,二维矩阵的宽可以是两倍的第二目标位置信息除以距离分辨率时,所述第一索引值可以是所述观测点在所述二维矩阵中的长度方向上的坐标,第二 索引值可以是所述观测点在所述二维矩阵中的宽度方向上的坐标。It should be noted that when the length of the two-dimensional matrix can be twice the first target position information divided by the distance resolution, and the width of the two-dimensional matrix can be twice the second target position information divided by the distance resolution, The first index value may be the coordinates of the observation point in the length direction of the two-dimensional matrix, and the second index value may be the coordinates of the observation point in the width direction of the two-dimensional matrix.
当二维矩阵的宽是两倍的第一目标位置信息除以距离分辨率,二维矩阵的长是两倍的第二目标位置信息除以距离分辨率时,所述第一索引值可以是所述观测点在所述二维矩阵中的宽度方向上的坐标,第二索引值可以是所述观测点在所述二维矩阵中的长度方向上的坐标。When the width of the two-dimensional matrix is twice the first target position information divided by the distance resolution, and the length of the two-dimensional matrix is twice the second target position information divided by the distance resolution, the first index value may be The coordinates of the observation point in the width direction of the two-dimensional matrix, and the second index value may be the coordinates of the observation point in the length direction of the two-dimensional matrix.
示例性的,在确定出观测点对应的矩阵索引后,将所述观测点的高度位置信息赋值给所述观测点的矩阵索引对应的矩阵元素,从而得到该观测点对应的像素点的像素值。Exemplarily, after the matrix index corresponding to the observation point is determined, the height position information of the observation point is assigned to the matrix element corresponding to the matrix index of the observation point, thereby obtaining the pixel value of the pixel point corresponding to the observation point .
比如,观测点的坐标为(x
i,y
i),其中,x
i为观测点的第一位置信息,也即景深探测距离,x
i为观测点的第二位置信息,也即水平探测距离。
For example, the coordinates of the observation point are (x i , y i ), where x i is the first position information of the observation point, which is the depth of field detection distance, and x i is the second position information of the observation point, which is the horizontal detection distance .
观测点对应的矩阵索引为(I
i,J
i),其中,I
i为矩阵索引的第一索引值,J
i为矩阵索引的第二索引值。则有
Matrix index corresponding to the point of observation (I i, J i), where, I i is the first index value matrix index, J i for the second index value of the index matrix. Then there is
其中,r为距离分辨率,L
x为最大第一位置信息,也即最大景深探测距离,L
y为最大第二位置信息,也即最大水平探测距离。
Among them, r is the range resolution, L x is the maximum first position information, that is, the maximum depth of field detection distance, and Ly is the maximum second position information, that is, the maximum horizontal detection distance.
矩阵索引(I
i,J
i)对应的矩阵元素为:Img(I
i,J
i)=z
i,其中,z
i为高度位置信息,也即高程值。
Matrix index (I i, J i) corresponding to the matrix elements: Img (I i, J i ) = z i, where, z i is the height of the position information, i.e. elevation values.
示例性的,将所述观测点的高度位置信息赋值给所述观测点的矩阵索引对应的矩阵元素的步骤,具体为:Exemplarily, the step of assigning the height position information of the observation point to the matrix element corresponding to the matrix index of the observation point is specifically as follows:
若存在多个观测点对应同一个矩阵索引,确定所述多个观测点对应的高度最大值;将所述高度最大值赋值给所述同一个矩阵索引对应的矩阵元素。If there are multiple observation points corresponding to the same matrix index, determine the maximum height corresponding to the multiple observation points; assign the maximum height to the matrix element corresponding to the same matrix index.
其中,分别判断观测点所对应的矩阵索引,若多个观测点对应同一个矩阵索引,则将这几个观测点中的高度位置信息中最大的值赋值给该矩阵索引对应的矩阵元素。Among them, the matrix index corresponding to the observation point is judged separately, and if multiple observation points correspond to the same matrix index, the largest value in the height position information of the several observation points is assigned to the matrix element corresponding to the matrix index.
当一个矩阵索引多引多个观测点时,为了防止像素值被多次赋值导致丢失观测点最可信的高度位置信息,因此,将多个观测点中高度位置信息的最大值作为该矩阵索引对应的矩阵元素,以提高投影得到的二维图像对三维点云数据 的信息保留完整度。When multiple observation points are cited in a matrix index, in order to prevent the pixel value from being assigned multiple times and cause the loss of the most reliable height position information of the observation point, therefore, the maximum height position information of the multiple observation points is used as the matrix index Corresponding matrix elements to improve the integrity of the information retention of the three-dimensional point cloud data in the two-dimensional image obtained by the projection.
S103、对所述二维图像中缺少像素值的像素点进行像素赋值,得到像素补全后的二维图像。S103: Perform pixel assignment on pixels lacking pixel values in the two-dimensional image to obtain a two-dimensional image with pixel complementation.
在雷达进行地形信息的扫描时,由于雷达扫描存在扫描盲区,以及在雷达采用不同的距离分辨率对同一扫描区域扫描多次时,会出现三维点云数据投影为二维图像后,二维图像中有部分像素点缺少像素值,因此,需要对缺少像素值的像素点进行像素赋值,以对二维图像中的缺失部分进行补全,避免在对二维图像进行后续形态学处理时出错。When the radar scans terrain information, because the radar scan has a scanning blind area, and when the radar uses different range resolutions to scan the same scanning area multiple times, it will appear that the three-dimensional point cloud data is projected into a two-dimensional image. Some of the pixels lack pixel values. Therefore, pixel values need to be assigned to pixels lacking pixel values to complement the missing parts in the two-dimensional image to avoid errors in the subsequent morphological processing of the two-dimensional image.
在一些实施例中,对所述二维图像中缺少像素值的像素点进行像素赋值具体为:确定所述二维图像中缺少像素值的像素点;根据图像插值算法对所述缺少像素值的像素点进行插值处理以补全所述缺少像素值的像素点的像素值。In some embodiments, the pixel assignment of the pixels lacking pixel values in the two-dimensional image specifically includes: determining the pixels lacking pixel values in the two-dimensional image; and determining the pixels lacking pixel values according to an image interpolation algorithm. The pixel points are subjected to interpolation processing to complement the pixel value of the pixel point lacking pixel value.
其中,图像插值算法包括最近邻点插值法、线性插值法和双线性插值法中的一项。Among them, the image interpolation algorithm includes one of the nearest neighbor interpolation method, linear interpolation method and bilinear interpolation method.
示例性的,对二维图像中缺少像素值的像素点的像素赋值的步骤,具体为:Exemplarily, the steps of assigning values to pixels of pixels lacking pixel values in a two-dimensional image are specifically as follows:
根据所述三维点云数据构建德劳内三角网;根据所述德劳内三角网确定所述二维图像中缺少像素值的像素点对应的高度位置信息;以及将确定的高度位置信息赋值给所述二维图像中缺少像素值的像素点,以补全所述缺少像素值的像素点的像素值。Construct a Delaunay triangulation network according to the three-dimensional point cloud data; determine the height position information corresponding to the pixels lacking pixel values in the two-dimensional image according to the Delaunay triangulation network; and assign the determined height position information to The pixel points lacking pixel values in the two-dimensional image are used to complement the pixel values of the pixel points lacking pixel values.
其中,德劳内三角网内包括多个德劳内三角。根据德劳内三角网确定二维图像中缺少像素值的像素点对应的高度位置信息,从而将确定的高度位置信息赋值给二维图像中缺少像素值的像素点。Among them, the Delaunay Triangle includes multiple Delaunay Triangles. According to the Delaunay Triangulation, the height position information corresponding to the pixels lacking pixel values in the two-dimensional image is determined, and the determined height position information is assigned to the pixels lacking pixel values in the two-dimensional image.
示例性的,根据三维点云数据构建德劳内三角网,具体为:以所述三维点云数据中的观测点为顶点构建多个三角形,将所述多个三角形构成德劳内三角网;其中,在所述德劳内三角网中任一所述三角形的外接圆内均不存在其他观测点。Exemplarily, constructing a Delaunay triangulation based on three-dimensional point cloud data is specifically: constructing a plurality of triangles with the observation points in the three-dimensional point cloud data as vertices, and forming the Delaunay triangulation for the plurality of triangles; Wherein, there are no other observation points in the circumcircle of any of the triangles in the Delaunay triangulation network.
其中,如图5为根据获得的三维点云数据构建的德劳内三角网。以三维点云数据中的观测点为顶点,构建多个三角形,其中,构建的各个三角形互不相交且任一三角形的外接圆内均不存在其他观测点,构建的多个三角形构成德劳内三角网。Among them, Figure 5 is a Delaunay triangulation constructed based on the obtained three-dimensional point cloud data. Take the observation points in the three-dimensional point cloud data as the vertices to construct multiple triangles, where the constructed triangles do not intersect each other and there are no other observation points in the circumcircle of any triangle. The constructed multiple triangles constitute Delaunay Triangulation.
在一些实施例中,所述德劳内三角网确定所述二维图像中缺少像素值的像 素点对应的高度位置信息的步骤,具体为:In some embodiments, the step of the Delaunay triangulation determining the height position information corresponding to the pixel points lacking pixel values in the two-dimensional image is specifically:
在所述德劳内三角网内确定目标三角形,所述目标三角形为包括所述缺少像素值的像素点的三角形;根据所述目标三角形确定所述二维图像中缺少像素值的像素点对应的高度位置信息。Determine a target triangle in the Delaunay triangulation, where the target triangle is a triangle including the pixel points lacking pixel values; according to the target triangle, determine the corresponding pixel points in the two-dimensional image that lack pixel values Height position information.
其中,目标三角形为三角形平面内包括缺少像素值的像素点的三角形,在确定出目标三角形后,即可根据该目标三角形确定二维图像中缺少像素值的像素点对应的高度位置信息。The target triangle is a triangle including pixels lacking pixel values in the triangle plane. After the target triangle is determined, the height position information corresponding to the pixels lacking pixel values in the two-dimensional image can be determined according to the target triangle.
示例性的,根据所述目标三角形确定所述二维图像中缺少像素值的像素点对应的高度位置信息的步骤,具体为:Exemplarily, the step of determining, according to the target triangle, the height position information corresponding to the pixel point lacking pixel value in the two-dimensional image is specifically:
获取所述目标三角形三个顶点的第一位置信息、第二位置信息和高度位置信息;根据所述三个顶点的第一位置信息、第二位置信息和高度位置信息计算所述目标三角形的平面方程;确定所述缺少像素值的像素点在所述三维点云数据下对应的第一位置信息和第二位置信息;根据所述平面方程和所述缺少像素值的像素点对应的第一位置信息和第二位置信息计算所述缺少像素值的像素点的高度位置信息。Acquire first position information, second position information, and height position information of the three vertices of the target triangle; calculate the plane of the target triangle according to the first position information, second position information, and height position information of the three vertices Equation; determine the first position information and second position information corresponding to the pixel point lacking pixel value in the three-dimensional point cloud data; according to the plane equation and the first position corresponding to the pixel point lacking pixel value The information and the second position information calculate the height position information of the pixel point lacking pixel value.
其中,确定所述缺少像素值的像素点在所述三维点云数据下对应的第一位置信息和第二位置信息的计算过程,可以是计算三维点云数据中观测点所对应的矩阵索引的计算过程的逆运算,在此不再详细说明。Wherein, the calculation process of determining the first position information and the second position information corresponding to the pixel point lacking pixel value in the three-dimensional point cloud data may be the calculation of the matrix index corresponding to the observation point in the three-dimensional point cloud data The inverse operation of the calculation process will not be described in detail here.
在确定目标三角形后,获取目标三角形三个顶点的第一位置信息、第二位置信息和高度位置信息,并且根据三个顶点的第一位置信息、第二位置信息和高度位置信息计算目标三角形的三元空间平面方程。将缺少像素值的像素点的第一位置信息和第二位置信息分别代入所述三元空间平面方程中,求解得到缺少像素值的像素点的高度位置信息,在地形变化较为剧烈时,减少因像素补全造成的平滑失真,提高了计算得到的缺少像素值的像素点的高度位置信息的准确性。After determining the target triangle, obtain the first position information, second position information, and height position information of the three vertices of the target triangle, and calculate the target triangle's position information according to the first position information, second position information, and height position information of the three vertices. Plane equation in ternary space. Substituting the first position information and the second position information of the pixels lacking pixel values into the ternary space plane equation, and solving the height position information of the pixels lacking pixel values. When the terrain changes drastically, reduce the factor The smooth distortion caused by pixel completion improves the accuracy of the calculated height position information of the pixels lacking pixel values.
示例性的,为了快速确定二维图像中缺少像素值的像素点对应的高度位置信息,根据所述目标三角形确定所述二维图像中缺少像素值的像素点对应的高度位置信息的步骤,具体为:Exemplarily, in order to quickly determine the height position information corresponding to the pixels lacking pixel values in the two-dimensional image, the step of determining the height position information corresponding to the pixels lacking pixel values in the two-dimensional image according to the target triangle is specifically for:
计算所述缺少像素值的像素点距离所述目标三角形三个顶点的距离;根据所述距离确定距所述缺少像素值的像素点最近的顶点为目标顶点,并将所述目 标顶点的高度位置信息作为所述缺少像素值的像素点对应的高度位置信息。Calculate the distance between the pixel point lacking pixel value and the three vertices of the target triangle; determine the vertex closest to the pixel point lacking pixel value as the target vertex according to the distance, and determine the height position of the target vertex The information serves as height position information corresponding to the pixel point lacking pixel value.
其中,在确定目标三角形后,分别计算缺少像素值的像素点与目标三角形三个顶点之间的距离,并将计算出的距离最小值所对应的顶点作为距离缺少像素值的像素点最近的目标顶点,将目标顶点的高度位置信息作为缺少像素值的像素点的高度位置信息,在地形变化较为平缓时,减少高度位置信息的计算量。Among them, after determining the target triangle, calculate the distance between the pixel point lacking pixel value and the three vertices of the target triangle, and use the vertex corresponding to the calculated minimum distance as the closest target to the pixel point lacking pixel value Vertex, the height position information of the target vertex is taken as the height position information of the pixel point lacking pixel value, and the calculation amount of the height position information is reduced when the terrain changes relatively smoothly.
当计算出的距离最小值所对应的目标顶点数量为两个及以上时,计算所述目标顶点的高度位置信息的均值,以计算出的均值作为缺少像素值的像素点的高度位置信息。When the number of target vertices corresponding to the calculated minimum distance is two or more, the average value of the height position information of the target vertices is calculated, and the calculated average value is used as the height position information of pixels lacking pixel values.
S104、对所述像素补全后的二维图像进行形态学处理,得到已处理的二维图像。S104: Perform morphological processing on the two-dimensional image after the pixel complementation to obtain a processed two-dimensional image.
其中,形态学处理包括:闭运算操作、开运算操作、先进行闭运算操作再进行开运算操作和先进行开运算操作再进行闭运算操作中的一项。对像素补全后的二维图像进行形态学处理,对二维图像中的杂点进行剔除。Among them, the morphological processing includes: closing operation, opening operation, closing operation first and then opening operation, and opening operation first and then closing operation. Morphological processing is performed on the two-dimensional image after pixel complementation, and the noise in the two-dimensional image is eliminated.
示例性的,所述闭运算操作包括:先进行膨胀运算操作,再进行腐蚀运算操作。经过闭运算,二维图像中的杂点被滤除,也即三维点云数据中的杂点被滤除。Exemplarily, the closing operation operation includes: performing an expansion operation operation first, and then performing an erosion operation operation. After the closing operation, the noise in the two-dimensional image is filtered out, that is, the noise in the three-dimensional point cloud data is filtered out.
在具体实施过程中,闭运算的运算公式如下所示:In the specific implementation process, the calculation formula of the closed operation is as follows:
其中,kernel为结构元素(即卷积核),
为膨胀运算符,Θ为腐蚀运算符。I
i为矩阵索引的第一索引值,J
i为矩阵索引的第二索引值。
Among them, the kernel is the structural element (that is, the convolution kernel), Is the expansion operator, and Θ is the corrosion operator. I i is the first index value of the matrix index, and J i is the second index value of the matrix index.
示例性的,所述开运算操作包括:先进行腐蚀运算操作,再进行膨胀运算操作。经过开运算,在剔除杂点的同时,保留了局部最低点。Exemplarily, the opening operation operation includes: first performing a corrosion operation operation, and then performing an expansion operation operation. After the open operation, the local lowest point is kept while removing the noise.
在一些实施例中,所述对所述像素补全后的二维图像进行形态学处理,得到已处理的二维图像的步骤,具体为:In some embodiments, the step of performing morphological processing on the two-dimensional image after the pixel complementation to obtain a processed two-dimensional image is specifically:
选择多个不同大小的卷积核对所述像素补全后的二维图像的像素点进行形态学处理,并对运算处理结果赋予不同的权值,得到滤除杂点的二维图像。A plurality of convolution kernels of different sizes are selected to perform morphological processing on the pixels of the two-dimensional image after the pixel complementation, and different weights are assigned to the results of the calculation processing to obtain a two-dimensional image with noise removed.
其中,由于形态学处理,也即形态滤波的效果较大程度依赖于所选取的卷 积核的大小,过小的卷积核会保留过多的障碍物目标,过大的卷积核会造成地形平滑失真。而为了消除形态学处理造成的地形平滑失真以及解决保留过多地面障碍物目标的问题,可以采用一系列不同大小的卷积核对二维图像中的像素点进行形态运算,并对运算结果赋予不同的权值,以得到各个像素点的滤波像素值,得到滤除杂点的二维图像。Among them, due to morphological processing, that is, the effect of morphological filtering largely depends on the size of the selected convolution kernel, too small convolution kernel will retain too many obstacles and targets, and too large convolution kernel will cause The terrain is smooth and distorted. In order to eliminate the smooth distortion of terrain caused by morphological processing and solve the problem of retaining too many obstacles on the ground, a series of convolution kernels of different sizes can be used to perform morphological operations on the pixels in the two-dimensional image, and assign different results to the calculation results. To obtain the filtered pixel value of each pixel to obtain a two-dimensional image with noise removed.
例如,采用的卷积核为{kernal
1,kernal
2,kernal
3,…,kernal
n},赋予对应的形态运算结果不同的权值{w
1,w
2,w
3,…,w
n}
For example, the convolution kernel used is {kernal 1 ,kernal 2 ,kernal 3 ,...,kernal n }, and different weights are assigned to the corresponding morphological operation results {w 1 ,w 2 ,w 3 ,...,w n }
得到的滤波像素值为:The resulting filtered pixel value is:
其中,kernal
i为第i个卷积核,i=1,2,…,n。示例性的,在对像素补全后的二维图像进行形态学处理时,针对所述像素补全后的二维图像中每个像素点,所述闭运算操作和/或所述开运算操作均选择不同的卷积核。
Among them, kernal i is the i-th convolution kernel, i=1, 2,...,n. Exemplarily, when performing morphological processing on a two-dimensional image after pixel complementation, for each pixel in the two-dimensional image after pixel complementation, the closing operation and/or the opening operation are Choose different convolution kernels.
示例性的,在对像素补全后的二维图像进行形态学处理时,针对所述像素补全后的二维图像中每个像素点,所述闭运算操作和/或所述开运算操作均选择不同的卷积核,且针对不同卷积核的运算处理结果设置有不同的权值。Exemplarily, when performing morphological processing on a pixel-completion two-dimensional image, for each pixel in the pixel-completion two-dimensional image, the closing operation and/or the opening operation are Different convolution kernels are selected, and different weights are set for the operation processing results of different convolution kernels.
其中,地形信息包括:地面高度、地面平整度、地面坡度中的一项或多项。Wherein, the terrain information includes one or more of ground height, ground flatness, and ground slope.
在一些实施例中,为了快速确定地形信息,根据所述已处理的二维图像确定地形信息的步骤,具体为:In some embodiments, in order to quickly determine the terrain information, the step of determining the terrain information according to the processed two-dimensional image is specifically as follows:
S105、根据所述已处理的二维图像重建三维点云数据。S105: Reconstruct 3D point cloud data according to the processed 2D image.
S106、根据重建的三维点云数据确定地形信息。S106: Determine terrain information according to the reconstructed three-dimensional point cloud data.
其中,根据已处理的二维图像重建三维点云数据,然后对重建的三维点云数据进行拟合,得到拟合平面,通过拟合平面即可提取地面高度、地面坡度、地面平整度等地形信息。Among them, the 3D point cloud data is reconstructed according to the processed 2D image, and then the reconstructed 3D point cloud data is fitted to obtain a fitting plane. The ground height, ground slope, and ground flatness can be extracted by fitting the plane. information.
示例性的,根据已处理的二维图像重建三维点云数据的步骤,具体为:获取所述已处理的二维图像中像素点对应的矩阵索引;根据所述像素点的矩阵索引对所述像素点进行坐标转换,以获得与所述像素点对应的重建点的第一位置信息和第二位置信息;将所述像素点的像素值作为所述重建点的高度位置信息,完成三维点云数据的重建。Exemplarily, the step of reconstructing three-dimensional point cloud data from a processed two-dimensional image is specifically: acquiring a matrix index corresponding to a pixel in the processed two-dimensional image; The pixel point undergoes coordinate conversion to obtain the first position information and the second position information of the reconstructed point corresponding to the pixel point; the pixel value of the pixel point is used as the height position information of the reconstructed point to complete a three-dimensional point cloud Reconstruction of data.
其中,获取到二维图像中像素点对应的矩阵索引和像素值,根据矩阵索引 对像素点进行坐标转换,得到与像素点对应的重建点的第一位置信息和第二位置信息,然后将像素值作为重建点的高度位置信息,完成三维点云数据的重建。Among them, the matrix index and pixel value corresponding to the pixel in the two-dimensional image are obtained, and the coordinate conversion of the pixel is performed according to the matrix index to obtain the first position information and the second position information of the reconstructed point corresponding to the pixel, and then the pixel The value is used as the height position information of the reconstructed point to complete the reconstruction of the three-dimensional point cloud data.
在具体实施过程中,根据所述像素点的矩阵索引对所述像素点进行坐标转换,以获得与所述像素点对应的重建点的第一位置信息和第二位置信息,包括:计算所述像素点的所述第一索引值与距离分辨率的乘积,将所述第一索引值与距离分辨率的乘积减去最大景深距离的差值作为与所述像素点对应的重建点的第一位置信息;计算所述像素点的所述第二索引值与距离分辨率的乘积,将所述第二索引值与距离分辨率的乘积减去第二位置信息的差值作为与所述像素点对应的重建点的第二位置信息。In a specific implementation process, performing coordinate conversion on the pixel point according to the matrix index of the pixel point to obtain the first position information and the second position information of the reconstructed point corresponding to the pixel point includes: calculating the The product of the first index value of the pixel point and the distance resolution, and the product of the first index value and the distance resolution minus the difference of the maximum depth of field distance is taken as the first reconstruction point corresponding to the pixel point Position information; calculate the product of the second index value of the pixel and the distance resolution, and take the product of the second index value and the distance resolution minus the difference of the second position information as the difference with the pixel The second location information of the corresponding reconstruction point.
例如,重建点的坐标为(x
i,y
i),其中,x
i为观测点的第一位置信息,也即景深探测距离,x
i为观测点的第二位置信息,也即水平探测距离。
For example, the coordinates of the reconstructed point are (x i , y i ), where x i is the first position information of the observation point, which is the depth of field detection distance, and x i is the second position information of the observation point, which is the horizontal detection distance .
重建点对应的矩阵索引为(I
i,J
i),其中,I
i为矩阵索引的第一索引值,J
i为矩阵索引的第二索引值。则有:
Reconstruction dot matrix corresponding to index (I i, J i), where, I i is the first index value matrix index, J i for the second index value of the index matrix. Then there are:
x
i=I
i*r-L
x
x i =I i *rL x
y
i=J
i*r-L
y
y i =J i *rL y
其中,r为距离分辨率,L
x为最大第一位置信息,也即最大景深探测距离,L
y为最大第二位置信息,也即最大水平探测距离。
Among them, r is the range resolution, L x is the maximum first position information, that is, the maximum depth of field detection distance, and Ly is the maximum second position information, that is, the maximum horizontal detection distance.
在一些实施例中,根据重建的三维点云数据确定地形信息的步骤,具体为:对重建的三维点云数据进行拟合以得到拟合平面,根据所述拟合平面确定地形信息。In some embodiments, the step of determining terrain information according to the reconstructed three-dimensional point cloud data is specifically: fitting the reconstructed three-dimensional point cloud data to obtain a fitting plane, and determining the terrain information according to the fitting plane.
其中,根据已处理的二维图像重建三维点云数据,然后对重建的三维点云数据进行拟合,得到拟合平面,通过拟合平面即可提取地面高度、地面坡度、地面平整度等地形信息。Among them, the 3D point cloud data is reconstructed according to the processed 2D image, and then the reconstructed 3D point cloud data is fitted to obtain a fitting plane. The ground height, ground slope, and ground flatness can be extracted by fitting the plane. information.
示例性的,根据拟合平面中多个重建点的高度位置信息计算均值,根据均值确定扫描区域的地面平整度。Exemplarily, the average value is calculated according to the height position information of the multiple reconstruction points in the fitting plane, and the ground flatness of the scanning area is determined according to the average value.
示例性的,依据多个重建点的高度位置信息,确定拟合平面的坡度。Exemplarily, the slope of the fitting plane is determined according to the height position information of multiple reconstruction points.
上述实施例通过获取包含地形信息的三维点云数据;依据所述三维点云数据,得到与所述三维点云数据对应的二维图像;对所述二维图像中缺少像素值的像素点进行像素赋值,得到像素补全后的二维图像;对所述像素补全后的二 维图像进行形态学处理,得到已处理的二维图像;根据所述已处理的二维图像确定地形信息。基于数字图像形态学处理,将三维点云数据投影到二维图像中,对二维图像进行形态滤波,能够在去除杂点的同时,将地面与地面目标分离,从而实现对地面的准确估计。The foregoing embodiment obtains three-dimensional point cloud data containing terrain information; obtains a two-dimensional image corresponding to the three-dimensional point cloud data according to the three-dimensional point cloud data; performs processing on the pixels in the two-dimensional image that lack pixel values Pixel assignment is used to obtain a two-dimensional image after pixel complementation; morphological processing is performed on the two-dimensional image after pixel complementation to obtain a processed two-dimensional image; terrain information is determined according to the processed two-dimensional image. Based on digital image morphology processing, the three-dimensional point cloud data is projected into the two-dimensional image, and the two-dimensional image is morphologically filtered. The ground can be separated from the ground target while removing the noise, so as to realize the accurate estimation of the ground.
请参阅图6,图6是本申请一实施例提供的可移动平台的示意性框图。该可移动平台11包括处理器111、存储器112和检测装置113,处理器111、存储器112和检测装置113通过总线连接,该总线比如为I2C(Inter-integrated Circuit)总线或者,检测装置113与处理器111通过CAN总线连接。Please refer to FIG. 6, which is a schematic block diagram of a movable platform provided by an embodiment of the present application. The mobile platform 11 includes a processor 111, a memory 112, and a detection device 113. The processor 111, the memory 112, and the detection device 113 are connected by a bus, such as an I2C (Inter-integrated Circuit) bus or the detection device 113 and the processing device 113. The device 111 is connected via the CAN bus.
其中,该可移动平台包括飞行器、机器人或自动无人驾驶车辆等。Among them, the movable platform includes aircraft, robots or autonomous unmanned vehicles.
具体地,处理器111可以是微控制单元(Micro-controller Unit,MCU)、中央处理单元(Central Processing Unit,CPU)或数字信号处理器(Digital Signal Processor,DSP)等。Specifically, the processor 111 may be a micro-controller unit (MCU), a central processing unit (CPU), a digital signal processor (Digital Signal Processor, DSP), or the like.
具体地,存储器112可以是Flash芯片、只读存储器(ROM,Read-Only Memory)磁盘、光盘、U盘或移动硬盘等。Specifically, the memory 112 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk, or a mobile hard disk.
具体地,检测装置113用于地形检测并采集包含地形信息的三维点云数据。Specifically, the detection device 113 is used for terrain detection and collecting three-dimensional point cloud data containing terrain information.
其中,所述处理器用于运行存储在存储器中的计算机程序,并在执行所述计算机程序时实现如下步骤:Wherein, the processor is used to run a computer program stored in a memory, and implement the following steps when executing the computer program:
获取包含地形信息的三维点云数据;Obtain 3D point cloud data containing terrain information;
依据所述三维点云数据,得到与所述三维点云数据对应的二维图像;Obtaining a two-dimensional image corresponding to the three-dimensional point cloud data according to the three-dimensional point cloud data;
对所述二维图像中缺少像素值的像素点进行像素赋值,得到像素补全后的二维图像;Pixel assignment is performed on pixels lacking pixel values in the two-dimensional image to obtain a two-dimensional image with pixel complementation;
对所述像素补全后的二维图像进行形态学处理,得到已处理的二维图像;Performing morphological processing on the two-dimensional image after the pixel complementation to obtain a processed two-dimensional image;
根据所述已处理的二维图像,重建三维点云数据;以及Reconstructing three-dimensional point cloud data according to the processed two-dimensional image; and
根据重建的三维点云数据,确定地形信息。According to the reconstructed 3D point cloud data, the terrain information is determined.
在一些实施例中,所述处理器实现所述依据所述三维点云数据,得到与所述三维点云数据对应的二维图像的步骤,包括:In some embodiments, the processor implementing the step of obtaining a two-dimensional image corresponding to the three-dimensional point cloud data according to the three-dimensional point cloud data includes:
根据所述三维点云数据确定二维矩阵,并根据所述二维矩阵对所述三维点云数据进行投影,得到二维图像。A two-dimensional matrix is determined according to the three-dimensional point cloud data, and the three-dimensional point cloud data is projected according to the two-dimensional matrix to obtain a two-dimensional image.
在一些实施例中,所述三维点云数据包括多个观测点,每个所述观测点包括第一位置信息、第二位置信息和高度位置信息,其中,所述第一位置信息和 第二位置信息不同。In some embodiments, the three-dimensional point cloud data includes a plurality of observation points, and each of the observation points includes first position information, second position information, and height position information, wherein the first position information and the second position information The location information is different.
在一些实施例中,所述处理器实现所述根据所述三维点云数据确定二维矩阵的步骤,包括:In some embodiments, the processor implementing the step of determining a two-dimensional matrix based on the three-dimensional point cloud data includes:
根据所述三维点云数据中观测点的第一位置信息、第二位置信息确定第一目标位置信息和第二目标位置信息;Determining the first target location information and the second target location information according to the first location information and the second location information of the observation point in the three-dimensional point cloud data;
获取距离分辨率,并根据所述第一位置信息、所述第二位置信息和所述距离分辨率确定二维矩阵。Obtain the distance resolution, and determine a two-dimensional matrix according to the first position information, the second position information, and the distance resolution.
在一些实施例中,所述处理器实现所述根据所述三维点云数据中观测点的第一位置信息、第二位置信息确定第一目标位置信息和第二目标位置信息的步骤,包括:In some embodiments, the processor implementing the step of determining the first target location information and the second target location information based on the first location information and the second location information of the observation points in the three-dimensional point cloud data includes:
从所述三维点云数据中观测点的第一位置信息、第二位置信息中确定最大第一位置信息和最大第二位置信息,分别作为第一目标位置信息和第二目标位置信息。The maximum first position information and the maximum second position information are determined from the first position information and the second position information of the observation point in the three-dimensional point cloud data, as the first target position information and the second target position information, respectively.
在一些实施例中,所述处理器实现所述根据所述二维矩阵对所述三维点云数据进行投影,得到二维图像的步骤,包括:In some embodiments, the processor implementing the step of projecting the three-dimensional point cloud data according to the two-dimensional matrix to obtain a two-dimensional image includes:
确定所述三维点云数据的观测点在所述二维矩阵中对应的矩阵索引;Determine the matrix index corresponding to the observation point of the three-dimensional point cloud data in the two-dimensional matrix;
将所述观测点的高度位置信息赋值给所述观测点的矩阵索引对应的矩阵元素;Assigning the height position information of the observation point to the matrix element corresponding to the matrix index of the observation point;
将所述二维矩阵的矩阵索引作为像素点以及将所述二维矩阵的矩阵元素对应高度位置信息作为像素点的像素值,得到二维图像。Taking the matrix index of the two-dimensional matrix as a pixel and taking the height position information corresponding to the matrix element of the two-dimensional matrix as the pixel value of the pixel, a two-dimensional image is obtained.
在一些实施例中,所述处理器实现所述确定所述三维点云数据的观测点在所述二维矩阵中对应的矩阵索引的步骤,包括:In some embodiments, the processor implementing the step of determining the matrix index corresponding to the observation point of the three-dimensional point cloud data in the two-dimensional matrix includes:
计算所述观测点的第一位置信息与最大第一位置信息的和,以及将所述观测点的第一位置信息与最大第一位置信息的和除以距离分辨率的商作为矩阵索引的第一索引值;Calculate the sum of the first position information of the observation point and the largest first position information, and divide the sum of the first position information and the largest first position information of the observation point by the quotient of the distance resolution as the first matrix index An index value;
计算所述观测点的第二位置信息与最大第二位置信息的和,以及将所述观测点的第二位置信息与最大第二位置信息的和除以距离分辨率的商作为矩阵索引的第二索引值。Calculate the sum of the second position information of the observation point and the largest second position information, and divide the sum of the second position information and the largest second position information of the observation point by the quotient of the distance resolution as the first matrix index Two index value.
在一些实施例中,所述处理器实现所述将所述观测点的高度位置信息赋值给所述观测点的矩阵索引对应的矩阵元素的步骤,包括:In some embodiments, the processor implementing the step of assigning the height position information of the observation point to the matrix element corresponding to the matrix index of the observation point includes:
若存在多个观测点对应同一个矩阵索引,确定所述多个观测点对应的高度最大值;If there are multiple observation points corresponding to the same matrix index, determine the maximum height corresponding to the multiple observation points;
将所述高度最大值赋值给所述同一个矩阵索引对应的矩阵元素。Assign the maximum value of the height to the matrix element corresponding to the same matrix index.
在一些实施例中,所述处理器实现所述对所述二维图像中缺少像素值的像素点进行像素赋值的步骤,包括:In some embodiments, the processor implementing the step of pixel assignment to pixels lacking pixel values in the two-dimensional image includes:
确定所述二维图像中缺少像素值的像素点;Determine the pixel points lacking pixel values in the two-dimensional image;
根据图像插值算法对所述缺少像素值的像素点进行插值处理以补全所述缺少像素值的像素点的像素值。Perform interpolation processing on the pixel point lacking pixel value according to an image interpolation algorithm to complement the pixel value of the pixel point lacking pixel value.
在一些实施例中,所述图像插值算法,包括:最近邻点插值法、线性插值法和双线性插值法中的一项。In some embodiments, the image interpolation algorithm includes one of: nearest neighbor interpolation, linear interpolation, and bilinear interpolation.
在一些实施例中,所述处理器实现所述对所述二维图像中缺少像素值的像素点进行像素赋值的步骤,包括:In some embodiments, the processor implementing the step of pixel assignment to pixels lacking pixel values in the two-dimensional image includes:
根据所述三维点云数据构建德劳内三角网;Constructing a Delaunay triangulation network according to the three-dimensional point cloud data;
根据所述德劳内三角网确定所述二维图像中缺少像素值的像素点对应的高度位置信息;以及Determining, according to the Delaunay Triangulation, the height and position information corresponding to the pixels lacking pixel values in the two-dimensional image; and
将确定的高度位置信息赋值给所述二维图像中缺少像素值的像素点,以补全所述缺少像素值的像素点的像素值。The determined height position information is assigned to the pixel point lacking pixel value in the two-dimensional image to complete the pixel value of the pixel point lacking pixel value.
在一些实施例中,所述处理器实现所述根据所述三维点云数据构建德劳内三角的步骤,包括:In some embodiments, the processor implementing the step of constructing Delaunay's triangle based on the three-dimensional point cloud data includes:
以所述三维点云数据中的观测点为顶点构建多个三角形,将所述多个三角形构成德劳内三角网;Constructing a plurality of triangles with the observation points in the three-dimensional point cloud data as vertices, and forming the Delaunay triangulation network;
其中,在所述德劳内三角网中任一所述三角形的外接圆内均不存在其他观测点。Wherein, there are no other observation points in the circumcircle of any of the triangles in the Delaunay triangulation network.
在一些实施例中,所述处理器实现所述根据所述德劳内三角网确定所述二维图像中缺少像素值的像素点对应的高度位置信息的步骤,包括:In some embodiments, the processor implementing the step of determining, according to the Delaunay triangulation, the step of determining height position information corresponding to pixels lacking pixel values in the two-dimensional image includes:
在所述德劳内三角网内确定目标三角形,所述目标三角形为包括所述缺少像素值的像素点的三角形;Determining a target triangle in the Delaunay Triangulation, where the target triangle is a triangle including the pixel points lacking pixel values;
根据所述目标三角形确定所述二维图像中缺少像素值的像素点对应的高度位置信息。The height position information corresponding to the pixel point lacking pixel value in the two-dimensional image is determined according to the target triangle.
在一些实施例中,所述处理器实现所述根据所述目标三角形确定所述二维 图像中缺少像素值的像素点对应的高度位置信息的步骤,包括:In some embodiments, the processor implementing the step of determining height position information corresponding to pixels lacking pixel values in the two-dimensional image according to the target triangle includes:
获取所述目标三角形三个顶点的第一位置信息、第二位置信息和高度位置信息;Acquiring first position information, second position information, and height position information of the three vertices of the target triangle;
根据所述三个顶点的第一位置信息、第二位置信息和高度位置信息计算所述目标三角形的平面方程;Calculating the plane equation of the target triangle according to the first position information, the second position information, and the height position information of the three vertices;
确定所述缺少像素值的像素点在所述三维点云数据下对应的第一位置信息和第二位置信息;Determining first position information and second position information corresponding to the pixel point lacking pixel value under the three-dimensional point cloud data;
根据所述平面方程和所述缺少像素值的像素点对应的第一位置信息和第二位置信息计算所述缺少像素值的像素点的高度位置信息。The height position information of the pixel point lacking pixel value is calculated according to the plane equation and the first position information and second position information corresponding to the pixel point lacking pixel value.
在一些实施例中,所述处理器实现所述根据所述目标三角形确定所述二维图像中缺少像素值的像素点对应的高度位置信息的步骤,包括:In some embodiments, the processor implementing the step of determining height position information corresponding to pixels lacking pixel values in the two-dimensional image according to the target triangle includes:
计算所述缺少像素值的像素点距离所述目标三角形三个顶点的距离;Calculating the distance between the pixel point lacking pixel value and the three vertices of the target triangle;
根据所述距离确定距所述缺少像素值的像素点最近的顶点为目标顶点,并将所述目标顶点的高度位置信息作为所述缺少像素值的像素点对应的高度位置信息。The vertex closest to the pixel point lacking pixel value is determined as the target vertex according to the distance, and the height position information of the target vertex is used as the height position information corresponding to the pixel point lacking pixel value.
在一些实施例中,所述形态学处理包括:闭运算操作、开运算操作、先进行闭运算操作再进行开运算操作和先进行开运算操作再进行闭运算操作中的一项。In some embodiments, the morphological processing includes one of a closing operation, an opening operation, a closing operation first and then an opening operation, and an opening operation before the closing operation.
在一些实施例中,所述闭运算操作包括:先进行膨胀运算操作,再进行腐蚀运算操作;或者,所述开运算操作包括:先进行腐蚀运算操作,再进行膨胀运算操作。In some embodiments, the closing operation includes: performing an expansion operation first, and then performing an erosion operation; or, the opening operation includes: performing an erosion operation first, and then an expansion operation.
在一些实施例中,所述处理器实现所述对所述像素补全后的二维图像进行形态学处理,得到已处理的二维图像的步骤,包括:In some embodiments, the step of performing morphological processing on the two-dimensional image after pixel complementation by the processor to obtain a processed two-dimensional image includes:
选择多个不同大小的卷积核对所述像素补全后的二维图像的像素点进行形态学处理,并对运算处理结果赋予不同的权值,得到滤除杂点的二维图像。A plurality of convolution kernels of different sizes are selected to perform morphological processing on the pixels of the two-dimensional image after the pixel complementation, and different weights are assigned to the results of the calculation processing to obtain a two-dimensional image with noise removed.
在一些实施例中,针对所述像素补全后的二维图像中每个像素点,所述闭运算操作和/或所述开运算操作均选择不同的卷积核。In some embodiments, for each pixel in the two-dimensional image after the pixel complementation, a different convolution kernel is selected for the closing operation and/or the opening operation.
在一些实施例中,针对所述像素补全后的二维图像中每个像素点,所述闭运算操作和/或所述开运算操作均选择不同的卷积核,且针对不同卷积核的运算处理结果设置有不同的权值。In some embodiments, for each pixel in the pixel-completion two-dimensional image, the closing operation and/or the opening operation both select different convolution kernels, and for different convolution kernels Different weights are set for the operation processing results of.
在一些实施例中,所述处理器实现所述根据所述已处理的二维图像重建三维点云数据的步骤,包括:In some embodiments, the processor implementing the step of reconstructing three-dimensional point cloud data from the processed two-dimensional image includes:
获取所述已处理的二维图像中像素点对应的矩阵索引;Acquiring a matrix index corresponding to a pixel in the processed two-dimensional image;
根据所述像素点的矩阵索引对所述像素点进行坐标转换,以获得与所述像素点对应的重建点的第一位置信息和第二位置信息;Performing coordinate conversion on the pixel point according to the matrix index of the pixel point to obtain the first position information and the second position information of the reconstructed point corresponding to the pixel point;
将所述像素点的像素值作为所述重建点的高度位置信息,完成三维点云数据的重建。The pixel value of the pixel point is used as the height position information of the reconstructed point to complete the reconstruction of the three-dimensional point cloud data.
在一些实施例中,所述处理器实现所述根据所述像素点的矩阵索引对所述像素点进行坐标转换,以获得与所述像素点对应的重建点的第一位置信息和第二位置信息的步骤,包括:In some embodiments, the processor implements the coordinate conversion of the pixel point according to the matrix index of the pixel point to obtain the first position information and the second position of the reconstructed point corresponding to the pixel point The information steps include:
计算所述像素点的所述第一索引值与距离分辨率的乘积,将所述第一索引值与距离分辨率的乘积减去最大景深距离的差值作为与所述像素点对应的重建点的第一位置信息;Calculate the product of the first index value of the pixel point and the distance resolution, and use the product of the first index value and the distance resolution minus the difference of the maximum depth of field distance as the reconstruction point corresponding to the pixel point ’S first location information;
计算所述像素点的所述第二索引值与距离分辨率的乘积,将所述第二索引值与距离分辨率的乘积减去第二位置信息的差值作为与所述像素点对应的重建点的第二位置信息。Calculate the product of the second index value of the pixel point and the distance resolution, and use the product of the second index value and the distance resolution minus the difference of the second position information as the reconstruction corresponding to the pixel point The second location information of the point.
在一些实施例中,所述处理器实现所述根据重建的三维点云数据确定地形信息的步骤,包括:In some embodiments, the processor implementing the step of determining terrain information according to the reconstructed three-dimensional point cloud data includes:
对重建的三维点云数据进行拟合以得到拟合平面,根据所述拟合平面确定地形信息。Fitting the reconstructed three-dimensional point cloud data to obtain a fitting plane, and determining terrain information according to the fitting plane.
在一些实施例中,所述地形信息包括地面高度、地面平整度、地面坡度中的一项或多项。In some embodiments, the terrain information includes one or more of ground height, ground flatness, and ground slope.
请参阅图7,图7是本申请一实施例提供的控制设备的示意性框图。该控制设备12包括处理器121和存储器122,处理器121和存储器122通过总线连接,该总线比如为I2C(Inter-integrated Circuit)总线。Please refer to FIG. 7, which is a schematic block diagram of a control device provided by an embodiment of the present application. The control device 12 includes a processor 121 and a memory 122, and the processor 121 and the memory 122 are connected by a bus, such as an I2C (Inter-integrated Circuit) bus.
具体地,处理器121可以是微控制单元(Micro-controller Unit,MCU)、中央处理单元(Central Processing Unit,CPU)或数字信号处理器(Digital Signal Processor,DSP)等。Specifically, the processor 121 may be a micro-controller unit (MCU), a central processing unit (CPU), a digital signal processor (Digital Signal Processor, DSP), or the like.
具体地,存储器122可以是Flash芯片、只读存储器(ROM,Read-Only Memory)磁盘、光盘、U盘或移动硬盘等,存储器122用于存储计算机程序。Specifically, the memory 122 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk, or a mobile hard disk, etc. The memory 122 is used to store computer programs.
其中,所述处理器用于运行存储在存储器中的计算机程序,并在执行所述计算机程序时实现如下步骤:Wherein, the processor is used to run a computer program stored in a memory, and implement the following steps when executing the computer program:
获取包含地形信息的三维点云数据;Obtain 3D point cloud data containing terrain information;
依据所述三维点云数据,得到与所述三维点云数据对应的二维图像;Obtaining a two-dimensional image corresponding to the three-dimensional point cloud data according to the three-dimensional point cloud data;
对所述二维图像中缺少像素值的像素点进行像素赋值,得到像素补全后的二维图像;Pixel assignment is performed on pixels lacking pixel values in the two-dimensional image to obtain a two-dimensional image with pixel complementation;
对所述像素补全后的二维图像进行形态学处理,得到已处理的二维图像;Performing morphological processing on the two-dimensional image after the pixel complementation to obtain a processed two-dimensional image;
根据所述已处理的二维图像,重建三维点云数据;以及Reconstructing three-dimensional point cloud data according to the processed two-dimensional image; and
根据重建的三维点云数据,确定地形信息,并将确定的地形信息发送至可移动平台。According to the reconstructed 3D point cloud data, the terrain information is determined, and the determined terrain information is sent to the movable platform.
本申请的实施例还提供了一种控制系统,可例如为图1所示的飞行控制系统,所述控制系统包括可移动平台和控制设备,所述控制设备与所述可移动平台通信连接;The embodiment of the present application also provides a control system, which may be, for example, the flight control system shown in FIG. 1. The control system includes a movable platform and a control device, and the control device is communicatively connected with the movable platform;
所述可移动平台用于采集三维点云数据并将所述三维点云数据发送至所述控制设备。The movable platform is used to collect three-dimensional point cloud data and send the three-dimensional point cloud data to the control device.
本申请的实施例中还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序中包括程序指令,所述处理器执行所述程序指令,实现上述实施例提供的地形检测方法的步骤。The embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, the computer program includes program instructions, and the processor executes the program instructions to implement the foregoing implementation The steps of the terrain detection method provided in the example.
其中,所述计算机可读存储介质可以是前述任一实施例所述的可移动平台和控制设备的内部存储单元,例如所述控制设备的硬盘或内存。所述计算机可读存储介质也可以是所述控制设备的外部存储设备,例如所述控制设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。The computer-readable storage medium may be the internal storage unit of the removable platform and the control device described in any of the foregoing embodiments, for example, the hard disk or memory of the control device. The computer-readable storage medium may also be an external storage device of the control device, such as a plug-in hard disk equipped on the control device, a smart memory card (Smart Media Card, SMC), and a Secure Digital (SD) ) Card, Flash Card, etc.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only specific implementations of this application, but the protection scope of this application is not limited to this. Anyone familiar with the technical field can easily think of various equivalents within the technical scope disclosed in this application. Modifications or replacements, these modifications or replacements shall be covered within the scope of protection of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.
Claims (51)
- 一种地形检测方法,其特征在于,包括:A terrain detection method, characterized in that it comprises:获取包含地形信息的三维点云数据;Obtain 3D point cloud data containing terrain information;依据所述三维点云数据,得到与所述三维点云数据对应的二维图像;Obtaining a two-dimensional image corresponding to the three-dimensional point cloud data according to the three-dimensional point cloud data;对所述二维图像中缺少像素值的像素点进行像素赋值,得到像素补全后的二维图像;Pixel assignment is performed on pixels lacking pixel values in the two-dimensional image to obtain a two-dimensional image with pixel complementation;对所述像素补全后的二维图像进行形态学处理,得到已处理的二维图像;Performing morphological processing on the two-dimensional image after the pixel complementation to obtain a processed two-dimensional image;根据所述已处理的二维图像,重建三维点云数据;以及Reconstructing three-dimensional point cloud data according to the processed two-dimensional image; and根据重建的三维点云数据,确定地形信息。According to the reconstructed 3D point cloud data, the terrain information is determined.
- 根据权利要求1所述的地形检测方法,其特征在于,所述依据所述三维点云数据,得到与所述三维点云数据对应的二维图像,包括:The terrain detection method according to claim 1, wherein the obtaining a two-dimensional image corresponding to the three-dimensional point cloud data according to the three-dimensional point cloud data comprises:根据所述三维点云数据确定二维矩阵,并根据所述二维矩阵对所述三维点云数据进行投影,得到二维图像。A two-dimensional matrix is determined according to the three-dimensional point cloud data, and the three-dimensional point cloud data is projected according to the two-dimensional matrix to obtain a two-dimensional image.
- 根据权利要求2所述的地形检测方法,其特征在于,所述三维点云数据包括多个观测点,每个所述观测点包括第一位置信息、第二位置信息和高度位置信息,其中,所述第一位置信息和第二位置信息不同。The terrain detection method according to claim 2, wherein the three-dimensional point cloud data includes a plurality of observation points, and each of the observation points includes first position information, second position information, and height position information, wherein, The first location information is different from the second location information.
- 根据权利要求3所述的地形检测方法,其特征在于,所述根据所述三维点云数据确定二维矩阵,包括:The terrain detection method according to claim 3, wherein the determining a two-dimensional matrix according to the three-dimensional point cloud data comprises:根据所述三维点云数据中观测点的第一位置信息、第二位置信息确定第一目标位置信息和第二目标位置信息;Determining the first target location information and the second target location information according to the first location information and the second location information of the observation point in the three-dimensional point cloud data;获取距离分辨率,并根据所述第一位置信息、所述第二位置信息和所述距离分辨率确定二维矩阵。Obtain the distance resolution, and determine a two-dimensional matrix according to the first position information, the second position information, and the distance resolution.
- 根据权利要求4所述的地形检测方法,其特征在于,所述根据所述三维点云数据中观测点的第一位置信息、第二位置信息确定第一目标位置信息和第二目标位置信息,包括:The terrain detection method according to claim 4, wherein the first target location information and the second target location information are determined according to the first location information and the second location information of the observation points in the three-dimensional point cloud data, include:从所述三维点云数据中观测点的第一位置信息、第二位置信息中确定最大第一位置信息和最大第二位置信息,分别作为第一目标位置信息和第二目标位置信息。The maximum first position information and the maximum second position information are determined from the first position information and the second position information of the observation point in the three-dimensional point cloud data, as the first target position information and the second target position information, respectively.
- 根据权利要求3所述的地形检测方法,其特征在于,所述根据所述二维矩阵对所述三维点云数据进行投影,得到二维图像,包括:The terrain detection method according to claim 3, wherein the projecting the three-dimensional point cloud data according to the two-dimensional matrix to obtain a two-dimensional image comprises:确定所述三维点云数据的观测点在所述二维矩阵中对应的矩阵索引;Determine the matrix index corresponding to the observation point of the three-dimensional point cloud data in the two-dimensional matrix;将所述观测点的高度位置信息赋值给所述观测点的矩阵索引对应的矩阵元素;Assigning the height position information of the observation point to the matrix element corresponding to the matrix index of the observation point;将所述二维矩阵的矩阵索引作为像素点以及将所述二维矩阵的矩阵元素对应高度位置信息作为像素点的像素值,得到二维图像。Taking the matrix index of the two-dimensional matrix as a pixel and taking the height position information corresponding to the matrix element of the two-dimensional matrix as the pixel value of the pixel, a two-dimensional image is obtained.
- 根据权利要求6所述的地形检测方法,其特征在于,所述确定所述三维点云数据的观测点在所述二维矩阵中对应的矩阵索引,包括:The terrain detection method according to claim 6, wherein the determining the matrix index corresponding to the observation point of the three-dimensional point cloud data in the two-dimensional matrix comprises:计算所述观测点的第一位置信息与最大第一位置信息的和,以及将所述观测点的第一位置信息与最大第一位置信息的和除以距离分辨率的商作为矩阵索引的第一索引值;Calculate the sum of the first position information of the observation point and the largest first position information, and divide the sum of the first position information and the largest first position information of the observation point by the quotient of the distance resolution as the first matrix index An index value;计算所述观测点的第二位置信息与最大第二位置信息的和,以及将所述观测点的第二位置信息与最大第二位置信息的和除以距离分辨率的商作为矩阵索引的第二索引值。Calculate the sum of the second position information of the observation point and the largest second position information, and divide the sum of the second position information and the largest second position information of the observation point by the quotient of the distance resolution as the first matrix index Two index value.
- 根据权利要求6所述的地形检测方法,其特征在于,所述将所述观测点的高度位置信息赋值给所述观测点的矩阵索引对应的矩阵元素,包括:The terrain detection method according to claim 6, wherein the assigning the height position information of the observation point to the matrix element corresponding to the matrix index of the observation point comprises:若存在多个观测点对应同一个矩阵索引,确定所述多个观测点对应的高度最大值;If there are multiple observation points corresponding to the same matrix index, determine the maximum height corresponding to the multiple observation points;将所述高度最大值赋值给所述同一个矩阵索引对应的矩阵元素。Assign the maximum value of the height to the matrix element corresponding to the same matrix index.
- 根据权利要求1至8任一项所述的地形检测方法,其特征在于,所述对所述二维图像中缺少像素值的像素点进行像素赋值,包括:The terrain detection method according to any one of claims 1 to 8, wherein the pixel assignment of pixels in the two-dimensional image that lack pixel values includes:确定所述二维图像中缺少像素值的像素点;Determine the pixel points lacking pixel values in the two-dimensional image;根据图像插值算法对所述缺少像素值的像素点进行插值处理以补全所述缺少像素值的像素点的像素值。Perform interpolation processing on the pixel point lacking pixel value according to an image interpolation algorithm to complement the pixel value of the pixel point lacking pixel value.
- 根据权利要求9所述的地形检测方法,其特征在于,所述图像插值算法,包括:最近邻点插值法、线性插值法和双线性插值法中的一项。The terrain detection method according to claim 9, wherein the image interpolation algorithm comprises one of: nearest neighbor interpolation method, linear interpolation method, and bilinear interpolation method.
- 根据权利要求1至8任一项所述的地形检测方法,其特征在于,所述对所述二维图像中缺少像素值的像素点进行像素赋值,包括:The terrain detection method according to any one of claims 1 to 8, wherein the pixel assignment of pixels in the two-dimensional image that lack pixel values includes:根据所述三维点云数据构建德劳内三角网;Constructing a Delaunay triangulation network according to the three-dimensional point cloud data;根据所述德劳内三角网确定所述二维图像中缺少像素值的像素点对应的高度位置信息;以及Determining, according to the Delaunay Triangulation, the height and position information corresponding to the pixels lacking pixel values in the two-dimensional image; and将确定的高度位置信息赋值给所述二维图像中缺少像素值的像素点,以补全所述缺少像素值的像素点的像素值。The determined height position information is assigned to the pixel point lacking pixel value in the two-dimensional image to complete the pixel value of the pixel point lacking pixel value.
- 根据权利要求11所述的地形检测方法,其特征在于,所述根据所述三维点云数据构建德劳内三角网,包括:The terrain detection method according to claim 11, wherein said constructing a Delaunay triangulation network according to the three-dimensional point cloud data comprises:以所述三维点云数据中的观测点为顶点构建多个三角形,将所述多个三角形构成德劳内三角网;Constructing a plurality of triangles with the observation points in the three-dimensional point cloud data as vertices, and forming the Delaunay triangulation network;其中,在所述德劳内三角网中任一所述三角形的外接圆内均不存在其他观测点。Wherein, there are no other observation points in the circumcircle of any of the triangles in the Delaunay triangulation network.
- 根据权利要求11所述的地形检测方法,其特征在于,所述根据所述德劳内三角网确定所述二维图像中缺少像素值的像素点对应的高度位置信息,包括:The terrain detection method according to claim 11, wherein the determining height position information corresponding to pixels lacking pixel values in the two-dimensional image according to the Delaunay triangulation network comprises:在所述德劳内三角网内确定目标三角形,所述目标三角形为包括所述缺少像素值的像素点的三角形;Determining a target triangle in the Delaunay Triangulation, where the target triangle is a triangle including the pixel points lacking pixel values;根据所述目标三角形确定所述二维图像中缺少像素值的像素点对应的高度位置信息。The height position information corresponding to the pixel point lacking pixel value in the two-dimensional image is determined according to the target triangle.
- 根据权利要求13所述的地形检测方法,其特征在于,所述根据所述目标三角形确定所述二维图像中缺少像素值的像素点对应的高度位置信息,包括:The terrain detection method according to claim 13, wherein the determining, according to the target triangle, the height and position information corresponding to the pixels lacking pixel values in the two-dimensional image comprises:获取所述目标三角形三个顶点的第一位置信息、第二位置信息和高度位置信息;Acquiring first position information, second position information, and height position information of the three vertices of the target triangle;根据所述三个顶点的第一位置信息、第二位置信息和高度位置信息计算所述目标三角形的平面方程;Calculating the plane equation of the target triangle according to the first position information, the second position information, and the height position information of the three vertices;确定所述缺少像素值的像素点在所述三维点云数据下对应的第一位置信息和第二位置信息;Determining first position information and second position information corresponding to the pixel point lacking pixel value under the three-dimensional point cloud data;根据所述平面方程和所述缺少像素值的像素点对应的第一位置信息和第二位置信息计算所述缺少像素值的像素点的高度位置信息。The height position information of the pixel point lacking pixel value is calculated according to the plane equation and the first position information and second position information corresponding to the pixel point lacking pixel value.
- 根据权利要求13所述的地形检测方法,其特征在于,所述根据所述目标三角形确定所述二维图像中缺少像素值的像素点对应的高度位置信息,包括:The terrain detection method according to claim 13, wherein the determining, according to the target triangle, the height and position information corresponding to the pixels lacking pixel values in the two-dimensional image comprises:计算所述缺少像素值的像素点距离所述目标三角形三个顶点的距离;Calculating the distance between the pixel point lacking pixel value and the three vertices of the target triangle;根据所述距离确定距所述缺少像素值的像素点最近的顶点为目标顶点,并将所述目标顶点的高度位置信息作为所述缺少像素值的像素点对应的高度位置信息。The vertex closest to the pixel point lacking pixel value is determined as the target vertex according to the distance, and the height position information of the target vertex is used as the height position information corresponding to the pixel point lacking pixel value.
- 根据权利要求1至8任一项所述的地形检测方法,其特征在于,所述形态学处理包括:闭运算操作、开运算操作、先进行闭运算操作再进行开运算操作和先进行开运算操作再进行闭运算操作中的一项。The terrain detection method according to any one of claims 1 to 8, wherein the morphological processing includes: closing operation, opening operation, closing operation before opening operation, and opening operation first The operation then performs one of the closed operations.
- 根据权利要求16所述的地形检测方法,其特征在于,所述闭运算操作包括:先进行膨胀运算操作,再进行腐蚀运算操作;或者,所述开运算操作包括:先进行腐蚀运算操作,再进行膨胀运算操作。The terrain detection method according to claim 16, wherein the closing operation includes: performing an expansion operation first, and then performing an erosion operation; or, the opening operation includes: performing an erosion operation first, and then Perform expansion operations.
- 根据权利要求16所述的地形检测方法,其特征在于,所述对所述像素补全后的二维图像进行形态学处理,得到已处理的二维图像,包括:The terrain detection method according to claim 16, wherein the performing morphological processing on the two-dimensional image after the pixel complementation to obtain the processed two-dimensional image comprises:选择多个不同大小的卷积核对所述像素补全后的二维图像的像素点进行形态学处理,并对运算处理结果赋予不同的权值,得到滤除杂点的二维图像。A plurality of convolution kernels of different sizes are selected to perform morphological processing on the pixels of the two-dimensional image after the pixel complementation, and different weights are assigned to the results of the calculation processing to obtain a two-dimensional image with noise removed.
- 根据权利要求18所述的地形检测方法,其特征在于,针对所述像素补全后的二维图像中每个像素点,所述闭运算操作和/或所述开运算操作均选择不同的卷积核。The terrain detection method according to claim 18, characterized in that, for each pixel in the two-dimensional image after the pixel complementation, a different volume is selected for the closing operation and/or the opening operation. Product core.
- 根据权利要求18所述的地形检测方法,其特征在于,针对所述像素补全后的二维图像中每个像素点,所述闭运算操作和/或所述开运算操作均选择不同的卷积核,且针对不同卷积核的运算处理结果设置有不同的权值。The terrain detection method according to claim 18, characterized in that, for each pixel in the two-dimensional image after the pixel complementation, a different volume is selected for the closing operation and/or the opening operation. Convolution kernels, and different weights are set for the operation processing results of different convolution kernels.
- 根据权利要求6所述的地形检测方法,其特征在于,所述根据所述已处理的二维图像重建三维点云数据,包括:The terrain detection method according to claim 6, wherein the reconstruction of 3D point cloud data according to the processed 2D image comprises:获取所述已处理的二维图像中像素点对应的矩阵索引;Acquiring a matrix index corresponding to a pixel in the processed two-dimensional image;根据所述像素点的矩阵索引对所述像素点进行坐标转换,以获得与所述像素点对应的重建点的第一位置信息和第二位置信息;Performing coordinate conversion on the pixel point according to the matrix index of the pixel point to obtain the first position information and the second position information of the reconstructed point corresponding to the pixel point;将所述像素点的像素值作为所述重建点的高度位置信息,完成三维点云数据的重建。The pixel value of the pixel point is used as the height position information of the reconstructed point to complete the reconstruction of the three-dimensional point cloud data.
- 根据权利要求21所述的地形检测方法,其特征在于,所述根据所述像素点的矩阵索引对所述像素点进行坐标转换,以获得与所述像素点对应的重建点的第一位置信息和第二位置信息,包括:22. The terrain detection method according to claim 21, wherein the coordinate conversion is performed on the pixel point according to the matrix index of the pixel point to obtain the first position information of the reconstructed point corresponding to the pixel point And second location information, including:计算所述像素点的所述第一索引值与距离分辨率的乘积,将所述第一索引 值与距离分辨率的乘积减去最大景深距离的差值作为与所述像素点对应的重建点的第一位置信息;Calculate the product of the first index value of the pixel point and the distance resolution, and use the product of the first index value and the distance resolution minus the difference of the maximum depth of field distance as the reconstruction point corresponding to the pixel point ’S first location information;计算所述像素点的所述第二索引值与距离分辨率的乘积,将所述第二索引值与距离分辨率的乘积减去第二位置信息的差值作为与所述像素点对应的重建点的第二位置信息。Calculate the product of the second index value of the pixel point and the distance resolution, and use the product of the second index value and the distance resolution minus the difference of the second position information as the reconstruction corresponding to the pixel point The second location information of the point.
- 根据权利要求6所述的地形检测方法,其特征在于,所述根据重建的三维点云数据确定地形信息,包括:The terrain detection method according to claim 6, wherein the determining the terrain information according to the reconstructed three-dimensional point cloud data comprises:对重建的三维点云数据进行拟合以得到拟合平面,根据所述拟合平面确定地形信息。Fitting the reconstructed three-dimensional point cloud data to obtain a fitting plane, and determining terrain information according to the fitting plane.
- 根据权利要求23所述的地形检测方法,其特征在于,所述地形信息包括地面高度、地面平整度、地面坡度中的一项或多项。The terrain detection method according to claim 23, wherein the terrain information includes one or more of ground height, ground flatness, and ground slope.
- 一种可移动平台,其特征在于,所述可移动平台包括检测装置、存储器和处理器;A movable platform, characterized in that, the movable platform includes a detection device, a memory, and a processor;所述检测装置用于地形检测并采集包含地形信息的三维点云数据;The detection device is used for terrain detection and collecting three-dimensional point cloud data containing terrain information;所述存储器用于存储计算机程序;The memory is used to store a computer program;所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:The processor is configured to execute the computer program and, when executing the computer program, implement the following steps:获取包含地形信息的三维点云数据;Obtain 3D point cloud data containing terrain information;依据所述三维点云数据,得到与所述三维点云数据对应的二维图像;Obtaining a two-dimensional image corresponding to the three-dimensional point cloud data according to the three-dimensional point cloud data;对所述二维图像中缺少像素值的像素点进行像素赋值,得到像素补全后的二维图像;Pixel assignment is performed on pixels lacking pixel values in the two-dimensional image to obtain a two-dimensional image with pixel complementation;对所述像素补全后的二维图像进行形态学处理,得到已处理的二维图像;Performing morphological processing on the two-dimensional image after the pixel complementation to obtain a processed two-dimensional image;根据所述已处理的二维图像,重建三维点云数据;以及Reconstructing three-dimensional point cloud data according to the processed two-dimensional image; and根据重建的三维点云数据,确定地形信息。According to the reconstructed 3D point cloud data, the terrain information is determined.
- 根据权利要求25所述的可移动平台,其特征在于,所述处理器实现所述依据所述三维点云数据,得到与所述三维点云数据对应的二维图像的步骤,包括:The mobile platform according to claim 25, wherein the step of the processor implementing the step of obtaining a two-dimensional image corresponding to the three-dimensional point cloud data according to the three-dimensional point cloud data comprises:根据所述三维点云数据确定二维矩阵,并根据所述二维矩阵对所述三维点云数据进行投影,得到二维图像。A two-dimensional matrix is determined according to the three-dimensional point cloud data, and the three-dimensional point cloud data is projected according to the two-dimensional matrix to obtain a two-dimensional image.
- 根据权利要求26所述的可移动平台,其特征在于,所述三维点云数据 包括多个观测点,每个所述观测点包括第一位置信息、第二位置信息和高度位置信息,其中,所述第一位置信息和第二位置信息不同。The mobile platform of claim 26, wherein the three-dimensional point cloud data includes a plurality of observation points, and each of the observation points includes first position information, second position information, and height position information, wherein, The first location information is different from the second location information.
- 根据权利要求27所述的可移动平台,其特征在于,所述处理器实现所述根据所述三维点云数据确定二维矩阵的步骤,包括:The mobile platform according to claim 27, wherein the processor implementing the step of determining a two-dimensional matrix according to the three-dimensional point cloud data comprises:根据所述三维点云数据中观测点的第一位置信息、第二位置信息确定第一目标位置信息和第二目标位置信息;Determining the first target location information and the second target location information according to the first location information and the second location information of the observation point in the three-dimensional point cloud data;获取距离分辨率,并根据所述第一位置信息、所述第二位置信息和所述距离分辨率确定二维矩阵。Obtain the distance resolution, and determine a two-dimensional matrix according to the first position information, the second position information, and the distance resolution.
- 根据权利要求28所述的可移动平台,其特征在于,所述处理器实现所述根据所述三维点云数据中观测点的第一位置信息、第二位置信息确定第一目标位置信息和第二目标位置信息的步骤,包括:The mobile platform of claim 28, wherein the processor implements the determination of the first target location information and the second location information according to the first location information and the second location information of the observation points in the three-dimensional point cloud data. 2. The steps of target location information include:从所述三维点云数据中观测点的第一位置信息、第二位置信息中确定最大第一位置信息和最大第二位置信息,分别作为第一目标位置信息和第二目标位置信息。The maximum first position information and the maximum second position information are determined from the first position information and the second position information of the observation point in the three-dimensional point cloud data, as the first target position information and the second target position information, respectively.
- 根据权利要求27所述的可移动平台,其特征在于,所述处理器实现所述根据所述二维矩阵对所述三维点云数据进行投影,得到二维图像的步骤,包括:The movable platform according to claim 27, wherein the processor implements the step of projecting the three-dimensional point cloud data according to the two-dimensional matrix to obtain a two-dimensional image, comprising:确定所述三维点云数据的观测点在所述二维矩阵中对应的矩阵索引;Determine the matrix index corresponding to the observation point of the three-dimensional point cloud data in the two-dimensional matrix;将所述观测点的高度位置信息赋值给所述观测点的矩阵索引对应的矩阵元素;Assigning the height position information of the observation point to the matrix element corresponding to the matrix index of the observation point;将所述二维矩阵的矩阵索引作为像素点以及将所述二维矩阵的矩阵元素对应高度位置信息作为像素点的像素值,得到二维图像。Taking the matrix index of the two-dimensional matrix as a pixel and taking the height position information corresponding to the matrix element of the two-dimensional matrix as the pixel value of the pixel, a two-dimensional image is obtained.
- 根据权利要求30所述的可移动平台,其特征在于,所述处理器实现所述确定所述三维点云数据的观测点在所述二维矩阵中对应的矩阵索引的步骤,包括:The movable platform according to claim 30, wherein the processor implements the step of determining the matrix index corresponding to the observation point of the three-dimensional point cloud data in the two-dimensional matrix, comprising:计算所述观测点的第一位置信息与最大第一位置信息的和,以及将所述观测点的第一位置信息与最大第一位置信息的和除以距离分辨率的商作为矩阵索引的第一索引值;Calculate the sum of the first position information of the observation point and the largest first position information, and divide the sum of the first position information and the largest first position information of the observation point by the quotient of the distance resolution as the first matrix index An index value;计算所述观测点的第二位置信息与最大第二位置信息的和,以及将所述观测点的第二位置信息与最大第二位置信息的和除以距离分辨率的商作为矩阵索 引的第二索引值。Calculate the sum of the second position information of the observation point and the largest second position information, and divide the sum of the second position information and the largest second position information of the observation point by the quotient of the distance resolution as the first matrix index Two index value.
- 根据权利要求30所述的可移动平台,其特征在于,所述处理器实现所述将所述观测点的高度位置信息赋值给所述观测点的矩阵索引对应的矩阵元素的步骤,包括:The movable platform according to claim 30, wherein the processor implements the step of assigning the height position information of the observation point to the matrix element corresponding to the matrix index of the observation point, comprising:若存在多个观测点对应同一个矩阵索引,确定所述多个观测点对应的高度最大值;If there are multiple observation points corresponding to the same matrix index, determine the maximum height corresponding to the multiple observation points;将所述高度最大值赋值给所述同一个矩阵索引对应的矩阵元素。Assign the maximum value of the height to the matrix element corresponding to the same matrix index.
- 根据权利要求25至32任一项所述的可移动平台,其特征在于,所述处理器实现所述对所述二维图像中缺少像素值的像素点进行像素赋值的步骤,包括:The movable platform according to any one of claims 25 to 32, wherein the processor implements the step of performing pixel assignment on pixels lacking pixel values in the two-dimensional image, comprising:确定所述二维图像中缺少像素值的像素点;Determine the pixel points lacking pixel values in the two-dimensional image;根据图像插值算法对所述缺少像素值的像素点进行插值处理以补全所述缺少像素值的像素点的像素值。Perform interpolation processing on the pixel point lacking pixel value according to an image interpolation algorithm to complement the pixel value of the pixel point lacking pixel value.
- 根据权利要求33所述的可移动平台,其特征在于,所述图像插值算法,包括:最近邻点插值法、线性插值法和双线性插值法中的一项。The movable platform according to claim 33, wherein the image interpolation algorithm includes one of: nearest neighbor interpolation method, linear interpolation method, and bilinear interpolation method.
- 根据权利要求25至32任一项所述的可移动平台,其特征在于,所述处理器实现所述对所述二维图像中缺少像素值的像素点进行像素赋值的步骤,包括:The movable platform according to any one of claims 25 to 32, wherein the processor implements the step of performing pixel assignment on pixels lacking pixel values in the two-dimensional image, comprising:根据所述三维点云数据构建德劳内三角网;Constructing a Delaunay triangulation network according to the three-dimensional point cloud data;根据所述德劳内三角网确定所述二维图像中缺少像素值的像素点对应的高度位置信息;以及Determining, according to the Delaunay Triangulation, the height and position information corresponding to the pixels lacking pixel values in the two-dimensional image; and将确定的高度位置信息赋值给所述二维图像中缺少像素值的像素点,以补全所述缺少像素值的像素点的像素值。The determined height position information is assigned to the pixel point lacking pixel value in the two-dimensional image to complete the pixel value of the pixel point lacking pixel value.
- 根据权利要求35所述的可移动平台,其特征在于,所述处理器实现所述根据所述三维点云数据构建德劳内三角的步骤,包括:The mobile platform according to claim 35, wherein the processor implementing the step of constructing Delaunay triangle according to the three-dimensional point cloud data comprises:以所述三维点云数据中的观测点为顶点构建多个三角形,将所述多个三角形构成德劳内三角网;Constructing a plurality of triangles with the observation points in the three-dimensional point cloud data as vertices, and forming the Delaunay triangulation network;其中,在所述德劳内三角网中任一所述三角形的外接圆内均不存在其他观测点。Wherein, there are no other observation points in the circumcircle of any of the triangles in the Delaunay triangulation network.
- 根据权利要求35所述的可移动平台,其特征在于,所述处理器实现所 述根据所述德劳内三角网确定所述二维图像中缺少像素值的像素点对应的高度位置信息的步骤,包括:The movable platform according to claim 35, wherein the processor implements the step of determining, according to the Delaunay triangulation, the height position information corresponding to the pixels lacking pixel values in the two-dimensional image ,include:在所述德劳内三角网内确定目标三角形,所述目标三角形为包括所述缺少像素值的像素点的三角形;Determining a target triangle in the Delaunay Triangulation, where the target triangle is a triangle including the pixel points lacking pixel values;根据所述目标三角形确定所述二维图像中缺少像素值的像素点对应的高度位置信息。The height position information corresponding to the pixel point lacking pixel value in the two-dimensional image is determined according to the target triangle.
- 根据权利要求37所述的可移动平台,其特征在于,所述处理器实现所述根据所述目标三角形确定所述二维图像中缺少像素值的像素点对应的高度位置信息的步骤,包括:The movable platform according to claim 37, wherein the step of the processor implementing the step of determining, according to the target triangle, height position information corresponding to pixels lacking pixel values in the two-dimensional image comprises:获取所述目标三角形三个顶点的第一位置信息、第二位置信息和高度位置信息;Acquiring first position information, second position information, and height position information of the three vertices of the target triangle;根据所述三个顶点的第一位置信息、第二位置信息和高度位置信息计算所述目标三角形的平面方程;Calculating the plane equation of the target triangle according to the first position information, the second position information, and the height position information of the three vertices;确定所述缺少像素值的像素点在所述三维点云数据下对应的第一位置信息和第二位置信息;Determining first position information and second position information corresponding to the pixel point lacking pixel value under the three-dimensional point cloud data;根据所述平面方程和所述缺少像素值的像素点对应的第一位置信息和第二位置信息计算所述缺少像素值的像素点的高度位置信息。The height position information of the pixel point lacking pixel value is calculated according to the plane equation and the first position information and second position information corresponding to the pixel point lacking pixel value.
- 根据权利要求37所述的可移动平台,其特征在于,所述处理器实现所述根据所述目标三角形确定所述二维图像中缺少像素值的像素点对应的高度位置信息的步骤,包括:The movable platform according to claim 37, wherein the step of the processor implementing the step of determining, according to the target triangle, height position information corresponding to pixels lacking pixel values in the two-dimensional image comprises:计算所述缺少像素值的像素点距离所述目标三角形三个顶点的距离;Calculating the distance between the pixel point lacking pixel value and the three vertices of the target triangle;根据所述距离确定距所述缺少像素值的像素点最近的顶点为目标顶点,并将所述目标顶点的高度位置信息作为所述缺少像素值的像素点对应的高度位置信息。The vertex closest to the pixel point lacking pixel value is determined as the target vertex according to the distance, and the height position information of the target vertex is used as the height position information corresponding to the pixel point lacking pixel value.
- 根据权利要求25至32任一项所述的可移动平台,其特征在于,所述形态学处理包括:闭运算操作、开运算操作、先进行闭运算操作再进行开运算操作和先进行开运算操作再进行闭运算操作中的一项。The mobile platform according to any one of claims 25 to 32, wherein the morphological processing includes: closing operation, opening operation, closing operation first, then opening operation, and opening operation first The operation then performs one of the closed operations.
- 根据权利要求40所述的可移动平台,其特征在于,所述闭运算操作包括:先进行膨胀运算操作,再进行腐蚀运算操作;或者,所述开运算操作包括:先进行腐蚀运算操作,再进行膨胀运算操作。The mobile platform according to claim 40, wherein the closing operation includes: performing an expansion operation first, and then performing an erosion operation; or, the opening operation includes: performing an erosion operation first, and then Perform expansion operations.
- 根据权利要求40所述的可移动平台,其特征在于,所述处理器实现所述对所述像素补全后的二维图像进行形态学处理,得到已处理的二维图像的步骤,包括:The movable platform according to claim 40, wherein the processor implements the step of performing morphological processing on the two-dimensional image after the pixel complementation to obtain the processed two-dimensional image, comprising:选择多个不同大小的卷积核对所述像素补全后的二维图像的像素点进行形态学处理,并对运算处理结果赋予不同的权值,得到滤除杂点的二维图像。A plurality of convolution kernels of different sizes are selected to perform morphological processing on the pixels of the two-dimensional image after the pixel complementation, and different weights are assigned to the results of the calculation processing to obtain a two-dimensional image with noise removed.
- 根据权利要求42所述的可移动平台,其特征在于,针对所述像素补全后的二维图像中每个像素点,所述闭运算操作和/或所述开运算操作均选择不同的卷积核。The movable platform according to claim 42, wherein for each pixel in the two-dimensional image after the pixel complementation, the closing operation and/or the opening operation both select different volumes. Product core.
- 根据权利要求42所述的可移动平台,其特征在于,针对所述像素补全后的二维图像中每个像素点,所述闭运算操作和/或所述开运算操作均选择不同的卷积核,且针对不同卷积核的运算处理结果设置有不同的权值。The movable platform according to claim 42, wherein for each pixel in the two-dimensional image after the pixel complementation, the closing operation and/or the opening operation both select different volumes. Convolution kernels, and different weights are set for the operation processing results of different convolution kernels.
- 根据权利要求30所述的可移动平台,其特征在于,所述处理器实现所述根据所述已处理的二维图像重建三维点云数据的步骤,包括:The mobile platform according to claim 30, wherein the processor implementing the step of reconstructing three-dimensional point cloud data from the processed two-dimensional image comprises:获取所述已处理的二维图像中像素点对应的矩阵索引;Acquiring a matrix index corresponding to a pixel in the processed two-dimensional image;根据所述像素点的矩阵索引对所述像素点进行坐标转换,以获得与所述像素点对应的重建点的第一位置信息和第二位置信息;Performing coordinate conversion on the pixel point according to the matrix index of the pixel point to obtain the first position information and the second position information of the reconstructed point corresponding to the pixel point;将所述像素点的像素值作为所述重建点的高度位置信息,完成三维点云数据的重建。The pixel value of the pixel point is used as the height position information of the reconstructed point to complete the reconstruction of the three-dimensional point cloud data.
- 根据权利要求45所述的可移动平台,其特征在于,所述处理器实现所述根据所述像素点的矩阵索引对所述像素点进行坐标转换,以获得与所述像素点对应的重建点的第一位置信息和第二位置信息的步骤,包括:The movable platform according to claim 45, wherein the processor implements the coordinate conversion of the pixel point according to the matrix index of the pixel point to obtain a reconstruction point corresponding to the pixel point The steps of the first location information and the second location information include:计算所述像素点的所述第一索引值与距离分辨率的乘积,将所述第一索引值与距离分辨率的乘积减去最大景深距离的差值作为与所述像素点对应的重建点的第一位置信息;Calculate the product of the first index value of the pixel point and the distance resolution, and use the product of the first index value and the distance resolution minus the difference of the maximum depth of field distance as the reconstruction point corresponding to the pixel point ’S first location information;计算所述像素点的所述第二索引值与距离分辨率的乘积,将所述第二索引值与距离分辨率的乘积减去第二位置信息的差值作为与所述像素点对应的重建点的第二位置信息。Calculate the product of the second index value of the pixel point and the distance resolution, and use the product of the second index value and the distance resolution minus the difference of the second position information as the reconstruction corresponding to the pixel point The second location information of the point.
- 根据权利要求30所述的可移动平台,其特征在于,所述处理器实现所述根据重建的三维点云数据确定地形信息的步骤,包括:The movable platform according to claim 30, wherein the step of determining the terrain information according to the reconstructed three-dimensional point cloud data by the processor comprises:对重建的三维点云数据进行拟合以得到拟合平面,根据所述拟合平面确定 地形信息。Fitting the reconstructed three-dimensional point cloud data to obtain a fitting plane, and determining terrain information according to the fitting plane.
- 根据权利要求47所述的可移动平台,其特征在于,所述地形信息包括地面高度、地面平整度、地面坡度中的一项或多项。The movable platform according to claim 47, wherein the terrain information includes one or more of ground height, ground flatness, and ground slope.
- 一种控制设备,其特征在于,所述控制设备包括存储器和处理器;A control device, characterized in that the control device includes a memory and a processor;所述存储器用于存储计算机程序;The memory is used to store a computer program;所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现如权利要求1-24中任一项所述地形检测方法的步骤,并将确定的地形信息发送至可移动平台。The processor is configured to execute the computer program and, when executing the computer program, implement the steps of the terrain detection method according to any one of claims 1-24, and send the determined terrain information to the movable platform.
- 一种控制系统,其特征在于,所述控制系统包括可移动平台和如权利要求49所述的控制设备;其中,所述可移动平台用于采集三维点云数据并将所述包括地形信息的三维点云数据发送至所述控制设备。A control system, characterized in that, the control system comprises a movable platform and the control equipment according to claim 49; wherein, the movable platform is used to collect three-dimensional point cloud data and to combine the terrain information The three-dimensional point cloud data is sent to the control device.
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如权利要求1至24中任一项所述的地形检测方法。A computer-readable storage medium, characterized in that, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor realizes as described in any one of claims 1 to 24. The terrain detection method described.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201980033289.8A CN112154394A (en) | 2019-10-31 | 2019-10-31 | Terrain detection method, movable platform, control device, system and storage medium |
PCT/CN2019/114890 WO2021081958A1 (en) | 2019-10-31 | 2019-10-31 | Terrain detection method, movable platform, control device, system, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2019/114890 WO2021081958A1 (en) | 2019-10-31 | 2019-10-31 | Terrain detection method, movable platform, control device, system, and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021081958A1 true WO2021081958A1 (en) | 2021-05-06 |
Family
ID=73891967
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/114890 WO2021081958A1 (en) | 2019-10-31 | 2019-10-31 | Terrain detection method, movable platform, control device, system, and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112154394A (en) |
WO (1) | WO2021081958A1 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112734825A (en) * | 2020-12-31 | 2021-04-30 | 深兰人工智能(深圳)有限公司 | Depth completion method and device for 3D point cloud data |
CN112937444B (en) * | 2021-03-15 | 2023-12-29 | 上海三一重机股份有限公司 | Auxiliary image generation method and device for working machine and working machine |
CN113192201B (en) * | 2021-05-08 | 2023-08-01 | 上海皓桦科技股份有限公司 | Data fitting method, device and medium of point cloud data |
CN113960626B (en) * | 2021-10-22 | 2024-09-13 | 自然资源部第二海洋研究所 | Method for removing abnormal points of submarine topography signal detected by laser radar echo |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102129680A (en) * | 2010-01-15 | 2011-07-20 | 精工爱普生株式会社 | Real-time geometry aware projection and fast re-calibration |
CN103854320A (en) * | 2012-12-05 | 2014-06-11 | 上海海事大学 | Automatic vehicle type identification device and method based on laser radar |
CN107247834A (en) * | 2017-05-31 | 2017-10-13 | 华中科技大学 | A kind of three dimensional environmental model reconstructing method, equipment and system based on image recognition |
CN108428255A (en) * | 2018-02-10 | 2018-08-21 | 台州智必安科技有限责任公司 | A kind of real-time three-dimensional method for reconstructing based on unmanned plane |
CN109345557A (en) * | 2018-09-19 | 2019-02-15 | 东南大学 | A kind of preceding background separating method based on three-dimensional reconstruction achievement |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015024407A1 (en) * | 2013-08-19 | 2015-02-26 | 国家电网公司 | Power robot based binocular vision navigation system and method based on |
CN109410260B (en) * | 2018-09-27 | 2020-12-29 | 先临三维科技股份有限公司 | Point cloud data meshing method and device, computer equipment and storage medium |
-
2019
- 2019-10-31 CN CN201980033289.8A patent/CN112154394A/en active Pending
- 2019-10-31 WO PCT/CN2019/114890 patent/WO2021081958A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102129680A (en) * | 2010-01-15 | 2011-07-20 | 精工爱普生株式会社 | Real-time geometry aware projection and fast re-calibration |
CN103854320A (en) * | 2012-12-05 | 2014-06-11 | 上海海事大学 | Automatic vehicle type identification device and method based on laser radar |
CN107247834A (en) * | 2017-05-31 | 2017-10-13 | 华中科技大学 | A kind of three dimensional environmental model reconstructing method, equipment and system based on image recognition |
CN108428255A (en) * | 2018-02-10 | 2018-08-21 | 台州智必安科技有限责任公司 | A kind of real-time three-dimensional method for reconstructing based on unmanned plane |
CN109345557A (en) * | 2018-09-19 | 2019-02-15 | 东南大学 | A kind of preceding background separating method based on three-dimensional reconstruction achievement |
Also Published As
Publication number | Publication date |
---|---|
CN112154394A (en) | 2020-12-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021081958A1 (en) | Terrain detection method, movable platform, control device, system, and storage medium | |
US11237572B2 (en) | Collision avoidance system, depth imaging system, vehicle, map generator and methods thereof | |
US11042723B2 (en) | Systems and methods for depth map sampling | |
WO2020135446A1 (en) | Target positioning method and device and unmanned aerial vehicle | |
EP3803273A1 (en) | Techniques for real-time mapping in a movable object environment | |
CN113748357A (en) | Attitude correction method, device and system of laser radar | |
WO2020103049A1 (en) | Terrain prediction method and device of rotary microwave radar, and system and unmanned aerial vehicle | |
CN112258590B (en) | Laser-based depth camera external parameter calibration method, device and storage medium thereof | |
CN107796384B (en) | 2D vehicle positioning using geographic arcs | |
CN107798695B (en) | 3D vehicle positioning using geographic arcs | |
JP2023505891A (en) | Methods for measuring environmental topography | |
CN112051575A (en) | Method for adjusting millimeter wave radar and laser radar and related device | |
US11842440B2 (en) | Landmark location reconstruction in autonomous machine applications | |
CN109978954A (en) | The method and apparatus of radar and camera combined calibrating based on cabinet | |
CN114527490A (en) | Detecting three-dimensional structural models while a vehicle is in motion | |
WO2020019175A1 (en) | Image processing method and apparatus, and photographing device and unmanned aerial vehicle | |
WO2021262704A1 (en) | Post-processing of mapping data for improved accuracy and noise-reduction | |
CN116952229A (en) | Unmanned aerial vehicle positioning method, device, system and storage medium | |
WO2021056503A1 (en) | Positioning method and apparatus for movable platform, movable platform, and storage medium | |
WO2020113417A1 (en) | Three-dimensional reconstruction method and system for target scene, and unmanned aerial vehicle | |
CN110720025B (en) | Method, device and system for selecting map of mobile object and vehicle/robot | |
EP3943979A1 (en) | Indoor device localization | |
WO2021087785A1 (en) | Terrain detection method, movable platform, control device and system, and storage medium | |
Sulaj et al. | Examples of real-time UAV data processing with cloud computing | |
WO2021035749A1 (en) | Method and device for optimizing three-dimensional reconstruction model, and movable platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19951004 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19951004 Country of ref document: EP Kind code of ref document: A1 |