A point cloud denoising method based on local DCT
The local DCT method is used to downsample and frequency domain filter point cloud data, which solves the problems of information loss and low efficiency in traditional methods, achieves efficient denoising of point cloud data of different types and scales, and retains the uniqueness of point cloud data. Detailed information improves the quality and accuracy of data.
Patent Information
- Application Number
- CN202411002377.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-25
AI Technical Summary
Traditional point cloud denoising methods have problems of information loss and low efficiency when processing point cloud data of different types and scales, especially when processing point cloud data with complex geometric structures.
A method based on local DCT is used to construct a local coordinate system by downsampling the original point cloud data, selecting point cloud height blocks in the height range, calculating the importance of two-dimensional core points, and using the discrete cosine transform algorithm DCT to conduct frequency domain Filter to remove high-frequency noise signals, retain low-frequency signals, and finally restore the processed data to the original point cloud coordinates.
It achieves efficient denoising of point cloud data of different types and scales, retains the detailed information of point cloud data, improves the quality and accuracy of data, and is suitable for point cloud data with complex geometric structures.
Smart Images

Figure CN118537256B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of point cloud denoising, and in particular to a point cloud denoising method based on local DCT. Background Art
[0002] The three-dimensional point cloud data of the object surface is regular, while the noise points are always irregularly distributed near the surface point cloud. From the point cloud distribution frequency perspective, the surface point cloud presents a low-frequency distribution state, while the noise points present a high-frequency distribution state. Therefore, the low-frequency points and high-frequency points can be separated by the frequency domain filtering algorithm, and then the high-frequency points can be removed or filtered to achieve the point cloud denoising effect.
[0003] However, due to the diversity of three-dimensional point cloud data, traditional methods cannot be applied to point cloud data of different types and scales during the point cloud data denoising process, and may cause information loss during the denoising process, especially for point cloud data containing complex geometric structures. Therefore, there are problems of low efficiency and poor processing effect. Summary of the invention
[0004] In view of the shortcomings of the prior art, the present invention provides a point cloud denoising method based on local DCT, which solves the technical problems of information loss, low efficiency and poor processing effect in traditional point cloud denoising methods.
[0005] To solve the above technical problems, the present invention provides the following technical solution: a point cloud denoising method based on local DCT, the method comprising the following steps:
[0006] S1. Original point cloud data All points in Downsampling to construct a local coordinate system , and based on the local coordinate system For each downsampling point Select several height ranges as Point cloud height block;
[0007] S2. Sampling uniformly distributed two-dimensional kernel points in the point cloud height block space , and calculate the influence on the same two-dimensional kernel point Importance of coordinate information distribution ;
[0008] S3. According to the degree of importance Perform a point cloud existence transformation based on the core point to obtain the size within the point cloud height block The two-dimensional core point ;
[0009] S4, based on discrete cosine transform algorithm DCT two-dimensional kernel point Processing is performed to obtain the core point existence information of the point cloud height block;
[0010] S5, according to the core point existence information, the two-dimensional core point Restore to discrete original point cloud coordinates.
[0011] Furthermore, in step S1, the specific process includes the following steps:
[0012] S11. Original point cloud data All points in Downsampling, , obtained by several downsampling points The down-sampling point set , , and calculate each downsampling point based on the PCA method The normal vector ;
[0013] S12, for each downsampling point Establishing a local coordinate system ,in The axis corresponds to the sampling point The normal vector , Axis and The axes are perpendicular to Unit vectors randomly selected in the axis plane that are perpendicular to each other;
[0014] S13, according to the set minimum threshold and the maximum threshold , for each downsampling point The local coordinate system Select the height range as Point cloud height block.
[0015] Furthermore, in step S2, the specific process includes the following steps:
[0016] S21, downsample the points in each point cloud height block Mapping to a two-dimensional plane generates several spatial points , obtained by several spatial points A collection of two-dimensional plane space point clouds , and in the two-dimensional plane space point cloud collection China-Israel 2D kernel points with uniform size sampling ;
[0017] S22, Calculate spatial points To the four two-dimensional core points surrounding the point The degree of relevance , and according to the degree of relevance The space point The existence of is distributed to four two-dimensional core points to varying degrees. among;
[0018] S23. Two-dimensional plane space point cloud collection Every spatial point within Calculate and combine all the points that affect the same two-dimensional core The degree of relevance Add up all the core points The importance of .
[0019] Furthermore, in step S22, the degree of correlation The calculation formula is:
[0020] ;
[0021] In the above formula, Indicate point To the core point distance; Indicate point To all core points The average distance.
[0022] Further, in step S23, the importance level The calculation formula is:
[0023] ;
[0024] In the above formula, Indicates Two-dimensional core points; Represents a two-dimensional kernel point the degree of importance of the degree of existence; Indicates the influence of two-dimensional core points No. points; Represents the original point cloud data.
[0025] Furthermore, in step S4, the specific process includes the following steps:
[0026] S41, using discrete cosine transform algorithm DCT to two-dimensional kernel point The existence of is used for frequency domain conversion;
[0027] S42, setting the high-frequency signal at the upper left corner obtained by frequency domain conversion to 0, while retaining the low-frequency signal at the lower right corner;
[0028] S43, using the inverse discrete cosine transform algorithm DCT to restore the frequency domain signal in the frequency domain to the original spatial domain signal, and obtain the core point existence information of the denoised point cloud height block.
[0029] Furthermore, in step S5, the specific process includes the following steps:
[0030] S51. Select any two-dimensional core point As the target point, and determine the four adjacent two-dimensional core points around the target point and ;
[0031] S52, calculate the target point relative to four adjacent two-dimensional kernel points and The weight of and ;
[0032] S53. Strength of Existence and Perform weighted averaging to obtain the height value of the target point after denoising, and obtain the coordinate data of the target point after denoising through two-dimensional linear interpolation calculation or matrix operation .
[0033] Further, in step S53, two-dimensional linear interpolation is used to calculate the coordinate data for:
[0034] ;
[0035] Representing coordinate data using matrix operations for:
[0036] ;
[0037] In the above formula, , Respectively represent the target points In the two-dimensional core and The relative coordinates in the grid.
[0038] By means of the above technical solution, the present invention provides a point cloud denoising method based on local DCT, which has at least the following beneficial effects:
[0039] 1. The denoising method proposed in the present invention has good adaptability and stability, can be applied to point cloud data of different types and scales, and has strong versatility and universality. It can also effectively retain the detailed information of point cloud data, making the processed data more real and reliable, which is helpful for subsequent data analysis, model building, application development and other fields.
[0040] 2. The present invention utilizes the local discrete cosine transform method to effectively remove noise while retaining the detailed information of the point cloud data, thereby improving the quality and accuracy of the point cloud data. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0042] Figure 1 The overall architecture flow chart of the point cloud denoising method of the present invention;
[0043] Figure 2 It is the point existence principle conversion diagram of the present invention;
[0044] Figure 3 It is a schematic diagram of the discrete cosine transform algorithm DCT conversion of the present invention;
[0045] Figure 4 A schematic diagram of DCT filtering and denoising of the discrete cosine transform algorithm of the present invention;
[0046] Figure 5 This is a schematic diagram of the principle of restoring the original point cloud coordinates based on the core point existence information of the present invention. DETAILED DESCRIPTION
[0047] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific implementation methods, so that the implementation process of how the present application uses technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly.
[0048] Please refer to Figure 1-Figure 5 This embodiment proposes a point cloud denoising algorithm based on local DCT, which converts the discrete signal of the local point cloud from the spatial domain to the frequency domain, and performs filtering operations on the frequency domain data to retain low-frequency data and remove high-frequency data, and then converts the filtered frequency domain data into spatial domain data, thereby achieving denoising of the three-dimensional point cloud. The method includes the following steps:
[0049] S1. Original point cloud data All points in Downsampling to construct a local coordinate system , and based on the local coordinate system For each downsampling point Select several height ranges as In this embodiment, if the traditional block method is used, the original point cloud data can be directly Voxelization is performed, and the number of blocks can be controlled by setting the size of the voxel block. The advantage of this method is that the processing is simple, but it may cause information loss, especially for point clouds containing complex geometric structures. Therefore, when selecting the voxel block size, a trade-off needs to be made between computational efficiency and retaining local information. In order to solve the problem of information loss in the traditional block method, this embodiment divides the blocks by local height, such as Figure 2 As shown, the specific process includes the following steps:
[0050] S11. Original point cloud data All points in Downsampling, , obtained by several downsampling points The down-sampling point set , , and calculate each downsampling point based on the PCA method The normal vector ;
[0051] S12, for each downsampling point Establishing a local coordinate system ,in The axis corresponds to the sampling point The normal vector , Axis and The axes are perpendicular to Unit vectors randomly selected in the axis plane that are perpendicular to each other;
[0052] S13, according to the set minimum threshold and the maximum threshold , for each downsampling point The local coordinate system Select the height range as Point cloud height block. Among them, the minimum threshold and the maximum threshold Generally select the sampling point The local coordinate system established middle The minimum and maximum values of the coordinates.
[0053] In this embodiment, the point cloud height blocks are defined by sampling the local surface height in the local coordinate system. This block division method processes similar point clouds in advance, making subsequent calculations convenient.
[0054] S2. Sampling uniformly distributed two-dimensional kernel points in the point cloud height block space , and calculate the influence on the same two-dimensional kernel point Importance of coordinate information distribution ; The specific process includes the following steps:
[0055] S21, downsample the points in each point cloud height block Mapping to a two-dimensional plane generates several spatial points , obtained by several spatial points A collection of two-dimensional plane space point clouds , and in the two-dimensional plane space point cloud collection China-Israel 2D kernel points with uniform size sampling , ; Among them, the sampling size There is no fixed value. It is generally selected according to the point cloud density. Therefore, no limitation is made here. The appropriate size can be set according to the actual point cloud density. The sampling size can also be defined by averaging. In this embodiment, two-dimensional point cloud data is taken as an example. After dividing the point cloud height blocks, Figure 3 As shown, there is a two-dimensional plane Discretely distributed spatial points , , the two-dimensional plane space point cloud set corresponding to the point cloud height block Sampling uniformly distributed 2D kernel points in .
[0056] S22, Calculate spatial points To the four two-dimensional core points surrounding the point The degree of relevance , and according to the degree of relevance The space point The existence of is distributed to four two-dimensional core points to varying degrees. Since each spatial point These two-dimensional core points Surrounded by a grid, assuming that point Nuclear point and Surround (here corresponding to the upper left corner, upper right corner, lower left corner and lower right corner), by calculating the point To each 2D kernel point The degree of relevance , you can point The existence of is distributed to these two-dimensional core points to varying degrees. The calculated correlation is Add to 2D kernel point The degree of correlation can be expressed by the following formula:
[0057] ;
[0058] In the above formula, Indicate point To the core point distance; Indicate point To all core points The average distance.
[0059] S23. Two-dimensional plane space point cloud collection Every spatial point within Calculate and combine all the points that affect the same two-dimensional core The degree of relevance Add up all the core points The importance of ; By calculating each point in the point cloud height block space, and affecting the same two-dimensional kernel point All related degrees By adding, the coordinate information of all points can be distributed to these core points, and the degree of importance The calculation is expressed as follows:
[0060] ;
[0061] In the above formula, Indicates Two-dimensional core points; Represents a two-dimensional kernel point the degree of importance of the degree of existence; Indicates the influence of two-dimensional core points No. points; Represents the original point cloud data.
[0062] S3. According to the degree of importance Perform a point cloud existence transformation based on the core point to obtain the size within the point cloud height block The two-dimensional core point ,in, The size is determined by the point cloud density. Generally, the number of all points in the divided point cloud height block is recommended to be around 100.
[0063] S4, based on discrete cosine transform algorithm DCT two-dimensional kernel point Processing is performed to obtain the kernel point existence information of the point cloud height block; Discrete Cosine Transform (DCT) is a signal conversion algorithm based on the properties of orthogonal transformation, which can convert the spatial domain into the frequency domain. This algorithm is widely used in the compression algorithm of image, video and audio data, and has fast compression speed and high efficiency. The specific process includes the following steps:
[0064] S41, using discrete cosine transform algorithm DCT to two-dimensional kernel point The existence of the point cloud is transformed into the frequency domain; after the point cloud existence transformation based on the kernel point, the 2D kernel points of size ,here Represents the 2D kernel point in the point cloud height block If it is 3D point cloud data, it is The size of the three-dimensional kernel point, then the discrete cosine transform algorithm DCT can be used to transform the two-dimensional kernel point The existence of is used for frequency domain conversion. Due to the high symmetry of the discrete cosine transform algorithm DCT transform, a simpler matrix processing method can be used, namely:
[0065] ;
[0066] In the above formula, for each basis function applied to the transformation; is the weight corresponding to each basis function; Represents the frequency domain signal, that is, the value of the output signal after DCT transformation; Represents the transformed DCT coefficient matrix, i.e., the basis function; represents the time domain signal, that is, the value of the input signal, which refers to the calculated importance here; represents the normalization coefficients, which are used to adjust the weights of different frequency components; Represent the row index and column index in the matrix respectively; Represents the 2D kernel point in the point cloud height block For the above transformation, we can use Figure 3 It means that for an 8×8 matrix, the graph can be represented by 64 basis functions.
[0067] S42, setting the high-frequency signal in the upper left corner obtained by frequency domain conversion to 0, while retaining the low-frequency signal in the lower right corner; in order to remove the influence of the noise signal, the specific threshold value can be selected according to the noise size; from Figure 4 It can be seen that for the basis function , the horizontal frequency increases from left to right, and the vertical frequency increases from top to bottom. Therefore, the low-frequency area of the transformed signal is concentrated in In the upper left corner, the high-frequency area of the signal is concentrated .
[0068] For point cloud data, low-frequency data signals represent points with regular distribution on the surface, while high-frequency data signals represent noise points with irregular distribution. Figure 4As shown, the high-frequency signal can be directly set to 0 to remove the influence of the noise signal. Here, only the signal in the upper left corner is retained and the remaining high-frequency signal is removed. The specific selection can be made according to the noise size.
[0069] It is worth noting that the discrete cosine-based algorithm is a lossy algorithm. Removing high-frequency data will affect the coordinates of the original point cloud data to a certain extent, but usually has little effect on low-frequency point clouds. Therefore, this embodiment chooses to ignore this effect.
[0070] S43. Use the inverse discrete cosine transform algorithm DCT to restore the frequency domain signal to the original spatial domain signal, and obtain the core point existence information of the point cloud height block after denoising; in order to transform the filtered data back into point cloud data, it is necessary to convert the frequency domain signal back into the spatial domain signal. The inverse discrete cosine transform algorithm DCT is the inverse operation of the discrete cosine transform algorithm DCT, which is used to restore the frequency domain signal after DCT transformation to the original spatial domain signal. According to the reversibility of DCT changes, the core point existence information of the original block can be restored by inverse DCT transformation. , the formula is as follows:
[0071] ;
[0072] In the above formula, Represents the frequency domain signal, that is, the value of the output signal after DCT transformation; Represents the transformed DCT coefficient matrix; For the matrix The transposed matrix of .
[0073] S5, according to the core point existence information, the two-dimensional core point Restore to discrete original point cloud coordinates, so as to obtain denoised point cloud data that retains point detail information; the specific process includes the following steps:
[0074] S51. Select any two-dimensional core point As the target point, and determine the four adjacent two-dimensional core points around the target point and ;
[0075] S52, calculate the target point relative to four adjacent two-dimensional kernel points and The weight of and ;in,
[0076] ;
[0077] in, is a two-dimensional core point degree of importance;
[0078] S53. Strength of Existence and Perform weighted averaging to obtain the height value of the target point after denoising, and obtain the coordinate data of the target point after denoising through two-dimensional linear interpolation calculation or matrix operation ; Two-dimensional linear interpolation is a commonly used interpolation method used to smoothly estimate discrete data in two-dimensional space. Here, two-dimensional linear interpolation of kernel points can also be used to restore the original point cloud coordinates.
[0079] like Figure 5 As shown, it is assumed that four adjacent two-dimensional kernel points are and , and the corresponding core point existence strengths are and , then the coordinates of the points in the four two-dimensional kernel point blocks are It can be calculated by two-dimensional linear interpolation. Two-dimensional linear interpolation is performed by performing linear interpolation in two directions to finally obtain the value of the required point, as shown in the following formula: ;
[0080] Or expressed as a matrix operation:
[0081] ;
[0082] In the above formula, , Respectively represent the target points In the two-dimensional core and The relative coordinates in the grid.
[0083] The denoising method proposed in the present invention has good adaptability and stability, can be applied to point cloud data of different types and scales, and has strong versatility and universality. It can also effectively retain the detailed information of point cloud data, making the processed data more real and reliable, which is helpful for subsequent data analysis, model building, application development and other fields.
[0084] Those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, so the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0085] The above implementation methods have been described in detail. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A point cloud denoising method based on local DCT, It is characterized in that The method comprises the following steps: S1. Original point cloud data P All points in Downsampling to construct a local coordinate system , and based on the local coordinate system For each downsampling point Select several height ranges as Z The point cloud height block is obtained by the following steps: S11. Original point cloud data P All points in Downsampling, , obtained by several downsampling points The down-sampling point set , , and calculate each downsampling point based on the PCA method The normal vector ; S12, for each downsampling point Establishing a local coordinate system ,in The axis corresponds to the sampling point The normal vector , Axis and The axes are perpendicular to Unit vectors randomly selected in the axis plane that are perpendicular to each other; S13, according to the set minimum threshold and the maximum threshold , for each downsampling point The local coordinate system Select the height range as Point cloud height block; S2. Sampling uniformly distributed two-dimensional kernel points in the point cloud height block space , and calculate the influence on the same two-dimensional kernel point Importance of coordinate information distribution The specific process includes the following steps: S21, downsample the points in each point cloud height block Mapping to a two-dimensional plane generates several spatial points , obtained by several spatial points A collection of two-dimensional plane space point clouds G , and in the two-dimensional plane space point cloud collection G China-Israel 2D kernel points with uniform size sampling ; S22, Calculate spatial points To the four two-dimensional core points surrounding the point The degree of relevance , and according to the degree of relevance The space point The existence of is distributed to four two-dimensional core points to varying degrees. among; S23. Two-dimensional plane space point cloud collection G Every spatial point within Calculate and combine all the points that affect the same two-dimensional core The degree of relevance Add up all the core points The importance of ; S3. According to the degree of importance Perform the point cloud existence transformation based on the core point to obtain the point cloud height block with a size of The two-dimensional core point ; S4, based on discrete cosine transform algorithm DCT two-dimensional kernel point Processing is performed to obtain the core point existence information of the point cloud height block. The specific process includes the following steps: S41, using discrete cosine transform algorithm DCT to two-dimensional kernel point The existence of is used for frequency domain conversion; S42, setting the high-frequency signal at the upper left corner obtained by frequency domain conversion to 0, while retaining the low-frequency signal at the lower right corner; S43, using the inverse discrete cosine transform algorithm DCT to restore the frequency domain signal in the frequency domain to the original spatial domain signal, and obtain the core point existence information of the denoised point cloud height block; S5, according to the core point existence information, the two-dimensional core point Restore to discrete original point cloud coordinates.
2. The point cloud denoising method according to claim 1, It is characterized in that In step S22, the correlation degree The calculation formula is: ; In the above formula, Indicate point To the core point distance; Indicate point To all core points The average distance.
3. The point cloud denoising method according to claim 1, It is characterized in that In step S23, the importance level The calculation formula is: ; In the above formula, Indicates Two-dimensional core points; Represents a two-dimensional kernel point the degree of importance of the degree of existence; Indicates the influence of two-dimensional core points No. points; P Represents the original point cloud data.
4. The point cloud denoising method according to claim 1, It is characterized in that In step S5, the specific process includes the following steps: S51. Select any two-dimensional core point As the target point, and determine the four adjacent two-dimensional core points around the target point and ; S52, calculate the target point relative to four adjacent two-dimensional kernel points and The weight of and ; S53. Strength of Existence and Perform weighted averaging to obtain the height value of the target point after denoising, and obtain the coordinate data of the target point after denoising through two-dimensional linear interpolation calculation or matrix operation .
5. The point cloud denoising method according to claim 4, It is characterized in that In step S53, two-dimensional linear interpolation is used to calculate the coordinate data for: ; Representing coordinate data using matrix operations for: ; In the above formula, , Respectively represent the target points In the two-dimensional core and The relative coordinates in the grid.
Citation Information
Patent Citations
Natural image noise removal method based on dual redundant dictionary learning
CN102073999A
Local similarity sample learning-based sparse de-noising method
CN106056551A
Semi-automatic machine learning denoising method for mountain tunnel mobile laser scanning point cloud
CN114627027A
Carton point cloud segmentation method and device and processing equipment
CN116012393A
Image compressed sensing reconstruction method based on DCT feature enhancement network
CN116188271A
