A method, device and system for monitoring displacement of large places
By adjusting the filter parameters and window length of the non-local average algorithm in large-scale building displacement monitoring, combined with the center-center symmetry similarity, the denoising effect of the laser spot image is improved, and the problem of inaccurate displacement calculation under the influence of noise is solved. for more accurate building displacement monitoring.
Patent Information
- Application Number
- CN202410874159.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-07-02
AI Technical Summary
In the monitoring of building displacements in large places, laser spot images are affected by atmospheric attenuation, turbulence and nonlinear optical effects, resulting in noise, which affects the calculation of the spot center, thereby making the calculation of building displacements inaccurate, and the denoising of the non-local average algorithm The effect is greatly affected by filtering parameters. Choosing inappropriate parameters will lead to noise halo effect and affect monitoring accuracy.
By collecting laser spot images, the initial window length and circle center symmetry similarity of pixels in the connected domain are obtained, the filter parameters are adjusted according to the level similarity and filter parameters of the pixels, and the non-local average algorithm is used for denoising to ensure that the denoising window contains Relevant information is used to improve the denoising effect and calculate the horizontal and vertical displacement of the building through the center of gravity method.
It improves the accuracy of building displacement monitoring, solves the problem of insufficient monitoring accuracy caused by inaccurate parameter selection of the denoising algorithm, and ensures the reliability of displacement calculations.
Smart Images

Figure CN118408482B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of building displacement measurement, and in particular to a method, device and system for monitoring displacement of large sites. Background Art
[0002] Large venues are large public buildings, generally referring to office buildings, commercial buildings, tourist buildings, science, education, culture, health and communication buildings, and transportation buildings with a construction area of more than 20,000 square meters. Building displacement includes the vertical settlement and horizontal offset of buildings. Regular displacement monitoring is essential for assessing building conditions, preventing potential risks and ensuring public safety. At the same time, it is of great significance to improve the accuracy of engineering design and promote technological progress in the field of construction. Generally, laser deformation is used to monitor building displacement. The center position of the laser spot on the target surface is obtained by the center of gravity method, and the displacement change of the monitoring point is calculated. However, during the transmission process, the laser will be affected by atmospheric attenuation, atmospheric turbulence, atmospheric refraction and nonlinear optical effects, resulting in noise in the acquired laser spot image, affecting the calculation of the laser spot center, and thus making the building displacement calculation inaccurate.
[0003] Since the ideal distribution of the spot intensity is a centrally symmetric and axially symmetric Gaussian distribution, the NLM (Non-Local Mean) non-local mean algorithm is generally used to denoise and enhance laser spot images with high similarity. However, the denoising effect of the non-local mean algorithm is affected by the filter parameter h. When the filter parameter h is not selected appropriately, it is easy to cause the noise halo effect, which affects the measurement of the laser spot displacement and leads to inaccurate calculation of the building displacement. Therefore, it is necessary to select a suitable filter parameter h according to the laser spot image to improve the accuracy of building displacement monitoring. Summary of the invention
[0004] In order to solve the above technical problems, the purpose of this application is to provide a large-scale site displacement monitoring method, device and system. The technical solutions adopted are as follows:
[0005] In a first aspect, an embodiment of the present application provides a large-scale site displacement monitoring method, the method comprising the following steps:
[0006] Collecting laser spot images and selecting initial laser spot images;
[0007] For each laser spot image, a connected domain is obtained, and the initial window length of each pixel in the connected domain is obtained according to the gray value of the pixel in the laser spot image and the distance between the pixels; the center symmetric similarity of two different pixels is obtained according to the gray value distribution of the pixel neighborhood and the difference between the gray value distributions of the neighboring pixels; the similar feature sequence of the pixels is obtained according to the difference in the center symmetric similarity; the level similarity of the pixels is obtained according to the number of data contained in the similar feature sequence of the pixels and the value size;
[0008] According to the level similarity of the pixel points, the initial filtering parameters, and the initial window length, the adjustment filtering parameters of the pixel points are obtained, and the adjustment filtering parameters of the pixel points are used as the values of the filtering parameters. The laser spot image is denoised using a non-local average algorithm to obtain a first laser spot image. The horizontal and vertical displacement distances of the building to be monitored are determined according to the first laser spot image and the initial laser spot image, thereby realizing the displacement monitoring of the building.
[0009] Furthermore, the process of determining the initial window length of the pixel point is as follows:
[0010] Binarization is performed on the laser spot image to obtain a laser spot binary image;
[0011] The connected domain analysis is performed on the binary image of the laser spot, and the connected domains containing pixels whose number is less than or equal to the preset threshold are eliminated. The Euclidean distance between the two pixels with the largest Euclidean distance in the same connected domain is recorded as the connected domain length, and the sum of twice the connected domain length and the number 1 is recorded as the initial window length of each pixel in the connected domain.
[0012] Furthermore, the center symmetric similarity of two different pixels is obtained according to the gray value distribution of the pixel neighborhood and the difference between the gray value distributions of the neighboring pixels. The specific method is:
[0013] For each pixel point in the connected domain, a neighborhood window with a side length of a first preset threshold is established with the pixel point as the center, and the grayscale values of all the pixels contained in the neighborhood window are arranged in ascending order to obtain a neighborhood pixel sequence of the pixel point;
[0014] According to the difference between the neighborhood pixel sequences of adjacent pixels, the center symmetric similarity of two different pixels is obtained.
[0015] Furthermore, the center symmetric similarity of two different pixel points is obtained according to the difference between the neighborhood pixel sequences of adjacent pixel points. The specific process of obtaining is:
[0016] For any two different pixels in a connected domain, the distance between the neighborhood pixel sequences of the two different pixels is recorded as the direct distance of the two different pixels, the number of identical grayscale values contained in the neighborhood pixel sequences of the two different pixels is recorded as the neighborhood similarity of the two different pixels, and the ratio of the neighborhood similarity of the two different pixels to the direct distance is recorded as the center-symmetric similarity of the two different pixels.
[0017] Furthermore, the similar feature sequence of the pixel points is obtained according to the difference in the similarity of the center symmetry, and the specific process of obtaining is:
[0018] The set consisting of all the circle-center symmetric similarities of the same pixel and other pixels in the connected domain is recorded as the circle-center symmetric similarity set of the pixel points;
[0019] All the circle center symmetric similarities contained in the circle center symmetric similarity set of the pixel points are clustered to obtain cluster clusters, the mean of all the circle center symmetric similarities contained in the same cluster cluster is recorded as the cluster cluster mean, the cluster cluster means of all cluster clusters corresponding to the pixel points are arranged in ascending order to obtain the similar feature sequence of the pixel points.
[0020] Furthermore, the process of determining the level similarity of the pixel points is as follows:
[0021] The sum of the squares of all cluster means contained in the similar feature sequence of the pixel points is taken as the level similarity of the pixel points.
[0022] Further, according to the pixel level similarity, the initial filtering parameter, and the initial window length, the adjusted filtering parameter of the pixel is obtained, the adjusted filtering parameter of the pixel is used as the value of the filtering parameter, and the laser spot image is denoised using a non-local average algorithm to obtain a first laser spot image. The specific process of obtaining is:
[0023] The filtering parameters of the pixel points obtained by using the non-local average algorithm are recorded as initial filtering parameters;
[0024] The ratio of the level similarity of the pixel point to the initial window length of the pixel point is recorded as the first ratio of the pixel point, and the product of the difference between the preset adjustment parameter and the first ratio of the pixel point and the initial filtering parameter is recorded as the adjustment filtering parameter of the pixel point;
[0025] The adjusted filtering parameters of the pixels are taken as the values of the filtering parameters, and all the pixels included in all the connected domains in the laser spot image are denoised using a non-local average algorithm to obtain a first laser spot image.
[0026] Further, the process of determining the distances of the horizontal displacement and the vertical displacement of the building to be monitored according to the first laser spot image and the initial laser spot image to realize the displacement monitoring of the building is as follows:
[0027] The energy center position of the laser spot in the first laser spot image is calculated using the centroid method, and the Euclidean distance between the energy center position and the laser position in the initial laser spot image is recorded as the spot displacement distance; the Euclidean distance between the laser emitter and the wave plate is recorded as the first distance, the Euclidean distance between the laser emitter and the camera receiving target is recorded as the second distance, and the ratio of the first distance to the second distance is recorded as the second ratio; the product of the second ratio and the spot displacement distance is recorded as the relative displacement of the laser spot image;
[0028] The laser position in the initial laser spot image is taken as the vertex, the laser position in the initial laser spot image and the ray determined by the laser position in the laser spot image are taken as one side of the angle, the horizontal direction passing through the laser position in the initial laser spot image is taken as the other side of the angle, and the determined acute angle is recorded as the horizontal angle of the laser spot image;
[0029] The product of the cosine value of the horizontal angle of the laser spot image and the relative displacement of the laser spot image is recorded as the horizontal displacement of the building for displacement monitoring; the product of the sine value of the horizontal angle of the laser spot image and the relative displacement of the laser spot image is recorded as the vertical displacement of the building for displacement monitoring.
[0030] In a second aspect, an embodiment of the present application provides a large-scale site displacement monitoring device, which includes: a displacement feature data acquisition module, a displacement feature data analysis module, and a displacement monitoring determination module.
[0031] The displacement feature data acquisition module is used to collect the laser spot image and select the initial laser spot image;
[0032] The displacement feature data analysis module is used to obtain the initial window length of each pixel in the connected domain according to the gray value of the pixel in the laser spot image and the distance between the pixels for each laser spot image; establish a neighborhood pixel sequence of the pixel according to the gray value distribution of the pixel neighborhood, obtain the center symmetric similarity of two different pixels according to the difference of the neighborhood pixel sequences of two different pixels in the connected domain, and establish a center symmetric similarity set of each pixel in the connected domain according to the center symmetric similarity; obtain the similar feature sequence of the pixel according to the difference of different center symmetric similarities in the center symmetric similarity set of the pixel, and obtain the level similarity of the pixel according to the number of data and value size contained in the similar feature sequence of the pixel;
[0033] The displacement monitoring determination module is used to obtain the adjustment filtering parameters of the pixel points according to the level similarity of the pixel points, the initial filtering parameters, and the initial window length, and use the adjustment filtering parameters of the pixel points as the values of the filtering parameters. The laser spot image is denoised using a non-local average algorithm to obtain a first laser spot image, and the horizontal and vertical displacement distances of the building to be monitored are determined according to the first laser spot image and the initial laser spot image to realize the displacement monitoring of the building.
[0034] In a third aspect, an embodiment of the present application further provides a large-scale site displacement monitoring system, the system comprising a memory, a processor, and a computer program stored in the memory and running on the processor, the processor implementing the steps of any one of the above-mentioned methods when executing the computer program.
[0035] It can be seen from the above embodiments that the large-scale site displacement monitoring method, device and system provided by the embodiments of the present application have at least the following beneficial effects:
[0036] The present application firstly selects the connected domain corresponding to the laser spot in the laser spot image, analyzes each connected domain separately, determines the initial window length of the filtering parameters of the non-local average algorithm according to the position distribution of the pixel points in the connected domain, ensures that the entire laser spot is in the denoising window of each pixel point during denoising, and makes the relevant information of the laser spot included in the denoising window, thereby improving the denoising effect; then, based on the morphological characteristics of the circular or elliptical distribution of the laser spot, analyzes the symmetric similarity of the pixel points in the connected domain that are axially symmetrical or centrally symmetrically distributed, or axially symmetrical and centrally symmetrically distributed at the same time, and obtains the center-symmetric similarity set of the pixel points, and the center-symmetric similarity contained in the center-symmetric similarity set of the pixel points is the center-symmetric similarity of the image. The significance of the symmetric similarity between the pixel point and other pixel points in the connected domain is evaluated; further, the center symmetric similarity set of the pixel points is further analyzed to evaluate the significance of the graded distribution of the symmetric similarity characteristics of the pixel points, the grade similarity of the pixel points is obtained, and then the adjustment filter parameters of the pixel points are obtained, and the adjustment filter parameters of the pixel points are used as the values of the filter parameters. The laser spot image is denoised using a non-local average algorithm to obtain a first laser spot image, and the horizontal and vertical displacement distances of the building to be monitored are determined according to the first laser spot image and the initial laser spot image, so as to realize the displacement monitoring of the building and solve the problem of insufficient accuracy of building displacement monitoring due to inaccurate selection of denoising algorithm parameters. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0038] Figure 1 A flowchart of a method for monitoring displacement in a large venue provided by an embodiment of the present application;
[0039] Figure 2 A schematic diagram of a laser spot image provided for one embodiment of the present application;
[0040] Figure 3 A schematic diagram of a horizontal angle provided for an embodiment of the present application;
[0041] Figure 4 A schematic structural diagram of a large-scale site displacement monitoring device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to further explain the technical means and effects adopted by the present application to achieve the predetermined invention purpose, the following is a detailed description of a large-scale site displacement monitoring method, device and system proposed in the present application, its specific implementation method, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0043] Unless otherwise specified and limited, terms such as "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a circuit structure, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such articles or devices. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the article or device including the element. In addition, the term "and\or" used herein includes any and all combinations of one or more related listed items. All technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of this application.
[0044] The specific scheme of a large-scale site displacement monitoring method, device and system provided by the present application is described in detail below with reference to the accompanying drawings.
[0045] See also Figure 1, which shows a flow chart of a large-scale site displacement monitoring method provided by an embodiment of the present application, the method comprising the following steps:
[0046] Step 1: Collect laser spot images, select the initial laser spot image, obtain the connected domain for each laser spot image, and obtain the initial window length of each pixel in the connected domain based on the gray value of the pixel in the laser spot image and the distance between the pixels.
[0047] Install and fix the laser transmitter at a stable position 20 meters away from the building that needs displacement monitoring. The laser transmitter is the reference receiving end. Install a wave generator board at the location of the building that needs displacement monitoring. The wave generator board is the measuring point. With the wave generator board as the symmetry center, set a camera receiving target at a position symmetrical to the symmetry center of the laser transmitter. The camera receiving target is the receiving position of the laser emitted by the laser transmitter.
[0048] After the laser transmitter emits the laser, the laser passes through the wave plate and irradiates the camera receiving target position, and the laser spot image can be received at the camera receiving target position.
[0049] It should be noted that, in the present embodiment, the laser transmitter is installed and fixed at a stable position of 20 meters from the building for displacement monitoring. As other embodiments, on the basis of achieving the purpose of emitting laser at a stable position, the implementer may adopt other positions to fix the laser transmitter.
[0050] The first laser spot image obtained after setting up the laser transmitter, wave plate and camera receiving target is recorded as the initial laser spot image, and a laser spot image is collected every day. Each collected laser spot image is analyzed separately.
[0051] Among them, this embodiment uses one day as the interval time for collecting laser spot images. The implementer can also set the interval time according to specific needs, and this application does not impose any special restrictions.
[0052] At this point, the initial laser spot image and the laser spot image are obtained. The schematic diagram of the laser spot image is as follows: Figure 2 shown.
[0053] The laser spot image is binarized to obtain a laser spot binary image.
[0054] Specifically, this embodiment uses the OTSU maximum inter-class variance method to perform binarization processing on the laser spot image, uses the OTSU maximum inter-class variance method on the laser spot image, obtains the division threshold, and records the grayscale value of the pixel point in the laser spot image whose grayscale value is greater than the division threshold as 1, and records the grayscale value of the pixel point in the laser spot image whose grayscale value is less than or equal to the division threshold as 0, and obtains the laser spot binary image. Among them, using the OTSU maximum inter-class variance method to perform binarization processing on the image is a well-known technology and will not be repeated here. As other embodiments, on the basis of achieving the purpose of binarization processing on the laser spot image, the implementer may adopt other binarization processing algorithms.
[0055] The connected domain analysis is performed on the laser spot binary image, and the connected domains containing the number of pixels less than or equal to the threshold T are eliminated and no longer analyzed. The remaining connected domains are the areas corresponding to the laser spot in the laser spot image. In this embodiment, the value of the threshold T is 10, and the implementer can also set the value of the threshold T according to specific needs, which is not limited in this application.
[0056] The remaining connected domains are analyzed, and the Euclidean distance between the two pixels with the largest Euclidean distance in the same connected domain is recorded as the connected domain length.
[0057] In order to ensure that the pixels in the same connected domain are in the same search window in the subsequent denoising process using the non-local average algorithm, the side length of the denoising window of the non-local average algorithm is set to N. Among them, N is the initial window length. It should be noted that the denoising windows in the same connected domain have the same side length. When the length of the connected domain is n, the initial window length of the denoising window corresponding to each pixel in the connected domain is N=2n+1.
[0058] At this point, the initial window length of each pixel in all connected domains is obtained.
[0059] Step 2: Establish a neighborhood pixel sequence of the pixel point according to the gray value distribution of the pixel point neighborhood, obtain the center symmetric similarity of two different pixel points according to the difference of the neighborhood pixel sequences of two different pixel points in the connected domain, and establish a center symmetric similarity set of each pixel point in the connected domain according to the center symmetric similarity.
[0060] The laser spot in the laser spot image is circular or elliptical, so the pixels in the connected domain are distributed in an axisymmetric or center-symmetrical manner, or may be distributed in an axisymmetric and center-symmetrical manner at the same time. This feature is recorded as symmetric similarity.
[0061] During the transmission process, the laser will be affected by atmospheric attenuation, atmospheric turbulence, atmospheric refraction and nonlinear optical effects, resulting in noise in the acquired laser spot image, which will affect the symmetry similarity analysis of the laser spot. Therefore, the existing technology directly analyzing the symmetry similarity of the laser spot is not accurate, and the impact of noise on the symmetry similarity analysis needs to be considered.
[0062] For each pixel in the connected domain, a window with a side length of the first preset threshold is established with the pixel as the center, and the obtained window is recorded as the neighborhood window of the pixel. The grayscale values of all pixels contained in the neighborhood window of the pixel are arranged in order from small to large to obtain a neighborhood pixel sequence of the pixel. Among them, the value of the first preset threshold in this embodiment is 3, and the implementer can also set the value of the first preset threshold according to specific needs, and this application does not limit it.
[0063] For every two different pixels in the connected domain, pixel a and pixel b are taken as examples for analysis.
[0064] The distance between the neighborhood pixel sequences of pixel a and pixel b is recorded as the direct distance between pixel a and pixel b, and the number of identical grayscale values contained in the neighborhood pixel sequences of pixel a and pixel b is recorded as the neighborhood similarity between pixel a and pixel b.
[0065] According to the direct distance and neighborhood similarity of pixel point a and pixel point b, the center symmetric similarity of pixel point a and pixel point b is determined. The center symmetric similarity of pixel point a and pixel point b is positively correlated with the neighborhood similarity of pixel point a and pixel point b, and negatively correlated with the direct distance of pixel point a and pixel point b.
[0066] It can be understood that the positive correlation and negative correlation in this application refer to the relationship between the independent variable and the dependent variable. The positive correlation means that the independent variable increases (decreases) as the dependent variable increases (decreases), which can be an additive relationship, a multiplicative relationship, etc.; the negative correlation means that the independent variable decreases (increases) as the dependent variable increases (decreases), which can be an inverse relationship, a subtractive relationship, etc.
[0067] Preferably, as an embodiment of the present application, the neighborhood similarity between pixel a and pixel b is used as the numerator, the direct distance between pixel a and pixel b is used as the denominator, and the center-symmetric similarity between pixel a and pixel b is the ratio of the numerator to the denominator.
[0068] Specifically, this embodiment uses DTW distance as the distance between neighboring pixel sequences. Calculating the DTW distance between two sequences is a well-known technique and will not be described in detail. As other embodiments, on the basis of achieving the purpose of sequence distance evaluation, the implementer may use other sequence distance measurement algorithms, such as Euclidean distance.
[0069] When the center symmetric similarity of two different pixels in a connected domain is greater, the similarity between the neighborhood pixel sequences of the two different pixels is greater. At this time, the consistency of the texture and feature distribution of the two different pixels is greater.
[0070] At this point, the center symmetric similarity of every two different pixel points in the connected domain is obtained.
[0071] Each pixel in the connected domain has a circle-centered symmetric similarity with other pixels, and the set of all circle-centered symmetric similarities corresponding to the same pixel in the connected domain is recorded as the circle-centered symmetric similarity set of pixels.
[0072] When the center symmetric similarity contained in the center symmetric similarity set of a pixel point is larger, the symmetric similarity feature between the pixel point and other pixels in the connected domain is more obvious.
[0073] At this point, the center-symmetric similarity set of each pixel in the connected domain is obtained.
[0074] Step 3: According to the difference of different center-symmetric similarities in the center-symmetric similarity set of the pixel points, obtain the similarity feature sequence of the pixel points, and according to the number of data and value size contained in the similarity feature sequence of the pixel points, obtain the level similarity of the pixel points.
[0075] In order to identify the pixel point with the most obvious symmetric similarity characteristics with the pixel point, the analysis is continued.
[0076] All the circle-center symmetric similarities contained in the circle-center symmetric similarity set of the pixel points are clustered to obtain cluster clusters.
[0077] This embodiment uses the DBSCAN clustering algorithm (Density-based spatial clustering of applications with noise) to cluster all the center-symmetric similarities contained in the center-symmetric similarity set of pixel points. During the clustering process, this implementation takes the value of the neighborhood radius as 0.1 and the value of the minimum number MinPts as 2 to obtain cluster clusters. Clustering using the DBSCAN clustering algorithm is a well-known technology and will not be described in detail. As other embodiments, on the basis of clustering all the center-symmetric similarities contained in the same center-symmetric similarity set, the implementer may use other clustering algorithms, and this application does not impose any special restrictions.
[0078] Calculate the mean of all the circle center symmetric similarities contained in each cluster, record the obtained mean as the cluster mean, arrange the cluster means of all clusters corresponding to the pixel points in order from small to large, and obtain the similar feature sequence of the pixel points.
[0079] At this point, the similar feature sequence of each pixel in the connected domain is obtained.
[0080] The more similar the symmetric similarity features between a pixel and other pixels in the connected domain are, the more likely these center symmetric similarities are in the same cluster. Therefore, when there are more clusters corresponding to a pixel, the more level differences the symmetric similarity features of the pixel present. Therefore, when the number of data contained in the similar feature sequence of a pixel is more, the more level differences the symmetric similarity features between the pixel and other pixels in the connected domain present, and the pixels corresponding to the data closer to the tail in the similar feature sequence present stronger symmetric similarity features.
[0081] According to the similar feature sequence of the pixel points, the level similarity of the pixel points is obtained. The level similarity of the pixel points is positively correlated with the number and numerical value of the cluster means contained in the similar feature sequence of the pixel points.
[0082] Preferably, as an embodiment of the present application, the sum of the squares of the means of all clusters contained in the similar feature sequence of the pixel points is used as the level similarity of the pixel points.
[0083] When the symmetric similarity features between a pixel and other pixels in the connected domain are more significant, the level similarity of the pixel is greater. At this time, the non-local average algorithm is more likely to obtain sufficient information for denoising from a large number of pixels with significant symmetric similarity features.
[0084] At this point, the level similarity of each pixel in the connected domain is obtained.
[0085] Step 4: According to the level similarity of the pixel points, the initial filtering parameters, and the initial window length, the adjustment filtering parameters of the pixel points are obtained, the adjustment filtering parameters of the pixel points are used as the values of the filtering parameters, and the laser spot image is denoised using a non-local average algorithm to obtain a first laser spot image. According to the first laser spot image and the initial laser spot image, the horizontal and vertical displacement distances of the displacement monitored building are determined to achieve displacement monitoring of the building.
[0086] When using the non-local average algorithm for denoising, a larger filter parameter h can affect the weight corresponding to the pixel point, slowing down the decay speed of the weight corresponding to the pixel point as the pixel value difference increases, thereby better retaining the image details, and a smaller filter parameter h can better remove noise. Therefore, it is necessary to determine the appropriate filter parameter based on the actual situation of each pixel point.
[0087] The non-local average algorithm can be used to calculate the filtering parameters of the pixel points according to the local noise of the pixel points, and the filtering parameters calculated using the existing non-local average algorithm are recorded as initial filtering parameters. Among them, the process of using the non-local average algorithm to obtain the initial filtering parameters is a well-known technology and will not be repeated here.
[0088] According to the pixel level similarity, initial filtering parameters and initial window length, the pixel adjustment filtering parameters are obtained. The pixel adjustment filtering parameters are positively correlated with the initial filtering parameters and initial window length of the pixel, and negatively correlated with the pixel level similarity.
[0089] Preferably, as an embodiment of the present application, the ratio of the level similarity of the pixel point to the initial window length of the pixel point is recorded as the first ratio of the pixel point, and the product of the difference between the preset adjustment parameter and the first ratio of the pixel point and the initial filtering parameter is recorded as the adjusted filtering parameter of the pixel point. In this embodiment, the value of the preset adjustment parameter is 1.2.
[0090] The adjusted filtering parameters of the pixel points are used as the values of the filtering parameters h, and the non-local average algorithm is used to denoise all the pixel points contained in all the connected domains in the laser spot image to obtain a first laser spot image, which is the image after the laser spot image is denoised. Using the non-local average algorithm to denoise an image is a well-known technology and will not be described in detail.
[0091] The energy center position of the laser spot in the first laser spot image is calculated using the centroid method, and the Euclidean distance between the energy center position and the laser position in the initial laser spot image is recorded as the spot displacement distance. The Euclidean distance between the laser emitter and the wave plate is recorded as the first distance, the Euclidean distance between the laser emitter and the camera receiving target is recorded as the second distance, the ratio of the first distance to the second distance is recorded as the second ratio, and the product of the second ratio and the spot displacement distance is recorded as the relative displacement of the laser spot image.
[0092] The use of the centroid method to calculate the energy center position of the laser spot is a well-known technique and will not be described in detail.
[0093] The laser position in the initial laser spot image is taken as the vertex, the laser position in the initial laser spot image and the ray determined by the laser position in the laser spot image are taken as one of the sides of the angle, and the horizontal direction passing through the laser position in the initial laser spot image is taken as the other side of the angle, and the determined acute angle is recorded as the horizontal angle of the laser spot image.
[0094] Schematic diagram of horizontal angle Figure 3 As shown. Figure 3In , ① and ② correspond to two cases of determined acute angles. In ①, A1 is the laser position in the initial laser spot image, B1 is the laser position in the laser spot image, and C1 is the horizontal angle of the laser spot image; in ②, A2 is the laser position in the initial laser spot image, B2 is the laser position in the laser spot image, and C2 is the horizontal angle of the laser spot image.
[0095] The product of the cosine value of the horizontal angle of the laser spot image and the relative displacement of the laser spot image is recorded as the horizontal absolute displacement of the laser spot image; the product of the sine value of the horizontal angle of the laser spot image and the relative displacement of the laser spot image is recorded as the vertical absolute displacement of the laser spot image.
[0096] The horizontal absolute displacement is the distance of the horizontal displacement of the building that needs to be monitored, which is the horizontal displacement of the building for displacement monitoring. The vertical absolute displacement is the distance of the vertical displacement of the building that needs to be monitored, which is the vertical displacement of the building for displacement monitoring.
[0097] At this point, the displacement monitoring of the building is realized.
[0098] See also Figure 4 , Figure 4 1 is a schematic diagram of the structure of a large-scale site displacement monitoring device provided by an embodiment of the present application. In this embodiment, the device includes various units for executing various steps in an embodiment corresponding to a large-scale site displacement monitoring method. Figure 4 The displacement monitoring device includes: a displacement characteristic data acquisition module, a displacement characteristic data analysis module, and a displacement monitoring determination module.
[0099] The displacement feature data acquisition module is used to collect the laser spot image and select the initial laser spot image;
[0100] The displacement feature data analysis module is used to obtain the initial window length of each pixel in the connected domain according to the gray value of the pixel in the laser spot image and the distance between the pixels for each laser spot image; establish a neighborhood pixel sequence of the pixel according to the gray value distribution of the pixel neighborhood, obtain the center symmetric similarity of two different pixels according to the difference of the neighborhood pixel sequences of two different pixels in the connected domain, and establish a center symmetric similarity set of each pixel in the connected domain according to the center symmetric similarity; obtain the similar feature sequence of the pixel according to the difference of different center symmetric similarities in the center symmetric similarity set of the pixel, and obtain the level similarity of the pixel according to the number of data and value size contained in the similar feature sequence of the pixel;
[0101] The displacement monitoring determination module is used to obtain the adjustment filtering parameters of the pixel points according to the level similarity of the pixel points, the initial filtering parameters, and the initial window length, and use the adjustment filtering parameters of the pixel points as the values of the filtering parameters. The laser spot image is denoised using a non-local average algorithm to obtain a first laser spot image, and the horizontal and vertical displacement distances of the building to be monitored are determined according to the first laser spot image and the initial laser spot image to realize the displacement monitoring of the building.
[0102] Based on the same inventive concept as the above method, an embodiment of the present application also provides a large-scale place displacement monitoring system, including a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the steps of any one of the above-mentioned large-scale place displacement monitoring methods are implemented.
[0103] It is to be understood that the sequence of the embodiments of the present application described above is for description only and does not represent the advantages and disadvantages of the embodiments. The above describes specific embodiments of the present specification. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0104] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0105] The above content is only an implementation method of the present application and is not intended to limit the scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the protection scope of the present application.
Claims
1. A method for monitoring displacement in large places, It is characterized in that The method comprises the following steps: Collecting laser spot images and selecting initial laser spot images; For each laser spot image, a connected domain is obtained, and the initial window length of each pixel in the connected domain is obtained according to the gray value of the pixel in the laser spot image and the distance between the pixels; the center symmetric similarity of two different pixels is obtained according to the gray value distribution of the pixel neighborhood and the difference between the gray value distributions of the neighboring pixels; the similar feature sequence of the pixels is obtained according to the difference in the center symmetric similarity; the level similarity of the pixels is obtained according to the number of data contained in the similar feature sequence of the pixels and the value size; According to the level similarity of the pixel points, the initial filtering parameters, and the initial window length, the adjustment filtering parameters of the pixel points are obtained, and the adjustment filtering parameters of the pixel points are used as the values of the filtering parameters. The laser spot image is denoised using a non-local average algorithm to obtain a first laser spot image. The horizontal and vertical displacement distances of the building to be monitored are determined according to the first laser spot image and the initial laser spot image, thereby realizing the displacement monitoring of the building.
2. A large-scale site displacement monitoring method as claimed in claim 1, It is characterized in that The process of determining the initial window length of the pixel point is: Binarization is performed on the laser spot image to obtain a laser spot binary image; The connected domain analysis is performed on the binary image of the laser spot, and the connected domains containing pixels whose number is less than or equal to the preset threshold are eliminated. The Euclidean distance between the two pixels with the largest Euclidean distance in the same connected domain is recorded as the connected domain length, and the sum of twice the connected domain length and the number 1 is recorded as the initial window length of each pixel in the connected domain.
3. A large-scale site displacement monitoring method as claimed in claim 1, It is characterized in that The method of obtaining the center symmetric similarity of two different pixels according to the gray value distribution of the pixel neighborhood and the difference between the gray value distributions of the neighboring pixels is as follows: For each pixel point in the connected domain, a neighborhood window with a side length of a first preset threshold is established with the pixel point as the center, and the grayscale values of all the pixels contained in the neighborhood window are arranged in ascending order to obtain a neighborhood pixel sequence of the pixel point; According to the difference between the neighborhood pixel sequences of adjacent pixels, the center symmetric similarity of two different pixels is obtained.
4. A large-scale site displacement monitoring method as claimed in claim 3, It is characterized in that The specific process of obtaining the center symmetric similarity of two different pixel points based on the difference between the neighborhood pixel sequences of adjacent pixel points is as follows: For any two different pixels in a connected domain, the distance between the neighborhood pixel sequences of the two different pixels is recorded as the direct distance of the two different pixels, the number of identical grayscale values contained in the neighborhood pixel sequences of the two different pixels is recorded as the neighborhood similarity of the two different pixels, and the ratio of the neighborhood similarity of the two different pixels to the direct distance is recorded as the center-symmetric similarity of the two different pixels.
5. A large-scale site displacement monitoring method as claimed in claim 1, It is characterized in that The specific process of obtaining the similar feature sequence of the pixel points according to the difference in the similarity of the center symmetry is as follows: The set consisting of all the circle-center symmetric similarities of the same pixel and other pixels in the connected domain is recorded as the circle-center symmetric similarity set of the pixel points; All the circle center symmetric similarities contained in the circle center symmetric similarity set of the pixel points are clustered to obtain cluster clusters, the mean of all the circle center symmetric similarities contained in the same cluster cluster is recorded as the cluster cluster mean, the cluster cluster means of all cluster clusters corresponding to the pixel points are arranged in ascending order to obtain the similar feature sequence of the pixel points.
6. A large-scale site displacement monitoring method as claimed in claim 1, It is characterized in that The process of determining the level similarity of the pixel points is as follows: The sum of the squares of all cluster means contained in the similar feature sequence of the pixel points is taken as the level similarity of the pixel points.
7. A large-scale site displacement monitoring method as claimed in claim 1, It is characterized in that According to the pixel level similarity, the initial filtering parameter, and the initial window length, the adjusted filtering parameter of the pixel is obtained, the adjusted filtering parameter of the pixel is used as the value of the filtering parameter, and the laser spot image is denoised using a non-local average algorithm to obtain a first laser spot image. The specific process of obtaining is as follows: The filtering parameters of the pixel points obtained by using the non-local average algorithm are recorded as initial filtering parameters; The ratio of the level similarity of the pixel point to the initial window length of the pixel point is recorded as the first ratio of the pixel point, and the product of the difference between the preset adjustment parameter and the first ratio of the pixel point and the initial filtering parameter is recorded as the adjustment filtering parameter of the pixel point; The adjusted filtering parameters of the pixels are taken as the values of the filtering parameters, and all the pixels included in all the connected domains in the laser spot image are denoised using a non-local average algorithm to obtain a first laser spot image.
8. A large-scale site displacement monitoring method as claimed in claim 1, It is characterized in that The process of determining the distances of the horizontal displacement and the vertical displacement of the building to be monitored according to the first laser spot image and the initial laser spot image to realize the displacement monitoring of the building is as follows: The energy center position of the laser spot in the first laser spot image is calculated using the centroid method, and the Euclidean distance between the energy center position and the laser position in the initial laser spot image is recorded as the spot displacement distance; the Euclidean distance between the laser emitter and the wave plate is recorded as the first distance, the Euclidean distance between the laser emitter and the camera receiving target is recorded as the second distance, and the ratio of the first distance to the second distance is recorded as the second ratio; the product of the second ratio and the spot displacement distance is recorded as the relative displacement of the laser spot image; The laser position in the initial laser spot image is taken as the vertex, the laser position in the initial laser spot image and the ray determined by the laser position in the laser spot image are taken as one side of the angle, the horizontal direction passing through the laser position in the initial laser spot image is taken as the other side of the angle, and the determined acute angle is recorded as the horizontal angle of the laser spot image; The product of the cosine value of the horizontal angle of the laser spot image and the relative displacement of the laser spot image is recorded as the horizontal displacement of the building for displacement monitoring; the product of the sine value of the horizontal angle of the laser spot image and the relative displacement of the laser spot image is recorded as the vertical displacement of the building for displacement monitoring.
9. A large-scale displacement monitoring device, It is characterized in that The displacement monitoring device comprises: The displacement feature data acquisition module is used to collect the laser spot image and select the initial laser spot image; The displacement feature data analysis module is used to obtain the initial window length of each pixel in the connected domain according to the gray value of the pixel in the laser spot image and the distance between the pixels for each laser spot image; establish a neighborhood pixel sequence of the pixel according to the gray value distribution of the pixel neighborhood, obtain the center symmetric similarity of two different pixels according to the difference of the neighborhood pixel sequences of two different pixels in the connected domain, and establish a center symmetric similarity set of each pixel in the connected domain according to the center symmetric similarity; obtain the similar feature sequence of the pixel according to the difference of different center symmetric similarities in the center symmetric similarity set of the pixel, and obtain the level similarity of the pixel according to the number of data and value size contained in the similar feature sequence of the pixel; The displacement monitoring determination module is used to obtain the adjustment filtering parameters of the pixel points according to the level similarity of the pixel points, the initial filtering parameters, and the initial window length, and use the adjustment filtering parameters of the pixel points as the values of the filtering parameters. The laser spot image is denoised using a non-local average algorithm to obtain a first laser spot image, and the horizontal and vertical displacement distances of the building to be monitored are determined according to the first laser spot image and the initial laser spot image to realize the displacement monitoring of the building.
10. A large-scale site displacement monitoring system, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Image processing method, device and equipment and storage medium
CN112734654A
Night bridge dynamic deflection measuring method and device based on LED target
CN116309672A
Method and electronic device for extracting a center position of an infrared spot
US20180357787A1
