Damage image enhancement method for prefabricated steel structure based on image processing
By analyzing the texture and grayscale characteristics of the damage image of the prefabricated steel structure, combined with the CLAHE algorithm, the limiting factor is adaptively determined for image enhancement, which solves the problem of unsatisfactory enhancement effects in traditional methods and improves clarity and realism.
Patent Information
- Application Number
- CN202410262454.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-07
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-03-07
AI Technical Summary
The traditional CLAHE limited contrast adaptive histogram equalization algorithm fails to effectively consider damage characteristics in prefabricated steel structure damage image enhancement, resulting in unsatisfactory enhancement results.
By analyzing the texture features and grayscale features of the damage image of the prefabricated steel structure, the damage transition texture, maintenance texture and lossless maintenance texture of each pixel are obtained, and the damage texture feature vector and degree of dissimilarity are calculated, combined with the CLAHE limited contrast adaptive histogram. The equalization algorithm adaptively determines the limiting factors of each block area for image enhancement.
It improves the clarity and realism of damage images of prefabricated steel structures, ensures the retention of image details, and solves the problem of unsatisfactory enhancement effects caused by improper setting of restriction factors.
Smart Images

Figure CN118247157B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image enhancement, and in particular to a method for enhancing damaged images of assembled steel structures based on image processing. Background Art
[0002] As one of the three major structural systems of prefabricated buildings, prefabricated steel structures have the advantages of good seismic performance, high building quality, simple production, fast construction, green and environmental protection, etc. They have significant application advantages in high-rise residential buildings. However, whether it is the surface damage caused by the collision of the steel structure or the internal damage caused by welding defects, it is easy to develop into initial fatigue cracks, causing fatigue damage and burying major safety hazards. Therefore, timely detection of damage defects in prefabricated steel structures to ensure their safety in use is one of the hot issues in current research.
[0003] The CLAHE limited contrast adaptive histogram equalization image enhancement algorithm can enhance the contrast of prefabricated steel structure images while suppressing noise, which is convenient for subsequent damage detection of prefabricated steel structures. However, the traditional CLAHE limited contrast adaptive histogram equalization image enhancement algorithm does not take into account the damage characteristics of prefabricated steel structure images, and the limiting factor is improperly set, resulting in unsatisfactory enhancement effect of prefabricated steel structure damage images.
[0004] In summary, the present invention proposes a method for enhancing the damaged image of a prefabricated steel structure based on image processing. The limiting factors of each area of the damaged image of the prefabricated steel structure are obtained by analyzing the texture features and grayscale features of the damaged image of the prefabricated steel structure. The damaged image of the prefabricated steel structure is enhanced by combining the limiting factors with the CLAHE limited contrast adaptive histogram equalization algorithm. The detailed information of the damaged image of the prefabricated steel structure is retained, and the clarity of the image enhancement is improved. Summary of the invention
[0005] In order to solve the above technical problems, the present invention provides a method for enhancing damaged images of prefabricated steel structures based on image processing to solve the existing problems.
[0006] The method for enhancing the damaged image of a prefabricated steel structure based on image processing of the present invention adopts the following technical solutions:
[0007] An embodiment of the present invention provides a method for enhancing damaged images of prefabricated steel structures based on image processing, the method comprising the following steps:
[0008] Collect damage images of prefabricated steel structures;
[0009] Obtain the LBP feature descriptor of each pixel; obtain the damage transition texture, damage preservation texture and lossless preservation texture of each pixel according to the LBP feature descriptor of each pixel; obtain the damage texture feature vector of each pixel according to the distribution of the damage transition texture, damage preservation texture and lossless preservation texture of each pixel; obtain the damage texture distinction between pixels according to the damage texture feature vector of each pixel and the degree of difference between pixels in the neighborhood; obtain the neighborhood disorder degree of each pixel according to the damage texture distinction between pixels in the neighborhood;
[0010] Obtain the suspected damage characteristic value of each pixel point according to the neighborhood disorder and grayscale characteristics of each pixel point; obtain the binary image of the assembled steel structure; obtain the steel structure damage characteristic image by combining the suspected damage characteristic value of each pixel point with the binary image of the assembled steel structure; obtain the steel structure pixel points in the steel structure damage characteristic image, and divide the steel structure damage characteristic image into blocks to obtain each block area;
[0011] The damage degree of the steel structure in each area is obtained according to the discrete degree of the steel structure pixel points in each area; the suspected damaged pixels in each area are obtained; the limiting factor of each area is obtained according to the damage degree of the steel structure in each area and the proportion of suspected damaged pixels; the damaged image of the prefabricated steel structure is enhanced by combining the limiting factor of each area and the limited contrast adaptive histogram equalization algorithm.
[0012] Preferably, obtaining the damage transition texture, damage preservation texture and lossless preservation texture of each pixel point according to the LBP feature descriptor of each pixel point includes:
[0013] The jump from 0 to 1 and from 1 to 0 in the LBP feature descriptor of each pixel is regarded as the damage transition texture, two consecutive 0s are regarded as the damage preservation texture, and two consecutive 1s are regarded as the lossless preservation texture.
[0014] Preferably, obtaining the damage texture feature vector of each pixel point according to the distribution of the damage transition texture, the damage preservation texture and the lossless preservation texture of each pixel point includes:
[0015] The number of occurrences of damage transition texture, damage preservation texture and lossless preservation texture in the LBP feature descriptor of each pixel is counted as the damage texture feature vector of each pixel.
[0016] Preferably, the damage texture distinction between pixels is obtained according to the damage texture feature vector of each pixel and the difference between pixels in the neighborhood, and the expression is:
[0017]
[0018] In the formula, DW(x i ,x j) is the pixel x i With pixel x j The damage texture distinction between i ) is the pixel x i The damage texture feature vector, LWV(x j ) is the pixel x j The damage texture feature vector, DO(LWV(x i ),LWV(x j )) represents pixel x i and pixel x j The Euclidean distance of the damage texture feature vector; LBP(x i ) is the pixel x i The LBP feature descriptor, LBP(x j ) is the pixel x j The LBP feature descriptor, DH(LBP(x i ),LBP(x j )) represents pixel x i With pixel x j The Hamming distance of the LBP feature descriptor, m is the neighborhood size obtained when calculating the LBP feature descriptor of each pixel.
[0019] Preferably, obtaining the neighborhood disorder degree of each pixel point according to the damage texture distinction between pixels in the neighborhood includes: taking the average of the damage texture distinction between all pixels in the neighborhood of the pixel point as the neighborhood disorder degree of each pixel point.
[0020] Preferably, obtaining the suspected damage feature value of each pixel point according to the neighborhood disorder and grayscale characteristics of each pixel point includes:
[0021] For each pixel point, the grayscale mean of all pixels in the neighborhood is calculated, the grayscale mean of all pixels in the damaged image of the prefabricated steel structure is calculated, the sum of the absolute value of the difference between the two grayscale means and the neighborhood disorder of the pixel point is calculated, the inverse of the sum is used as the exponent of an exponential function with a natural constant as the base, and the inverse of the result calculated by the exponential function is used as the suspected damage characteristic value of each pixel point.
[0022] Preferably, the combining of the suspected damage characteristic value of each pixel point and the binary image of the assembled steel structure to obtain the steel structure damage characteristic image includes:
[0023] The product of the pixel value of each pixel point in the binary image of the assembled steel structure and the suspected damage characteristic value corresponding to each pixel point is calculated, and the product is used as the pixel value of each pixel point in the steel structure damage characteristic image.
[0024] Preferably, the damage degree of the steel structure in each block area is obtained according to the discrete degree of the steel structure pixel points in each block area, and the expression is:
[0025]
[0026] Where GSG is the damage degree of the steel structure in the block area, σ GP is the standard deviation of the suspected damage characteristic values of all steel structure pixels in the block area, is the mean pixel value of all steel structure pixels in the block area, It is the mean distance between all steel structure pixels in the block area.
[0027] Preferably, the step of obtaining suspected damaged pixel points in each area includes:
[0028] A threshold is set, and for each block area, pixels whose suspected damage feature values are greater than the threshold are defined as suspected damage pixels.
[0029] Preferably, the step of obtaining the restriction factor of each area according to the damage degree of the steel structure and the proportion of suspected damaged pixels in each area specifically includes:
[0030] For each block area, the ratio of suspected damaged pixels to all pixels in the block area is calculated, the ratio of the degree of damage to the steel structure to the ratio is calculated, the inverse of the ratio is used as the exponent of an exponential function with a natural constant as the base, and the inverse of the result calculated by the exponential function is used as the limiting factor of each block area.
[0031] The present invention has at least the following beneficial effects:
[0032] The present invention mainly enhances the damaged image of the assembled steel structure through the grayscale features in the image of the assembled steel structure and the texture features of the damaged parts, obtains the limiting factors of each block area of the damaged image of the assembled steel structure, and combines the CLAHE limited contrast adaptive histogram equalization algorithm to realize the enhanced image of the assembled steel structure, thereby improving the clarity and authenticity of the enhanced image of the assembled steel structure damage;
[0033] Furthermore, the present invention obtains the damage texture distinction between pixels according to the texture features of the damaged area in the grayscale image of the prefabricated steel structure, obtains the suspected damage feature value of each pixel according to the damage texture distinction and the grayscale features of the pixel, thereby obtaining the steel structure damage degree of each block area of the prefabricated steel structure damage image, and finally adaptively determines the restriction factor of each block area, thereby improving the reliability of the restriction factor value; the prefabricated steel structure damage image is enhanced according to the restriction factors of all block areas, thereby improving the enhancement effect of the prefabricated steel structure damage image, and solving the problem that the enhancement effect of the prefabricated steel structure damage image is not ideal due to improper setting of the restriction factor. The present invention has the beneficial effects of high image enhancement clarity, high authenticity, and retaining complete image detail information. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0035] Figure 1 A flowchart of a method for enhancing damaged images of prefabricated steel structures based on image processing according to an embodiment of the present invention;
[0036] Figure 2 Get a flow chart for the indicator;
[0037] Figure 3 This is a schematic diagram of the assembled steel structure. DETAILED DESCRIPTION
[0038] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of the prefabricated steel structure damage image enhancement method based on image processing proposed by the present invention 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.
[0039] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0040] The specific scheme of the method for enhancing damaged images of prefabricated steel structures based on image processing provided by the present invention is described in detail below with reference to the accompanying drawings.
[0041] See also Figure 1 , which shows a flowchart of a method for enhancing damaged images of prefabricated steel structures based on image processing according to an embodiment of the present invention, the method comprising the following steps:
[0042] Step S001: acquiring a damaged image of a prefabricated steel structure through an image acquisition device, and preprocessing the damaged image of the prefabricated steel structure to acquire a damaged grayscale image of the prefabricated steel structure.
[0043] Specifically, first, this embodiment will use an industrial camera to obtain a surface RGB image of the prefabricated steel structure damage under uniform light conditions as a data source for enhancing the prefabricated steel structure damage image. It should be noted that there are many methods for obtaining the prefabricated steel structure damage image. The specific image acquisition method can be implemented by the existing technology and is not within the scope of protection of this embodiment, and no detailed description will be given.
[0044] Then, the damaged image of the prefabricated steel structure is converted into a grayscale image using the average value method. Secondly, the damaged grayscale image of the prefabricated steel structure is denoised using a guided filtering denoising algorithm to remove noise interference. Since the average value method and the guided filtering denoising algorithm are both existing well-known technologies, they will not be described in detail here.
[0045] At this point, the damaged grayscale image of the prefabricated steel structure can be obtained according to the above method of this embodiment, which serves as the data basis for subsequent enhanced image of the damaged prefabricated steel structure.
[0046] Step S002: construct a neighborhood disorder index of the pixel points according to the difference in texture features between the pixel points in the grayscale image of the prefabricated steel structure damage, comprehensively consider the neighborhood disorder of the pixel points and the degree of difference in the grayscale value of the entire prefabricated steel structure damage image, obtain the suspected damage characteristic value of each pixel point, obtain the steel structure damage characteristic image, divide the steel structure damage characteristic image into blocks, and calculate the degree of steel structure damage in different block areas.
[0047] Specifically, this embodiment will construct a neighborhood disorder index of a pixel point based on the difference in texture features between each pixel point in the pixel point neighborhood in the prefabricated steel structure damage image, and then comprehensively consider the damage features such as rust on the surface of the prefabricated steel structure, weld cracking, and the structural features of the connection nodes fixed by bolts. According to the neighborhood disorder of the pixel point and the degree of difference from the grayscale value of the entire prefabricated steel structure damage image, the suspected damage feature value of each pixel point is obtained, and then the steel structure damage feature image is obtained, thereby improving the reliability of determining the suspected damage pixel points; the steel structure damage feature image is divided into blocks, and the degree of steel structure damage in each block area is calculated. The specific indicator acquisition flow chart is as follows: Figure 2 The construction process of the steel structure damage degree of each area in the prefabricated steel structure damage image is as follows:
[0048] First of all, the assembled steel structure is composed of prefabricated steel components assembled by welding, bolts or rivets. The connection nodes often play a decisive role in the performance of the structure, such as bearing capacity, structural stiffness, and seismic performance. However, due to construction reasons, material size tolerances, bolt quality and other issues, bolt loosening, missing and other damages often occur. Therefore, the common surface damage of assembled steel structures mainly includes surface rust of components, cracking of welds, loosening and missing bolts, etc. For areas prone to damage, the damage features in the image should be retained as much as possible.
[0049] Whether it is the damaged area such as rust on the surface of the assembled steel structure, cracked welds, or the connection nodes fixed by bolts, the regional texture is relatively messy. The texture features of the area where the pixel is located are obtained according to the LBP feature descriptor of the pixel point. The schematic diagram of the assembled steel structure is shown in Figure 3 shown.
[0050] The grayscale value of the damaged area on the surface of the prefabricated steel structure is different from that of the normal undamaged area. For each pixel point, an m×m neighborhood of each pixel point is taken. In this embodiment, m=3, which can be set by the implementer. The jump from 0 to 1 and the jump from 1 to 0 in the LBP feature descriptor of the pixel point in the m×m neighborhood are recorded as damage transition texture, two consecutive 0s are recorded as damage preservation texture, and two consecutive 1s are recorded as lossless preservation texture. The number of occurrences of damage transition texture, damage preservation texture and lossless preservation texture in the LBP feature descriptor of each pixel point is counted to form a damage texture feature vector LWV(x)=[JW(x)SK(x)WK(x)] of each pixel point x, where JW(x) is the number of occurrences of damage transition texture in the LBP feature descriptor of pixel point x, SK(x) is the number of occurrences of damage preservation texture in the LBP feature descriptor of pixel point x, and WK(x) is the number of occurrences of lossless preservation texture in the LBP feature descriptor of pixel point x.
[0051] According to the difference in texture features between two pixels in the grayscale image of the assembled steel structure, the difference in texture between the two pixels is obtained. For the x pixel, a neighborhood window of l×l is taken. In this embodiment, l=9. The implementer can set it according to the actual situation. The i-th pixel x in the neighborhood window of the pixel x is calculated. i and the jth pixel x j The damage texture distinction between the two is specifically expressed as:
[0052]
[0053] In the formula, DW(x i ,x j ) is the pixel x i With pixel x jThe damage texture distinction between i ) is the pixel x i The damage texture feature vector, LWV(x j ) is the pixel x j The damage texture feature vector, DO(LWV(x i ),LWV(x j )) represents pixel x i and pixel x j The Euclidean distance of the damage texture feature vector; LBP(x i ) is the pixel x i The LBP feature descriptor, LBP(x j ) is the pixel x j The LBP feature descriptor, DH(LBP(x i ),LBP(x j )) represents pixel x i With pixel x j The Hamming distance of the LBP feature descriptor, m is the neighborhood size obtained when calculating the LBP feature descriptor of each pixel.
[0054] The LBP feature descriptor of a pixel represents the texture features around the pixel. When the Hamming distance between the LBP feature descriptors of two pixels is larger, it means that the texture features around the two pixels are more different, and the damage texture distinction value of the two pixels is larger. The damage texture feature vector of a pixel represents the texture jump feature around the pixel. When the Euclidean distance between the damage texture feature vectors of two pixels is larger, it means that the texture jump feature around the two pixels is more different, and the damage texture distinction value of the two pixels is larger.
[0055] The degree of disorder of the texture of the area where the pixel point is located is used as one of the criteria for judging whether the pixel point is in an area prone to damage. A neighborhood window of size l×l is constructed with the pixel point x as the center. In this embodiment, l=9, and the implementer can set it according to the actual situation. Then, the neighborhood disorder of the pixel point x in the grayscale image of the assembled steel structure can be expressed as the mean value of the damage texture distinction between the pixels in the neighborhood window of the pixel point x, that is, the neighborhood disorder of the pixel point x When the damage texture distinction value between pixels in the neighborhood window of pixel point x is larger, it means that the texture features of the area where pixel point x is located are more different and the neighborhood disorder value is larger.
[0056] Since surface damage such as surface rust and weld cracking is often different from the color of normal undamaged areas, and the regional texture is relatively messy, the difference between the grayscale value of the area where the pixel point is located and the entire image is used as another criterion for judging whether the pixel point is in an area prone to damage. The suspected damage feature value of the pixel point x in the grayscale image of the prefabricated steel structure is calculated by combining the degree of texture disorder in the area where the pixel point is located and the degree of difference in grayscale value from the entire image. The specific expression of the suspected damage feature value is:
[0057]
[0058] Where DST(x) is the suspected damage feature value of pixel x, LCG(x) is the neighborhood disorder of pixel x, is the mean gray value in the neighborhood window of pixel point x, It is the mean gray value of all pixels in the gray image of the prefabricated steel structure.
[0059] The neighborhood disorder of a pixel represents the disorder of the texture in the area where the pixel is located. The surface of a normal, undamaged steel structure is often relatively smooth. The greater the neighborhood disorder of a pixel, the more likely the pixel is to be in a suspected damage area, and the larger the suspected damage characteristic value of the pixel. The greater the difference between the mean grayscale value of the area where the pixel is located and the mean grayscale value of all pixels in the entire image, the more different the grayscale characteristics of the area where the pixel is located are from the overall image, and the more likely it is to be a suspected damage area, and the larger the suspected damage characteristic value of the pixel.
[0060] According to the above method, the suspected damage feature values of all pixels in the grayscale image of the prefabricated steel structure are calculated to obtain the suspected damage feature image DSPh.
[0061] In order to eliminate the influence of the background of the prefabricated steel structure, before analyzing the suspected damage feature image, the OTSU threshold method is used to obtain the optimal segmentation threshold for the grayscale image of the prefabricated steel structure, and the prefabricated steel structure is segmented to obtain a segmented binary image. Only the prefabricated steel structure is retained, and the background is removed to obtain the steel structure damage feature image GPh. The pixel value of the pixel point x in the steel structure damage feature image is GPh(x)=DSPh(x)×B(x), where DSPh(x) is the pixel value of the pixel point x in the suspected damage feature image, and B(x) is the pixel value of the pixel point x in the segmented binary image. The pixel value of the pixel point in the steel structure damage feature image represents the possibility of damage in the area where the pixel point is located. The pixel value of the pixel point in the background area is 0, and the pixel points with non-0 pixel values in the steel structure damage feature image are recorded as steel structure pixels.
[0062] Prefabricated steel structures are usually large in overall size, but the damaged area is relatively small. If the damaged image of the prefabricated steel structure is enhanced directly, the damaged area will be smoothed, resulting in the loss of damage features. The steel structure damage feature image is first divided into N blocks on average to obtain N block areas. Different areas of the prefabricated steel structure damage image are enhanced to different degrees according to the damage features in the block area. In this embodiment, N=100, and the implementer can set it according to the situation. The damage degree of the steel structure in the block area is calculated based on the standard deviation and mean of the pixel values of all steel structure pixels in the block area. The specific expression of the steel structure damage degree is:
[0063]
[0064] Where GSG is the damage degree of the steel structure in the block area, σ GP is the standard deviation of the suspected damage characteristic values of all steel structure pixels in the block area, is the mean pixel value of all steel structure pixels in the block area, It is the mean distance between all steel structure pixels in the block area.
[0065] When the mean value of the pixel values of all the steel structure pixels in the block area is larger, it means that the damage characteristic value in the block area is larger, the possibility of damage is greater, and the degree of damage to the steel structure is higher; when the standard deviation of the pixel values of all the steel structure pixels in the block area is larger, it means that the damage characteristics in the block area are more different, the complexity of the damage is higher, and the degree of damage to the steel structure is higher; when the distance between the steel structure pixels in the block area is larger, it means that the distribution of the steel structure pixels is more discrete, the possibility of being a steel structure damage area is smaller, and the degree of damage to the steel structure is lower.
[0066] Step S003, according to the damage degree of the steel structure and the proportion of suspected damaged pixels in different block areas, the restriction factor of the block area is adaptively determined, and the damaged image of the prefabricated steel structure is enhanced according to the restriction factor of each block area.
[0067] The basic idea of the CLAHE limited contrast adaptive histogram equalization image enhancement algorithm is to broaden the grayscale of the image with a large number of pixels and reduce the grayscale of the image with a small number of pixels. Thereby achieving the purpose of a clear image. When the limiting factor is small, and the degree of damage to the steel structure is large and the damaged area is small, the grayscale of the damaged area will be reduced to make the damaged area smooth and lose the characteristics of the damaged area. Set a threshold t. When the suspected damage feature value of a pixel in the grayscale image of the prefabricated steel structure is greater than the threshold t, the pixel is judged to be a suspected damaged pixel, indicating that the pixel is in a suspected damaged area. In this embodiment, the threshold t = 0.6, and the implementer can set it according to the situation. According to the degree of damage to the steel structure in the block area and the proportion of suspected damaged pixels, the limiting factor of each block area is obtained. The specific expression is:
[0068]
[0069] Where, clipLimit is the limiting factor in the block area, GSG is the damage degree of the steel structure in the block area, and Per is the proportion of suspected damaged pixels in the block area.
[0070] The proportion of suspected damaged pixels in the block area represents the area proportion of the damaged area. When the degree of damage to the steel structure in the block area is greater and the area proportion of the damaged area is smaller, a larger limiting factor should be set to prevent over-enhancement and smooth the damaged area.
[0071] For each block area, when the ratio of the number of pixels at each grayscale level in the grayscale histogram to the total number of pixels in the block area is greater than the limiting factor, the pixel values are reallocated for the pixels greater than the limiting factor until the ratio of the number of pixels at all grayscale levels in the grayscale histogram to the total number of pixels in the block area is less than or equal to the limiting factor.
[0072] After the contrast-limited adaptive histogram equalization processing, there is an obvious difference in the grayscale value at the image boundary, so it is necessary to eliminate the boundary through bilinear interpolation. At this point, the enhancement of the damaged image of the prefabricated steel structure is completed. The bilinear interpolation method and the CLAHE contrast-limited adaptive histogram equalization algorithm are both existing well-known technologies, and this embodiment will not be repeated here.
[0073] In summary, the embodiments of the present invention solve the problem that the CLAHE limited contrast adaptive histogram equalization algorithm leads to unsatisfactory enhancement effect of the damaged image of the prefabricated steel structure due to improper setting of the limiting factor. By combining the grayscale characteristics and texture characteristics of the damaged image of the prefabricated steel structure, the authenticity and clarity of the enhanced damaged image of the prefabricated steel structure are improved.
[0074] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The above is a description of a specific embodiment of this 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.
[0075] 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.
[0076] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for enhancing damaged images of prefabricated steel structures based on image processing, characterized in that: The method comprises the following steps: Collect damage images of prefabricated steel structures; Obtain the LBP feature descriptor of each pixel; obtain the damage transition texture, damage preservation texture and lossless preservation texture of each pixel according to the LBP feature descriptor of each pixel; obtain the damage texture feature vector of each pixel according to the distribution of the damage transition texture, damage preservation texture and lossless preservation texture of each pixel; obtain the damage texture distinction between pixels according to the damage texture feature vector of each pixel and the degree of difference between pixels in the neighborhood; obtain the neighborhood disorder degree of each pixel according to the damage texture distinction between pixels in the neighborhood; Obtain the suspected damage characteristic value of each pixel point according to the neighborhood disorder and grayscale characteristics of each pixel point; obtain the binary image of the assembled steel structure; obtain the steel structure damage characteristic image by combining the suspected damage characteristic value of each pixel point with the binary image of the assembled steel structure; obtain the steel structure pixel points in the steel structure damage characteristic image, and divide the steel structure damage characteristic image into blocks to obtain each block area; The damage degree of the steel structure in each area is obtained according to the discrete degree of the steel structure pixel points in each area; the suspected damaged pixel points in each area are obtained; the limiting factor of each area is obtained according to the damage degree of the steel structure in each area and the proportion of the suspected damaged pixel points; the damaged image of the prefabricated steel structure is enhanced by combining the limiting factor of each area and the limited contrast adaptive histogram equalization algorithm; The damage texture distinction between pixels is obtained based on the damage texture feature vector of each pixel and the degree of difference between pixels in the neighborhood, and the expression is: In the formula, DW(x i , x j ) is the pixel x i With pixel x j The damage texture difference between i ) is the pixel x i The damage texture feature vector, LWV(x i ) is the pixel x j The damage texture feature vector, DO(LWV(x i ), LWV(x j )) represents pixel x i and pixel x j The Euclidean distance of the damage texture feature vector; LBP(x i ) is the pixel x i The LBP feature descriptor, LBP(x j ) is the pixel x j The LBP feature descriptor, DH(LBP(x i ), LBP(x j )) represents pixel x i With pixel x j The Hamming distance of the LBP feature descriptor, m is the neighborhood size obtained when calculating the LBP feature descriptor of each pixel; The damage degree of the steel structure in each area is obtained according to the discrete degree of the steel structure pixel points in each area, and the expression is: Where GSG is the damage degree of the steel structure in the block area, σ GP is the standard deviation of the suspected damage characteristic values of all steel structure pixels in the block area, is the mean pixel value of all steel structure pixels in the block area, It is the mean distance between all steel structure pixels in the block area.
2. The method for enhancing damaged images of prefabricated steel structures based on image processing according to claim 1 is characterized in that: The method of obtaining the damaged transition texture, the damaged preserving texture and the lossless preserving texture of each pixel point according to the LBP feature descriptor of each pixel point includes: The jump from 0 to 1 and from 1 to 0 in the LBP feature descriptor of each pixel is regarded as the damage transition texture, two consecutive 0s are regarded as the damage preservation texture, and two consecutive 1s are regarded as the lossless preservation texture.
3. The method for enhancing damaged images of prefabricated steel structures based on image processing according to claim 1 is characterized in that: The damage texture feature vector of each pixel point is obtained according to the distribution of the damage transition texture, the damage preservation texture and the lossless preservation texture of each pixel point, including: The number of occurrences of damage transition texture, damage preservation texture and lossless preservation texture in the LBP feature descriptor of each pixel is counted as the damage texture feature vector of each pixel.
4. The method for enhancing damaged images of prefabricated steel structures based on image processing according to claim 1 is characterized in that: The obtaining of the neighborhood disorder degree of each pixel point according to the damage texture distinction between the pixels in the neighborhood includes: The average value of the damage texture distinction between all pixels in the pixel neighborhood is taken as the neighborhood disorder of each pixel.
5. The method for enhancing damaged images of prefabricated steel structures based on image processing according to claim 1, characterized in that: The suspected damage feature value of each pixel is obtained according to the neighborhood disorder and grayscale characteristics of each pixel, including: For each pixel point, the grayscale mean of all pixels in the neighborhood is calculated, the grayscale mean of all pixels in the damaged image of the prefabricated steel structure is calculated, the sum of the absolute value of the difference between the two grayscale means and the neighborhood disorder of the pixel point is calculated, the inverse of the sum is used as the exponent of an exponential function with a natural constant as the base, and the inverse of the result calculated by the exponential function is used as the suspected damage characteristic value of each pixel point.
6. The method for enhancing damaged images of prefabricated steel structures based on image processing according to claim 1, characterized in that: The steel structure damage feature image is obtained by combining the suspected damage feature value of each pixel point with the binary image of the assembled steel structure, including: The product of the pixel value of each pixel point in the binary image of the assembled steel structure and the suspected damage characteristic value corresponding to each pixel point is calculated, and the product is used as the pixel value of each pixel point in the steel structure damage characteristic image.
7. The method for enhancing damaged images of prefabricated steel structures based on image processing according to claim 1, characterized in that: The step of obtaining suspected damaged pixel points in each area includes: A threshold is set, and for each block area, pixels whose suspected damage feature values are greater than the threshold are defined as suspected damage pixels.
8. The method for enhancing damaged images of prefabricated steel structures based on image processing according to claim 1 is characterized in that: The specific method of obtaining the limiting factor of each area according to the damage degree of the steel structure in each area and the proportion of suspected damaged pixels is as follows: For each block area, the ratio of suspected damaged pixels to all pixels in the block area is calculated, the ratio of the degree of damage to the steel structure to the ratio is calculated, the inverse of the ratio is used as the exponent of an exponential function with a natural constant as the base, and the inverse of the result calculated by the exponential function is used as the limiting factor of each block area.
Citation Information
Patent Citations
Texture feature clustering-based locomotive wheelset tread damage detection method
CN106683076A
Steel structure welding crack defect detection method based on image processing technology
CN113989280A
Rapid pump bearing fault identification method
CN115019159A
Aero-engine hole detection image damage intelligent identification method based on deep learning
WO2020119103A1
Rock mass structure detection and dangerous rock detection system and method
WO2021135157A1
