A method for detecting crack tip and propagation path in DIC speckle images
By using zero-mean normalized cross-correlation coefficients and reconstructed models for super-resolution processing in DIC technology, the problem of speckle matching failure in DIC technology during crack cracking is solved, and accurate detection of crack tips and expansion paths is achieved, improving Improves measurement efficiency and data reliability in fatigue testing.
Patent Information
- Application Number
- CN202410951862.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-16
AI Technical Summary
Existing crack measurement methods have low efficiency and large data errors in fatigue tests. In particular, DIC technology fails in speckle matching when cracks open, making it difficult to accurately detect crack tips and expansion paths.
A detection method based on zero-mean normalized cross-correlation coefficient is used, combined with reconstruction and active degradation model for super-resolution, to amplify the path characteristics at the crack tip, and construct a crack expansion path coordinate system through preprocessing and skeleton extraction, and output the crack expansion path .
It can accurately detect sub-pixel level crack characteristics invisible to the human eye, draw the crack tip and expansion path, and reduce recognition errors. It is suitable for the detection of tiny cracks in DIC speckle images.
Smart Images

Figure CN118505684B
Abstract
Description
Technical Field
[0001] The present application relates to a method for detecting a crack tip and a propagation path in a DIC speckle image, and belongs to the technical field of optical measurement of fracture mechanics. Background Art
[0002] Accurate measurement of crack growth parameters is the key to ensuring the research of material fracture performance. In the problem of fatigue failure, the damage accumulation process at the crack tip and the evolution process of stress and strain influence and couple each other, which has been the focus of research in the field of material mechanics for many years. At present, the main measurement methods of crack growth parameters can be divided into traditional methods, image processing methods and deep learning methods.
[0003] Visual inspection is one of the traditional methods for measuring crack length. Although it is simple to operate, the manual measurement method leads to low measurement efficiency and large data errors. Traditional acoustic emission technology cannot track the crack expansion process and is easily interfered by noise. In addition, both of the above methods are difficult to apply to fatigue tests with large amounts of data. Traditional methods for long-term fatigue tests include automated methods such as flexibility method, potential difference method, eddy current method, and strain-based detection method. However, the calculation instability of the flexibility method and the potential difference method is large, and it is difficult to ensure the reliability of the measurement data. The eddy current method can only be used for ferromagnetic specimens with regular shapes and smooth surfaces, while traditional strain-based methods often use strain gauges for measurement. Since the position of the strain gauge is fixed, it can only detect the existence of cracks, and cannot accurately measure the position and expansion parameters of the cracks.
[0004] In recent years, the relevant theories of computer vision and pattern recognition have developed rapidly, and many researchers have proposed various types of video measurement methods, including the use of edge detection algorithms such as wavelet transform, Fourier transform, Canny operator, Sobel filter, etc. to detect crack shape. However, it is difficult to filter out the interference of other high-frequency information in the image by simply using edge detection algorithms, and a large amount of human-computer interaction is still required to achieve a relatively ideal detection effect. At present, a more effective method is to combine digital image correlation (DIC) with various pattern recognition algorithms to assist in measuring the crack shape and various physical fields in its vicinity.
[0005] Digital image correlation (DIC) is widely used in various mechanical measurement fields. However, crack opening leads to a decrease in the correlation of crack edges in the region of interest (ROI), which makes speckle matching ineffective. This has always hindered the application of DIC in crack measurement. The measurement object used by the DIC algorithm is a deformed surface encoded by random speckle. However, for industrial grayscale cameras, speckle features and crack features are easily confused, making it difficult to use traditional image recognition and segmentation methods to detect crack size, shape, tip and extension path. Therefore, proposing a detection method for crack tip and extension path in DIC speckle images is an important step in applying DIC technology to fracture mechanics tests. Summary of the invention
[0006] According to one aspect of the present application, a method for detecting crack tips and extension paths in DIC speckle images is provided. The method can identify sub-pixel level crack features on the image that are invisible to the human eye, thus solving the problem of detecting tiny crack features.
[0007] A method for detecting crack tips and propagation paths in a DIC speckle image, characterized in that a micro crack in a DIC speckle image of a DIC measurement surface encoded with a random speckle pattern and having crack propagation is detected, the detection method comprising:
[0008] S1. Select a reference frame as a reference image in the time series, calculate the optimized zero-mean normalized cross-correlation coefficient between the image to be detected and the reference image point by point in the region of interest, and obtain the cross-correlation coefficient field of the region of interest, so as to locate the position and path of the crack;
[0009] S2. super-resolving the mutual correlation coefficient field based on the reconstruction and active degradation model to amplify the path characteristics of the micro-cracks at the crack tip;
[0010] S3, preprocessing the super-resolved cross-correlation coefficient field to obtain the preprocessed crack propagation path, mapping the preprocessed crack propagation path back to the DIC speckle image to be detected to obtain the degraded cross-correlation coefficient field, and constructing a crack propagation path coordinate system to output the crack propagation path.
[0011] Furthermore, the S1 includes:
[0012] S11, selecting a reference image for the current measurement frame of the DIC speckle image to be detected, wherein the first image of the current measurement frame is selected as the reference image;
[0013] S12, drawing the region of interest according to the location of the prefabricated crack;
[0014] S13. In the region of interest, the speckle coarse-fine matching algorithm of the digital image correlation method is used point by point, the first-order shape function model is used to describe the deformation of the sub-region, and the zero-mean normalized mutual function is used as the correlation index to construct the optimized cost function;
[0015] S14. Optimize the optimal deformation coefficient and its corresponding optimized zero-mean normalized cross-correlation coefficient through Gauss-Newton iteration to obtain the cross-correlation coefficient field of the region of interest.
[0016] Furthermore, in S2, super-resolution of the cross-correlation coefficient field is performed based on the reconstruction and active degradation model, including:
[0017] S21, using an n×n Gaussian convolution kernel to downsample the DIC speckle image to be detected, perform Gaussian blurring, and add Gaussian noise and salt and pepper noise to obtain a degraded low-resolution and low-quality image;
[0018] S22, using an n×n up-convolution kernel to super-resolve the degraded low-quality image into the size of the DIC speckle image to be detected, calculating the structural similarity between the current super-resolved image and the DIC speckle image to be detected, and using it as the cost function of the optimization algorithm;
[0019] S23, optimizing the up-convolution kernel by using LM iteration to obtain an optimal up-sampling convolution kernel corresponding to the current image structure;
[0020] S24. Up-sampling the DIC speckle image to be detected using an optimal up-sampling convolution kernel to obtain a super-resolution image after super-resolution cross-correlation coefficient field.
[0021] Furthermore, in S3, the super-resolved cross-correlation coefficient field is preprocessed, including:
[0022] (1) Binarize the cross-correlation field after super-resolution:
[0023] Arranging the super-resolved cross-correlation coefficient field by rows, and counting the mean and variance values of all cross-correlation coefficients in the cross-correlation coefficient field;
[0024] Calculate the Z-score of each pixel point by point;
[0025] Binarize the cross-correlation coefficient field according to the Z-score of each pixel point, and when the Z-score>2, set the value of the current pixel point to 1, otherwise set it to 0;
[0026] Perform morphological expansion and corrosion operations on the super-resolution image after binary processing to eliminate noise and only retain the binary features near the cracks;
[0027] (2) Extract skeleton from the binary image:
[0028] The Zhang-Suen thinning algorithm is used to extract the skeleton of the super-resolution image after the expansion and corrosion operation to obtain the skeleton line of the single pixel.
[0029] Furthermore, in S3, the pre-processed crack propagation path is mapped back to the DIC speckle image to be detected to obtain a degraded mutual correlation coefficient field, and a crack propagation path coordinate system is constructed to output the crack propagation path, including:
[0030] S31, mapping the coordinate position of the single-pixel crack extension path obtained after skeleton extraction to the region of interest of the size of the DIC speckle image to be detected according to the aspect ratio of the super-resolution enlarged region of interest, wherein the coordinate of the crack extension path is expressed in sub-pixels;
[0031] S32, mapping the coordinate position of the crack propagation path represented by sub-pixels to the position of the DIC speckle image to be detected according to the upper boundary, length and width of the region of interest;
[0032] S33, selecting a reference speckle patch on the reference image, constructing a crack extension coordinate system with the center of the reference speckle patch as the origin, identifying the origin coordinates in the DIC speckle image to be detected according to the digital image correlation method, and extracting the endpoint coordinates of the crack extension path as the coordinates of the crack tip position;
[0033] S34. Output the identified crack tip coordinates in time series order to obtain the crack propagation path.
[0034] Furthermore, in S13, the speckle coarse-fine matching algorithm of the digital image correlation method is used point by point, a first-order shape function model is used to describe the deformation of the sub-area, and an optimized cost function is constructed with a zero-mean normalized mutual function as a correlation index, which is expressed by the following calculation:
[0035] ;
[0036] ;
[0037] ;
[0038] ;
[0039] ;
[0040] in, represents the zero-mean normalized cross-correlation value;
[0041] M represents the size of the half-subregion;
[0042] f represents the reference image pixel value;
[0043] g represents the pixel value of the deformed image;
[0044] i, j represent the row and column numbers;
[0045] are the pixel coordinates in the reference image;
[0046] are the pixel coordinates in the deformed image;
[0047] The reference image The pixel value of the position;
[0048] It is a deformable image The pixel value of the position;
[0049] represents the mean pixel value of the reference sub-area;
[0050] represents the mean pixel value of the deformation sub-area;
[0051] represents the reference sub-area pixel variance;
[0052] represents the pixel variance of the deformation sub-area;
[0053] In the speckle deformation image, a first-order shape function is used to perform deformation mapping of pixels:
[0054] ;
[0055] Among them, (m i ,n i ) represents the coordinates of the center point of the reference sub-area;
[0056] (M', N') represents the coordinates of the center point of the deformation sub-region;
[0057] represents the deviation between the center point of the reference sub-area and the center point of the deformation sub-area;
[0058] Represent the translation parameters in the x-direction and y-direction respectively;
[0059] Represent the expansion and contraction parameters in the x-direction and y-direction respectively;
[0060] Represent the distortion deformation parameters in the x and y directions respectively.
[0061] The super-resolution image is represented as: ;
[0062] in, is the super-resolution image sub-region;
[0063] is the crack coordinate;
[0064] for The grayscale value of the integer pixel position of the convolution sub-area, It is a degraded low-resolution image;
[0065] is the deviation of the sub-pixel coordinate relative to the integer pixel coordinate;
[0066] is the upsampling convolution kernel parameter;
[0067] The structural similarity of the sub-regions sampled according to the convolution kernel size between the current super-resolution image and the DIC speckle image to be detected is expressed as:
[0068] ;
[0069] in, They are and The average grayscale is used to describe the image brightness;
[0070] is the image sub-area to be detected;
[0071] They are and The standard deviation of is used to describe the contrast of the image;
[0072] is a constant to avoid numerical instability when the denominator is 0;
[0073] This constructs the cost function for optimizing the upsampling convolution kernel:
[0074] ;
[0075] Among them, i represents the sub-area;
[0076] is the weight coefficient;
[0077] m represents the size of the sub-region;
[0078] The upsampling convolution kernel K is optimized using LM iteration to obtain the optimal super-resolution upsampling convolution kernel for the current super-resolution image structure, and the convolution kernel is used to upsample the image to complete the super-resolution operation of the current super-resolution image.
[0079] The binarization of the super-resolved cross-correlation coefficient field is represented as follows:
[0080] ;
[0081] in, is the crack coordinates in the super-resolution image The corresponding zero-mean normalized cross-correlation values;
[0082] is the mean of all zero-mean normalized cross-correlation coefficients; Normalize the variance of the cross-correlation coefficients for all zero means;
[0083] Taking 2 as the abnormal threshold, when , the point value is set to 1, otherwise it is set to 0, and the binarized coefficient field is recorded as ,but:
[0084] ;
[0085] In the dilation operation, the area around the pixel is set as the crack area, that is, ;
[0086] In the corrosion operation, the area around the pixel is set as the normal area, that is, ;
[0087] The mathematical formula for corrosion is: ;
[0088] The mathematical formula for expansion is: ;
[0089] in, is the input image;
[0090] is the crack coordinate in the super-resolution image;
[0091] Indicates corrosion operation;
[0092] represents the expansion operation;
[0093] It is a structural element;
[0094] are the coordinates of the structural element;
[0095] Represents or operation;
[0096] Represents and operations.
[0097] The skeleton extraction of the binary processed image is represented as follows:
[0098] Connected domains are identified on the image, and pixels on the boundaries of connected domains are removed so that the pixels on the boundaries of connected domains meet the following constraints:
[0099] Right contour boundary: ;
[0100] Left contour boundary: ;
[0101] in, Pixel The value after binarization;
[0102] for The number of pixels with a binary value of 1 in the eight-neighborhood of ;
[0103] P refers to the neighborhood of the current pixel position, and P is arranged as follows: ;
[0104] By identifying and removing the left boundary contour and the right boundary contour, the operation is iterated until the image does not contain the above contour pixels.
[0105] Mapping the extended path back to the DIC speckle image to be detected is expressed as follows:
[0106] According to the super-resolution magnification, the crack propagation path after skeleton extraction is mapped back to the region of interest of the original size, and the coordinate corresponding formula is:
[0107] ;
[0108] in, is the coordinate of the crack propagation path in the region of interest after super-resolution;
[0109] are the coordinates of the crack propagation path in the region of interest before super-resolution;
[0110] n is the magnification factor during super-resolution;
[0111] The crack propagation path coordinates in the region of interest are mapped back to the DIC speckle image to be detected, and the conversion formula is:
[0112] ;
[0113] in, is the coordinate of the origin of the region of interest in the current image coordinate system;
[0114] is the coordinate of the crack propagation path in the DIC speckle image to be detected.
[0115] The beneficial effects of the present application include: the present application provides a method for detecting crack tip and extension path in DIC speckle image, which does not rely on the visual crack features of a single image, can detect sub-pixel level crack features invisible to the human eye, and draw its extension path and tip position, while considering the rigid displacement of the object, selecting rigid reference points, building a reference coordinate system, eliminating the error in identifying crack extension path caused by the influence of rigid deformation, etc., and accurately drawing the crack tip position and extension path. Thus, the problem of detecting tiny crack features is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0116] Figure 1 This is a schematic diagram of the overall process of this application;
[0117] Figure 2 The calculation effect diagram of the mutual correlation coefficient field of the area of interest in this application;
[0118] Figure 3 This is a schematic diagram of the principle of the super-resolution anomaly amplification method based on image degradation in this application;
[0119] Figure 4 This is the optimization effect diagram of crack tip detection by the super-resolution algorithm in this application;
[0120] Figure 5 This is the detection effect diagram of the crack path and tip of this application;
[0121] Figure 6 This is the detection effect diagram of the crack propagation path of this application. DETAILED DESCRIPTION
[0122] The present application is described in detail below with reference to embodiments, but the present application is not limited to these embodiments.
[0123] like Figure 1 As shown, a method for detecting crack tips and extension paths in a DIC speckle image is characterized in that a micro crack in a DIC speckle image of a DIC measurement surface encoded with a random speckle pattern and having crack extension is detected, and the detection method comprises:
[0124] S1. Select a reference frame as a reference image in the time series, calculate the optimized zero-mean normalized cross-correlation coefficient between the image to be detected and the reference image point by point in the region of interest, and obtain the cross-correlation coefficient field of the region of interest, so as to locate the position and path of the crack;
[0125] Among them, according to the characteristic that the zero-mean normalized cross correlation coefficient will drop sharply at the crack feature, this application proposes to use the optimized ZNCC (Zero-Normalized Cross Correlation) field to detect the crack propagation path. The optimized ZNCC field obtained after optimizing the affine deformation is used to locate the position and path of the crack according to the response of the coefficient field to the crack feature;
[0126] Select the reference frame: Select an image with no cracks or minimal cracks from the time series as the reference frame (reference image). This reference frame should be able to represent the normal state before the crack occurs. Define the region of interest (ROI) based on the actual application and the area where the crack may appear. The ROI should be large enough to include the possible crack propagation path, but not too large to reduce the amount of calculation.
[0127] Perform necessary preprocessing on the reference frame and the image to be detected, such as denoising, contrast enhancement, etc.
[0128] Make sure the two images are as consistent as possible in terms of brightness, contrast, etc., so that the cross-correlation coefficient can be calculated accurately.
[0129] For each point (or pixel) in the ROI, calculate its ZNCC value with the corresponding area in the reference frame. ZNCC is a similarity measurement method that is insensitive to brightness changes. It normalizes the image data to eliminate the influence of brightness changes on the cross-correlation coefficient.
[0130] The ZNCC value ranges from -1 to 1, with values closer to 1 indicating higher similarity and values closer to -1 indicating lower similarity.
[0131] S2. super-resolving the mutual correlation coefficient field based on the reconstruction and active degradation model to amplify the path characteristics of the micro-cracks at the crack tip;
[0132] After the crack tip is identified, a local sub-region including the crack tip and its surrounding area is selected for super-resolution. This local region should be large enough to include the path characteristics of the tiny crack, but not too large to reduce unnecessary calculations.
[0133] Perform super-resolution processing on selected local areas. This can be achieved through a variety of super-resolution algorithms, in which the algorithm estimates and generates details in the high-resolution data based on the information in the original low-resolution data. For small cracks at the crack tip, super-resolution processing can amplify the path characteristics of these cracks, making them clearer and easier to identify.
[0134] S3, preprocessing the super-resolved cross-correlation coefficient field to obtain the preprocessed crack propagation path, mapping the preprocessed crack propagation path back to the DIC speckle image to be detected to obtain the degraded cross-correlation coefficient field, and constructing a crack propagation path coordinate system to output the crack propagation path.
[0135] Among them, the spatial correspondence between the mutual correlation coefficient field and the DIC speckle image is determined. This involves coordinate transformation and image registration technology to ensure the spatial consistency between the two. The vectorized crack propagation path is mapped to the DIC speckle image by converting each point or line segment in the path to the corresponding coordinates in the DIC speckle image. The mapped crack propagation path is highlighted on the DIC speckle image to more intuitively observe and analyze the crack propagation.
[0136] Specifically, the present application does not rely on the visual features of cracks in a single image, but can detect crack features at the sub-pixel level that are invisible to the human eye, and map out their extension path and tip position, thereby solving the problem of detecting tiny crack features.
[0137] The S1 includes:
[0138] S11, selecting a reference image for the current measurement frame of the DIC speckle image to be detected, wherein the first image of the current measurement frame is selected as the reference image;
[0139] S12, drawing the region of interest according to the location of the prefabricated crack;
[0140] S13. In the region of interest, the speckle coarse-fine matching algorithm of the digital image correlation method is used point by point, the first-order shape function model is used to describe the deformation of the sub-region, and the zero-mean normalized mutual function is used as the correlation index to construct the optimized cost function;
[0141] S14. Optimize the optimal deformation coefficient and its corresponding optimized zero-mean normalized cross-correlation coefficient through Gauss-Newton iteration to obtain the cross-correlation coefficient field of the region of interest.
[0142] In S2, super-resolution of the cross-correlation coefficient field is performed based on the reconstruction and active degradation model, including:
[0143] S21, using an n×n Gaussian convolution kernel, generally n=3, with a step size of 2, downsampling the DIC speckle image to be detected, performing Gaussian blurring, and adding Gaussian noise and salt and pepper noise to obtain a degraded low-resolution and low-quality image;
[0144] S22, using an n×n up-convolution kernel, generally n=3, using the initial convolution kernel to super-resolve the degraded low-quality image into the size of the DIC speckle image to be detected, calculating the structural similarity between the current super-resolved image and the DIC speckle image to be detected, and using it as the cost function of the optimization algorithm;
[0145] S23, optimizing the up-convolution kernel by using LM iteration to obtain an optimal up-sampling convolution kernel corresponding to the current image structure;
[0146] S24. Up-sampling the DIC speckle image to be detected using an optimal up-sampling convolution kernel to obtain a super-resolution image after super-resolution cross-correlation coefficient field.
[0147] Specifically, in order to solve the problem that the features at the crack tip are too small to be detected, this application proposes a simple and effective super-resolution method to amplify the abnormal features at the tip. First, the original image is degraded according to the degradation model, and then the initial upsampling convolution kernel is selected to super-resolution amplify the image. The error equation is constructed using the structural phase velocity of the amplified image and the original image, and the upsampling convolution kernel is optimized using LM iteration. Finally, the image is super-resolution using the optimized upsampling convolution kernel.
[0148] First, use an n×n Gaussian kernel, usually n=3, with a step size of 2 and a padding number of 2 to perform downsampling operations to obtain a degraded image. Then, use an n×n convolution kernel for upsampling and use the upsampled convolution kernel as the variable to be optimized. Usually n=3, use the image structure similarity to construct a cost function, use LM iteration to optimize the upsampled convolution kernel, and obtain the optimal upsampled convolution kernel corresponding to the current image structure. Finally, use the optimal convolution kernel to upsample the original image to obtain a higher resolution cross-correlation field.
[0149] In S3, preprocessing the super-resolved cross-correlation coefficient field includes:
[0150] (1) Binarize the cross-correlation field after super-resolution:
[0151] Arranging the super-resolved cross-correlation coefficient field by rows, and counting the mean and variance values of all cross-correlation coefficients in the cross-correlation coefficient field;
[0152] Calculate the Z-score of each pixel point by point; Z-score is usually called standard score or Z-score. That is, Z-score is a standard score converted from an original score, which can make the originally incomparable values comparable;
[0153] Binarize the cross-correlation coefficient field according to the Z-score of each pixel point, and when the Z-score>2, set the value of the current pixel point to 1, otherwise set it to 0;
[0154] Perform morphological expansion and corrosion operations on the binarized super-resolution image to eliminate noise and only retain the binary features near the cracks;
[0155] (2) Extract skeleton from the binary image:
[0156] The Zhang-Suen thinning algorithm is used to extract the skeleton of the super-resolution image after the expansion and corrosion operation to obtain the skeleton line of the single pixel.
[0157] Among them, the Zhang-Suen thinning algorithm is a skeleton extraction algorithm used in image processing. Its main purpose is to thin the binary image to obtain the skeleton structure of the foreground object in the image, and gradually thin the image by continuously deleting pixels that meet certain conditions. The basic idea of the algorithm is to determine whether the pixel can be deleted without affecting the connectivity of the image by checking the state of the pixel and its neighborhood.
[0158] In S3, the pre-processed crack propagation path is mapped back to the DIC speckle image to be detected to obtain a degraded mutual correlation coefficient field, and a crack propagation path coordinate system is constructed to output the crack propagation path, including:
[0159] S31, mapping the coordinate position of the single-pixel crack extension path obtained after skeleton extraction to the region of interest of the size of the DIC speckle image to be detected according to the aspect ratio of the super-resolution enlarged region of interest, wherein the coordinate of the crack extension path is expressed in sub-pixels;
[0160] S32, mapping the coordinate position of the crack propagation path represented by sub-pixels to the position of the DIC speckle image to be detected according to the upper boundary, length and width of the region of interest;
[0161] S33, selecting a reference speckle patch on the reference image, constructing a crack extension coordinate system with the center of the reference speckle patch as the origin, identifying the origin coordinates in the DIC speckle image to be detected according to the digital image correlation method, and extracting the endpoint coordinates of the crack extension path as the coordinates of the crack tip position;
[0162] Specifically, the crack extension coordinate system is constructed, and the specific operation process is as follows:
[0163] 1) On the reference image, select an area near the crack area where the speckle deformation is small when the crack propagates and is far away from the crack area. This area mainly considers the rigid movement of the object under force during the experiment. Select a reference speckle patch in this area. The center coordinates of the reference speckle patch are the origin of the crack coordinate system (0, 0);
[0164] 2) Identify the reference speckle patch corresponding to the image to be detected according to the digital image correlation algorithm to obtain the coordinates of the origin on the current image;
[0165] 3) Calculate the relative position of the identified crack tip relative to the current origin as the crack tip coordinate under the crack propagation path;
[0166] S34, outputting the identified crack tip coordinates in time series order to obtain the crack propagation path,
[0167] Specifically, the calculated crack tip coordinates are output for each image in a time sequence;
[0168] The crack propagation path is constructed based on the output sequence coordinates, such as Figure 6 As shown, this is the detection effect diagram of the crack propagation path.
[0169] It is worth noting that when the extended path after preprocessing is mapped back to the DIC speckle image to be detected, it is necessary to perform a pooling operation on the cross-correlation coefficient field according to the super-resolution magnification to restore it to its original size, and then, according to the position information of the selected region of interest (ROI), restore the pixel coordinates of the extracted skeleton line on the original detection image, and use the endpoint of the crack path as the crack tip position.
[0170] In S13, the speckle coarse-fine matching algorithm of the digital image correlation method is used point by point, the first-order shape function model is used to describe the deformation of the sub-area, and the zero-mean normalized mutual function is used as the correlation index to construct the optimized cost function, which is expressed by the following calculation:
[0171] ;
[0172] ;
[0173] ;
[0174] ;
[0175] ;
[0176] in, represents the zero-mean normalized cross-correlation value;
[0177] M represents the size of the half-subregion;
[0178] f represents the reference image pixel value;
[0179] g represents the pixel value of the deformed image;
[0180] i, j represent the row and column numbers (the row and column numbers of pixels set in the half-sub-area size area);
[0181] are the pixel coordinates in the reference image;
[0182] are the pixel coordinates in the deformed image;
[0183] The reference image The pixel value of the position;
[0184] It is a deformable image The pixel value of the position;
[0185] represents the mean pixel value of the reference sub-area;
[0186] represents the mean pixel value of the deformation sub-area;
[0187] represents the reference sub-area pixel variance;
[0188] represents the pixel variance of the deformation sub-area;
[0189] In the speckle deformation image, a first-order shape function is used to perform deformation mapping of pixels:
[0190] ;
[0191] Among them, (m i ,n i ) represents the coordinates of the center point of the reference sub-area;
[0192] (M', N') represents the coordinates of the center point of the deformation sub-region;
[0193] represents the deviation between the center point of the reference sub-area and the center point of the deformation sub-area;
[0194] Represent the translation parameters in the x-direction and y-direction respectively;
[0195] Represent the expansion and contraction parameters in the x-direction and y-direction respectively;
[0196] Represent the distortion deformation parameters in the x and y directions respectively.
[0197] Specifically, the iterative least squares algorithm is used to optimize the ZNCC function, calculate the sub-pixel displacement value and its derivative, and then calculate the deformation value. According to the deformation mapping, the optimal ZNCC value of the two sub-areas before and after the deformation is obtained as the correlation index of the central pixel of the current sub-area. Figure 2 , which shows the ZNCC fields of speckle crack images of plastic three-point bending crack, rock compression and aluminum alloy tensile fracture calculated according to the method of the present application.
[0198] The abnormal features of the crack tip are amplified by the image super-resolution method based on reconstruction and active degradation model. The process is as follows: Figure 3 As shown. First, the target image is downsampled, and Gaussian blur is performed, and Gaussian noise or salt and pepper noise is added. The upsampling convolution kernel is used to complete the super-resolution operation. For example, the upsampling convolution kernel is selected to be 3×3 in size, denoted as K, and the original image is denoted as , the degraded image is denoted as , use structural similarity (SSIM, Structural Similarity Index) to construct a cost function to optimize the upsampling convolution kernel.
[0199] Specifically, the super-resolution image is expressed as: ;
[0200] in, is the super-resolution image sub-region;
[0201] is the crack coordinate;
[0202] for The grayscale value of the integer pixel position of the convolution sub-area, It is a degraded low-resolution image;
[0203] is the deviation of the sub-pixel coordinate relative to the integer pixel coordinate;
[0204] is the upsampling convolution kernel parameter;
[0205] The structural similarity of the sub-regions sampled according to the convolution kernel size between the current super-resolution image and the DIC speckle image to be detected is expressed as:
[0206] ;
[0207] in, They are and The average grayscale is used to describe the image brightness;
[0208] is the image sub-area to be detected;
[0209] They are and The standard deviation of is used to describe the contrast of the image;
[0210] is a constant to avoid numerical instability when the denominator is 0;
[0211] This constructs the cost function for optimizing the upsampling convolution kernel:
[0212] ;
[0213] Among them, i represents the sub-area;
[0214] is the weight coefficient; in this application, all weights are taken as 1;
[0215] m represents the size of the sub-region;
[0216] The upsampling convolution kernel K is optimized using LM iteration to obtain the optimal upsampling convolution kernel for the current super-resolution image structure, and the convolution kernel is used to upsample the image to complete the super-resolution operation of the current super-resolution image. The optimization effect of the super-resolution algorithm on crack tip detection is shown in the figure. Figure 4 shown.
[0217] The binarization of the super-resolved cross-correlation coefficient field is represented as follows:
[0218] ;
[0219] in, is the crack coordinates in the super-resolution image The corresponding zero-mean normalized cross-correlation values;
[0220] is the mean of all zero-mean normalized cross-correlation coefficients; Normalize the variance of the cross-correlation coefficients to all zero means.
[0221] By using LM iteration to optimize the upsampling convolution kernel K, we can get the optimal super-resolution upsampling convolution kernel for the current image structure. And use this convolution kernel to upsample the image to complete the super-resolution operation of the target image. The optimization effect of the super-resolution algorithm on crack tip detection is shown in Figure 2. Figure 4 shown.
[0222] Taking 2 as the abnormal threshold, when , the point value is set to 1, otherwise it is set to 0, and the binarized coefficient field is recorded as ,but:
[0223] ; Among them, Z-score, also known as standard score, is a commonly used concept in statistics, used to describe the relative position of a value to the mean; Z-score can truly reflect the relative standard distance of a score from the mean.
[0224] If each score is converted into a Z-score, then each Z-score will represent the distance or deviation of a specific score from the mean in units of standard deviation.
[0225] When the distribution of the original scores is normal, converting all the original scores into Z-scores will form a standard normal distribution.
[0226] After obtaining the binary crack feature field, in order to eliminate the interference of noise and accurately detect the main crack features, it is necessary to perform morphological operations of dilation and corrosion on the binary field. First, three corrosion operations are performed, and then three dilation operations are performed: the dilation operation can expand the crack area in the image. In binary image processing, corrosion and dilation operations usually slide the image with structural elements, match the structural elements with elements in the image, and match the structural elements with pixels in the image;
[0227] In the dilation operation, the area around the pixel is set as the crack area, that is, ;
[0228] In the corrosion operation, the area around the pixel is set as the normal area, that is, ;
[0229] The mathematical formula for corrosion is: ;
[0230] The mathematical formula for expansion is: ;
[0231] in, is the input image;
[0232] is the crack coordinate in the super-resolution image;
[0233] Indicates corrosion operation;
[0234] represents the expansion operation;
[0235] It is a structural element; it refers to a shape with a certain size (for example: rectangle, circle, etc.). ;
[0236] are the coordinates of the structural element;
[0237] Represents or operation;
[0238] Represents and operations.
[0239] The skeleton is extracted from the binary image after dilation and corrosion, and its basic algorithm is Zhang-Suen thinning algorithm;
[0240] The skeleton extraction of the binary processed image is represented as follows:
[0241] Connected domains are identified on the image, and pixels on the boundaries of the connected domains are removed. This process continues until no more pixels can be removed, so that the pixels on the boundaries of the connected domains meet the following constraints:
[0242] Right contour boundary: ;
[0243] Left contour boundary: ;
[0244] in, Pixel The value after binarization;
[0245] for The number of pixels with a binary value of 1 in the eight-neighborhood of ;
[0246] P refers to the neighborhood of the current pixel position, and P is arranged as follows: ;
[0247] By identifying and removing the left boundary contour and the right boundary contour, the iterative operation is performed until the image does not contain the above contour pixels;
[0248] Each contour removal can be decomposed into two sub-operations, namely, identifying and removing the left boundary contour and identifying and removing the right boundary contour. The iterative operation is terminated until the image does not contain the above-mentioned contour pixels.
[0249] Mapping the extended path back to the DIC speckle image to be detected is expressed as follows:
[0250] According to the super-resolution magnification, the crack propagation path after skeleton extraction is mapped back to the region of interest of the original size, and the coordinate corresponding formula is:
[0251] ;
[0252] in, is the coordinate of the crack propagation path in the region of interest after super-resolution;
[0253] are the coordinates of the crack propagation path in the region of interest before super-resolution;
[0254] n is the magnification factor during super-resolution;
[0255] The crack propagation path coordinates in the region of interest are mapped back to the DIC speckle image to be detected, and the conversion formula is:
[0256] ;
[0257] in, is the coordinate of the origin of the region of interest in the current image coordinate system;
[0258] is the coordinate of the crack propagation path in the DIC speckle image to be detected.
[0259] like Figure 5 Shown are examples of path detection for plastic crack three-point bending, rock and soil compression, and aluminum alloy tension.
[0260] This application uses the above method to perform corresponding tests on plastic crack three-point bending, rock and soil compression, and aluminum alloy tension, such as Figure 2 As shown, Figure 2 (a)-(c) show the ZNCC fields of speckle crack images of plastic three-point bending crack, rock compression and aluminum alloy tensile fracture calculated according to the method of the present application; Figure 4 As shown, Figure 4 (a)-(c) show the optimization effect of the super-resolution algorithm on the detection of crack tips in plastic three-point bending crack, rock compression and aluminum alloy tensile fracture. Figure 5 As shown, Figure 5 (a)-(c) are examples of path detection for plastic crack three-point bending, rock compression, and aluminum alloy tension, respectively; specifically, Figure 2 The cross-correlation coefficient field effects under different experimental scenarios are shown. (a) is the crack extension scenario of the three-point bending experiment, which mainly shows linear extension; (b) is the crack extension scenario of the extrusion experiment, and its crack extension is random; (c) is the crack extension scenario of the tensile experiment; Figure 4 The results of crack tip detection after super-resolution processing in different experimental scenarios are shown in Figure 1. (a) is the local result of the crack tip in the three-point bending test; (b) is the result near the crack tip in the extrusion test; (c) is the local result of the crack tip in the tensile test. Figure 5The crack tip detection process in different scenarios is shown (abnormal area selection, calculation of mutual correlation coefficient field, image binarization and corrosion expansion, skeleton extraction, path mapping). (a) is the crack path extraction process of three-point bending test; (b) is the crack path extraction process of extrusion test; (c) is the crack path extraction process of tensile test.
[0261] The above are only a few embodiments of the present application and do not constitute any form of limitation to the present application. Although the present application is disclosed as above with preferred embodiments, it is not intended to limit the present application. Any technician familiar with the profession, without departing from the scope of the technical solution of the present application, using the technical content disclosed above to make slight changes or modifications are equivalent to equivalent implementation cases and fall within the scope of the technical solution.
Claims
1. A method for detecting crack tip and propagation path in DIC speckle images. It is characterized in that Detecting tiny cracks in a DIC speckle image of a DIC measurement surface encoded with a random speckle pattern and having crack propagation, the detection method comprising: S1. Select a reference frame as a reference image in the time series, calculate the optimized zero-mean normalized cross-correlation coefficient between the image to be detected and the reference image point by point in the region of interest, and obtain the cross-correlation coefficient field of the region of interest, so as to locate the position and path of the crack; S2. super-resolving the mutual correlation coefficient field based on the reconstruction and active degradation model to amplify the path characteristics of the crack at the crack tip; S3, preprocessing the super-resolved cross-correlation coefficient field to obtain a preprocessed crack propagation path, mapping the preprocessed crack propagation path back to the DIC speckle image to be detected to obtain a degraded cross-correlation coefficient field, and constructing a crack propagation path coordinate system to output the crack propagation path; In S3, the super-resolved cross-correlation coefficient field is preprocessed, including: (1) Binarize the cross-correlation field after super-resolution: Arranging the super-resolved cross-correlation coefficient field by rows, and counting the mean and variance values of all cross-correlation coefficients in the cross-correlation coefficient field; Calculate the Z-score of each pixel point by point; Binarize the cross-correlation coefficient field according to the Z-score of each pixel point, and when the Z-score>2, set the value of the current pixel point to 1, otherwise set it to 0; Perform morphological expansion and corrosion operations on the super-resolution image after binary processing to eliminate noise and only retain the binary features near the cracks; (2) Extract skeleton from the binary image: The Zhang-Suen thinning algorithm is used to extract the skeleton of the super-resolution image after the expansion and corrosion operation to obtain the skeleton line of the single pixel; In S3, the crack propagation path after preprocessing is mapped back to the DIC speckle image to be detected to obtain a degraded mutual correlation coefficient field, and a crack propagation path coordinate system is constructed to output the crack propagation path, including: S31, mapping the coordinate position of the single-pixel crack propagation path obtained after skeleton extraction to the region of interest of the size of the DIC speckle image to be detected according to the aspect ratio of the super-resolution enlarged region of interest, wherein the coordinate of the crack propagation path is expressed in sub-pixels; S32, mapping the coordinate position of the crack propagation path represented by sub-pixels to the position of the DIC speckle image to be detected according to the upper boundary, length and width of the region of interest; S33, selecting a reference speckle patch on the reference image, constructing a crack extension coordinate system with the center of the reference speckle patch as the origin, identifying the origin coordinates in the DIC speckle image to be detected according to the digital image correlation method, and extracting the endpoint coordinates of the crack extension path as the coordinates of the crack tip position; S34. Output the identified crack tip coordinates in time series order to obtain the crack propagation path.
2. The method for detecting crack tip and propagation path in DIC speckle image according to claim 1, It is characterized in that The S1 includes: S11, selecting a reference image for the current measurement frame of the DIC speckle image to be detected, wherein the first image of the current measurement frame is selected as the reference image; S12, drawing the region of interest according to the location of the prefabricated crack; S13. In the region of interest, the speckle coarse-fine matching algorithm of the digital image correlation method is used point by point, the first-order shape function model is used to describe the deformation of the sub-region, and the zero-mean normalized mutual function is used as the correlation index to construct the optimized cost function; S14. Optimize the optimal deformation coefficient and its corresponding optimized zero-mean normalized cross-correlation coefficient through Gauss-Newton iteration to obtain the cross-correlation coefficient field of the region of interest.
3. The method for detecting crack tip and propagation path in DIC speckle image according to claim 1, It is characterized in that In S2, super-resolution of the cross-correlation coefficient field is performed based on the reconstruction and active degradation model, including: S21, using an n×n Gaussian convolution kernel to downsample the DIC speckle image to be detected, perform Gaussian blur and add Gaussian noise and salt and pepper noise to obtain a degraded low-resolution and low-quality image; S22, using an n×n up-convolution kernel to super-resolve the degraded low-quality image into the size of the DIC speckle image to be detected, calculating the structural similarity between the current super-resolved image and the DIC speckle image to be detected, and using it as the cost function of the optimization algorithm; S23, optimizing the up-convolution kernel by using LM iteration to obtain an optimal up-sampling convolution kernel corresponding to the current image structure; S24, up-sampling the DIC speckle image to be detected using an optimal up-sampling convolution kernel to obtain a super-resolution image after super-resolution cross-correlation coefficient field.
4. The method for detecting crack tip and propagation path in a DIC speckle image according to claim 1, It is characterized in that In S13, the speckle coarse-fine matching algorithm of the digital image correlation method is used point by point, the first-order shape function model is used to describe the deformation of the sub-area, and the zero-mean normalized mutual function is used as the correlation index to construct the optimized cost function, which is expressed by the following calculation: ; ; ; ; ; in, represents the zero-mean normalized cross-correlation value; M represents the size of the half-subregion; f represents the reference image pixel value; g represents the pixel value of the deformed image; i, j represent the row and column numbers; are the pixel coordinates in the reference image; are the pixel coordinates in the deformed image; The reference image The pixel value of the position; It is a deformable image The pixel value of the position; represents the mean pixel value of the reference sub-area; Represents the mean pixel value of the deformation sub-area; represents the reference sub-area pixel variance; represents the pixel variance of the deformation sub-area; In the speckle deformation image, a first-order shape function is used to perform deformation mapping of pixels: ; Among them, (m i ,n i ) represents the coordinates of the center point of the reference sub-area; (M', N') represents the coordinates of the center point of the deformation sub-region; represents the deviation between the center point of the reference sub-area and the center point of the deformation sub-area; Represent the translation parameters in the x-direction and y-direction respectively; Represent the expansion and contraction parameters in the x-direction and y-direction respectively; Represent the distortion deformation parameters in the x direction and y direction respectively.
5. The method for detecting crack tip and propagation path in DIC speckle image according to claim 3, It is characterized in that The super-resolution image is represented as: ; in, is the super-resolution image sub-region; is the crack coordinate; for The grayscale value of the integer pixel position of the convolution sub-area, It is a degraded low-resolution image; is the deviation of the sub-pixel coordinate relative to the whole pixel coordinate; is the upsampling convolution kernel parameter; The structural similarity between the sub-regions sampled according to the convolution kernel size of the current super-resolution image and the DIC speckle image to be detected is expressed as: ; in, They are and The average grayscale is used to describe the image brightness; is the image sub-area to be detected; They are and The standard deviation of is used to describe the contrast of the image; is a constant to avoid numerical instability when the denominator is 0; This constructs the cost function for optimizing the upsampling convolution kernel: ; Among them, i represents the sub-area; is the weight coefficient; m represents the size of the sub-region; The upsampling convolution kernel K is optimized using LM iteration to obtain the optimal super-resolution upsampling convolution kernel for the current super-resolution image structure, and the convolution kernel is used to upsample the image to complete the super-resolution operation of the current super-resolution image.
6. The method for detecting crack tip and propagation path in DIC speckle image according to claim 1, It is characterized in that The binarization of the super-resolved cross-correlation coefficient field is represented as follows: ; in, is the crack coordinates in the super-resolution image The corresponding zero-mean normalized cross-correlation values; is the mean of all zero-mean normalized cross-correlation coefficients; Normalize the variance of the cross-correlation coefficients for all zero means; Taking 2 as the abnormal threshold, when , the point value is set to 1, otherwise it is set to 0, and the binarized coefficient field is recorded as ,but: ; In the dilation operation, the area around the pixel is set as the crack area, that is, ; In the corrosion operation, the area around the pixel is set as the normal area, that is, ; The mathematical formula for corrosion is: ; The mathematical formula for expansion is: ; in, is the input image; is the crack coordinate in the super-resolution image; Indicates corrosion operation; represents the expansion operation; It is a structural element; are the coordinates of the structural element; Represents or operation; Represents and operations.
7. The method for detecting crack tip and propagation path in DIC speckle image according to claim 1, It is characterized in that The skeleton extraction of the binary processed image is represented as follows: Connected domains are identified on the image, and pixels on the boundaries of connected domains are removed so that the pixels on the boundaries of connected domains meet the following constraints: Right contour boundary: ; Left contour boundary: ; in, Pixel The value after binarization; for The number of pixels with a binary value of 1 in the eight-neighborhood of ; P refers to the neighborhood of the current pixel position, and P is arranged as follows: ; By identifying and removing the left boundary contour and the right boundary contour, the operation is iterated until the image does not contain the above contour pixels.
8. The method for detecting crack tip and propagation path in DIC speckle image according to claim 1, It is characterized in that Mapping the extended path back to the DIC speckle image to be detected is expressed as follows: According to the super-resolution magnification, the crack propagation path after skeleton extraction is mapped back to the region of interest of the original size, and the coordinate corresponding formula is: ; in, is the coordinate of the crack propagation path in the region of interest after super-resolution; are the coordinates of the crack propagation path in the region of interest before super-resolution; n is the magnification factor during super-resolution; The crack propagation path coordinates in the region of interest are mapped back to the DIC speckle image to be detected, and the conversion formula is: ; in, is the coordinate of the origin of the region of interest in the current image coordinate system; is the coordinate of the crack propagation path in the DIC speckle image to be detected.
