CN115082641A - Point cloud rasterization method and device based on gridding multi-neighborhood interpolation - Google Patents
Point cloud rasterization method and device based on gridding multi-neighborhood interpolation Download PDFInfo
- Publication number
- CN115082641A CN115082641A CN202210995957.9A CN202210995957A CN115082641A CN 115082641 A CN115082641 A CN 115082641A CN 202210995957 A CN202210995957 A CN 202210995957A CN 115082641 A CN115082641 A CN 115082641A
- Authority
- CN
- China
- Prior art keywords
- grid
- point cloud
- pixel
- image
- point
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- 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/20—Finite element generation, e.g. wire-frame surface description, tesselation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T9/00—Image coding
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Graphics (AREA)
- Geometry (AREA)
- Software Systems (AREA)
- Multimedia (AREA)
- Image Processing (AREA)
Abstract
The application provides a point cloud rasterization method and device based on gridding multi-neighborhood interpolation, which relate to the technical field of point cloud data processing, and the method comprises the following steps: rasterizing all point cloud data to obtain a raster image; performing gridding processing on the grid image to obtain a gridded grid image, and acquiring and storing the point cloud number and the point cloud serial number of each grid in the gridded grid image; for each pixel of the grid image, acquiring a grid to which the pixel belongs; utilizing the point cloud number and the elevation value in the affiliated grid and the peripheral grids thereof to obtain the elevation value of each pixel through interpolation processing; and taking the elevation value of each pixel as a pixel value to obtain a point cloud grid image. The method and the device improve the processing speed and precision of point cloud rasterization.
Description
Technical Field
The application relates to the technical field of point cloud data processing, in particular to a point cloud rasterization method and device based on gridding multi-neighborhood interpolation.
Background
Most of the existing point cloud rasterization interpolation methods are directed at laser radar point clouds, the density of the laser radar point clouds is usually very high and is far higher than the resolution of rasterized images, so that the aim of the method is mainly to duplicate the point clouds, and each grid unit only keeps one point or performs distance interpolation by all the points in the grid unit.
The point cloud in the present application does not refer to a laser radar point cloud, but is a dense point cloud obtained by dense matching of stereo satellite image data or aerial shooting image data, and generally the dense point cloud has a requirement of being output as a grid Digital Surface Model (DSM), even if the point cloud obtained by pixel-by-pixel dense matching is at most consistent with the grid resolution to be output, and because the image has high floor and shadow occlusion, cloud zone occlusion, water area and other areas where the dense point cloud cannot be obtained, it can be seen that the point clouds resulting from such dense matching are not uniformly distributed, there are grid cells in which there is at most one point, however, some grid cells do not have any point, even a flaky grid cell area does not have any point, the existing laser radar point cloud rasterization method is not applicable necessarily, and scabs and holes also appear in the rasterized DSM.
Disclosure of Invention
In view of the above, the present application provides a method and an apparatus for rasterizing a point cloud based on gridding multi-neighborhood interpolation, so as to solve the above technical problem.
In a first aspect, an embodiment of the present application provides a point cloud rasterization method based on gridding multi-neighborhood interpolation, which is characterized by including:
rasterizing all point cloud data to obtain a raster image;
performing gridding processing on the grid image to obtain a gridded grid image, and acquiring and storing the point cloud number and the point cloud serial number of each grid in the gridded grid image;
for each pixel of the grid image, acquiring a grid to which the pixel belongs; utilizing the point cloud number and the elevation value in the affiliated grid and the peripheral grids thereof to obtain the elevation value of each pixel through interpolation processing;
and taking the elevation value of each pixel as a pixel value to obtain a point cloud grid image.
Further, rasterizing the point cloud data to obtain a raster image; the method comprises the following steps:
obtaining geodetic coordinates of each point cloudWherein, in the step (A),as a result of the longitude, the number of times,as the latitude, the number of years of the latitude,is an elevation value;
counting all point cloudsCoordinates of the objectMinimum value of (2)And maximum value,Minimum value of coordinatesAnd maximum value;
Further, gridding the grid image, and acquiring and storing the number of point clouds and the number of point clouds in each grid; the method comprises the following steps:
to image the gridEach pixel forms a grid to obtain a gridded grid image, and the side length of each grid is;
Number of meshes in column direction of gridded grid imageAnd the number of grids in the row directionComprises the following steps:
calculating two-dimensional coordinates in the grid where each point cloud is locatedAnd one-dimensional coordinate index:
Create a size ofThe one-dimensional array grid _ pt _ num is used for recording the number of point clouds in each grid;
creating a first layer size ofThe second layer has a size of grid _ pt _ num [ ]gridpos]The two-dimensional array grid _ pt _ ids is used for recording the serial number of each point in the point cloud in each grid.
Further, for each pixel of the grid image, acquiring a grid to which the pixel belongs; utilizing the point cloud number and the elevation value in the affiliated grid and the peripheral grids thereof to obtain the elevation value of each pixel through interpolation processing; the method comprises the following steps:
obtaining the grids of the pixels in the gridding grid image by using the geographic coordinates of the pixels as central grids;
centered around a central gridReading the number and the serial number of point clouds in 9 grids from a one-dimensional array grid _ pt _ num and a two-dimensional array grid _ pt _ ids by using 9 grids in the area;
judging whether the total number of all point clouds in the 9 grids is less than M or not, and if so, setting the elevation value of the pixel element as a preset invalid value; otherwise, carrying out interpolation processing on the elevation values of a preset number of point clouds in the 9 grids to obtain the elevation value of the pixel.
Further, obtaining a mesh of the pixel in the gridding grid image by using the geographic coordinate of the pixel; the method comprises the following steps:
for each pixel of the raster image, calculating the geographic coordinates of the center of each pixelAnd:
wherein the content of the first and second substances,is the column coordinate of the picture element,is the row coordinate of the pixel;
using geographical coordinates of the centre of each pixelAndand calculating the grid coordinates of the center of the pixel element in the gridding grid image so as to obtain the grid to which the pixel element belongs.
Further, performing interpolation processing on the elevation values of a preset number of point clouds in the 9 grids to obtain the elevation value of the pixel, including:
aiming at each point cloud in 9 grids, directly acquiring the geographic coordinates of the point cloud from the point cloud data by using the point cloud serial number;
geographic coordinate and pixel center geographic coordinate based on point cloudCalculating the geographic distance between the two;
sequencing the point clouds according to the sequence of the geographic distances from small to large;
acquiring the elevation values of the first M point clouds after sorting, and calculating the elevation value Z of the pixel by using the geographical distance between the M point clouds and the center of the pixel:
wherein the content of the first and second substances,the elevation value of the mth point cloud is represented,the geographic distance between the mth point cloud and the center of the pixel is obtained.
Further, the method further comprises:
step S1: acquiring all pixels with pixel values not being invalid values from the point cloud raster image;
step S2: forming a geometric object by using the coordinates of all the pixels, wherein the geometric object is an effective boundary of the point cloud grid image;
step S3: for each pixel of which the pixel value of the point cloud raster image is an invalid value, judging whether the pixel is in an effective boundary, if not, not processing, otherwise, entering the step S4;
step S4: obtaining the grids of the pixels in the gridding grid image by using the geographic coordinates of the pixels as central grids;
step S5: centered on a central gridWithin a regionA grid reading from the one-dimensional array grid _ pt _ num and the two-dimensional array grid _ pt _ idsThe number and serial number of the point clouds in each grid;is 4;
step S6: judgment ofWhether the total number of all point clouds in each grid is less than M or not, if so, determining whether the total number of all point clouds in each grid is less than M or notThen, the process proceeds to step S5; otherwise, it is toAnd carrying out interpolation processing on the elevation values of the point clouds in the preset number in each grid to obtain the elevation value of the pixel.
In a second aspect, an embodiment of the present application provides a point cloud rasterization apparatus based on gridding multi-neighborhood interpolation, including:
the rasterization processing unit is used for rasterizing all the point cloud data to obtain a raster image;
the grid processing unit is used for carrying out grid processing on the grid image to obtain a grid image, and acquiring and storing the point cloud number and the point cloud serial number of each grid in the grid image;
the interpolation unit is used for acquiring the grids to which each pixel of the raster image belongs; utilizing the number and the elevation value of point clouds in the belonging grid and the peripheral grids to obtain the elevation value of each pixel through interpolation processing;
and the point cloud raster image generating unit is used for taking the elevation value of each pixel as a pixel value to obtain a point cloud raster image.
In a third aspect, an embodiment of the present application provides an electronic device, including: the system comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the point cloud rasterization method based on gridding multi-neighborhood interpolation.
In a fourth aspect, the present application provides a computer-readable storage medium storing computer instructions, which when executed by a processor, implement the point cloud rasterization method based on gridding multi-neighborhood interpolation of the present application.
The method and the device can quickly rasterize the densely matched non-uniform discontinuous point cloud into a Digital Surface Model (DSM), and improve the processing speed and precision.
Drawings
In order to more clearly illustrate the detailed description of the present application or the technical solutions in the prior art, the drawings needed to be used in the detailed description of the present application or the prior art description will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a point cloud rasterization method based on gridding multi-neighborhood interpolation provided in the embodiment of the present application;
fig. 2 is a functional structure diagram of a point cloud rasterization apparatus based on gridding multi-neighborhood interpolation provided in the embodiment of the present application;
fig. 3 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
First, the design idea of the embodiment of the present application is briefly introduced.
Aiming at the problem that most of the existing point cloud rasterization methods are directed at high-density laser point cloud data and are not suitable for rasterization of point cloud data obtained by densely matching satellite stereo image data and aerial shooting image data, the application provides a point cloud rasterization method based on gridding multi-neighborhood interpolation, which can quickly rasterize densely matched non-uniform non-continuous point clouds into a Digital Surface Model (DSM), avoid that the interpolation of each pixel needs to traverse all the point clouds, and ensure that no cavity (invalid value) exists in the rasterized data.
After introducing the application scenario and the design idea of the embodiment of the present application, the following describes a technical solution provided by the embodiment of the present application.
As shown in fig. 1, an embodiment of the present application provides a point cloud rasterization method based on gridding multi-neighborhood interpolation, including:
step 101: rasterizing the point cloud data to obtain a raster image;
the point cloud data is a set of three-dimensional coordinates of a plurality of point clouds, each point cloud has a serial number in the whole point cloud data, and the three-dimensional coordinates areWherein, in the step (A),as a result of the longitude, the number of times,in the case of the latitude, the latitude is,in order to be the elevation value,the geographic coordinates of the point cloud; the point cloud rasterization of the application is to rasterize the point cloud data into a scene image data,is converted into the image coordinates by the image sensor,and converting the gray scale value into the gray scale value of the image.
Counting all point cloudsMinimum value of coordinatesAnd maximum value,Minimum value of coordinatesAnd maximum value;
Wherein, the first and the second end of the pipe are connected with each other,the resolution of the grid image;
create a size ofThe raster image of (1) band number, data type float, widthHigh isGeographic coordinate range ofThe projection is set according to the output requirement, and the resolution is。
Step 102: performing gridding processing on the grid image to obtain a gridded grid image, and acquiring and storing the point cloud number and the point cloud serial number of each grid in the gridded grid image;
to image the gridEach pixel forms a grid to obtain a gridded grid image, and the side length of each grid is;
Number of meshes in column direction of gridded grid imageAnd number of grids in the row directionComprises the following steps:
thereby, the grid image is dividedA grid of size(ii) a Traversing the whole point cloud data, and calculating two-dimensional coordinates in a grid where each point cloud is locatedAnd one-dimensional coordinate index:
Creating a one-dimensional array grid _ pt _ num with the size of gridcol grid, and recording the number of point clouds in each grid; and creating a first layer of size gridcol gridrow and a second layer of size grid _ pt _ num [ 2 ]gridpos]Two-dimensional ofAnd the group grid _ pt _ ids is used for recording the serial number of each point in each grid in the point cloud, and the purpose of recording the serial number is to quickly acquire the geographic coordinates of the point cloud from the point cloud data according to the serial number.
Step 103: for each pixel of the grid image, acquiring a grid to which the pixel belongs; utilizing the point cloud number and the elevation value in the affiliated grid and the peripheral grids thereof to obtain the elevation value of each pixel through interpolation processing;
for each pixel of the raster image, calculating the geographic coordinates of the center of each pixelAnd:
wherein the content of the first and second substances,is the column coordinate of the picture element,is the row coordinate of the pixel;
using geographical coordinates of the centre of each pixelAndand calculating the grid coordinates of the pixel center in the gridding grid image, thereby obtaining the grid to which the pixel belongs as a center grid.
Centered on a central gridReading the number and the serial number of point clouds in 9 grids from a one-dimensional array grid _ pt _ num and a two-dimensional array grid _ pt _ ids by using 9 grids in the area; since the space data structures grid _ pt _ num and grid _ pt _ ids are recorded before, the statistics does not need to traverse all the point clouds, but are directly read based on the grids, and a large amount of traversal time is saved.
Judging whether the total number of all point clouds in 9 grids is less than M (M is usually 8), if so, indicating that no point clouds exist around the center of the pixel, and setting the elevation value of the pixel as a preset invalid value; otherwise, aiming at each point cloud in the 9 grids and each point cloud in the 9 grids, directly acquiring the geographic coordinates of the point cloud from the point cloud data by using the point cloud serial number; point cloud-based geographic coordinate and pixel center geographic coordinateCalculating the geographic distance between the two; sequencing the point clouds according to the sequence of the geographic distances from small to large; acquiring the elevation values of the first M point clouds after sorting, and calculating the elevation value of the pixel by using the geographical distance between the M point clouds and the center of the pixelZ:
Wherein the content of the first and second substances,the elevation value of the mth point cloud is represented,and the geographic distance between the mth point cloud and the center of the pixel.
Step 104: taking the elevation value of each pixel as a pixel value to obtain a point cloud grid image;
because point cloud data obtained by dense matching on an image has unevenness and discontinuity, a point cloud raster image usually has many holes, and therefore hole filling processing after interpolation is needed. The method comprises the following specific steps:
step S1: acquiring all pixels of which the pixel values are not invalid values from the point cloud grid image;
step S2: forming a geometric object by using the coordinates of all the pixels, wherein the geometric object is an effective boundary of the point cloud grid image;
step S3: for each pixel of which the pixel value of the point cloud raster image is an invalid value, judging whether the pixel is in an effective boundary, if not, not processing, otherwise, entering the step S4;
step S4: obtaining the grids of the pixels in the gridding grid image by using the geographic coordinates of the pixels as central grids;
step S5: centered on a central gridWithin a regionA grid reading from the one-dimensional array grid _ pt _ num and the two-dimensional array grid _ pt _ idsThe number and serial number of the point clouds in each grid;is 4;
step S6: judgment ofWhether the total number of all point clouds in each grid is less than M or not, if so, determining whether the total number of all point clouds in each grid is less than M or notThen, the process proceeds to step S5; otherwise, it is toAnd carrying out interpolation processing on the elevation values of the point clouds in the preset number in each grid to obtain the elevation value of the pixel.
The adopted test data is point cloud data obtained by densely matching satellite three-dimensional image data, and the number of the points is one hundred million, two thousand and five million; obtaining a rasterized image rendering image by using the method, wherein the rasterization consumes 202 seconds; however, the conventional method for constructing the TIN interpolation by using the point cloud consumes about one hour.
Based on the foregoing embodiments, an embodiment of the present application provides a point cloud rasterization apparatus based on gridding multi-neighborhood interpolation, and referring to fig. 2, the point cloud rasterization apparatus 200 based on gridding multi-neighborhood interpolation provided by the embodiment of the present application at least includes:
a rasterization processing unit 201, configured to perform rasterization processing on all point cloud data to obtain a raster image;
a gridding processing unit 202, configured to perform gridding processing on the grid image to obtain a gridded grid image, and acquire and store the point cloud number and the point cloud number of each grid in the gridded grid image;
the interpolation unit 203 is configured to obtain, for each pixel of the raster image, a mesh to which the pixel belongs; utilizing the number and the elevation value of point clouds in the belonging grid and the peripheral grids to obtain the elevation value of each pixel through interpolation processing;
and the point cloud raster image generating unit 204 is configured to obtain a point cloud raster image by using the elevation value of each pixel as a pixel value.
It should be noted that the principle of the point cloud rasterization apparatus 200 based on the gridding multi-neighborhood interpolation provided in the embodiment of the present application for solving the technical problem is similar to the point cloud rasterization method based on the gridding multi-neighborhood interpolation provided in the embodiment of the present application, and therefore, the implementation of the point cloud rasterization apparatus 200 based on the gridding multi-neighborhood interpolation provided in the embodiment of the present application may refer to the implementation of the point cloud rasterization method based on the gridding multi-neighborhood interpolation provided in the embodiment of the present application, and repeated parts are not described again.
As shown in fig. 3, an electronic device 300 provided in the embodiment of the present application at least includes: the system comprises a processor 301, a memory 302 and a computer program stored on the memory 302 and capable of running on the processor 301, wherein the processor 301 implements the point cloud rasterization method based on gridding multi-neighborhood interpolation provided by the embodiment of the application when executing the computer program.
The electronic device 300 provided by the embodiment of the present application may further include a bus 303 connecting different components (including the processor 301 and the memory 302). Bus 303 represents one or more of any of several types of bus structures, including a memory bus, a peripheral bus, a local bus, and so forth.
The Memory 302 may include readable media in the form of volatile Memory, such as Random Access Memory (RAM) 3021 and/or cache Memory 3022, and may further include Read Only Memory (ROM) 3023.
The memory 302 may also include a program tool 3024 having a set (at least one) of program modules 3025, the program modules 3025 including, but not limited to: an operating subsystem, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The electronic device 300 may also communicate with one or more external devices 304 (e.g., keyboard, remote control, etc.), with one or more devices that enable a user to interact with the electronic device 300 (e.g., cell phone, computer, etc.), and/or with any device that enables the electronic device 300 to communicate with one or more other electronic devices 300 (e.g., router, modem, etc.). Such communication may be through an Input/Output (I/O) interface 305. Also, the electronic device 300 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public Network, such as the internet) via the Network adapter 306. As shown in FIG. 3, the network adapter 306 communicates with the other modules of the electronic device 300 via the bus 303. It should be understood that although not shown in FIG. 3, other hardware and/or software modules may be used in conjunction with electronic device 300, including but not limited to: microcode, device drivers, Redundant processors, external disk drive Arrays, disk array (RAID) subsystems, tape drives, and data backup storage subsystems, to name a few.
It should be noted that the electronic device 300 shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiments.
The embodiment of the application also provides a computer-readable storage medium, which stores computer instructions, and the computer instructions, when executed by a processor, implement the point cloud rasterization method based on the gridding multi-neighborhood interpolation provided by the embodiment of the application.
Further, while the operations of the methods of the present application are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
Claims (10)
1. A point cloud rasterization method based on gridding multi-neighborhood interpolation is characterized by comprising the following steps:
rasterizing the point cloud data to obtain a raster image;
performing gridding processing on the grid image to obtain a gridded grid image, and acquiring and storing the point cloud number and the point cloud serial number of each grid in the gridded grid image;
for each pixel of the grid image, acquiring a grid to which the pixel belongs; utilizing the point cloud number and the elevation value in the affiliated grid and the peripheral grids thereof to obtain the elevation value of each pixel through interpolation processing;
and taking the elevation value of each pixel as a pixel value to obtain a point cloud grid image.
2. The grid multi-neighborhood interpolation-based point cloud rasterization method according to claim 1, wherein the point cloud data is subjected to rasterization processing to obtain a grid image; the method comprises the following steps:
obtaining geodetic coordinates of each point cloudWherein, in the step (A),as a result of the longitude, the number of times,in the case of the latitude, the latitude is,is an elevation value;
counting all point cloudsMinimum value of coordinatesAnd maximum value,Minimum value of coordinatesAnd maximum value;
3. The gridding multi-neighborhood interpolation-based point cloud rasterization method according to claim 2, wherein gridding processing is performed on a grid image to obtain and store the number of point clouds and the number of point clouds in each grid; the method comprises the following steps:
to image the gridEach pixel forms a grid to obtain a gridded grid image, and the side length of each grid is;
Number of meshes in column direction of gridded grid imageAnd the number of grids in the row directionComprises the following steps:
calculating two-dimensional coordinates in the grid of each point cloudAnd one-dimensional coordinate index:
Create a size ofThe one-dimensional array grid _ pt _ num is used for recording the number of point clouds in each grid;
4. The method of claim 3, wherein for each pixel of the grid image, the grid to which it belongs is obtained; utilizing the point cloud number and the elevation value in the affiliated grid and the peripheral grids thereof to obtain the elevation value of each pixel through interpolation processing; the method comprises the following steps:
obtaining a grid of the pixel in the gridding grid image by using the geographic coordinate of the pixel as a central grid;
centered on a central gridReading the number and the serial number of point clouds in 9 grids from a one-dimensional array grid _ pt _ num and a two-dimensional array grid _ pt _ ids by using 9 grids in the area;
judging whether the total number of all point clouds in the 9 grids is less than M or not, and if so, setting the elevation value of the pixel element as a preset invalid value; otherwise, carrying out interpolation processing on the elevation values of the point clouds with the preset number in the 9 grids to obtain the elevation value of the pixel.
5. The method of claim 4, wherein the geographic coordinates of the pixels are used to obtain the mesh to which the pixels belong in the gridded grid image; the method comprises the following steps:
for each pixel of the raster image, calculating the geographic coordinates of the center of each pixelAnd:
wherein the content of the first and second substances,is the column coordinate of the picture element,is the row coordinate of the pixel;
6. The method for rasterizing a point cloud based on gridding multi-neighborhood interpolation according to claim 5, wherein interpolating the elevation values of a preset number of point clouds in 9 grids to obtain the elevation value of the pixel comprises:
aiming at each point cloud in 9 grids, directly acquiring the geographic coordinates of the point cloud from the point cloud data by using the point cloud serial number;
geographic coordinate and pixel center geographic coordinate based on point cloudCalculating the geographic distance between the two;
sequencing the point clouds according to the sequence of the geographic distances from small to large;
acquiring the elevation values of the front M point clouds after sorting, and calculating the elevation value Z of the pixel by using the geographical distance between the M point clouds and the center of the pixel:
7. The method of rasterizing a point cloud based on gridded multi-neighborhood interpolation of claim 6 further comprising:
step S1: acquiring all pixels with pixel values not being invalid values from the point cloud raster image;
step S2: forming a geometric object by using the coordinates of all the pixels, wherein the geometric object is an effective boundary of the point cloud grid image;
step S3: for each pixel of which the pixel value of the point cloud raster image is an invalid value, judging whether the pixel is in an effective boundary, if not, not processing, otherwise, entering the step S4;
step S4: obtaining the grids of the pixels in the gridding grid image by using the geographic coordinates of the pixels as central grids;
step S5: centered on a central gridWithin a regionA grid reading from the one-dimensional array grid _ pt _ num and the two-dimensional array grid _ pt _ idsThe number and serial number of the point clouds in each grid;is 4;
step S6: judgment ofWhether the total number of all point clouds in each grid is less than M or not, if so, determining whether the total number of all point clouds in each grid is less than M or notThen, the process proceeds to step S5; otherwise, it is toInterpolation processing is carried out on the elevation values of the point clouds with preset number in each gridAnd obtaining the elevation value of the pixel.
8. A point cloud rasterization device based on gridding multi-neighborhood interpolation is characterized by comprising the following components:
the rasterization processing unit is used for rasterizing the point cloud data to obtain a raster image;
the grid processing unit is used for carrying out grid processing on the grid image to obtain a grid image, and acquiring and storing the point cloud number and the point cloud serial number of each grid in the grid image;
the interpolation unit is used for acquiring the grids to which each pixel of the raster image belongs; utilizing the point cloud number and the elevation value in the affiliated grid and the peripheral grids thereof to obtain the elevation value of each pixel through interpolation processing;
and the point cloud raster image generating unit is used for taking the elevation value of each pixel as a pixel value to obtain a point cloud raster image.
9. An electronic device, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor when executing the computer program implementing the method of point cloud rasterization based on gridded multi-neighborhood interpolation of any one of claims 1 to 7.
10. A computer-readable storage medium storing computer instructions which, when executed by a processor, implement the grid multi-neighborhood interpolation based point cloud rasterization method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210995957.9A CN115082641B (en) | 2022-08-19 | 2022-08-19 | Point cloud rasterization method and device based on gridding multi-neighborhood interpolation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210995957.9A CN115082641B (en) | 2022-08-19 | 2022-08-19 | Point cloud rasterization method and device based on gridding multi-neighborhood interpolation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115082641A true CN115082641A (en) | 2022-09-20 |
CN115082641B CN115082641B (en) | 2022-12-02 |
Family
ID=83245455
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210995957.9A Active CN115082641B (en) | 2022-08-19 | 2022-08-19 | Point cloud rasterization method and device based on gridding multi-neighborhood interpolation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115082641B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116721228A (en) * | 2023-08-10 | 2023-09-08 | 山东省国土测绘院 | Building elevation extraction method and system based on low-density point cloud |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101324663A (en) * | 2008-01-08 | 2008-12-17 | 覃驭楚 | Rapid blocking and grating algorithm of laser radar point clouds data |
CN103093414A (en) * | 2013-01-22 | 2013-05-08 | 南京师范大学 | Decryption and recovery method of document object model (DOM) raster data |
CN106204705A (en) * | 2016-07-05 | 2016-12-07 | 长安大学 | A kind of 3D point cloud segmentation method based on multi-line laser radar |
CN108197283A (en) * | 2018-01-12 | 2018-06-22 | 河南省水利勘测设计研究有限公司 | The method that flood two, three-dimensional dynamic exhibition are carried out using river measured water level |
CN108829997A (en) * | 2018-06-25 | 2018-11-16 | 中国电建集团中南勘测设计研究院有限公司 | A kind of method and device of batch extracting river big cross section data |
CN110264405A (en) * | 2019-06-17 | 2019-09-20 | 深圳飞马机器人科技有限公司 | Image processing method, device, server and storage medium based on interpolation algorithm |
CN113327321A (en) * | 2020-02-28 | 2021-08-31 | 北京创奇视界科技有限公司 | Automatic modeling method for three-dimensional model of submarine topography based on three-dimensional imaging sonar point cloud |
CN114254531A (en) * | 2020-09-24 | 2022-03-29 | 奥恩斯卡乐有限公司 | Dynamic resource allocation for computational simulation |
US20220169381A1 (en) * | 2020-11-30 | 2022-06-02 | Saudi Arabian Oil Company | Deep learning-based localization of uavs with respect to nearby pipes |
-
2022
- 2022-08-19 CN CN202210995957.9A patent/CN115082641B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101324663A (en) * | 2008-01-08 | 2008-12-17 | 覃驭楚 | Rapid blocking and grating algorithm of laser radar point clouds data |
CN103093414A (en) * | 2013-01-22 | 2013-05-08 | 南京师范大学 | Decryption and recovery method of document object model (DOM) raster data |
CN106204705A (en) * | 2016-07-05 | 2016-12-07 | 长安大学 | A kind of 3D point cloud segmentation method based on multi-line laser radar |
CN108197283A (en) * | 2018-01-12 | 2018-06-22 | 河南省水利勘测设计研究有限公司 | The method that flood two, three-dimensional dynamic exhibition are carried out using river measured water level |
CN108829997A (en) * | 2018-06-25 | 2018-11-16 | 中国电建集团中南勘测设计研究院有限公司 | A kind of method and device of batch extracting river big cross section data |
CN110264405A (en) * | 2019-06-17 | 2019-09-20 | 深圳飞马机器人科技有限公司 | Image processing method, device, server and storage medium based on interpolation algorithm |
CN113327321A (en) * | 2020-02-28 | 2021-08-31 | 北京创奇视界科技有限公司 | Automatic modeling method for three-dimensional model of submarine topography based on three-dimensional imaging sonar point cloud |
CN114254531A (en) * | 2020-09-24 | 2022-03-29 | 奥恩斯卡乐有限公司 | Dynamic resource allocation for computational simulation |
US20220169381A1 (en) * | 2020-11-30 | 2022-06-02 | Saudi Arabian Oil Company | Deep learning-based localization of uavs with respect to nearby pipes |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116721228A (en) * | 2023-08-10 | 2023-09-08 | 山东省国土测绘院 | Building elevation extraction method and system based on low-density point cloud |
CN116721228B (en) * | 2023-08-10 | 2023-10-24 | 山东省国土测绘院 | Building elevation extraction method and system based on low-density point cloud |
Also Published As
Publication number | Publication date |
---|---|
CN115082641B (en) | 2022-12-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113516769B (en) | Virtual reality three-dimensional scene loading and rendering method and device and terminal equipment | |
US7983474B2 (en) | Geospatial modeling system and related method using multiple sources of geographic information | |
US8712147B2 (en) | Fractal method for detecting and filling data gaps within LiDAR data | |
CN110866531A (en) | Building feature extraction method and system based on three-dimensional modeling and storage medium | |
US20160180586A1 (en) | System and method for data compression and grid regeneration | |
CN108876861B (en) | Stereo matching method for extraterrestrial celestial body patrolling device | |
CN115082641B (en) | Point cloud rasterization method and device based on gridding multi-neighborhood interpolation | |
US9563969B2 (en) | Method of generating implicit terrain data by performing lossless compression and lossy compression and electronic apparatus for performing the method | |
CN113920275B (en) | Triangular mesh construction method and device, electronic equipment and readable storage medium | |
CN115131494A (en) | Optical remote sensing satellite imaging simulation method and device | |
CN116721228B (en) | Building elevation extraction method and system based on low-density point cloud | |
CN117152333A (en) | Building side texture construction method based on satellite image live-action three-dimensional model | |
CN113282695B (en) | Vector geographic information acquisition method and device based on remote sensing image | |
CN115423696A (en) | Remote sensing ortho-image parallel generation method of self-adaptive thread parameters | |
Masood et al. | A novel method for adaptive terrain rendering using memory-efficient tessellation codes for virtual globes | |
CN112634431A (en) | Method and device for converting three-dimensional texture map into three-dimensional point cloud | |
CN112419459A (en) | Method, apparatus, computer device and storage medium for baked model AO mapping | |
KR101129084B1 (en) | Method for terrain rendering using biased vertex distribution | |
CN112560868A (en) | Multi-process large area network image matching method and device based on feature point library | |
CN113496550B (en) | DSM calculation method and device, computer equipment and storage medium | |
CN116295031B (en) | Sag measurement method, sag measurement device, computer equipment and storage medium | |
CN110363835B (en) | WebGL implementation method of digital surface model | |
TW202316379A (en) | Method of the digital grid model and system thereof | |
CN116612055A (en) | Multi-source data fusion method, device, computer equipment and storage medium | |
CN114627261A (en) | Data processing method and device, computer equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |