Segmented adaptive photon denoising method, device and storage medium

Through the segmented adaptive photon denoising method, adaptive elliptical density clustering algorithm and curve fitting technology are used to solve the problem of noise interference in photon counting lidar and improve the accuracy of water depth and underwater terrain data.

CN118466688BActive Publication Date: 2024-10-29HUBEI LUOJIA LAB +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410939163.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-10-29
Estimated Expiration
2044-07-15

AI Technical Summary

Technical Problem

Photon counting lidar in coastal and nearshore waters causes a large amount of noise in the photon point collection due to interference factors, thereby reducing the accuracy of water depth and underwater terrain data.

Method used

Using the segmented adaptive photon denoising method, the discrete photon points in the original photon point set are eliminated through the adaptive elliptical density clustering algorithm, the water surface and underwater photon point sets are divided, and the underwater photon points are curve-fitted to extract Signal photon dot.

Benefits of technology

It effectively reduces noise interference, improves the accuracy of water depth and underwater terrain data, and enhances the accuracy of the signal photon points of the photon point collection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118466688B_ABST
    Figure CN118466688B_ABST
Patent Text Reader

Abstract

The present invention provides a segmented adaptive photon denoising method, device and storage medium, which relates to the field of data processing. The segmented adaptive photon denoising method includes: removing discrete photon points in multiple segments corresponding to the original photon point set by an adaptive ellipse density clustering algorithm to obtain a first photon point set; dividing the first photon point set into a water surface photon point set and an underwater photon point set according to a separation threshold; performing curve fitting on the photon points in the underwater photon point set to obtain a fitting terrain line, and extracting the signal photon points of the underwater photon point set according to the fitting terrain line to obtain a target photon point set. The present invention solves the problem that a large amount of noise is contained in the photon point set, which leads to a low accuracy rate of the water depth and underwater terrain data determined according to the photon point set.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing, and in particular to a segmented adaptive photon denoising method, device and storage medium. Background Art

[0002] Photon counting lidar is a new type of laser detection technology developed in recent years. It directly detects a photon by detecting extremely weak light pulses, records the time and generates the position, thereby obtaining a high-density photon point cloud.

[0003] However, during laser detection in coastal nearshore waters, due to interference from factors such as the sun, atmosphere, and system, as well as the susceptibility of photons to the influence of the sea surface and water bodies when propagating underwater, the obtained photon point set contains a large amount of noise, which in turn leads to low accuracy of the water depth and underwater terrain data determined based on the photon point set. Summary of the invention

[0004] The problem solved by the present invention is that a large amount of noise is contained in a photon point set, resulting in a low accuracy rate of water depth and underwater topography data determined based on the photon point set.

[0005] In order to solve the above problems, the present invention provides a segmented adaptive photon denoising method, device and storage medium.

[0006] In a first aspect, the present invention provides a segmented adaptive photon denoising method, comprising: removing discrete photon points in multiple segments corresponding to an original photon point set through an adaptive ellipse density clustering algorithm to obtain a first photon point set, wherein the original photon point set is collected by a photon radar along a target track in the target waters, and the multiple segments are obtained by segmenting the original photon point set; dividing the first photon point set into a surface photon point set and an underwater photon point set according to a separation threshold, wherein the separation threshold is determined based on the elevation density distribution of all photon points in the first photon point set; performing curve fitting on the photon points in the underwater photon point set to obtain a fitted terrain line, and extracting the signal photon points of the underwater photon point set according to the fitted terrain line to obtain a target photon point set.

[0007] Optionally, the method of eliminating discrete photon points in the original photon point set by using an adaptive ellipse density clustering algorithm to obtain a first photon point set includes: segmenting the original photon point set along the direction of the target orbit to obtain multiple second photon point sets, wherein the number of photon points contained in each of the second photon point sets satisfies a first preset condition, and the multiple second photon point sets correspond to the multiple segments; for each of the multiple second photon point sets, eliminating the discrete photon points in each of the second photon point sets by using an adaptive ellipse density clustering algorithm to obtain multiple third photon point sets; and forming the first photon point set by using the multiple third photon point sets.

[0008] Optionally, the method of eliminating the discrete photon points in each of the second photon point sets through an adaptive ellipse density clustering algorithm to obtain multiple third photon point sets includes: performing the following operations on each of the second photon point sets respectively, and recording the second photon point set in the following operations as the current second photon point set: determining the target minor semi-axis and target threshold of the ellipse kernel corresponding to the current second photon point set; clustering the current second photon point set according to the target minor semi-axis and the target threshold to obtain multiple discrete photon points; and eliminating the multiple discrete photon points from the current second photon point set to obtain a third photon point set corresponding to the current second photon point set.

[0009] Optionally, determining the target minor semiaxis and target threshold of the elliptical core corresponding to the current second photon point set includes: determining a candidate minor semiaxis set and a candidate threshold set, wherein the candidate minor semiaxis in the candidate minor semiaxis set corresponds one-to-one to the candidate thresholds in the candidate threshold set; starting from j=1, looping the following operations: performing the jth clustering according to the jth candidate minor semiaxis in the candidate minor semiaxis set and the jth candidate threshold in the candidate threshold set to obtain the jth clustering result, wherein the jth clustering result represents the number of clusters obtained in the jth clustering; when j is greater than or equal to k1, and the j-k1th clustering results to the jth clustering results are the same, terminating the loop operation, and determining the jth candidate minor semiaxis as the target minor semiaxis, and determining the jth candidate threshold as the target threshold; otherwise, executing j plus 1.

[0010] Optionally, the method also includes: slicing the current second photon point set along the elevation direction to obtain M fourth photon point sets, wherein the elevation lengths corresponding to the M fourth photon point sets are all the same; obtaining the fourth photon point set with the largest number of photon points among the M fourth photon point sets to obtain a fifth photon point set; determining a first threshold value according to the central elevation value corresponding to the fifth photon point set; determining a fourth photon point set in which the number of photon points is greater than or equal to the first threshold among the M fourth photon point sets to obtain M1 fourth photon point sets, wherein the total number of photon points in the M1 fourth photon point sets is a first quantity value; determining a fourth photon point set in which the number of photon points is less than the first threshold among the M fourth photon point sets to obtain M2 fourth photon point sets, wherein the total number of photon points in the M2 fourth photon point sets is a second quantity value, M= M1+M2; determining the candidate threshold corresponding to the candidate minor semi-axis according to the first quantity value, the second quantity value, the third quantity value, the fourth quantity value and the candidate minor semi-axis, wherein the third quantity value is M1 and the fourth quantity value is M2.

[0011] Optionally, clustering the current second photon point set according to the target minor semi-axis and the target threshold to obtain a plurality of discrete photon points includes: determining the target major semi-axis by multiplying the target minor semi-axis by a target ratio, wherein the target ratio is a ratio of a first track length to a first difference, the first track length is a track length corresponding to the current second photon point set, and the first difference is a difference between a maximum elevation value and a minimum elevation value corresponding to photon points in the current second photon point set; performing a target operation on each photon point in the current second photon point set, and recording the photon point in the target operation as the current photon point; performing a target operation on each photon point in the current second photon point set, and recording the photon point in the target operation as the current photon point; performing a target operation on the The photons included in the first neighborhood corresponding to the current photon point are subjected to straight-line fitting processing to obtain a target fitting slope, and the target fitting slope is determined as a target direction angle, wherein the first neighborhood is an area corresponding to a circle with the current photon point as the center and the major semi-axis as the radius; an elliptical area with the current photon point as the center is determined according to the target minor semi-axis, the target major semi-axis, and the target direction angle; the number of photon points in the current second photon point set located in the elliptical area is determined to obtain the number of first photon points; when the first number of photon points is less than the target threshold, the current photon point is determined as the discrete photon point.

[0012] Optionally, curve fitting is performed on the photon points in the underwater photon point set to obtain a fitted topographic line, and signal photon points of the underwater photon point set are extracted according to the fitted topographic line to obtain a target photon point set, including: dividing the underwater photon point set along the direction of the target track to obtain multiple sixth photon point sets; performing the following operations on each of the sixth photon point sets respectively, and taking the sixth photon point set in the following operations as the current sixth photon point set: starting from i=1, cyclically performing the following operations: fitting the i-th sample point set , the i-th fitting curve is obtained, and the sample point set is selected from the current sixth photon point set; the photon point in the current sixth photon point set whose distance to the i-th fitting curve is less than the distance threshold is determined as the signal photon point, to obtain the i-th signal point set; when i is greater than k2, and the number of photon points in each set from the i-k2th signal point set to the i-th signal point set meets the second preset condition, the loop operation is terminated, and the i-th signal point set is determined as the target photon point set; otherwise, i plus 1 is executed.

[0013] Optionally, before dividing the first photon point set into a water surface photon point set and an underwater photon point set according to a separation threshold, the method further includes: slicing the first photon point set along the elevation direction to obtain a plurality of seventh photon point sets, wherein the elevation lengths corresponding to the plurality of seventh photon point sets are all the same; forming an elevation density histogram according to the seventh photon point set, wherein the elevation density histogram represents the number of photon points corresponding to different elevation ranges in the first photon point set; obtaining a target peak in the elevation density histogram, wherein the number of photon points in the elevation range corresponding to the target peak is the largest; determining a first peak and a second peak according to the target peak, wherein the first peak and the second peak are the two peaks most adjacent to the target peak, the central elevation value corresponding to the first peak is a first elevation value, the central elevation value corresponding to the second peak is a second elevation value, the first elevation value is greater than the second elevation value, and the central elevation value corresponding to the target peak is a third elevation value; The separation threshold is determined according to the first elevation value, the second elevation value, and the third elevation value.

[0014] In a second aspect, the present invention provides a segmented adaptive photon denoising device, comprising: a removal module, used to remove discrete photon points in multiple segments corresponding to an original photon point set by an adaptive ellipse density clustering algorithm to obtain a first photon point set, wherein the original photon point set is collected by a photon radar along a target track in a target water area, and the multiple segments are obtained by segmenting the original photon point set;

[0015] A division module, used for dividing the first photon point set into a water surface photon point set and an underwater photon point set according to a separation threshold, wherein the separation threshold is determined according to the elevation density distribution of all photon points in the first photon point set;

[0016] The fitting module is used to perform curve fitting on the photon points in the underwater photon point set to obtain a fitting terrain line, and extract the signal photon points of the underwater photon point set according to the fitting terrain line to obtain a target photon point set.

[0017] In a third aspect, the present invention provides an electronic device, including a memory and a processor;

[0018] The memory is used to store computer programs;

[0019] The processor is used to implement the segmented adaptive photon denoising method as described in the first aspect when executing the computer program.

[0020] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is read and executed by a processor, the segmented adaptive photon denoising method as described in the first aspect is implemented.

[0021] The segmented adaptive photon denoising method, device and storage medium provided by the present invention have the following beneficial effects: the original photon point set is segmented to obtain multiple segments, and the discrete photon points in the multiple segments corresponding to the original photon point set are eliminated by an adaptive ellipse density clustering algorithm to achieve preliminary denoising of the original photon point set. The adaptive ellipse density clustering algorithm adaptively determines different clustering parameters for different segments, can find clusters of different densities in the original photon point set, effectively identify discrete photon points and eliminate them from the original photon point set, and obtain a first photon point set. The first photon point set is divided into a surface photon point set and an underwater photon point set, and curve fitting is further performed on the underwater photon point set. Signal photon points are extracted according to the obtained fitting terrain to achieve further denoising of the underwater photon point set. The signal photon points extracted by curve fitting the underwater terrain are more accurate. The denoised surface photon point set and the target photon point set are subsequently used to determine the water depth and underwater terrain data corresponding to the water area, reducing the interference of a large amount of noise contained in the original photon point set and improving the accuracy of the determined water depth and underwater terrain data. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 A schematic diagram of a flow chart of a segmented adaptive photon denoising method according to an embodiment of the present invention;

[0023] Figure 2A distribution diagram of an original photon point set in a two-dimensional space according to an embodiment of the present invention;

[0024] Figure 3 A schematic diagram of a process of removing discrete photon points from an original photon point set according to an embodiment of the present invention;

[0025] Figure 4 A schematic diagram of dividing the current second photon point set according to an embodiment of the present invention;

[0026] Figure 5 A distribution diagram of photon points in a current second photon point set according to an embodiment of the present invention;

[0027] Figure 6 is a schematic diagram of an ellipse kernel according to an embodiment of the present invention;

[0028] Figure 7 A schematic diagram of an elevation density histogram according to an embodiment of the present invention;

[0029] Figure 8 A schematic diagram of a terrain curve fitting effect according to an embodiment of the present invention;

[0030] Fig. 9 A schematic diagram of a photon point extraction result from an original photon point set according to an embodiment of the present invention;

[0031] Fig.10 A schematic diagram of the structure of a segmented adaptive photon denoising device according to an embodiment of the present invention;

[0032] Fig.11 The figure is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0033] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be interpreted as being limited to the embodiments described herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not intended to limit the scope of protection of the present invention.

[0034] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.

[0035] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments"; the term "optionally" means "optional embodiments". Relevant definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc. mentioned in the present invention are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0036] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0037] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes, and are not used to limit the scope of these messages or information.

[0038] like Figure 1 As shown, an embodiment of the present invention provides a segmented adaptive photon denoising method, comprising:

[0039] Step S101, using an adaptive ellipse density clustering algorithm to remove discrete photon points in an original photon point set to obtain a first photon point set, wherein the original photon point set is collected by a photon radar in a target water area along a target track, and the multiple segments are obtained by segmenting the original photon point set.

[0040] In this embodiment, the photon radar moves along the target track above the target water area, and records the photon points collected by the photon radar during the movement to obtain an original photon point set. The distribution of the original photon point set in the two-dimensional space is as follows: Figure 2 As shown, the horizontal axis represents the distance of the photon point along the track, and the vertical axis represents the elevation value of the photon point. The original photon point set P is expressed as:

[0041]

[0042] in, is the number of photon points contained in the original photon point set, is the distance along the track of the i-th photon point in the original photon point set, is the elevation value of the i-th photon point in the original photon point set.

[0043] When the photon radar collects photon points, in addition to signal photon points, it also collects noise photon points. The original photon point set includes both signal photon points and noise photon points. However, since signal photon points and noise photon points have different characteristics in spatial distribution, specifically, signal photon points are denser than noise photon points in spatial distribution, and are more likely to converge to similar positions and cluster into larger clusters, while noise photon points are relatively discrete and difficult to cluster. Therefore, the photon points in the original photon point set can be clustered to determine the photon points in the original photon point set that cannot be clustered, namely, discrete photon points, and then the discrete photon points are removed from the original photon point set to complete the first noise reduction process of the original photon points and obtain the first photon point set. Specifically, the original photon point set is segmented to obtain multiple segments. The adaptive ellipse density clustering algorithm can be used to find clusters of different densities in the multiple segments. The adaptive ellipse density clustering algorithm adaptively determines the corresponding clustering parameters for different segments to complete the clustering operation. After the clustering operation is completed, clusters formed by multiple clusters and photon points that are not clustered (i.e., discrete photon points) will be obtained. After the discrete photon points are determined, the discrete photon points are removed from the original photon point set to achieve preliminary noise reduction of the original photon point set.

[0044] When the adaptive ellipse density clustering algorithm is used to remove discrete photon points from the original photon point set, the original photon point set is divided into multiple subsets (i.e., multiple segments), and clustering operations are performed independently in each subset. The adaptive ellipse density clustering algorithm adaptively adjusts clustering parameters to improve the accuracy of removing discrete photon points.

[0045] Specifically, the original photon point set is divided into multiple subsets, and clustering operations are performed independently in each subset, such as Figure 3 As shown, the original photon point set is divided along the direction of the target track into multiple second photon point sets, and for each second photon point set, the discrete photon points in the second photon point set are eliminated by an adaptive ellipse density clustering algorithm to obtain multiple third photon point sets, and finally the first photon point set is formed by the multiple third photon point sets. That is, the method of eliminating the discrete photon points in the original photon point set by the adaptive ellipse density clustering algorithm to obtain the first photon point set includes: segmenting the original photon point set along the direction of the target track to obtain multiple second photon point sets, wherein the number of photon points contained in each of the second photon point sets meets the first preset condition, and the multiple second photon point sets correspond to the multiple segments; for each of the second photon point sets in the multiple second photon point sets, the discrete photon points in each of the second photon point sets are eliminated by the adaptive ellipse density clustering algorithm to obtain multiple third photon point sets; and the first photon point set is formed by the multiple third photon point sets.

[0046] The first preset condition is that the number of photon points contained in each second photon point set is the same. Figure 2 For example, the original photon point set includes Figure 2 For all the original photons in the two-dimensional space shown, first determine a target value , taking the number of photon points in each slice as the target value, segmentation is performed along the track direction, i.e., segmentation processing, such as Figure 2 As shown, the two-dimensional space is divided into multiple slices (5 slices), that is, multiple segments, wherein one slice corresponds to a second photon point set, and the photon points in the second photon point set are the photon points that fall in the corresponding slice.

[0047] It should be noted that Figure 2 The track lengths corresponding to any two slices may be the same or different, but the number of photon points in any two slices must be equal.

[0048] Furthermore, the number of the second photon point set is determined by the total number of photon points in the original photon point set and the target value, and is expressed by the following formula:

[0049]

[0050] in, is the number of photon points contained in the original photon point set, is the number of photon points contained in each second photon point set, is the number of the second photon point set.

[0051] Optionally, the method of eliminating the discrete photon points in each of the second photon point sets through an adaptive ellipse density clustering algorithm to obtain multiple third photon point sets includes: performing the following operations on each of the second photon point sets respectively, and recording the second photon point set in the following operations as the current second photon point set: determining the target minor semi-axis and target threshold of the ellipse kernel corresponding to the current second photon point set; clustering the current second photon point set according to the target minor semi-axis and the target threshold to obtain multiple discrete photon points; and eliminating the multiple discrete photon points from the current second photon point set to obtain a third photon point set corresponding to the current second photon point set.

[0052] In this embodiment, after the original photon point set is divided into multiple second photon point sets, it is necessary to use an adaptive elliptical density clustering algorithm to perform clustering operations on each second photon point set respectively, determine the discrete photon points in the second photon point set, and then remove the determined discrete photon points from the second photon point set.

[0053] When clustering one of the second photon point sets (the current second photon point set), the target short semi-axis and target threshold of the ellipse core corresponding to the current second photon point set are first determined. That is, different clustering parameters are adaptively determined for different segments (corresponding to different second photon point sets), and the clustering parameters include the short semi-axis and threshold of the ellipse core.

[0054] Specifically, when determining the target minor semiaxis and the target threshold, a candidate minor semiaxis set and a candidate threshold set are first determined, and the target minor semiaxis and the target threshold are determined from the candidate minor semiaxis set and the candidate threshold set.

[0055] Specifically, the candidate short semi-axis set can be determined in the following manner: for the shortest distance between all photon points in the current second photon point set and other photon points in the current second photon point set, multiple distance values ​​are obtained, and the candidate short semi-axis set is determined based on the multiple distance values.

[0056] Taking the current second photon point set containing five photon points as an example (five photon points A, B, C, D, and E), the closest distance between photon point A and other photon points of the current photon point is photon point B, and the distance value is ;The closest distance between photon point B and other photon points of the current photon point is photon point C, and the distance value is ;The closest distance between photon point C and other photon points of the current photon point is photon point E, and the distance value is ;The closest distance between photon point D and other photon points of the current photon point is photon point A, and the distance value is ;The closest distance between photon point E and other photon points of the current photon point is photon point B, and the distance value is ; In summary, we get five distance values, and perform weight reduction on the five distance values ​​to get multiple different distance values. For example, if , then only record and Just pick one distance value, and record the multiple different distance values ​​obtained in the candidate minor semi-axis set.

[0057] Furthermore, after the candidate minor semiaxis set is determined, a candidate threshold set is obtained according to the candidate threshold corresponding to each candidate minor axis in the candidate minor semiaxis set. Therefore, the candidate thresholds in the candidate threshold set correspond to the candidate minor semiaxis in the candidate minor semiaxis set one-to-one.

[0058] Determine a candidate minor semiaxis Afterwards, a candidate threshold corresponding to the candidate minor semiaxis can be determined , taking the determination of the candidate threshold corresponding to the candidate minor semi-axis by the current second photon point set as an example, the specific process includes:

[0059] Step 1: Slice the current second photon point set along the elevation direction to obtain M fourth photon point sets, wherein the elevation lengths corresponding to the M fourth photon point sets are all the same. Figure 4 As shown, with fixed elevation length The two-dimensional space corresponding to the current second photon point set is sliced ​​and divided into eight elevation segments. At this time, M=8. The photon points contained in an elevation segment constitute a fourth photon point set. The corresponding elevation length of each elevation segment is the same. The elevation length of an elevation segment is equal to the upper boundary elevation value minus the lower boundary elevation value. Taking elevation segment 2 as an example, the upper boundary elevation value is H2, the lower boundary elevation value is H1, and the elevation length is , and its corresponding center elevation value is .

[0060] Step 2: Obtain the fourth photon point set with the largest number of photon points in the M fourth photon point sets to obtain the fifth photon point set. That is, determine the number of photon points in each fourth photon point set, and the fourth photon point set with the largest number is determined as the fifth photon point set. Figure 4 For example, the number of photon points in elevation segment two is the largest, that is, the photon point set corresponding to elevation segment two is determined as the fifth photon point set.

[0061] Step 3: Determine a first threshold value according to the center elevation value corresponding to the fifth photon point set. Figure 4 For example, the first threshold is determined according to the central elevation value corresponding to the elevation segment 2. Specifically: first, the central elevation value corresponding to the elevation segment 2 (i.e., the fifth photon point set) is determined. , and then count Figure 4 All elevation fragments (i.e. the current second photon point set) in the The number of photons , the minimum lower bound elevation value among all elevation segments is (corresponding to Figure 4 The lower boundary elevation value of the middle elevation segment 8) is determined by the following formula:

[0062]

[0063] in, is the first threshold, is the center elevation value corresponding to the fifth photon point set, The elevation value in the current second photon point set is less than the center elevation value The number of photons, is the minimum lower bound elevation value.

[0064] Step 4: Determine a fourth photon point set whose number of photon points is greater than or equal to the first threshold value among the M fourth photon point sets, and obtain The fourth set of photon points, wherein: The total number of photon points in the M fourth photon point sets is the first quantity value; determining a fourth photon point set in which the number of photon points in the M fourth photon point sets is less than the first threshold value, and obtaining The fourth set of photon points, wherein: The total number of photon points in the fourth photon point set is the second quantity value, M= + .

[0065] When the number of photons in a certain elevation segment is greater than or equal to the first threshold , then the segment is considered to be composed of noise photon points and signal photon points. All such segments are counted, and the number of segments (the third quantity value) is ,Right now The fourth set of photon points, the total number of photon points in these segments is the first quantity value ; When the number of photons in a certain elevation segment is less than , then the segment is considered to be composed of noise photon points. All such segments are counted, and the number of segments (the fourth quantity value) is ,Right now The fourth set of photon points, the total number of photon points in these segments is the second quantity value .

[0066] Step 4: Determine the candidate threshold corresponding to the candidate minor semi-axis according to the first quantity value, the second quantity value, the third quantity value, the fourth quantity value and the candidate minor semi-axis, wherein the third quantity value is , the fourth quantity value is .

[0067] Specifically, the candidate threshold is determined according to the following formula:

[0068]

[0069]

[0070]

[0071] in, is the candidate threshold, is the number of signal photon points and noise photon points per unit area, is the number of noise photon points per unit area, is the length along the track corresponding to the current second photon point set, For a given minor semiaxis The corresponding ellipse area is, is the elevation length corresponding to each fourth photon point set, M is the total number of fourth photon point sets, is the target ratio mentioned above, is the expected number of noise photon points and signal photon points for a given candidate minor semi-axis, The expected number of noise photon points for a given candidate minor semi-axis.

[0072] Multiple clustering is performed based on the candidate minor semi-axis and the candidate threshold value to select the optimal minor semi-axis and the optimal threshold value from the candidate minor semi-axis set and the candidate threshold value set to obtain the target minor semi-axis and the target threshold value. Specifically, all candidate minor semi-axis in the candidate minor semi-axis set are sorted from large to small (or from small to large), and the j+1th candidate minor semi-axis is smaller than (or larger than) the jth candidate minor semi-axis. The candidate thresholds in the candidate threshold value set are sorted according to the order of the candidate minor semi-axis set, so that the jth candidate threshold in the candidate minor semi-axis set corresponds to the jth candidate minor semi-axis in the candidate minor semi-axis set.

[0073] Specifically, starting from j=1, the following operations are performed in a loop: the jth clustering is performed according to the jth candidate minor semiaxis in the candidate minor semiaxis set and the jth candidate threshold in the candidate threshold set to obtain the jth clustering result, wherein the jth clustering result represents the number of clusters obtained in the jth clustering; when j is greater than or equal to k1, and the j-k1th clustering results to the jth clustering results are the same, the loop operation is terminated, and the jth candidate minor semiaxis is determined as the target minor semiaxis, and the jth candidate threshold is determined as the target threshold; otherwise, j plus 1 is executed.

[0074] In this embodiment, starting from the first candidate minor semiaxis in the candidate minor semiaxis set and the first candidate threshold in the candidate threshold set, the first candidate minor semiaxis and the first candidate threshold are brought into the elliptical density clustering method for clustering. Each time clustering is performed, one or more clusters and discrete photon points that are not clustered can be obtained. The number of clusters obtained in this clustering is determined as the clustering result of this clustering. When the clustering result of this clustering meets the third preset condition, the candidate minor semiaxis and the candidate threshold corresponding to this clustering are determined as the target minor semiaxis and the target threshold. Otherwise, the next candidate minor semiaxis and the next candidate threshold are used for the next clustering until the clustering result meets the third preset condition.

[0075] It should be noted that the third preset condition is: the number of clustering times is greater than or equal to K1 (ie, j is greater than or equal to k1) and the K1 clustering results corresponding to the most recent K1 clustering times are the same (ie, the clustering results from the j-k1th to the jth clustering result are the same).

[0076] Optionally, clustering the current second photon point set according to the target minor semi-axis and the target threshold to obtain a plurality of discrete photon points includes: determining the target major semi-axis by multiplying the target minor semi-axis by a target ratio, wherein the target ratio is a ratio of a first track length to a first difference, the first track length is a track length corresponding to the current second photon point set, and the first difference is a difference between a maximum elevation value and a minimum elevation value corresponding to photon points in the current second photon point set; performing a target operation on each photon point in the current second photon point set, and recording the photon point in the target operation as the current photon point; performing a target operation on each photon point in the current second photon point set, and recording the photon point in the target operation as the current photon point; performing a target operation on the The photons included in the first neighborhood corresponding to the current photon point are subjected to straight-line fitting processing to obtain a target fitting slope, and the target fitting slope is determined as a target direction angle, wherein the first neighborhood is an area corresponding to a circle with the current photon point as the center and the major semi-axis as the radius; an elliptical area with the current photon point as the center is determined according to the target minor semi-axis, the target major semi-axis, and the target direction angle; the number of photon points in the current second photon point set located in the elliptical area is determined to obtain the number of first photon points; when the first number of photon points is less than the target threshold, the current photon point is determined as the discrete photon point.

[0077] In this embodiment, when the target minor semi-axis and target threshold are used to cluster the current second photon point set, the purpose is to determine the discrete photon points in the current second photon point set. Specifically, the target major semi-axis and the corresponding target direction angle of each photon point in the current second photon point set can be determined based on the target minor semi-axis, thereby determining the discrete photon points.

[0078] Among them, determining the major semi-axis of the minor semi-axis according to the known minor semi-axis requires determining a ratio, and this ratio is determined by the distribution of photon points in the corresponding photon point set. Taking the known minor semi-axis as the target minor semi-axis as an example, a ratio is determined by the distribution of photon points in the corresponding photon point set (the current second photon point set), that is, the target ratio. Specifically, the ratio (target ratio) is the ratio of the first track length to the first difference. The distribution of photon points in the current second photon point set is as follows: Figure 5 As shown, photon point A is the photon point with the largest elevation value, photon point B is the photon point with the smallest elevation value, and the first difference is the difference between the elevation value of photon point A and the elevation value of photon point B, that is, the first difference is the difference between the maximum elevation value and the minimum elevation value corresponding to the photon points in the current second photon point set; Figure 5 Where d is the track length corresponding to the current second photon point set, that is, the first track length mentioned above.

[0079] The product of the target minor semi-axis and the target ratio is the target major semi-axis, which can be expressed by the following formula:

[0080]

[0081]

[0082] Among them, a is the target major semi-axis, b is the target minor semi-axis, is the target ratio, is the length of the first track, is the first difference.

[0083] In addition, when performing elliptical density clustering on the current second photon point set, for each photon point, the corresponding major semi-axis and minor semi-axis are the same, but the angle of the elliptical core corresponding to each photon point is different to adapt to photon point clusters of different shapes. The elliptical core is as follows: Figure 6 As shown, taking a photon point (current photon point) in the current second photon point set as an example, when determining the target direction angle corresponding to the current photon point set, a circle is determined with the current photon point as the center and the target major semi-axis as the radius, and all photon points in the area corresponding to this circle (i.e., the first area) are fitted with a straight line to obtain a fitting straight line. The slope of the fitting straight line is the target fitting slope, and the target fitting slope is determined as the target direction angle.

[0084] For each photon point in the current second photon point set (i.e., the current photon point), the ellipse kernel equation corresponding to the photon point is determined based on the target minor semi-axis, the target major semi-axis and the target direction angle corresponding to the photon point, which is used to represent the ellipse area corresponding to the photon point, and the number of photon points in the current second photon point set that fall in the ellipse area (the number of first photon points) is determined. When the number of first photon points is less than the target threshold, the photon point is determined to be a discrete photon point.

[0085] The distance from the photon point to the ellipse core (direction ellipse) centered at the current photon point p can be calculated using the following distance formula:

[0086]

[0087] in, is the distance from any photon point q in the current second photon point set to the ellipse core (direction ellipse) centered at the current photon point p. The along-track distance and elevation values ​​corresponding to the photon point p are , the distance and elevation along the track corresponding to the photon point q are ; 𝑎 represents the target major semi-axis, b represents the target minor semi-axis, Indicates the target direction angle.

[0088] Through the above steps, the current second photon point set is processed to obtain the filtering result of the current second photon point set, that is, the discrete photon points in the current second photon point set are removed to obtain the corresponding third photon point set, and all second photon point sets are processed to obtain multiple third photon point sets, that is, the first photon point set is obtained.

[0089] Step S102: dividing the first photon point set into a water surface photon point set and an underwater photon point set according to a separation threshold, wherein the separation threshold is determined according to the elevation density distribution of all photon points in the first photon point set.

[0090] In this embodiment, before separating the first photon point set into water surface photon points and underwater photon points, a separation threshold needs to be determined first.

[0091] Optionally, the separation threshold can be determined by:

[0092] Step 1: Slice the first photon point set along the elevation direction to obtain a plurality of seventh photon point sets, wherein the elevation lengths corresponding to the plurality of seventh photon point sets are the same; specifically, It is the slice interval in the elevation direction (preset elevation length), which can be divided into The set of the seventh photon point can be expressed as:

[0093]

[0094] in, is the maximum elevation value corresponding to the photon point in the first photon point set, is the minimum elevation value corresponding to the photon point in the first photon point set, is the preset elevation length, The number of the seventh photon point set formed for the slice.

[0095] Step 2: Form an elevation density histogram based on the seventh photon point set, wherein the elevation density histogram represents the number of photon points corresponding to different elevation ranges in the first photon point set. Figure 7 As shown, the vertical axis of the elevation density histogram represents the elevation range, each rectangular slice corresponds to a seventh photon point set, and the horizontal axis represents the number of photon points falling within the corresponding elevation range, that is, the number of photon points corresponding to the seventh photon point set, wherein the central elevation value corresponding to each rectangular slice can be expressed by the following formula:

[0096]

[0097] in, For the The center elevation value of an elevation slice. is the minimum elevation value corresponding to the photon point in the first photon point set, The preset elevation length.

[0098] Step 3: Obtain a target peak in the elevation density histogram, wherein the target peak corresponds to an elevation range with the largest number of photon points.

[0099] like Figure 7 , obtain the target peak in the elevation density histogram, that is, determine the elevation slice containing the most photon points in the elevation density histogram. The central elevation value corresponding to the elevation slice is the central elevation value corresponding to the target peak, that is, the third elevation value .

[0100] Step 4: Determine the first peak and the second peak according to the target peak. The first peak above the target is determined as the first peak, and the first peak below the target peak is determined as the second peak. Therefore, the first peak and the second peak are the two peaks closest to the target peak, and the corresponding center elevation value of the first peak is greater than the corresponding center elevation value of the second peak, that is, the first elevation value is greater than the second elevation value.

[0101] Step 5: Determine the separation threshold according to the first elevation value, the second elevation value and the third elevation value. Specifically, the center position of the first elevation value and the third elevation value can be used as the upper threshold, and the center position of the second elevation value and the third elevation value can be used as the lower threshold. The upper threshold and the lower threshold are the above separation thresholds, which can be expressed as:

[0102]

[0103]

[0104] in, is the upper threshold, is the lower threshold, is the third elevation value, is the first elevation value, is the second elevation value.

[0105] After the separation thresholds (upper threshold and lower threshold) are determined through the above steps, the first photon point set is divided into a water surface photon point set and an underwater photon point set, which can be expressed as:

[0106]

[0107] in, is the set of photon points on the water surface, is the set of underwater photon points, represents the distance along the track of a photon point in the water surface photon point set, Represents the elevation value of a photon point in the water surface photon point set. represents the distance along the track of a photon point in the underwater photon point set, Represents the elevation value of a photon point in the underwater photon point set. represents the total number of photon points in the underwater photon point set, Represents the total number of photon points in the underwater photon point set.

[0108] Among them, a photon point in the water surface photon point set meets the following conditions:

[0109]

[0110] A photon point in the underwater photon point set satisfies the following conditions:

[0111]

[0112] Step S103, performing curve fitting on the photon points in the underwater photon point set to obtain a fitted terrain line, and performing noise reduction processing on the underwater photon point set according to the fitted terrain line to obtain a target photon point set.

[0113] In this embodiment, the photon points in the underwater photon point set are further subjected to noise reduction processing. Specifically, the photons in the underwater photon point set can be fitted by curve fitting to obtain a fitting terrain line of the underwater terrain. The signal points in the underwater photon point set that can characterize the underwater terrain and the meaningless noise points are determined according to the fitted terrain line, and all the determined signal points are determined as the target photon point set.

[0114] Furthermore, in order to improve the accuracy of denoising and curve fitting, the underwater photon point set is first sliced, that is, the underwater photon point set is sliced ​​along the direction of the target track to obtain multiple sixth photon point sets. The current second photon point set is sliced ​​along the track direction and divided into q sixth photon point sets, where:

[0115]

[0116] Among them, q is the number of the sixth photon point set obtained by division, is the maximum along-track distance corresponding to the photon point in the underwater photon point set, is the minimum along-track distance corresponding to the photon point in the underwater photon point set, To fix the track length, is the uth sixth photon point set among the q sixth photon point sets, Including the distance along the track of all photon points in the uth sixth photon point, Includes the elevation values ​​of all photon points in the u-th sixth photon point.

[0117] A fitting operation is performed on each sixth photon point set to determine a corresponding target signal point set. Each sixth photon point set corresponds to a target signal point set, that is, multiple target signal point sets. The multiple target signal point sets constitute the target photon point set.

[0118] When performing a fitting operation on one of the sixth photon point sets (the current sixth photon point set), the current sixth photon point set is fitted multiple times, and each fitting can determine a signal point set until the number of signal point sets fitted tends to be stable. Then the fitting is stopped, and the signal point set obtained by the last fitting is determined as the target signal point set.

[0119] Specifically, the following operations are performed on each of the sixth photon point sets respectively, and the sixth photon point set in the following operations is taken as the current sixth photon point set: starting from i=1, the following operations are performed cyclically:

[0120] The i-th sample point set is fitted to obtain the i-th fitting curve, wherein the sample point set is selected from the current sixth photon point set; wherein, each time fitting is performed, a number of sample points are randomly selected from the current sixth photon point set for curve fitting, and the sample point set selected for each fitting is different.

[0121] Specifically, the terrain curve fitting effect is as follows: Figure 8 As shown, the sample points in the sample point set are used to fit the cubic polynomial shown below, that is, the i-th fitting curve:

[0122]

[0123] in, is the elevation of the photon point, is the distance of the photon point along the track, , , and are cubic polynomial coefficients, which can be used to calculate the best fitting coefficients based on the sample points using the least squares method.

[0124] Traverse all the photon points of the current sixth photon point set of the current slice, and calculate the distance from each photon point to the above cubic polynomial (the i-th fitting curve) , can be calculated by the following formula:

[0125]

[0126] in, , is the elevation value of the current photon point, is the distance along the track of the current photon point, , , and are cubic polynomial coefficients, Including the distances along the track of all photon points in the current sixth photon point set, Includes the elevation values ​​of all photon points in the current sixth photon point set.

[0127] If the distance to the i-th fitting curve is less than the preset distance threshold, it means that the photon point is close to the fitting terrain line, otherwise it means that the photon point deviates from the fitting terrain line. The photon point close to the fitting terrain line is determined as a signal photon point, and the photon point deviating from the fitting terrain line is determined as a noise point, and the signal photon point is added to the i-th signal point set.

[0128] The photon points in the current sixth photon point set whose distance to the i-th fitting curve is less than the distance threshold are determined as the signal photon points to obtain the i-th signal point set; when i is greater than k2, and the number of photon points in each set from the i-k2th signal point set to the i-th signal point set meets the second preset condition, the loop operation is terminated and the i-th signal point set is determined as the target signal point set; otherwise, i plus 1 is executed.

[0129] The second preset condition is that the number of photon points in the consecutive k2 signal point sets is the same.

[0130] In summary, after multiple denoising, the photon point extraction results in the original photon point set are as follows: Fig. 9As shown, the original photon points are divided into three parts: noise photon points, water surface photon points, and underwater photon points (photon points in the target photon point set). The original photon point set is segmented to obtain multiple segments, and the discrete photon points in the multiple segments corresponding to the original photon point set are eliminated through an adaptive ellipse density clustering algorithm to achieve preliminary denoising of the original photon point set. The adaptive ellipse density clustering algorithm adaptively determines different clustering parameters for different segments. The ellipse clustering algorithm can find clusters of different densities in the original photon point set, effectively identify discrete photon points and eliminate them from the original photon point set to obtain a first photon point set, and the first photon point set is divided into a water surface photon point set and an underwater photon point set. The underwater photon point set is further curve-fitted, and signal photon points are extracted according to the obtained fitted terrain to achieve further denoising of the underwater photon point set. The signal photon points extracted by curve-fitting the underwater terrain are more accurate. The denoised water surface photon point set and the target photon point set are subsequently used to determine the water depth and underwater terrain data corresponding to the water area, reducing the interference of a large amount of noise contained in the original photon point set and improving the accuracy of the determined water depth and underwater terrain data.

[0131] like Fig.10 As shown, an embodiment of the present invention provides a segmented adaptive photon denoising device, comprising:

[0132] A removal module is used to remove discrete photon points in multiple segments corresponding to an original photon point set by an adaptive ellipse density clustering algorithm to obtain a first photon point set, wherein the original photon point set is collected by a photon radar along a target track in a target water area, and the multiple segments are obtained by segmenting the original photon point set;

[0133] A division module, used for dividing the first photon point set into a water surface photon point set and an underwater photon point set according to a separation threshold, wherein the separation threshold is determined according to the elevation density distribution of all photon points in the first photon point set;

[0134] The fitting module is used to perform curve fitting on the photon points in the underwater photon point set to obtain a fitting terrain line, and extract the signal photon points of the underwater photon point set according to the fitting terrain line to obtain a target photon point set.

[0135] In an optional embodiment, the above-mentioned elimination module is also used to eliminate discrete photon points in the original photon point set by an adaptive ellipse density clustering algorithm in the following manner to obtain a first photon point set: the original photon point set is segmented along the direction of the target track to obtain multiple second photon point sets, wherein the number of photon points contained in each of the second photon point sets satisfies a first preset condition, and multiple second photon point sets correspond to the multiple segments; for each of the multiple second photon point sets in the multiple second photon point sets, the discrete photon points in each second photon point set are eliminated by an adaptive ellipse density clustering algorithm to obtain multiple third photon point sets; and the first photon point set is constituted by multiple third photon point sets.

[0136] In an optional embodiment, the above-mentioned elimination module is also used to eliminate the discrete photon points in each of the second photon point sets by an adaptive ellipse density clustering algorithm in the following manner to obtain multiple third photon point sets: perform the following operations on each of the second photon point sets respectively, and record the second photon point set in the following operations as the current second photon point set: determine the target minor semi-axis and target threshold of the ellipse kernel corresponding to the current second photon point set; cluster the current second photon point set according to the target minor semi-axis and the target threshold to obtain multiple discrete photon points; eliminate the multiple discrete photon points from the current second photon point set to obtain a third photon point set corresponding to the current second photon point set.

[0137] In an optional embodiment, the above-mentioned elimination module is also used to determine the target minor semi-axis and target threshold of the elliptical core corresponding to the current second photon point set in the following manner: determine a candidate minor semi-axis set and a candidate threshold set, wherein the candidate minor semi-axis in the candidate minor semi-axis set corresponds one-to-one to the candidate threshold in the candidate threshold set; starting from j=1, looping the following operations: performing the jth clustering according to the jth candidate minor semi-axis in the candidate minor semi-axis set and the jth candidate threshold in the candidate threshold set to obtain the jth clustering result, wherein the jth clustering result represents the number of clusters obtained in the jth clustering; when j is greater than or equal to k1, and the j-k1th clustering results to the jth clustering results are the same, terminate the loop operation, and determine the jth candidate minor semi-axis as the target minor semi-axis, and determine the jth candidate threshold as the target threshold; otherwise, execute i plus 1.

[0138] In an optional embodiment, the above-mentioned elimination module is also used to slice the current second photon point set along the elevation direction to obtain M fourth photon point sets, wherein the elevation lengths corresponding to the M fourth photon point sets are all the same; obtain the fourth photon point set with the largest number of photon points in the M fourth photon point sets to obtain the fifth photon point set; determine the first threshold value according to the central elevation value corresponding to the fifth photon point set; determine the fourth photon point set in the M fourth photon point sets whose number of photon points is greater than or equal to the first threshold to obtain M1 fourth photon point sets, wherein the total number of photon points in the M1 fourth photon point sets is the first quantity value; determine the fourth photon point set in the M fourth photon point sets whose number of photon points is less than the first threshold to obtain M2 fourth photon point sets, wherein the total number of photon points in the M2 fourth photon point sets is the second quantity value, M= M1+M2; determining the candidate threshold corresponding to the candidate minor semi-axis according to the first quantity value, the second quantity value, the third quantity value, the fourth quantity value and the candidate minor semi-axis, wherein the third quantity value is M1 and the fourth quantity value is M2.

[0139] In an optional embodiment, the above-mentioned elimination module is also used to cluster the current second photon point set according to the target minor semi-axis and the target threshold in the following manner to obtain a plurality of discrete photon points: the product of the target minor semi-axis and the target ratio is determined as the target major semi-axis, wherein the target ratio is the ratio of the first track length to the first difference, the first track length is the track length corresponding to the current second photon point set, and the first difference is the difference between the maximum elevation value and the minimum elevation value corresponding to the photon points in the current second photon point set; the target operation is performed on each photon point in the current second photon point set respectively, and the photon point in which the target operation is performed is recorded as Current photon point: perform straight-line fitting processing on the photons included in the first neighborhood corresponding to the current photon point to obtain a target fitting slope, and determine the target fitting slope as the target direction angle, wherein the first neighborhood is the area corresponding to the circle with the current photon point as the center and the major semi-axis as the radius; determine the elliptical area centered on the current photon point according to the target minor semi-axis, the target major semi-axis, and the target direction angle; determine the number of photon points in the current second photon point set that are located in the elliptical area to obtain the number of first photon points; when the first number of photon points is less than the target threshold, determine the current photon point as the discrete photon point.

[0140] In an optional embodiment, the fitting module is further used to perform curve fitting on the photon points in the underwater photon point set in the following manner to obtain a fitting topographic line, and extract the signal photon points of the underwater photon point set according to the fitting topographic line to obtain a target photon point set: divide the underwater photon point set along the direction of the target track to obtain a plurality of sixth photon point sets; perform the following operations on each of the sixth photon point sets respectively, and use the sixth photon point set in the following operations as the current sixth photon point set: starting from i=1, perform the following operations cyclically: perform the following operations on the i-th photon point set A sample point set is fitted to obtain an i-th fitting curve, where the sample point set is selected from the current sixth photon point set; a photon point in the current sixth photon point set whose distance to the i-th fitting curve is less than a distance threshold is determined as the signal photon point to obtain the i-th signal point set; when i is greater than k2, and the number of photon points in each set from the i-k2th signal point set to the i-th signal point set meets the second preset condition, the loop operation is terminated, and the i-th signal point set is determined as the target photon point set; otherwise, i plus 1 is executed.

[0141] In an optional embodiment, the above-mentioned device is also used to slice the first photon point set along the elevation direction before dividing the first photon point set into a surface photon point set and an underwater photon point set according to a separation threshold to obtain multiple seventh photon point sets, wherein the elevation lengths corresponding to the multiple seventh photon point sets are the same; form an elevation density histogram based on the seventh photon point set, wherein the elevation density histogram represents the number of photon points corresponding to different elevation ranges in the first photon point set; obtain the target peak in the elevation density histogram, , the number of photon points in the elevation range corresponding to the target peak is the largest; the first peak and the second peak are determined according to the target peak, wherein the first peak and the second peak are the two peaks most adjacent to the target peak, the central elevation value corresponding to the first peak is the first elevation value, the central elevation value corresponding to the second peak is the second elevation value, the first elevation value is greater than the second elevation value, and the central elevation value corresponding to the target peak is the third elevation value; the separation threshold is determined according to the first elevation value, the second elevation value and the third elevation value.

[0142] like Fig.11 As shown, an electronic device provided by an embodiment of the present invention includes a memory and a processor; the memory is used to store a computer program; the processor is used to implement the segmented adaptive photon denoising method as described above when executing the computer program.

[0143] The advantages of the electronic device of this embodiment over the prior art are the same as the advantages of the above-mentioned segmented adaptive photon denoising method over the prior art, which will not be repeated here.

[0144] Another embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is read and executed by a processor, the segmented adaptive photon denoising method as described above is implemented.

[0145] An electronic device that can be used as a server or client of the present invention will now be described, which is an example of a hardware device that can be applied to various aspects of the present invention. Electronic devices are intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples, and are not intended to limit the implementation of the present invention described and / or required herein.

[0146] The electronic device includes a computing unit, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) or a computer program loaded from a storage unit into a random access memory (RAM). In the RAM, various programs and data required for the operation of the device can also be stored. The computing unit, ROM, and RAM are connected to each other through a bus. An input / output (I / O) interface is also connected to the bus.

[0147] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc. In the present application, the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment of the present invention. In addition, each functional unit in each embodiment of the present invention 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 a software functional unit.

[0148] Although the present invention is disclosed as above, the protection scope of the present invention is not limited thereto. Those skilled in the art may make various changes and modifications without departing from the spirit and scope of the present invention, and these changes and modifications will fall within the protection scope of the present invention.

Claims

1. A segmented adaptive photon denoising method, characterized in that: include: The first photon point set is obtained by removing discrete photon points in multiple segments corresponding to the original photon point set through an adaptive ellipse density clustering algorithm, wherein the original photon point set is collected by a photon radar along a target track in a target water area, and the multiple segments are obtained by segmenting the original photon point set; Dividing the first photon point set into a water surface photon point set and an underwater photon point set according to a separation threshold, wherein the separation threshold is determined according to the elevation density distribution of all photon points in the first photon point set; Performing curve fitting on the photon points in the underwater photon point set to obtain a fitted terrain line, and extracting signal photon points of the underwater photon point set according to the fitted terrain line to obtain a target photon point set; Wherein, the method of removing discrete photon points in the corresponding multiple segments in the original photon point set by using an adaptive ellipse density clustering algorithm to obtain a first photon point set includes: performing the segmentation processing on the original photon point set along the direction of the target track to obtain multiple second photon point sets, wherein the number of photon points contained in each of the second photon point sets meets a first preset condition, and the multiple second photon point sets correspond to the multiple segments; for each of the multiple second photon point sets, removing the discrete photon points in each of the second photon point sets by using an adaptive ellipse density clustering algorithm to obtain multiple third photon point sets; and forming the first photon point set by using the multiple third photon point sets; Wherein, the method of eliminating the discrete photon points in each of the second photon point sets by an adaptive ellipse density clustering algorithm to obtain a plurality of third photon point sets includes: performing the following operations on each of the second photon point sets respectively, and recording the second photon point set in the following operations as the current second photon point set: determining the target minor semi-axis and target threshold of the ellipse kernel corresponding to the current second photon point set; clustering the current second photon point set according to the target minor semi-axis and the target threshold to obtain a plurality of the discrete photon points; eliminating the plurality of the discrete photon points from the current second photon point set to obtain the third photon point set corresponding to the current second photon point set; Among them, the determination of the target minor semi-axis and target threshold of the elliptical core corresponding to the current second photon point set includes: determining a candidate minor semi-axis set and a candidate threshold set, wherein the candidate minor semi-axis in the candidate minor semi-axis set corresponds one-to-one to the candidate threshold in the candidate threshold set; starting from j=1, looping to perform the following operations: performing the jth clustering according to the jth candidate minor semi-axis in the candidate minor semi-axis set and the jth candidate threshold in the candidate threshold set to obtain the jth clustering result, wherein the jth clustering result represents the number of clusters obtained in the jth clustering; when j is greater than or equal to k1, and the j-k1th clustering results to the jth clustering results are the same, the loop operation is terminated, and the jth candidate minor semi-axis is determined as the target minor semi-axis, and the jth candidate threshold is determined as the target threshold; otherwise, execute j plus 1.

2. The segmented adaptive photon denoising method according to claim 1, characterized in that: The method further comprises: Slicing the current second photon point set along the elevation direction to obtain M fourth photon point sets, wherein the elevation lengths corresponding to the M fourth photon point sets are all the same; Obtain a fourth photon point set with the largest number of photon points among the M fourth photon point sets to obtain a fifth photon point set; Determine a first threshold value according to the center elevation value corresponding to the fifth photon point set; Determine a fourth photon point set in which the number of photon points in the M fourth photon point sets is greater than or equal to the first threshold, and obtain M1 fourth photon point sets, wherein the total number of photon points in the M1 fourth photon point sets is a first quantity value; Determine a fourth photon point set in which the number of photon points in the M fourth photon point sets is less than the first threshold, and obtain M2 fourth photon point sets, wherein the total number of photon points in the M2 fourth photon point sets is a second number value, M= M1+M2; The candidate threshold corresponding to the candidate minor semi-axis is determined according to the first quantity value, the second quantity value, the third quantity value, the fourth quantity value and the candidate minor semi-axis, wherein the third quantity value is M1 and the fourth quantity value is M2.

3. The segmented adaptive photon denoising method according to claim 1, characterized in that: The clustering of the current second photon point set according to the target short semi-axis and the target threshold to obtain a plurality of discrete photon points includes: The product of the target minor semi-axis and the target ratio is determined as the target major semi-axis, wherein the target ratio is the ratio of the first track length to the first difference, the first track length is the track length corresponding to the current second photon point set, and the first difference is the difference between the maximum elevation value and the minimum elevation value corresponding to the photon points in the current second photon point set; The target operation is performed on each photon point in the current second photon point set respectively, and the photon point in which the target operation is performed is recorded as the current photon point: Performing straight-line fitting processing on photons included in a first neighborhood corresponding to the current photon point to obtain a target fitting slope, and determining the target fitting slope as a target direction angle, wherein the first neighborhood is an area corresponding to a circle with the current photon point as the center and the major semi-axis as the radius; Determine an elliptical area centered on the current photon point according to the target minor semi-axis, the target major semi-axis, and the target direction angle; Determine the number of photon points in the current second photon point set that are located in the elliptical area to obtain the first photon point number; When the first number of photon points is less than the target threshold, the current photon point is determined as the discrete photon point.

4. The segmented adaptive photon denoising method according to claim 1, characterized in that: Performing curve fitting on the photon points in the underwater photon point set to obtain a fitted terrain line, and extracting signal photon points of the underwater photon point set according to the fitted terrain line to obtain a target photon point set, including: Splitting the underwater photon point set along the direction of the target track to obtain a plurality of sixth photon point sets; Perform the following operations on each of the sixth photon point sets respectively, and use the sixth photon point set in the following operations as the current sixth photon point set: Starting from i=1, the loop performs the following operations: Fitting the i-th sample point set to obtain the i-th fitting curve, wherein the sample point set is selected from the current sixth photon point set; Determine the photon points in the current sixth photon point set whose distance from the photon points to the i-th fitting curve is less than a distance threshold as the signal photon points, to obtain the i-th signal point set; When i is greater than k2, and the number of photon points in each set from the i-k2th signal point set to the i-th signal point set meets the second preset condition, the loop operation is terminated, and the i-th signal point set is determined as the target photon point set; Otherwise, i is incremented by 1.

5. The segmented adaptive photon denoising method according to claim 1, characterized in that: Before dividing the first photon point set into a water surface photon point set and an underwater photon point set according to a separation threshold, the method further includes: Slicing the first photon point set along the elevation direction to obtain a plurality of seventh photon point sets, wherein the elevation lengths corresponding to the plurality of seventh photon point sets are all the same; forming an elevation density histogram according to the seventh photon point set, wherein the elevation density histogram represents the number of photon points corresponding to different elevation ranges in the first photon point set; Obtaining a target peak in the elevation density histogram, wherein the number of photon points in the elevation range corresponding to the target peak is the largest; Determining a first peak and a second peak according to the target peak, wherein the first peak and the second peak are the two peaks most adjacent to the target peak, a central elevation value corresponding to the first peak is a first elevation value, a central elevation value corresponding to the second peak is a second elevation value, the first elevation value is greater than the second elevation value, and the central elevation value corresponding to the target peak is a third elevation value; The separation threshold is determined according to the first elevation value, the second elevation value, and the third elevation value.

6. A segmented adaptive photon denoising device, characterized in that: include: A removal module is used to remove discrete photon points in multiple segments corresponding to an original photon point set by an adaptive ellipse density clustering algorithm to obtain a first photon point set, wherein the original photon point set is collected by a photon radar along a target track in a target water area, and the multiple segments are obtained by segmenting the original photon point set; A division module, used for dividing the first photon point set into a water surface photon point set and an underwater photon point set according to a separation threshold, wherein the separation threshold is determined according to the elevation density distribution of all photon points in the first photon point set; A fitting module, used for performing curve fitting on the photon points in the underwater photon point set to obtain a fitting terrain line, and extracting signal photon points of the underwater photon point set according to the fitting terrain line to obtain a target photon point set; The elimination module is also used to eliminate discrete photon points in multiple segments corresponding to the original photon point set according to the adaptive ellipse density clustering algorithm in the following manner to obtain a first photon point set: the original photon point set is segmented along the direction of the target track to obtain multiple second photon point sets, wherein the number of photon points contained in each of the second photon point sets meets a first preset condition, and the multiple second photon point sets correspond to the multiple segments; for each of the multiple second photon point sets, the discrete photon points in each of the second photon point sets are eliminated by the adaptive ellipse density clustering algorithm to obtain multiple third photon point sets; the first photon point set is formed by the multiple third photon point sets; The elimination module is also used to eliminate the discrete photon points in each of the second photon point sets according to the adaptive ellipse density clustering algorithm in the following manner to obtain multiple third photon point sets: perform the following operations on each of the second photon point sets respectively, and record the second photon point set in the following operations as the current second photon point set: determine the target minor semi-axis and target threshold of the ellipse kernel corresponding to the current second photon point set; cluster the current second photon point set according to the target minor semi-axis and the target threshold to obtain multiple discrete photon points; eliminate the multiple discrete photon points from the current second photon point set to obtain the third photon point set corresponding to the current second photon point set; The elimination module is also used to determine the target minor semi-axis and target threshold of the elliptical core corresponding to the current second photon point set in the following manner: determine a candidate minor semi-axis set and a candidate threshold set, wherein the candidate minor semi-axis in the candidate minor semi-axis set corresponds one-to-one to the candidate threshold in the candidate threshold set; starting from j=1, looping the following operations: performing the jth clustering according to the jth candidate minor semi-axis in the candidate minor semi-axis set and the jth candidate threshold in the candidate threshold set to obtain the jth clustering result, wherein the jth clustering result represents the number of clusters obtained in the jth clustering; when j is greater than or equal to k1, and the j-k1th clustering results to the jth clustering results are the same, terminate the loop operation, and determine the jth candidate minor semi-axis as the target minor semi-axis, and determine the jth candidate threshold as the target threshold; otherwise, execute j plus 1.

7. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is read and executed by a processor, the segmented adaptive photon denoising method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Photon counting laser radar adaptive filtering algorithm for water depth extraction

    CN111934652A