Coding method and decoding method of point cloud data, terminal equipment and storage medium

By generating and encoding projection images and mask images of point cloud data, the problem of low decoding and reconstruction accuracy in point cloud data compression and encoding is solved, and the decoding accuracy and reconstruction reliability of point cloud data are improved.

CN118691691APending Publication Date: 2024-09-24ANHUI SHENJI TECHNOLOGY CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410725854.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The existing compression and encoding of point clouds based on range images has the problem of low decoding and reconstruction accuracy. Especially in scenarios with high accuracy requirements such as autonomous driving, the reconstruction reliability is low.

Method used

By acquiring point cloud data, generating a first projection image and a mask image, encoding the first projection image, generating a first data sequence, generating a residual image to be encoded based on the first projection image and the second projection image, and performing convolution The product operation is performed to obtain the estimated parameters, which are used to encode the mask image and the residual image to be encoded to generate the encoding result of the point cloud data.

Benefits of technology

It reduces the error between the point cloud reconstructed after decoding and the actual point cloud, improves the accuracy of decoding and reconstruction, and enhances the reliability of reconstruction in scenarios such as autonomous driving.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691691A
    Figure CN118691691A
Patent Text Reader

Abstract

The invention discloses a point cloud data encoding method and decoding method, terminal equipment and a storage medium, and the method comprises the steps: obtaining point cloud data, generating a first projection image and a mask image according to the point cloud data, encoding the first projection image, generating a first data sequence, and decoding the first projection image according to the first projection image and the first data sequence. Generating a to-be-coded residual image, decoding the first data sequence to obtain a second projection image, performing convolution operation on the second projection image to generate a first estimation parameter, coding the mask image according to the first estimation parameter to generate a second data sequence, and encoding the residual image to be encoded according to the second data sequence and the estimation parameter to generate a third data sequence, and generating an encoding result of the point cloud data according to the first data sequence, the second data sequence and the third data sequence, so that lossless point cloud data can be obtained. The error between the reconstructed point cloud after decoding and the actual point cloud is reduced, and the decoding and reconstruction precision is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of coding technology, and in particular relates to a coding method, a decoding method, a terminal device and a storage medium for point cloud data. Background Art

[0002] Point cloud is a collection of points that express the spatial distribution and surface characteristics of the target in the same reference system, usually including the geometric information and attribute information of the detected object. Specifically, point cloud includes dense point cloud and sparse point cloud. Sparse point cloud has the characteristics of high resolution and high ranging accuracy, which makes sparse point cloud widely used in autonomous driving technology, automatic navigation, target detection and tracking.

[0003] Since point clouds are usually composed of a large number of points, processing point clouds in different application scenarios will place higher requirements on storage space, transmission bandwidth, and computing power, which has application limitations. Based on this, in order to improve storage efficiency, transmission efficiency, and processing speed, point clouds need to be compressed and encoded.

[0004] Currently, point clouds can be compressed and encoded based on range images, that is, point clouds are converted into range images and then compressed and encoded. However, since the pixel value range and content features of range images are different from those of natural images, compression encoding based on range images will lead to errors between the point cloud reconstructed after decoding and the actual point cloud, resulting in low accuracy of decoding and reconstruction. Summary of the invention

[0005] The point cloud data encoding method, decoding method, terminal device and storage medium provided in the embodiments of the present application are intended to solve the problem of low accuracy of decoding and reconstruction in the existing compression encoding of point clouds based on range images.

[0006] In a first aspect, an embodiment of the present application provides a method for encoding point cloud data, comprising:

[0007] Acquire point cloud data, and generate a first projection image and a mask image according to the point cloud data;

[0008] Encoding the first projection image to generate a first data sequence, and decoding the first data sequence to obtain a second projection image;

[0009] Generate a to-be-encoded residual image according to the first projection image and the second projection image, and perform a convolution operation on the second projection image to generate a first estimation parameter, wherein the first estimation parameter is used to estimate a probability distribution of the mask image and a probability distribution of the to-be-encoded residual image;

[0010] encoding the mask image according to the first estimated parameters to generate a second data sequence, and encoding the residual image to be encoded according to the second data sequence and the estimated parameters to generate a third data sequence;

[0011] Generate an encoding result of the point cloud data according to the first data sequence, the second data sequence and the third data sequence.

[0012] In a possible implementation manner of the first aspect, generating a first projection image according to the point cloud data includes:

[0013] According to a predetermined division rule, generating at least two space point intervals;

[0014] According to the azimuth range corresponding to each of the spatial point intervals and the azimuth of each spatial point in the point cloud data, the spatial points are divided into corresponding spatial point intervals to obtain at least two target spatial point intervals;

[0015] A first projection image is generated according to all the target space point intervals.

[0016] In a possible implementation manner of the first aspect, encoding the first projection image to generate a first data sequence includes:

[0017] Using a coding model to perform lossy coding on the first projection image to generate a first data sequence;

[0018] Among them, the encoding model includes a basic layer, the basic layer is used to losslessly encode the first projection image, the basic layer includes an end-to-end compression network, the end-to-end compression network is used to losslessly encode the spherical coordinate projection image corresponding to the first projection image, and the end-to-end compression network includes a convolutional layer and a first arithmetic encoder.

[0019] In a possible implementation of the first aspect above, the coding model also includes an enhancement layer, which is used to losslessly encode the mask image and encode valid pixels in the residual image to be encoded, and the enhancement layer includes a convolutional network and a second arithmetic encoder.

[0020] In a possible implementation manner of the first aspect, the using a coding model to losslessly encode the first projection image to generate a first data sequence includes:

[0021] Determine a target sampling magnification of the first projection image, wherein the target sampling magnification includes a horizontal axis sampling magnification and a vertical axis sampling magnification, and the horizontal axis sampling magnification is greater than the vertical axis sampling magnification;

[0022] Downsampling the first projection image according to a target sampling ratio using a coding model to generate a tensor corresponding to the first projection image;

[0023] Determine a second estimated parameter of the tensor, and lossily encode the tensor based on the second estimated parameter to generate a first data sequence.

[0024] In a possible implementation manner of the first aspect, performing a convolution operation on the second projection image to generate a first estimation parameter includes:

[0025] Performing coordinate transformation on the second projection image to generate a third projection image, wherein the second projection image is a lossy spherical coordinate projection image, and the third projection image is a lossy Cartesian coordinate projection image;

[0026] A convolution operation is performed on the second projection image and the third projection image to determine a first estimation parameter.

[0027] In a possible implementation manner of the first aspect, encoding the to-be-encoded residual image according to the second data sequence and the estimated parameter to generate a third data sequence includes:

[0028] Decoding the second data sequence to generate a reconstructed mask image;

[0029] Determining valid pixels in the residual image to be encoded according to the reconstructed mask image;

[0030] The effective pixels are encoded according to the estimated parameters to generate a third data sequence.

[0031] In a possible implementation manner of the first aspect, before determining valid pixels in the to-be-encoded residual image according to the reconstructed mask image, the method further includes:

[0032] Determining encoding requirements, wherein the encoding requirements include lossless encoding requirements and near-lossless encoding requirements;

[0033] When the coding requirement is the near-lossless coding requirement, the residual image to be coded is quantized, so as to perform the step of determining valid pixels in the residual image to be coded according to the reconstructed mask image based on the quantized residual image to be coded.

[0034] In a second aspect, an embodiment of the present application provides a method for decoding point cloud data, comprising:

[0035] Decoding a first data sequence to generate a third projection image, wherein the first data sequence is a lossy encoding result of the first projection image, the first projection image is converted based on point cloud data, and the third projection image is a lossy Cartesian coordinate projection image corresponding to the first projection image;

[0036] Decoding a second data sequence to generate a reconstructed mask image, wherein the second data sequence is a lossless encoding result of the mask image, and the mask image is an image recording a vacant position in the first projection image;

[0037] Decoding a third data sequence to determine valid pixels, wherein the third data sequence is a coding result of valid pixels in the residual image to be encoded, wherein the valid pixels are pixels other than invalid pixels in the residual image to be encoded, wherein the invalid pixels are pixels in the residual image to be encoded corresponding to vacant positions in the reconstructed mask image, and the residual image to be encoded is a residual image between the first projection image and the second projection image;

[0038] Merge the third projection image and the valid pixels to generate a reconstructed projection image, and filter out invalid pixels in the reconstructed projection image according to the vacant positions in the reconstructed mask image to generate a decoding result of the point cloud data.

[0039] In a third aspect, an embodiment of the present application provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for encoding the point cloud data provided in the first aspect above is implemented, and the method for decoding the point cloud data provided in the second aspect above is implemented.

[0040] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the encoding method of the point cloud data provided in the first aspect above and the decoding method of the point cloud data provided in the second aspect above are implemented.

[0041] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

[0042] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0043] In an embodiment of the present application, point cloud data is acquired, and a first projection image and a mask image are generated based on the point cloud data, the first projection image is encoded to generate a first data sequence, and a residual image to be encoded is generated based on the first projection image and the first data sequence, the first data sequence is decoded to obtain a second projection image, and a convolution operation is performed on the second projection image to generate a first estimation parameter, the mask image is encoded based on the first estimation parameter to generate a second data sequence, and the residual image to be encoded is encoded based on the second data sequence and the estimation parameters to generate a third data sequence, and an encoding result of the point cloud data is generated based on the first data sequence, the second data sequence, and the third data sequence, and then a residual image, a mask image, and a lossy first projection image can be obtained by decoding the encoding result of the point cloud data, and lossless point cloud data can be obtained by merging the residual image, the mask image, and the lossy first projection image, thereby reducing the error between the point cloud reconstructed after decoding and the actual point cloud, and improving the accuracy of decoding and reconstruction. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is a flowchart of the steps of a method for encoding point cloud data provided by an embodiment of the present application;

[0045] Figure 2 It is a structural diagram of a coding model provided by an embodiment of the present application;

[0046] Figure 3 It is a schematic diagram of the structure of an end-to-end compression network provided by an embodiment of the present application;

[0047] Figure 4 is a schematic structural diagram of an enhancement layer provided in one embodiment of the present application;

[0048] Figure 5 is a flowchart of another method for encoding point cloud data provided by an embodiment of the present application;

[0049] Figure 6 is an example flow chart of reconstruction of point cloud data provided by an embodiment of the present application;

[0050] Figure 7 is a flowchart of a method for decoding point cloud data provided by an embodiment of the present application;

[0051] Figure 8 It is a structural schematic diagram of a point cloud data encoding device provided by an embodiment of the present application;

[0052] Fig. 9 It is a structural schematic diagram of a point cloud data decoding device provided by an embodiment of the present application;

[0053] Fig.10It is a structural block diagram of a terminal device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0054] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0055] Point cloud can be a collection of spatial points on the surface of an object collected by a measuring device, specifically a collection of spatial points that express the spatial distribution of a target and the surface characteristics of a target in the same reference system. The measuring device can include devices with different measurement principles, such as laser radar based on the laser measurement principle, structured light camera based on the triangulation ranging principle, etc.

[0056] Point clouds usually include geometric information and attribute information of each spatial point. Geometric information can be the coordinate information of the spatial point in the target space, and attribute information can be the information fed back by the spatial point. Attribute information can include laser reflection intensity information, color information, surface normal vector and other information. Specifically, point clouds include dense point clouds and sparse point clouds. Sparse point clouds have the characteristics of high resolution and high ranging accuracy, which makes sparse point clouds widely used in autonomous driving technology, automatic navigation, target detection and tracking.

[0057] Since point clouds are usually composed of a large number of spatial points, processing point clouds in different application scenarios will place higher requirements on storage space, transmission bandwidth, and computing power, which has application limitations. Based on this, in order to improve storage efficiency, transmission efficiency, and processing speed, point clouds need to be compressed and encoded.

[0058] At present, encoding of sparse point clouds generally involves encoding the geometric information of the point cloud to obtain the encoding result of the geometric information, then decoding the encoding result of the geometric information to obtain the reconstructed geometric information, and encoding the attribute information of the point cloud based on the reconstructed geometric information to obtain the encoding result of the attribute information. The following models can be used to encode the geometric information: octree model, prediction tree model, distance image model, etc.

[0059] Among them, the range image model can compress and encode the point cloud based on the range image, that is, convert the point cloud into a range image, and compress and encode the range image. However, since the pixel value range, content characteristics and other information of the range image are obviously different from those of the natural image, such as the pixel value range of the range image is smaller than the pixel value range of the natural image, the compression encoding based on the range image will cause the point cloud reconstructed after decoding to have errors with the actual point cloud, and there is a problem of low accuracy of decoding and reconstruction, especially in scenes such as autonomous driving that have higher requirements for reconstruction accuracy, there is a problem of low reconstruction reliability.

[0060] Based on this, an embodiment of the present application provides a method for encoding point cloud data. Figure 1 , Figure 1 A flowchart of a method for encoding point cloud data provided by an embodiment of the present application is shown, which may specifically include the following steps:

[0061] Step 101: acquiring point cloud data, and generating a first projection image and a mask image according to the point cloud data.

[0062] Among them, the first projection image can be a distance image projected from the point cloud data, specifically a spherical coordinate projection image, the mask image can be an image recording the vacant positions in the first projection image, specifically an image recording the vacant positions in the spherical coordinate projection image, and the spherical coordinate projection image can be an image obtained by coordinate conversion of the Cartesian coordinate projection image.

[0063] In scenarios such as autonomous driving and automatic navigation that require point cloud data to implement corresponding functions, point cloud data in the scene will be collected through measurement equipment. For example, in the scenario of autonomous driving, the point cloud data of the current scene will be collected through the laser radar in the vehicle performing autonomous driving.

[0064] In practical applications, the measuring device used to collect point cloud data usually includes at least one wire harness, and when collecting point cloud data, the measuring device or the wire harness is rotated to obtain point cloud data within a 360° range with the measuring device as the origin, which is a frame of point cloud data. The number of points in a frame of point cloud data is specifically related to the angular resolution of the measuring device. For example, when the angular resolution of the measuring device is 0.08°, the number of points in a frame of point cloud data can be the quotient of 360° and 0.08°, that is, 4500.

[0065] After acquiring the point cloud data, the point cloud data can be projected into a distance image with the number of line beams as the height and the angular resolution as the width. The distance image can be a spherical coordinate projection image, that is, a first projection image, and the first projection image is subjected to coordinate transformation to obtain a Cartesian coordinate projection image. A blank image of the same size as the distance image can be generated, and then the blank image is used to record the vacant positions in the Cartesian coordinate projection image to obtain a mask image.

[0066] The blank image may be an image in which the pixel values ​​of all pixels are 0 or False.

[0067] In an embodiment of the present application, generating a first projection image according to point cloud data in step 101 may include steps 1011 to 1013:

[0068] Step 1011, generating at least two space point intervals according to a predetermined division rule.

[0069] The division rule may be used to divide all spatial points in the point cloud data into at least two spatial point intervals, and the spatial point intervals may be intervals divided based on the azimuth angles of the spatial points.

[0070] After obtaining the point cloud data, the spatial points represented by Cartesian coordinates in the point cloud data can be converted into spatial points represented by spherical coordinates.

[0071] Specifically, a spatial point represented by Cartesian coordinates may be (x, y, z), and a spatial point represented by spherical coordinates may be (r, θ, φ), where (x, y, z) may be the Cartesian coordinates of the spatial point in three-dimensional space, (r, θ, φ) may be the spherical coordinates of the spatial point in three-dimensional space, r may be the distance from the spatial point to the origin, θ may be the altitude angle, and φ may be the azimuth angle. Specifically, the coordinate conversion may be performed by the following formula:

[0072] r=√(x 2 +y 2 +z 2 )

[0073] θ=arccos(z / √(x 2 +y 2 +z 2 ))

[0074] φ=arctan(y / x)

[0075] After obtaining the spatial points represented by spherical coordinates, all spatial points collected by each line beam can be sorted according to the size of the azimuth angle, such as sorting from small to large or from large to small.

[0076] Usually, the azimuth of the true north direction of the measuring device can be assumed to be 0°, and the angle between each spatial point and the true north direction can be determined in a clockwise direction, that is, the azimuth of the spatial point.

[0077] After sorting all the spatial points collected by each beam, the longest beam can be determined from all the beams, and the number of spatial points that need to be divided in each interval can be determined according to the division rules. Then, based on the number of spatial points collected by the longest beam and the number of spatial points that need to be divided in each interval, the number of spatial point intervals that need to be divided can be determined, and the corresponding number of spatial point intervals can be generated. Then, based on the number of spatial point intervals, the azimuth range of each spatial point interval can be determined.

[0078] In practical applications, the number of spatial points collected by the longest line beam can be used as the width of the image, and the number of spatial point intervals to be divided can be determined based on the width of the image and the number of spatial points to be divided in each interval.

[0079] For example, the number of spatial points of the longest line bundle can be 3602, then the width of the image can be 3602 pixels, and the number of spatial points that need to be divided based on the division rule can be 4, that is, the number of spatial points in each spatial point interval is determined to be 4, and then the number of intervals of the spatial point intervals that need to be divided can be determined to be 900.5, rounded to 900.

[0080] After determining that the number of spatial point intervals is 900, the 360° range can be evenly divided into 900 azimuth ranges of the same number, that is, the azimuth corresponding to each spatial point interval is 0.4°, and the azimuth corresponding to the first spatial point interval with due north as 0° and in the clockwise direction is 0 to 0.4°, the azimuth corresponding to the second spatial point interval is 0.4° to 0.8°, and so on, to obtain the azimuth ranges corresponding to all spatial point intervals.

[0081] Step 1012, according to the azimuth range corresponding to each spatial point interval and the azimuth of each spatial point in the point cloud data, the spatial points are divided into corresponding spatial point intervals to obtain at least two target spatial point intervals.

[0082] Among them, the target spatial point interval can be the spatial point interval after the spatial points are divided.

[0083] After dividing the spatial point intervals and obtaining the azimuth range of each spatial point interval, for each spatial point in the point cloud data collected by each beam, the azimuth range that matches the azimuth of the spatial point can be determined from the azimuth ranges of all spatial point intervals, that is, the matching azimuth range, and the spatial point interval corresponding to the matching azimuth range is determined to be the spatial point interval that matches the spatial point, and then the spatial point can be divided into the spatial point interval that matches it, and so on, all spatial points in the point cloud data are divided into corresponding spatial point intervals to obtain at least two target spatial point intervals of the beam.

[0084] For example, the azimuth of a spatial point in the point cloud data is 0.88°, and the azimuth range corresponding to the third spatial point interval is 0.8° to 1.2°. It can be determined that the azimuth of the spatial point is within the azimuth range corresponding to the third spatial point interval. The third spatial point interval can be determined as the matching spatial point interval that matches the spatial point, and the spatial point is divided into the third spatial point interval.

[0085] It should be understood that since at least one wire harness can be installed in the measuring device, and when the number of wire harnesses is at least two, the elevation angles between each wire harness are different, and thus the elevations of the spatial points collected by each wire harness are also different. At the same azimuth, there will be a certain wire harness that can receive spatial points reflected by the object in the direction of its elevation angle, while another wire harness cannot receive spatial points reflected by the object in the direction of its elevation angle, that is, the number of spatial points collected by each wire harness will also be different, and thus it is necessary to determine the longest wire harness among all the wire harnesses, and divide at least two spatial point intervals according to the number of spatial points of the longest wire harness, so that the divided spatial point intervals can place the spatial points collected by each wire harness, thereby reducing the situation where the divided spatial point intervals cannot place all the spatial points collected by a certain wire harness due to too many spatial points collected by the wire harness, resulting in spatial point overflow.

[0086] In one embodiment of the present application, after obtaining all the target space point intervals of the wiring harness, all the target space point intervals can be traversed, and when it is detected that the number of space points in a certain target space point interval is greater than the number of space points corresponding to the division rule, the number of space points in the previous target space point interval of the target space point interval is detected.

[0087] When it is detected that the number of spatial points in the previous target spatial point interval is greater than or equal to the number of spatial points corresponding to the division rule, no operation is performed. When it is detected that the number of spatial points in the previous target spatial point interval is less than the number of spatial points corresponding to the division rule, the spatial point with the smallest azimuth in the target spatial point interval can be moved to the previous target spatial point interval, and it is detected again whether the number of spatial points in the target spatial point interval is greater than the number of spatial points corresponding to the division rule. When it is detected that the number of spatial points in the target spatial point interval is greater than the number of spatial points corresponding to the division rule, the above operation of detecting the number of spatial points in the previous target spatial point interval is repeated until the number of spatial points in the target spatial point interval is less than the number of spatial points corresponding to the division rule or the number of spatial points in the previous target spatial point interval is equal to the number of spatial points corresponding to the division rule. Check again whether the number of spatial points in the target spatial point interval is greater than the number of spatial points corresponding to the division rule. If the number of spatial points in the target spatial point interval is less than the number of spatial points corresponding to the division rule, continue to traverse the subsequent target spatial point intervals. If the number of spatial points in the target spatial point interval is still greater than the number of spatial points corresponding to the division rule, the spatial point with the largest azimuth angle in the target spatial point interval can be moved to the next target spatial point interval, and continue to traverse the subsequent target spatial point intervals.

[0088] After traversing all target spatial point intervals, it is possible to detect whether all spatial points are placed in the target spatial point interval. When it is detected that there are remaining spatial points, a supplementary spatial point interval can be generated, and the supplementary spatial point interval has no corresponding azimuth range. The number of spatial points placed in the supplementary spatial point interval is D, D = (W-w*d). Specifically, the remaining spatial points may be the spatial points among all spatial points that are not placed in the target spatial point interval, W may be the width of the image, w may be the number of intervals of the divided spatial point intervals, and d may be the number of spatial points determined based on the division rule.

[0089] After generating the supplementary spatial point interval, the number of remaining spatial points can be compared with the number of spatial points placed in the supplementary spatial point interval. When the number of remaining spatial points is less than or equal to the number of spatial points placed in the supplementary spatial point interval, the remaining spatial points can be placed in the supplementary spatial point interval. When the number of remaining spatial points is greater than the number of spatial points placed in the supplementary spatial point interval, the width W of the image can be adjusted, and the above steps 1011 and 1012 can be re-executed based on the adjusted width of the image.

[0090] Specifically, the width W of the image can be adjusted by the following formula:

[0091] W=d*(w+1)

[0092] Wherein, W may be the width of the adjusted image.

[0093] Step 1013: Generate a first projection image according to all target space point intervals.

[0094] After all target space point intervals are obtained, for each target space point interval, all space points in the target space point interval may be sorted according to the size of the azimuth angle to obtain a sorted target space point interval.

[0095] After obtaining the sorted target space point intervals, the target space point intervals whose number of space points is less than the number of space points corresponding to the division rule can be determined from all target space point intervals as vacant target space point intervals, that is, target space point intervals with vacant positions, and the vacant positions in the vacant target space point intervals can be retained.

[0096] The vacant position may be a spatial point where the beam cannot receive reflection from an object at a certain azimuth angle.

[0097] For example, the azimuth angle range corresponding to the target spatial point interval A in a certain line beam is 0.8° to 1.2°, and spatial points with azimuth angles of 0.88°, 0.96°, and 1.04° are received, but the line beam cannot receive the spatial point reflected by the object in the direction of the azimuth angle of 1.12°. It can be determined that the spatial point is lost, that is, the number of spatial points in the target spatial point interval A is 3, which is less than the number of spatial points 4 determined based on the division rule. It can be determined that the target spatial point interval A is a vacant target spatial point interval, and the vacant position with an azimuth angle of 1.12° is reserved after the spatial point of 1.04°.

[0098] After obtaining all the target space point intervals of all the line beams including the vacant target space point intervals, the target space point intervals of each line beam can be stacked according to the size of the elevation angle of each line beam to generate a spherical coordinate projection image with a width of W and a height of H. The spherical coordinate projection image has a vacant position, which is the first projection image. The first projection image is converted into a Cartesian coordinate projection image.

[0099] In an embodiment of the present application, the mask image may be generated according to the point cloud data in the following manner:

[0100] Determine the vacant position of each target space point interval in the first projection image, record all vacant positions, and generate a mask image.

[0101] In practical applications, the vacant positions of each target space point interval in the first projection image are determined, and a blank image with the same size as the first projection image is generated, and the mapping positions corresponding to the vacant positions are determined in the blank image. Then, vacant points can be generated at the mapping positions based on other space points adjacent to the vacant positions in the vacant target space point interval, until the vacant points corresponding to all the vacant positions are recorded in the blank image to obtain a mask image.

[0102] Among them, the blank image can be an image in which the pixel values ​​of all pixels are 0 or False, the empty point can be generated based on other spatial points adjacent to the vacant position in the vacant target spatial point interval, and the empty point can be placed at the end of the vacant target spatial point interval.

[0103] Step 102: encode the first projection image to generate a first data sequence, and decode the first data sequence to obtain a second projection image.

[0104] The first data sequence may be an encoding result of the first projection image, and the second projection image may be a projection image reconstructed based on the first data sequence.

[0105] After the first projection image is obtained, the first projection image may be lossily encoded to generate a first data sequence, and the first data sequence may be decoded to obtain a second projection image.

[0106] In an embodiment of the present application, encoding the first projection image in step 102 to generate the first data sequence may include step 1021:

[0107] The first projection image is lossily encoded using a coding model to generate a first data sequence.

[0108] Among them, the coding model includes a basic layer, which can be used to lossily encode the first projection image to obtain a first data sequence, decode the first data sequence to obtain a second projection image, and perform coordinate transformation on the second projection image to obtain a third projection image. The third projection image can be a lossy Cartesian coordinate projection image converted from a lossy spherical coordinate projection image.

[0109] In an embodiment of the present application, the coding model may further include an enhancement layer, which may be used to losslessly encode the mask image and encode valid pixels in the residual image to be encoded.

[0110] Specifically, the structure of the encoding model can be found in Figure 2 , Figure 2 FIG. 1 shows a schematic diagram of a coding model provided by an embodiment of the present application. Figure 2 As shown, the coding model may include a base layer 1 and an enhancement layer 2.

[0111] The base layer 1 may include an end-to-end compression network 11, and the end-to-end compression network 11 may be used to perform lossy encoding on the first projection image to obtain a first data sequence.

[0112] In a specific implementation, the basic layer 1 can receive input data, and the input data can be a spherical coordinate projection image converted from point cloud data, that is, a first projection image. After receiving the first projection image, the basic layer 1 can input the first projection image into the end-to-end compression network 11, so that the end-to-end compression network 11 can perform lossy encoding on the first projection image to obtain the encoding result of the first projection image, that is, a first data sequence. After obtaining the first data sequence, the end-to-end compression network 11 can also decode the first data sequence to obtain a reconstructed lossy spherical coordinate projection image, that is, a second projection image.

[0113] After obtaining the first projection image, an end-to-end compression network in a coding model provided by the present application may be used to perform lossy coding on the first projection image to generate a first data sequence.

[0114] In an embodiment of the present application, step 1021 may further include the following steps:

[0115] Determine a target sampling ratio of the first projection image, use a coding model to downsample the first projection image according to the target sampling ratio, generate a tensor corresponding to the first projection image, determine a second estimated parameter of the tensor, and lossily encode the tensor based on the second estimated parameter to generate a first data sequence.

[0116] Among them, the target sampling ratio may include a horizontal axis sampling ratio and a vertical axis sampling ratio. The horizontal axis sampling ratio may be the sampling ratio in the horizontal axis direction, the vertical axis sampling ratio may be the sampling ratio in the vertical axis direction, the sampling ratio may be the sampling ratio of the downsampling operation performed by the downsampling network in the end-to-end compression network, and the horizontal axis sampling ratio may be greater than the vertical axis sampling ratio.

[0117] For details, see Figure 3 , Figure 3 FIG. 1 shows a schematic diagram of the structure of an end-to-end compression network 11 provided in an embodiment of the present application. Figure 3 As shown, the end-to-end compression network 11 may include multiple convolutional layers 111, a first arithmetic encoder 112, a downsampling network 113, and an upsampling network 114.

[0118] Among them, the downsampling network 113 can be used to downsample the spherical coordinate projection image to obtain a tensor, and downsample the tensor to obtain side information, the side information can be used to reduce redundancy in the encoding process, and the tensor can be a data structure used to represent the image, which can be specifically represented as a multidimensional array. The convolution layer 111 can be used to determine the estimated parameters, and the estimated parameters can be parameters used to estimate the probability distribution during encoding. The first arithmetic encoder 112 can be used to encode the side information and encode the tensor. The upsampling network 114 can be used to decode the first data sequence to obtain a reconstructed lossy spherical coordinate projection image, that is, to obtain a second projection image.

[0119] After obtaining the first projection image, the end-to-end compression network 11 can receive the first projection image X, and determine the sampling magnification in the horizontal axis direction, and determine the sampling magnification in the vertical axis direction to obtain the target sampling magnification, and then the first projection image X can be asymmetrically downsampled according to the target sampling magnification through the downsampling network 113 to obtain the tensor Y.

[0120] After obtaining the tensor corresponding to the first projection image, a second estimated parameter of the tensor may also be determined.

[0121] In an embodiment of the present application, the second estimation parameter may also be determined in the following manner:

[0122] A downsampling network is used to perform a downsampling operation on the tensor to obtain side information, and the probability distribution information of the side information is determined through an entropy model. Then, based on the probability distribution information of the side information, the side information can be encoded and decoded in sequence through a first arithmetic encoder to generate a second estimated parameter corresponding to the tensor.

[0123] In practical applications, the tensor Y can be further downsampled through the downsampling network 113 to obtain the side information Z, and the probability distribution information of the side information Z can be determined through an entropy model. Then, based on the probability distribution information of the side information Z, the side information Z can be encoded and decoded in sequence through the first arithmetic encoder to generate the estimated parameters σ and estimated parameters μ corresponding to the tensor Y. The estimated parameters σ and estimated parameters μ can be the second estimated parameters corresponding to the tensor, and the estimated parameters σ and estimated parameters μ can be used to estimate the probability distribution of the tensor Y.

[0124] After obtaining the second estimated parameters of the tensor, the tensor can be lossily encoded based on the second estimated parameters to generate a first data sequence.

[0125] In practical applications, a checkboard auto-regressive model and a channel-wise auto-regressive model can be used to divide the tensor Y into at least two groups of sub-tensors, namely, sub-tensor Y1 and sub-tensor Y2, and the estimated parameters corresponding to the tensor Y are subjected to the convolution operation of the convolution layer to obtain the estimated parameters σ1 and the estimated parameters μ1 corresponding to the sub-tensor Y1, and then the estimated parameters corresponding to the sub-tensor Y1 can be used as prior information, and the sub-tensor Y1 can be encoded by the first arithmetic encoder 112 to obtain the encoding result Y1′ of the sub-tensor Y1. After obtaining the encoding result Y1′ of the sub-tensor Y1, the encoding result Y1′ and the estimated parameters corresponding to the tensor Y can be input into the convolution layer 111 to generate the estimated parameters σ2 and the estimated parameters μ2 corresponding to the sub-tensor Y2, and then the estimated parameters corresponding to the sub-tensor Y2 can be used as prior information, and the sub-tensor Y2 can be encoded by the first arithmetic encoder 112 to obtain the encoding result Y2′ of the sub-tensor Y2. After obtaining the encoding result Y1′ of the sub-tensor Y1 and the encoding result Y2′ of the sub-tensor Y2, the encoding results can be merged with the encoding results to obtain the encoding result Y′ of the tensor Y, which is the first data sequence.

[0126] It should be understood that the horizontal coordinate in the spherical coordinate projection image can be expressed as the azimuth of the point cloud collected by the measuring device, and the vertical coordinate can be expressed as the altitude angle of the point cloud collected by the measuring device. Generally, the sampling magnification of downsampling when encoding the spherical coordinate projection image is the same. Since the collected point cloud is a sparse point cloud, the physical distance of each pixel on the horizontal coordinate of the collected point cloud is smaller, the correlation is stronger, and there is more redundant information that can be compressed. However, the physical distance of the collected point cloud on the vertical coordinate is larger, the correlation is weaker, and there is less redundant information that can be compressed. If the sampling magnification is directly used to compress and encode the spherical coordinate projection image, there will be a situation where some redundant information in the horizontal coordinate is not compressed. Based on this, different sampling magnifications can be configured for the horizontal and vertical coordinates, so that when the first projection image is compressed and encoded by asymmetric downsampling, that is, the spherical coordinate projection image is compressed and encoded by downsampling in which the sampling magnification of the horizontal coordinate is greater than the sampling magnification of the vertical coordinate, the redundant information in the horizontal coordinate direction of the first projection image can be compressed, thereby improving the compression rate of the first projection image.

[0127] After obtaining the first data sequence, the encoding result Y′ may be decoded by the upsampling network 114 in the encoding model to obtain a reconstructed lossy spherical coordinate projection image X′, ie, a second projection image.

[0128] In an embodiment of the present application, before adopting the encoding model to perform lossy encoding on the first projection image, the basic layer 1 may also be trained.

[0129] First, a point cloud data sample set can be obtained, and a spherical coordinate projection image sample set and a Cartesian coordinate projection image sample set can be generated according to the point cloud data sample set. Then, encoding training can be performed on the basic layer in the encoding model based on the spherical coordinate projection image sample set, and the first mean square error between the reconstructed spherical coordinate projection image and the corresponding spherical coordinate projection image in the spherical coordinate projection image sample set is used as the loss function for training the basic layer, until the first mean square error gradually converges to less than the first mean square error threshold, the reconstructed spherical coordinate projection image is subjected to coordinate transformation to obtain a reconstructed Cartesian coordinate projection image, and then the second mean square error between the reconstructed Cartesian coordinate projection image and the Cartesian coordinate projection image of the Cartesian coordinate projection image sample set is used as the loss function for training the basic layer, until the second mean square error gradually converges to less than the second mean square error threshold or the number of iterative training times is met, and the trained encoding model is obtained, and the step of performing lossy encoding of the first projection image using the encoding model is performed based on the trained encoding model.

[0130] Among them, the point cloud data sample set may include at least two sample point cloud data, the spherical coordinate projection image sample set may include at least two sample spherical coordinate projection images, the Cartesian coordinate projection image sample set may include at least two sample Cartesian coordinate projection images, the sample spherical coordinate projection images may be converted from the sample point cloud data, and the sample Cartesian coordinate projection images may be converted from the sample spherical coordinate projection images through coordinate conversion.

[0131] In practical applications, by training the base layer in the coding model, the accuracy of encoding the first projection image based on the base layer can be improved.

[0132] Step 103: Generate a residual image to be encoded according to the first projection image and the second projection image, and perform a convolution operation on the second projection image to generate a first estimation parameter.

[0133] The first estimation parameter may be used to estimate the probability distribution of the mask image and the probability distribution of the residual image to be encoded. The residual image to be encoded may be a residual image between the first projection image and the second projection image.

[0134] See also Figure 4 , Figure 4 FIG. 1 shows a schematic diagram of the structure of an enhancement layer provided by an embodiment of the present application. Figure 4 As shown, the enhancement layer 2 may include a convolutional network 21 and a second arithmetic encoder 22. The convolutional network 21 may generate a first estimation parameter based on the second projection image and the third projection image. The second arithmetic encoder 22 may losslessly encode the mask image based on the first estimation parameter, and may be used to encode the effective pixels based on the first estimation parameter.

[0135] After obtaining the first projection image and the second projection image, the first projection image and the second projection image may be subtracted to generate a residual image to be encoded.

[0136] After obtaining the second projection image, the second projection image can be input into a convolutional network of the encoding model to perform a convolution operation to generate a first estimation parameter.

[0137] In practical applications, the coordinates of the second projection image can be transformed in the basic layer 1 to obtain the third projection image, and the second projection image and the third projection image can be transmitted to the enhancement layer 2. The enhancement layer 2 can input the second projection image and the third projection image into the convolution network 21 to perform a convolution operation on the residual image to be encoded to generate a first estimation parameter, which includes an estimation parameter σ' and an estimation parameter μ'.

[0138] Step 104: Encode the mask image according to the first estimated parameters to generate a second data sequence, and encode the residual image to be encoded according to the second data sequence and the estimated parameters to generate a third data sequence.

[0139] After the first estimated parameters are obtained, the mask image may be encoded according to the first estimated parameters to generate a second data sequence.

[0140] In practical applications, the first estimated parameter can be input into the convolution network 21 to generate the estimated parameters σ3 and μ3 corresponding to the mask image. The estimated parameters corresponding to the mask image can be used to estimate the mask value of each pixel position in the mask image. After obtaining the estimated parameters corresponding to the mask image, the estimated parameters corresponding to the mask image can be used as prior information, and the checkerboard autoregressive model, the channel autoregressive model and the second arithmetic encoder 22 can be used to losslessly encode the mask image E1 to obtain the encoding result E1′ of the mask image, which is the second data sequence.

[0141] It should be understood that by using the checkerboard autoregressive model and the channel autoregressive model to encode the mask image, prediction and estimation based on the correlation between adjacent pixels can be achieved, thereby further improving the encoding compression rate and saving the bit rate.

[0142] After the second data sequence is obtained, the residual image to be encoded can be encoded according to the second data sequence and the estimated parameters to generate a third data sequence.

[0143] Step 105: Generate an encoding result of the point cloud data according to the first data sequence, the second data sequence and the third data sequence.

[0144] After obtaining the first data sequence, the second data sequence and the third data sequence, the second data sequence and the third data sequence can be merged to obtain the encoding result of the enhancement layer, and the encoding result of the enhancement layer can be merged with the first data sequence to generate the encoding result of the point cloud data.

[0145] In an embodiment of the present application, point cloud data is acquired, and a first projection image and a mask image are generated based on the point cloud data, the first projection image is encoded to generate a first data sequence, and a residual image to be encoded is generated based on the first projection image and the first data sequence, the first data sequence is decoded to obtain a second projection image, and a convolution operation is performed on the second projection image to generate a first estimated parameter, the mask image is encoded based on the first estimated parameter to generate a second data sequence, and the residual image to be encoded is encoded based on the second data sequence and the estimated parameters to generate a third data sequence, and an encoding result of the point cloud data is generated based on the first data sequence, the second data sequence and the third data sequence, and then by decoding the encoding result of the point cloud data, a residual image, a mask image and a lossy first projection image can be obtained, and by merging the residual image, the mask image and the lossy first projection image, lossless point cloud data can be obtained, thereby reducing the error between the point cloud reconstructed after decoding and the actual point cloud, and improving the accuracy of decoding and reconstruction.

[0146] See also Figure 5 , Figure 5 A flowchart of another method for encoding point cloud data provided by an embodiment of the present application is shown, which may specifically include the following steps:

[0147] Step 501: acquiring point cloud data, and generating a first projection image and a mask image according to the point cloud data.

[0148] Step 502: Encode the first projection image to generate a first data sequence, and generate a residual image to be encoded according to the first projection image and the first data sequence.

[0149] Step 503: decode the first data sequence to obtain a second projection image.

[0150] For the related descriptions of step 501 to step 503, please refer to step 101 to step 102, and they will not be repeated here.

[0151] Step 504: perform coordinate transformation on the second projection image to generate a third projection image.

[0152] The second projection image may be a lossy spherical coordinate projection image, and the third projection image may be a lossy Cartesian coordinate projection image.

[0153] After the second projection image is obtained, coordinate transformation may be performed on the second projection image to obtain a third projection image.

[0154] Step 505: Perform a convolution operation on the second projection image and the third projection image to determine a first estimation parameter.

[0155] After obtaining the second projection image and the third projection image, the second projection image and the third projection image may be input into a convolutional network of a coding model to perform a convolution operation to generate a first estimation parameter.

[0156] Step 506: Encode the mask image according to the first estimation parameter to generate a second data sequence.

[0157] For the relevant description of step 506, please refer to step 104 and will not be repeated here.

[0158] Step 507: Encode the residual image to be encoded according to the second data sequence and the estimated parameters to generate a third data sequence.

[0159] In an embodiment of the present application, step 507 may include steps 5071 to 5073:

[0160] Step 5071, decode the second data sequence to generate a reconstructed mask image.

[0161] The reconstructed mask image may be a mask image reconstructed based on the second data sequence.

[0162] After the second data sequence is obtained, the second data sequence may be decoded to obtain a reconstructed mask image.

[0163] In practical applications, after obtaining the encoding result E1′ of the mask image, the enhancement layer 2 can Decode and obtain the reconstructed mask image.

[0164] Step 5072: Determine valid pixels in the residual image to be encoded according to the reconstructed mask image.

[0165] The valid pixels may be pixels other than invalid pixels in the residual image to be encoded, and the invalid pixels may be pixels in the residual image to be encoded corresponding to vacant positions in the reconstructed mask image.

[0166] After the reconstructed mask image is obtained, valid pixels in the residual image to be encoded may be extracted based on the vacant positions in the reconstructed mask image to obtain a valid image of the residual image to be encoded.

[0167] In practical applications, the pixels in the residual image to be encoded corresponding to the vacant positions in the reconstructed mask image can be determined as invalid pixels, and the pixels in the residual image to be encoded other than the invalid pixels can be determined as valid pixels, and then the valid pixels in the residual image to be encoded can be extracted to obtain a valid image of the residual image to be encoded.

[0168] In an embodiment of the present application, before step 4072, the following steps may also be included:

[0169] The coding requirement is determined. When the coding requirement is a near-lossless coding requirement, the residual image to be coded is quantized, and the step of determining valid pixels in the residual image to be coded according to the reconstructed mask image is performed based on the quantized residual image to be coded.

[0170] Among them, the encoding requirements may include lossless encoding requirements and near-lossless encoding requirements. The lossless encoding requirement may be the requirement for lossless encoding of point cloud data, the near-lossless encoding requirement may be the requirement for near-lossless encoding of point cloud data, and the near-lossless encoding may be a distortion-controllable encoding method, that is, the error between the decoded point cloud data and the point cloud data before encoding is controllable, such as controlling the error rate between the decoded point cloud data and the point cloud data before encoding to be within a range of 5% or 10%.

[0171] When encoding point cloud data, the current encoding requirement can be determined, and then based on different encoding requirements, valid pixels in the residual image to be encoded can be extracted.

[0172] When the coding requirement is a near-lossless coding requirement, the residual image to be coded can be quantized, and based on the quantized residual image to be coded, the step of determining the valid pixels in the residual image to be coded according to the reconstructed mask image is executed. When the coding requirement is a lossless coding requirement, the residual image to be coded does not need to be quantized, and the step of determining the valid pixels in the residual image to be coded according to the reconstructed mask image is directly executed.

[0173] In practical applications, the step of determining valid pixels in the residual image to be encoded based on the quantized residual image to be encoded according to the reconstructed mask image may be: extracting valid pixels in the quantized residual image to be encoded based on vacant positions in the reconstructed mask image.

[0174] It should be understood that by adjusting the quantization factor used to quantize the residual image to be encoded, the loss of the residual image to be encoded can be controlled, thereby meeting different encoding requirements of users, such as lossless encoding requirements, near-lossless encoding requirements, and other encoding requirements.

[0175] Step 5073, encode the valid pixels according to the estimated parameters to generate a third data sequence.

[0176] After extracting effective pixels from the residual image to be encoded and obtaining the effective image of the residual image to be encoded, the effective image can be divided into at least two groups of effective sub-images using a checkerboard autoregressive model and a channel autoregressive model, and the first estimated parameter is input into a convolutional network to generate an estimated parameter of each effective sub-image, and then the effective sub-image can be encoded using the estimated parameter of each effective sub-image as prior information to obtain the encoding result of the effective sub-image. After obtaining the encoding results of all effective sub-images, the encoding results of all effective sub-images can be combined to obtain the encoding result of the residual image to be encoded, which is the third data sequence.

[0177] In practical applications, a checkerboard autoregressive model and a channel autoregressive model can be used to divide the effective image E into at least two groups of effective sub-images E2 and effective sub-images E3. After obtaining the effective sub-images E2 and E3, the first estimated parameter can be input into the convolutional network 21 to generate the estimated parameter σ4 and the estimated parameter μ4 corresponding to the effective sub-image E2. After obtaining the estimated parameter σ4 and the estimated parameter μ4 corresponding to the effective sub-image E2, the estimated parameter σ4 and the estimated parameter μ4 corresponding to the effective sub-image E2 can be used as prior information to encode the effective sub-image E2 to obtain the encoding result E2′ of the effective sub-image E2. After obtaining the encoding result E2′ of the effective sub-image E2, the encoding result E2′ of the effective sub-image E2 can be decoded to obtain a reconstructed effective sub-image, and the decoded reconstructed effective sub-image and the first estimated parameters are input into the convolutional network to generate the estimated parameters σ5 and the estimated parameters μ5 corresponding to the effective sub-image E3. The estimated parameters σ5 and the estimated parameters μ5 corresponding to the effective sub-image E3 can be used as prior information to encode the effective sub-image E3 to obtain the encoding result E3′ of the effective sub-image E3. After obtaining the encoding results of all effective sub-images, the encoding results of all effective sub-images can be merged, that is, the encoding results E2′ and the encoding results E3′ are merged to obtain the encoding result of the residual image to be encoded, that is, the third data sequence. Specifically, in this embodiment, the second estimated parameters can include the estimated parameters corresponding to the effective sub-image E2 and the estimated parameters corresponding to the effective sub-image E3.

[0178] It should be understood that by reconstructing the mask image to extract the valid pixels in the residual image to be encoded, only the valid pixels in the residual image to be encoded need to be encoded, and there is no need to compress the invalid pixels in the residual image to be encoded, thereby improving the compression rate of the encoded residual image to be encoded; and, by adopting a checkerboard autoregressive model and a channel autoregressive model to encode the residual image to be encoded, the bit rate is saved.

[0179] Step 508: Generate an encoding result of the point cloud data according to the first data sequence, the second data sequence, and the third data sequence.

[0180] For the relevant description of step 508, please refer to step 105 and will not be repeated here.

[0181] In an embodiment of the present application, point cloud data is acquired, and a first projection image and a mask image are generated according to the point cloud data, the first projection image is encoded to generate a first data sequence, and a residual image to be encoded is generated according to the first projection image and the first data sequence, the first data sequence is decoded to obtain a second projection image, the second projection image is coordinate-converted to generate a third projection image, a convolution operation is performed on the second projection image and the third projection image, a first estimation parameter is determined, the mask image is encoded according to the first estimation parameter to generate a second data sequence, the residual image to be encoded is encoded according to the second data sequence and the estimation parameter to generate a third data sequence, an encoding result of the point cloud data is generated according to the first data sequence, the second data sequence and the third data sequence, and then the encoding result of the point cloud data is decoded to obtain a residual image, a mask image and a lossy first projection image, and lossless point cloud data can be obtained by merging the residual image, the mask image and the lossy first projection image, thereby reducing the error between the point cloud reconstructed after decoding and the actual point cloud, and improving the accuracy of decoding and reconstruction.

[0182] See also Figure 6 , Figure 6 An example flow chart of point cloud data reconstruction provided by an embodiment of the present application is shown, which may specifically include the following steps:

[0183] Step 601, obtaining a first projection image and a mask image, wherein the first projection image is obtained by converting point cloud data in the manner of the above embodiment, and the mask image is an image recording the vacant positions in the first projection image;

[0184] Step 602, performing lossy compression on the first projection image to generate a first data sequence;

[0185] Step 603, decoding the first data sequence to generate a second projection image;

[0186] Step 604, subtracting the first projection image from the second projection image to generate a residual image to be encoded;

[0187] Step 605, encoding the mask image to generate a second data sequence;

[0188] Step 606, encoding the residual image to generate a third data sequence;

[0189] Step 607, decoding the second data sequence to generate a reconstructed mask image;

[0190] Step 608, decoding the third data sequence to determine valid pixels in the residual image to be encoded;

[0191] Step 609, merging the second projection image, the reconstructed mask image, and valid pixels in the residual image to be encoded to obtain reconstructed point cloud data;

[0192] Step 610: output the reconstructed point cloud data.

[0193] Reference Figure 7 , Figure 7 A flowchart of a method for decoding point cloud data provided by an embodiment of the present application is shown, which may specifically include the following steps:

[0194] Step 701: Generate a third projection image according to the first data sequence.

[0195] The first data sequence may be a lossy encoding result of the first projection image, the first projection image may be converted based on point cloud data, and the third projection image may be a lossy Cartesian coordinate projection image corresponding to the first projection image.

[0196] After the encoding result of the point cloud data is generated by using the above embodiment, the encoding result of the point cloud data can be decomposed to obtain a first data sequence, a second data sequence and a third data sequence.

[0197] After obtaining the first data sequence, the first data sequence may be decoded to obtain a second projection image, and the second projection image may be coordinate-converted to obtain a third projection image.

[0198] Specifically, the second projection image may be a lossy spherical coordinate projection image, and the third projection image may be a lossy Cartesian coordinate projection image.

[0199] Step 702: decode the second data sequence to generate a reconstructed mask image.

[0200] The second data sequence may be a lossless encoding result of the mask image, and the mask image may be an image recording the vacant positions in the first projection image.

[0201] After the second data sequence is obtained, the second data sequence may be decoded to obtain a reconstructed mask image.

[0202] Step 703: decode the third data sequence to determine valid pixels.

[0203] Among them, the third data sequence can be the encoding result of valid pixels in the residual image to be encoded, the valid pixels can be the pixels in the residual image to be encoded except the invalid pixels, the invalid pixels can be the pixels in the residual image to be encoded corresponding to the vacant positions in the reconstructed mask image, and the residual image to be encoded can be the residual image between the first projection image and the second projection image.

[0204] After obtaining the third data sequence, the third data sequence may be decoded to obtain reconstructed valid pixels.

[0205] Step 704 , merging the third projection image and the valid pixels to generate a reconstructed projection image, and filtering out invalid pixels in the reconstructed projection image according to the vacant positions in the reconstructed mask image to generate a decoding result of the point cloud data.

[0206] The reconstructed projection image may be a reconstructed Cartesian coordinate projection image, and the valid pixels in the reconstructed Cartesian coordinate projection image are lossless or nearly lossless, and the invalid pixels in the reconstructed projection image may be pixels corresponding to vacant positions in the reconstructed mask image.

[0207] After obtaining the effective pixels, the reconstructed mask image and the third projection image, the third projection image and the effective pixels may be combined to generate a reconstructed projection image, and the effective pixels in the reconstructed projection image are lossless or nearly lossless.

[0208] After obtaining the reconstructed projection image, invalid pixels in the reconstructed projection image can be screened out based on the vacant positions in the reconstructed mask image, valid pixels in the reconstructed projection image can be extracted, and a decoding result of the point cloud data can be generated.

[0209] In an embodiment of the present application, the first data sequence is decoded to generate a third projection image, the second data sequence is decoded to generate a reconstructed mask image, and the third data sequence is decoded to generate valid pixels, and then the third projection image and the valid pixels can be merged to generate a reconstructed projection image, and invalid pixels in the reconstructed projection image can be screened out according to the vacant positions in the reconstructed mask image, so that the point cloud data can be decoded losslessly, the error between the point cloud reconstructed after decoding and the actual point cloud is reduced, and the accuracy of decoding and reconstruction is improved.

[0210] Reference Figure 8 , Figure 8 A schematic diagram of the structure of a point cloud data encoding device provided in an embodiment of the present application is shown, which may specifically include the following modules:

[0211] An acquisition module 801 is used to acquire point cloud data and generate a first projection image and a mask image according to the point cloud data;

[0212] The generating module 802 is used to encode the first projection image to generate a first data sequence, and decode the first data sequence to obtain a second projection image; it is also used to generate a residual image to be encoded according to the first projection image and the second projection image, and perform a convolution operation on the second projection image to generate a first estimation parameter, and the first estimation parameter is used to estimate the probability distribution of the mask image and the probability distribution of the residual image to be encoded;

[0213] The encoding module 803 is used to encode the mask image according to the first estimated parameters to generate a second data sequence, and to encode the residual image to be encoded according to the second data sequence and the estimated parameters to generate a third data sequence;

[0214] The output module 804 is used to generate an encoding result of the point cloud data according to the first data sequence, the second data sequence and the third data sequence.

[0215] In one implementation, the acquisition module 801 may be used to:

[0216] According to a predetermined division rule, generating at least two space point intervals;

[0217] According to the azimuth range corresponding to each spatial point interval and the azimuth of each spatial point in the point cloud data, the spatial points are divided into corresponding spatial point intervals to obtain at least two target spatial point intervals;

[0218] A first projection image is generated according to all target space point intervals.

[0219] In one implementation, the generating module 802 may be used to:

[0220] Performing lossy encoding on the first projection image using the encoding model to generate a first data sequence;

[0221] Among them, the encoding model includes a basic layer, the basic layer is used to losslessly encode the first projection image, the basic layer includes an end-to-end compression network, the end-to-end compression network is used to losslessly encode the spherical coordinate projection image corresponding to the first projection image, and the end-to-end compression network includes a convolutional layer and a first arithmetic encoder.

[0222] In one implementation, the coding model further includes an enhancement layer, which is used to losslessly encode the mask image and encode valid pixels in the residual image to be encoded, and the enhancement layer includes a convolutional network and a second arithmetic encoder.

[0223] In one implementation, the generating module 802 may also be used to:

[0224] Determine a target sampling magnification of the first projection image, wherein the target sampling magnification includes a horizontal axis sampling magnification and a vertical axis sampling magnification, and the horizontal axis sampling magnification is greater than the vertical axis sampling magnification;

[0225] Downsampling the first projection image according to the target sampling ratio using the coding model to generate a tensor corresponding to the first projection image;

[0226] Determine a second estimated parameter of the tensor, and lossily encode the tensor based on the second estimated parameter to generate a first data sequence.

[0227] In one implementation, the generating module 802 may also be used to:

[0228] Performing coordinate transformation on the second projection image to generate a third projection image, wherein the second projection image is a lossy spherical coordinate projection image, and the third projection image is a lossy Cartesian coordinate projection image;

[0229] A convolution operation is performed on the second projection image and the third projection image to determine a first estimation parameter.

[0230] In one implementation, the encoding module 803 may be used to:

[0231] Decoding the second data sequence to generate a reconstructed mask image;

[0232] Determine valid pixels in the residual image to be encoded according to the reconstructed mask image;

[0233] The effective pixels are encoded according to the estimated parameters to generate a third data sequence.

[0234] In one implementation, before determining valid pixels in the residual image to be encoded according to the reconstructed mask image, the apparatus further includes:

[0235] A determination module, used to determine encoding requirements, including lossless encoding requirements and near-lossless encoding requirements;

[0236] The quantization module is used to quantize the residual image to be encoded when the encoding requirement is a near-lossless encoding requirement, so as to perform the step of determining valid pixels in the residual image to be encoded according to the reconstructed mask image based on the quantized residual image to be encoded.

[0237] In an embodiment of the present application, point cloud data is acquired, and a first projection image and a mask image are generated based on the point cloud data, the first projection image is encoded to generate a first data sequence, and a residual image to be encoded is generated based on the first projection image and the first data sequence, the first data sequence is decoded to obtain a second projection image, and a convolution operation is performed on the second projection image to generate a first estimated parameter, the mask image is encoded based on the first estimated parameter to generate a second data sequence, and the residual image to be encoded is encoded based on the second data sequence and the estimated parameters to generate a third data sequence, and an encoding result of the point cloud data is generated based on the first data sequence, the second data sequence and the third data sequence, and then by decoding the encoding result of the point cloud data, a residual image, a mask image and a lossy first projection image can be obtained, and by merging the residual image, the mask image and the lossy first projection image, lossless point cloud data can be obtained, thereby reducing the error between the point cloud reconstructed after decoding and the actual point cloud, and improving the accuracy of decoding and reconstruction.

[0238] Reference Fig. 9 , Fig. 9 A schematic diagram of the structure of a point cloud data decoding device provided by an embodiment of the present application is shown, which may specifically include the following modules:

[0239] The decoding module 901 is used to decode the first data sequence to generate a third projection image; and is also used to decode the second data sequence to generate a reconstructed mask image, and to decode the third data sequence to determine effective pixels;

[0240] The first data sequence is a lossy encoding result of the first projection image, which is converted based on point cloud data, and the third projection image is a lossy Cartesian coordinate projection image corresponding to the first projection image; the second data sequence is a lossless encoding result of the mask image, which is an image recording the vacant positions in the first projection image; the third data sequence is an encoding result of valid pixels in the residual image to be encoded, where valid pixels are pixels other than invalid pixels in the residual image to be encoded, and invalid pixels are pixels in the residual image to be encoded corresponding to the vacant positions in the reconstructed mask image, and the residual image to be encoded is a residual image between the first projection image and the second projection image;

[0241] The generation module 902 is used to merge the third projection image and the valid pixels to generate a reconstructed projection image, and filter out invalid pixels in the reconstructed projection image according to the vacant positions in the reconstructed mask image to generate a decoding result of the point cloud data.

[0242] In an embodiment of the present application, the first data sequence is decoded to generate a third projection image, the second data sequence is decoded to generate a reconstructed mask image, and the third data sequence is decoded to generate valid pixels, and then the third projection image and the valid pixels can be merged to generate a reconstructed projection image, and invalid pixels in the reconstructed projection image can be screened out according to the vacant positions in the reconstructed mask image, so that the point cloud data can be decoded losslessly, the error between the point cloud reconstructed after decoding and the actual point cloud is reduced, and the accuracy of decoding and reconstruction is improved.

[0243] It should be noted that the information interaction, execution process and other contents between the above-mentioned devices are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0244] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0245] See also Fig.10 , Fig.10 A structural block diagram of a terminal device provided by an embodiment of the present application is shown as follows: Fig.10 As shown, an embodiment of the present application provides a terminal device 101, which includes: at least one processor 1011, a memory 1012, and a computer program 10121 stored in the memory 1012 and executable on the at least one processor 1011, and when the processor 1011 executes the computer program 10121, the steps in any of the above-mentioned method embodiments are implemented.

[0246] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any one of the above method embodiments can be implemented.

[0247] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0248] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying the computer program code to the camera device / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium.

[0249] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for encoding point cloud data, characterized in that: The method comprises: Acquire point cloud data, and generate a first projection image and a mask image according to the point cloud data; Encoding the first projection image to generate a first data sequence, and decoding the first data sequence to obtain a second projection image; Generate a to-be-encoded residual image according to the first projection image and the second projection image, and perform a convolution operation on the second projection image to generate a first estimation parameter, wherein the first estimation parameter is used to estimate a probability distribution of the mask image and a probability distribution of the to-be-encoded residual image; encoding the mask image according to the first estimated parameters to generate a second data sequence, and encoding the residual image to be encoded according to the second data sequence and the estimated parameters to generate a third data sequence; Generate an encoding result of the point cloud data according to the first data sequence, the second data sequence and the third data sequence.

2. The method for encoding point cloud data according to claim 1, characterized in that: Generating a first projection image according to the point cloud data includes: According to a predetermined division rule, generating at least two space point intervals; According to the azimuth range corresponding to each of the spatial point intervals and the azimuth of each spatial point in the point cloud data, the spatial points are divided into corresponding spatial point intervals to obtain at least two target spatial point intervals; A first projection image is generated according to all the target space point intervals.

3. The method for encoding point cloud data according to claim 1, characterized in that: The step of encoding the first projection image to generate a first data sequence includes: Performing lossy encoding on the first projection image using a coding model to generate a first data sequence; Among them, the encoding model includes a basic layer, the basic layer is used to losslessly encode the first projection image, the basic layer includes an end-to-end compression network, the end-to-end compression network is used to losslessly encode the spherical coordinate projection image corresponding to the first projection image, and the end-to-end compression network includes a convolutional layer and a first arithmetic encoder.

4. The method for encoding point cloud data according to claim 3, characterized in that: The coding model also includes an enhancement layer, which is used to losslessly encode the mask image and encode valid pixels in the residual image to be encoded. The enhancement layer includes a convolutional network and a second arithmetic encoder.

5. The method for encoding point cloud data according to claim 3, characterized in that: The adopting the coding model to losslessly encode the first projection image to generate a first data sequence includes: Determine a target sampling magnification of the first projection image, wherein the target sampling magnification includes a horizontal axis sampling magnification and a vertical axis sampling magnification, and the horizontal axis sampling magnification is greater than the vertical axis sampling magnification; Downsampling the first projection image according to a target sampling ratio using a coding model to generate a tensor corresponding to the first projection image; Determine second estimated parameters of the tensor, and lossily encode the tensor based on the second estimated parameters to generate a first data sequence.

6. The method for encoding point cloud data according to any one of claims 1 to 5, characterized in that: The performing a convolution operation on the second projection image to generate a first estimation parameter includes: Performing coordinate transformation on the second projection image to generate a third projection image, wherein the second projection image is a lossy spherical coordinate projection image, and the third projection image is a lossy Cartesian coordinate projection image; A convolution operation is performed on the second projection image and the third projection image to determine a first estimation parameter.

7. The method for encoding point cloud data according to claim 6, characterized in that: The step of encoding the residual image to be encoded according to the second data sequence and the estimated parameters to generate a third data sequence includes: Decoding the second data sequence to generate a reconstructed mask image; Determining valid pixels in the residual image to be encoded according to the reconstructed mask image; The effective pixels are encoded according to the estimated parameters to generate a third data sequence.

8. The method for encoding point cloud data according to claim 7, characterized in that: Before determining the valid pixels in the residual image to be encoded according to the reconstructed mask image, the method further includes: Determining encoding requirements, wherein the encoding requirements include lossless encoding requirements and near-lossless encoding requirements; When the coding requirement is the near-lossless coding requirement, the residual image to be coded is quantized, so as to perform the step of determining valid pixels in the residual image to be coded according to the reconstructed mask image based on the quantized residual image to be coded.

9. A method for decoding point cloud data, characterized in that: The method comprises: Decoding a first data sequence to generate a third projection image, wherein the first data sequence is a lossy encoding result of the first projection image, the first projection image is converted based on point cloud data, and the third projection image is a lossy Cartesian coordinate projection image corresponding to the first projection image; Decoding a second data sequence to generate a reconstructed mask image, wherein the second data sequence is a lossless encoding result of the mask image, and the mask image is an image recording a vacant position in the first projection image; Decoding a third data sequence to determine valid pixels, wherein the third data sequence is a coding result of valid pixels in the residual image to be encoded, wherein the valid pixels are pixels other than invalid pixels in the residual image to be encoded, wherein the invalid pixels are pixels in the residual image to be encoded corresponding to vacant positions in the reconstructed mask image, and the residual image to be encoded is a residual image between the first projection image and the second projection image; The third projection image and the valid pixels are combined to generate a reconstructed projection image, and invalid pixels in the reconstructed projection image are screened out according to the vacant positions in the reconstructed mask image to generate a decoding result of the point cloud data.

10. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 8 or the method according to claim 9 is implemented.

11. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 or the method according to claim 9 is implemented.

Citation Information

Cited By

  • Encoding method, decoding method, encoder, decoder and storage medium

    WO2026085876A1