Vector coherent imaging method and device based on adaptive threshold processing
By using an adaptive thresholding method, based on the coherence analysis of the full matrix data, the phase synchronization degree is quantified, and a spatial threshold is determined for binarization. This solves the problem of inaccurate separation of noise and defects caused by a fixed threshold, and improves the detection accuracy and reliability of vector coherent imaging.
Patent Information
- Application Number
- CN202611241526.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-14
- Publication Date
- 2026-11-20
AI Technical Summary
In existing technologies, the threshold setting in vector coherent imaging methods is a fixed value or an empirical preset, which makes weak defect signals easily misjudged as noise or introduce background artifacts, affecting imaging quality.
An adaptive thresholding method is adopted. Through full matrix data coherence analysis, the phase synchronization degree is quantified, the target screening threshold and spatial threshold are determined, and binarization is performed to separate noise and defects.
It improves the image quality of vector coherent images, enhances the accuracy and reliability of defect detection, and is particularly suitable for the detection of coarse-grained materials, high-attenuation media, and near-surface micro-defects.
Smart Images

Figure CN123135960A_ABST
Abstract
Description
Technical Field
[0001] This application relates to nondestructive testing technology, and more particularly to a vector coherent imaging method and apparatus based on adaptive thresholding. Background Technology
[0002] In related technologies, when using vector coherent imaging for imaging, the threshold setting is usually a fixed value or an empirical preset. This threshold setting method makes it easy for weak defect signals to be misjudged as noise and suppressed, or for an excessively low threshold to introduce a large number of background artifacts, affecting the final image quality. Summary of the Invention
[0003] This application provides a vector coherence imaging method and apparatus based on adaptive threshold processing.
[0004] The technical solution of this application embodiment is implemented as follows: This application provides a vector coherent imaging method based on adaptive threshold processing. The method includes: acquiring full matrix data of the target object in response to the completion of scanning of the target object by a fully focused imaging ultrasonic phased array detection device; the full matrix data includes time-domain signals corresponding to each transmit-receive array element pair; performing coherence analysis on the full matrix data to obtain an initial vector coherent image of the target object; the coherence analysis is used to quantify the phase synchronization degree of each time-domain signal at the corresponding imaging point; determining the target proportion corresponding to each target screening threshold based on all vector coherent imaging values corresponding to the initial vector coherent image and each target screening threshold; the target proportion characterizes the proportion of vector coherent imaging values less than or equal to the target screening threshold in the target imaging set; the target imaging set is determined based on all vector coherent imaging values corresponding to the initial vector coherent image; determining a spatial threshold based on the target proportion corresponding to each target screening threshold; performing binarization processing on all vector coherent imaging values through the spatial threshold to obtain a target vector coherent image of the target object; the target vector coherent image is used to realize defect detection of the target object.
[0005] This application provides a vector coherent imaging device based on adaptive threshold processing. The device includes: an acquisition module, used to acquire full matrix data of the target object in response to the completion of scanning of the target object by a fully focused imaging ultrasonic phased array detection device; the full matrix data includes time-domain signals corresponding to each transmit-receive array element pair; an analysis module, used to perform coherence analysis on the full matrix data to obtain an initial vector coherent image of the target object; the coherence analysis is used to quantify the phase synchronization degree of each time-domain signal at the corresponding imaging point; a first determination module, used to determine the target proportion corresponding to each target screening threshold based on all vector coherent imaging values corresponding to the initial vector coherent image and each target screening threshold; the target proportion represents the proportion of vector coherent imaging values less than or equal to the target screening threshold in the target imaging set; the target imaging set is determined based on all vector coherent imaging values corresponding to the initial vector coherent image; a second determination module, used to determine a spatial threshold based on the target proportion corresponding to each of the target screening thresholds; and a processing module, used to perform binarization processing on all vector coherent imaging values through the spatial threshold to obtain a target vector coherent image of the target object; the target vector coherent image is used to realize defect detection of the target object.
[0006] The embodiments of this application have the following beneficial effects: First, coherence analysis is performed on the acquired target object full matrix data to quantify the phase synchronization degree of the corresponding time domain signals of each transmit-receive array element at the corresponding imaging point, generating an initial vector coherent image; then, based on the magnitude relationship between all vector coherent imaging values in the initial vector coherent image and each target screening threshold, the proportion of vector coherent imaging values in the target imaging set that are less than or equal to the target screening threshold is statistically analyzed, i.e., the target proportion; next, based on the target proportions corresponding to all target screening thresholds, a spatial threshold is determined; finally, the spatial threshold is used to binarize all vector coherent imaging values, retaining the high coherence region in the initial vector coherent image and suppressing noise, thereby obtaining a target vector coherent image for defect detection. Compared to existing fixed threshold methods, this method determines the spatial threshold based on all vector coherent imaging values corresponding to the initial vector coherent image and the screening threshold for each target. This ensures that the obtained spatial threshold matches the distribution characteristics of the vector coherent imaging values in the target imaging set, achieving accurate separation of noise and defects in the initial vector coherent image and improving the image quality of the target vector coherent image. Thus, when using the target vector coherent image for defect detection, it can effectively improve the accuracy and reliability of defect detection. Attached Figure Description
[0007] Figure 1 This is a schematic diagram of the implementation process of a vector coherent imaging method based on adaptive thresholding provided in an embodiment of this application. Figure 1 ; Figure 2 This is a schematic diagram of the implementation process of a vector coherent imaging method based on adaptive thresholding provided in an embodiment of this application. Figure 2 ; Figure 3 This is a schematic diagram of the target object provided in the embodiments of this application; Figure 4 This is an imaging schematic diagram of the target object provided in the embodiments of this application; Figure 5 This is an image diagram of the target object obtained through related technologies, provided in an embodiment of this application; Figure 6 This is a schematic diagram of the composition structure of a vector coherent imaging device based on adaptive threshold processing provided in an embodiment of this application.
[0008] It should be noted that the terms "first" and "second" mentioned above are only used to distinguish between different options and do not represent the degree of superiority or inferiority of the options or their priority in the implementation process. Detailed Implementation
[0009] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0010] This application provides a vector coherence imaging method based on adaptive thresholding, such as... Figure 1 As shown, the method includes steps S100 to S140: Step S100: In response to the completion of scanning of the target object by the full-focusing imaging ultrasonic phased array detection equipment, acquire the full matrix data of the target object; the full matrix data includes the time domain signal corresponding to each transmit-receive array element pair; Here, the full-focusing imaging ultrasonic phased array testing equipment is an advanced ultrasonic non-destructive testing system based on full-matrix acquisition and full-focusing algorithms. Full-matrix data refers to the complete set of raw echo signals obtained by sequentially transmitting and receiving all transmit-receive array elements of the full-focusing imaging ultrasonic phased array testing equipment in full-matrix capture (FMC) mode.
[0011] In some embodiments, the total focusing imaging ultrasonic phased array detection device may include multiple array elements. In this way, when scanning the target object, multiple array elements in the array can be used as transmitting array elements in sequence, while all other array elements (including the transmitting array elements themselves) are used as receiving array elements at the same time. Thus, when scanning the target object, the total focusing imaging ultrasonic phased array detection device records the time domain data corresponding to each pair of transmitting array elements and receiving array elements. Therefore, after the total focusing imaging ultrasonic phased array detection device completes the scanning of the target object, it can obtain multiple time domain data corresponding to all combinations of transmitting array element and receiving array element pairs.
[0012] In some implementations, in a 64-element linear phased array probe, the full matrix data will contain 64×64=4096 independent time-domain signals, each of which records the amplitude variation of the ultrasonic wave emitted from the p-th element and received by the q-th element on the time axis.
[0013] In some implementations, the target object may refer to a high-density polyethylene test block containing artificial defects.
[0014] Step S110: Perform coherence analysis on the full matrix data to obtain the initial vector coherence image of the target object; coherence analysis is used to quantify the phase synchronization degree of each time domain signal at the corresponding imaging point; In some implementations, the full matrix data is processed using a weighted focusing method to obtain an initial image of the target object. For each imaging point in the initial image, the vector coherence factor corresponding to that pixel is determined based on the temporal signal corresponding to that imaging point. Based on the vector coherence factors corresponding to all imaging points in the image, spatial mapping is performed to determine the initial vector coherence image of the target object.
[0015] It is understandable that the vector coherence factor is used to quantify the phase synchronization of all transmit-receive path signals at a certain imaging point. Therefore, the core of coherence analysis in this step is to calculate the vector coherence factor.
[0016] Understandably, this application abandons the traditional TFM strategy that relies on signal amplitude superposition. Instead, it quantifies the phase synchronization degree of each time-domain signal at the corresponding imaging point through correlation analysis of the full matrix data. Imaging is then based on the phase synchronization degree at the imaging point, effectively eliminating the influence of material attenuation on the amplitude and significantly enhancing the detection capability for small-sized defects, near-surface defects, and defects in highly attenuated media. Furthermore, since the phase synchronization degree at the imaging point essentially characterizes the statistical information of coherent scatterers present in the imaging region, the initial vector coherent image exhibits stronger noise resistance and higher accuracy in defect probability measurement.
[0017] Step S120: Based on all the vector coherent imaging values corresponding to the initial vector coherent image and the target screening threshold for each target, determine the target proportion corresponding to each target screening threshold; the target proportion represents the proportion of vector coherent imaging values less than or equal to the target screening threshold in the target imaging set; the target imaging set is determined based on all the vector coherent imaging values corresponding to the initial vector coherent image. Here, the target selection threshold is a preset value used to perform statistical analysis on the vector coherence imaging values in the initial vector coherence image, in order to evaluate the proportion of low-coherence pixels in different image regions under different target selection thresholds. The target proportion is defined as the proportion of pixels in different target imaging sets that are less than or equal to a certain target selection threshold. It can be understood that the target proportion can reflect the overall distribution characteristics of vector coherence imaging values in the target imaging set.
[0018] In some implementations, the target imaging set is determined based on all vector coherent imaging values corresponding to the initial vector coherent image; In one example, all the vector coherent imaging values corresponding to the initial vector coherent image are determined as the target imaging set. It can be understood that, in this scenario, the image region corresponding to the target imaging set is the entire imaging region corresponding to the full matrix data.
[0019] In one example, a third imaging set is determined from all the vector coherent imaging values corresponding to the initial vector coherent image, and this third imaging set is determined as the target imaging set. It can be understood that in this scenario, the image region corresponding to the target imaging set is a partial imaging region.
[0020] In some implementations, the number of coherent values corresponding to vector coherent values in the target imaging set that are less than or equal to the target screening threshold is obtained; the quotient of this number of coherent values and the total number of coherent values corresponding to the target imaging set is determined as the target ratio of the target screening threshold. For example, when the number of coherent values is 200,000 and the total number of coherent values is 1,048,576, the target ratio can be 19%.
[0021] In some implementations, the target proportion corresponding to the target threshold is obtained by using a cumulative distribution function (CDF) based on the target threshold and the target parameter imaging set.
[0022] In some implementations, assuming the target screening thresholds are set to 0.1, 0.3, 0.5, 0.7, and 0.9, the proportion of pixels with vector coherent imaging values ≤0.1, ≤0.3, ≤0.5, ≤0.7, and ≤0.9 to the total number of pixels in the target imaging set is calculated. These proportions are the target proportions.
[0023] Understandably, by performing multi-threshold statistical analysis on all vector coherent imaging values corresponding to the initial vector coherent image, the distribution characteristics of signal coherence in the initial vector coherent image under different target screening thresholds can be obtained, providing data support for the subsequent determination of spatial thresholds. This statistical distribution-based analysis method, compared to a single fixed threshold, better reflects the true structure of the initial vector coherent image and helps improve the accuracy of distinguishing defect signals from noise signals in complex backgrounds.
[0024] Step S130: Determine the spatial threshold based on the target proportions corresponding to all target screening thresholds; Here, the spatial threshold refers to the threshold dynamically generated based on local and global statistical features of the initial vector coherent image. The spatial threshold in this application includes the global spatial threshold and the local spatial threshold.
[0025] In some implementations, when the image region corresponding to the target imaging set is the entire imaging region corresponding to the full matrix data, the target ratio obtained in step S120 is obtained by statistical analysis of all vector coherent imaging values corresponding to the initial vector coherent image. Thus, based on the target ratios corresponding to all target screening thresholds, the obtained spatial threshold is the global spatial threshold.
[0026] In some implementations, when the image region corresponding to the target imaging set is a partial imaging region, the target ratio obtained in step S120 is obtained by statistical analysis of a portion of the vector coherent imaging values among all vector coherent imaging values. Based on the target ratios corresponding to all target screening thresholds, a local spatial threshold is determined.
[0027] In this embodiment, the global spatial threshold is determined based on the high quantile distribution of the entire image and applies to the entire imaging area to uniformly filter out most random noise and background clutter, thereby improving the cleanliness of the final generated target vector coherent image. The local spatial threshold is dynamically calculated based on the statistical distribution of pixel values within an adaptive region and is used to protect weak coherent signals such as defect edges.
[0028] Step S140: Binarize all vector coherent imaging values using a spatial threshold to obtain the target vector coherent image of the target object; the target vector coherent image is used to detect defects in the target object.
[0029] Here, binarization refers to classifying the initial vector coherent image with continuous values according to a spatial threshold, retaining the original values of the vector coherent imaging values that are greater than or equal to the spatial threshold, and setting the pixels that do not meet the threshold to zero, thereby generating the target vector coherent image.
[0030] In some implementations, the system iterates through each vector coherent imaging value of the initial vector coherent image. For each vector coherent imaging value, a spatial threshold is determined as a local spatial threshold or a global spatial threshold based on the spatial location corresponding to the vector coherent imaging value. The vector coherent imaging value is compared with the determined local spatial threshold or global spatial threshold to obtain the magnitude relationship between the vector imaging value and the spatial threshold. If the magnitude relationship indicates that the vector imaging value is less than the spatial threshold, the vector imaging value is reset to 0. If the magnitude relationship indicates that the vector imaging value is greater than or equal to the spatial threshold, the vector imaging value is retained.
[0031] Understandably, after binarizing each vector coherent imaging value, a target vector coherent image can be obtained. This final output target vector coherent image is a sparse binary image, containing only the high-coherence regions filtered by spatial thresholding. This achieves precise separation of noise and defects in the initial vector coherent image, generating a high-quality target vector coherent image specifically for defect detection. This image has higher signal-to-noise ratio, contrast, and spatial resolution, making it particularly suitable for detecting coarse-grained materials, high-attenuation media, and near-surface micro-defects. It effectively solves the problem of excessive defect suppression or noise residue caused by fixed thresholds in traditional VCI methods, improving the accuracy and reliability of detection.
[0032] In this embodiment, firstly, coherence analysis is performed on the acquired target object full matrix data to quantify the phase synchronization degree of the corresponding time domain signals of each transmit-receive array element at the corresponding imaging point, generating an initial vector coherent image; then, based on the magnitude relationship between all vector coherent imaging values in the initial vector coherent image and each target screening threshold, the proportion of vector coherent imaging values in the target imaging set that are less than or equal to the target screening threshold is statistically analyzed, i.e., the target proportion; next, based on the target proportions corresponding to all target screening thresholds, a spatial threshold is determined; finally, the spatial threshold is used to binarize all vector coherent imaging values, retaining the high coherence region in the initial vector coherent image and suppressing noise, thereby obtaining a target vector coherent image for defect detection. Compared to existing fixed threshold methods, this method determines the spatial threshold based on all vector coherent imaging values corresponding to the initial vector coherent image and the screening threshold for each target. This ensures that the obtained spatial threshold matches the distribution characteristics of the vector coherent imaging values in the target imaging set, achieving accurate separation of noise and defects in the initial vector coherent image and improving the image quality of the target vector coherent image. Thus, when using the target vector coherent image for defect detection, it can effectively improve the accuracy and reliability of defect detection.
[0033] In some embodiments, step S130 above includes steps S131 and S132: Step S131: Based on the target threshold, determine the target ratio set from the target ratios corresponding to all target screening thresholds; each target ratio in the target ratio set is greater than or equal to the target threshold divided by 100 to obtain the value; In some implementations, the target threshold can be a preset numerical parameter used to control the selection range of the target proportion set. Its value is usually set as a percentage, representing the strictness of the screening of highly coherent regions.
[0034] In one example, if the target threshold is set to 98, then dividing the target threshold by 100 gives 0.98, which means that each target proportion in the target proportion set is greater than or equal to 0.98.
[0035] Understandably, by using a target threshold, the image region with high coherence in the initial vector coherent image can be focused, thereby improving the confidence and anti-interference ability of the finally determined spatial threshold.
[0036] In some implementations, the target threshold is divided by 100 to obtain the first calculated threshold; the target proportion corresponding to each target screening threshold is compared with the first calculated threshold, and all target proportions less than the first calculated threshold are determined as the target proportion set.
[0037] Step S132: Determine the target screening threshold corresponding to the minimum value in the target ratio set as the spatial threshold.
[0038] In some implementations, the minimum value is calculated for all target proportions in the target proportion set; the target screening threshold corresponding to the minimum value is then determined as the spatial threshold.
[0039] In this embodiment, firstly, by setting a target threshold, target proportions corresponding to thresholds greater than or equal to the target threshold divided by 100 are selected from all target screening thresholds, forming a target proportion set; then, the minimum value in this target proportion set is taken as the final spatial threshold. This method ensures that the obtained spatial threshold is determined based on the statistical distribution of all vector coherent imaging values, achieving accurate separation of noise and defects in the initial vector coherent image, improving the image quality of the target vector coherent image. Thus, when performing defect detection using the target vector coherent image, the accuracy and reliability of defect detection can be effectively improved.
[0040] In some embodiments, the spatial threshold includes a global spatial threshold and a local spatial threshold, and the target threshold includes a first threshold and a second threshold. The first threshold is used to determine the global spatial threshold, and the second threshold is used to determine the local spatial threshold. The second threshold is less than the first threshold.
[0041] Here, the global spatial threshold is used to filter noise in the background area of the entire image, effectively setting pixels in non-defect areas to zero. The local spatial threshold is used to preserve weak signals around bright defects, where the vector coherence imaging value is low due to sound attenuation or geometric factors, but which are still considered to be at the edge of a real defect.
[0042] It should be noted that the initial vector coherent image determines the first region occupied by the defect in the image. The defects corresponding to this first region are relatively concentrated, meaning that the adjacent regions (i.e., defect edge regions) typically contain weak signals from defect edges and other defects. Processing these adjacent regions with a global spatial threshold would eliminate the weak signals from defects within these regions. Therefore, a local spatial threshold needs to be determined. This local spatial threshold is then used to preserve the weak signals from defects within the adjacent regions. Furthermore, the vector coherent imaging values corresponding to these adjacent regions have a relatively flat distribution. Therefore, to ensure that the determined local spatial threshold preserves as much of the weak signals from defects within these adjacent regions as possible, the second threshold should be set lower than the first threshold.
[0043] In this embodiment, by clearly distinguishing between the first threshold and the second threshold, and setting the second threshold to be less than the first threshold, a reasonable gradient difference in numerical value between the global spatial threshold and the local spatial threshold is achieved. In this way, using a higher global spatial threshold for processing in the strong noise region can effectively filter the noise signal, while using a lower local spatial threshold for processing in the defect edge region can effectively preserve the defect information in the defect edge region, thereby achieving a dynamic balance between noise suppression and defect preservation.
[0044] In some implementations, when determining the global spatial threshold, step S131 above can be implemented as follows: based on the first threshold, determine a set of target proportions from the target proportions corresponding to all target screening thresholds respectively; each target proportion in the target proportion set is greater than or equal to the first threshold divided by 100 to obtain the value.
[0045] In some implementations, when determining the local spatial threshold, step S131 above can be implemented as follows: based on the second threshold, determine a set of target proportions from the target proportions corresponding to all target screening thresholds respectively; each target proportion in the target proportion set is greater than or equal to the value obtained by dividing the first threshold by 100.
[0046] In this embodiment, the spatial threshold is divided into two levels: global and local. The calculation process is controlled by a first threshold and a second threshold, respectively, with the second threshold being smaller than the first threshold. This makes the local spatial threshold relatively more lenient, suitable for regions with low coherence but potentially weak signals, such as defect edges, while the global spatial threshold is more stringent, used for noise suppression in background regions. This dual-threshold structure enables differentiated processing of different spatial regions, enhancing sensitivity to defect edges and weak scatterers while maintaining overall image cleanliness and improving imaging quality in complex scenes.
[0047] In some embodiments, the second threshold is directly proportional to the target value, which is the quotient between the first number of vector coherent imaging values included in the third imaging value set and the second number of all vector coherent imaging values; the third imaging value set corresponds to the local spatial threshold.
[0048] Here, the first quantity refers to the number of pixels contained in the third imaging value set, and the second quantity refers to the total number of all pixels in the initial vector coherent image, that is, the total number of pixels in the imaging region D.
[0049] It is understood that the quotient between the first and second values represents the relative area proportion of the defect edge region in the entire image, used to measure the extent of defect region expansion and signal concentration. In this embodiment, the second threshold is set to be directly proportional to the target value because: when the quotient is large, it indicates that there is a large area of high coherence or multiple significant defects in the initial vector coherent image; in this case, the second threshold should be appropriately increased to strengthen background suppression and prevent excessive retention of edge artifacts. When the quotient is small, it indicates that the defects in the initial vector coherent image are small or isolated; in this case, the second threshold should be decreased to protect weak signals from being filtered out. Through this setting, the second threshold can adaptively adapt to the signal distribution characteristics of the current imaging scene, achieving more refined image optimization.
[0050] As explained above, the local spatial threshold is applicable to defect edge regions with low coherence but potentially weak signals, such as defect edges. The third imaging value set corresponds to the second threshold. In other words, the third imaging value represents the set of vector coherent imaging values located in the defect edge region. This set reflects the weak coherent signals retained in the defect edge transition zone. These signals may have vector coherent imaging values lower than the global threshold due to material attenuation, geometric factors, or scattering effects, but they are still part of the true defect edge. The purpose of obtaining this set is to further quantify the signal distribution characteristics within the local region, providing data support for subsequent dynamic adjustment of the second threshold.
[0051] In some implementations, the second threshold can be determined by multiplying the target value by a preset proportional relationship.
[0052] In this embodiment, the second threshold is determined by a target value, which is the ratio of the number of vector coherent imaging values in the third imaging value set to the total number of pixels. This makes the determination of the second threshold related to the relative area occupied by the defect edge region in the entire image, taking into account the statistical characteristics of all vector coherent imaging values corresponding to the initial vector coherent image. This allows the local spatial threshold to adaptively adjust with the scale of the first quantity, avoiding artifacts caused by excessively widening the threshold in large defect areas or weak signal loss due to excessively tightening it in small defect areas, thereby achieving precise defect boundary protection.
[0053] In some embodiments, when the target threshold includes a second threshold, steps S133 and S134 are included before step S131 above: Step S133: Determine a first index based on a first quantity, a second preset ratio, and a first value; the first value increases as the second quantity increases; the second preset ratio is used to fine-tune the second threshold. In some implementations, a second preset ratio is used to fine-tune a second threshold to control a local spatial threshold. The second preset ratio can be selected from the range of [0.8, 1.2].
[0054] In some implementations, the first value is a preset value, and the value of the first value is related to the second quantity.
[0055] In some implementations, the first index can be determined by the following formula (1): (1); in, Indicates the first quantity. Indicates the first value. This indicates the second preset ratio.
[0056] It should be noted that in this application The value increases as the second quantity increases. The second quantity is multiplied by the target coefficient to obtain the first value. The target coefficient can be a preset value. The range of the target coefficient is determined based on the physical constraints of the first preset ratio and the target offset distance. The two together ensure that the area corresponding to the third pixel value set usually does not exceed 15% of the whole image. Therefore, the range of the target coefficient is set to 5%~15%. Taking the target coefficient near the midpoint of this range can ensure that the adjustment range of the local spatial threshold matches the actual scale of the edge region.
[0057] Step S134: Substitute the first exponent into the logistic growth function to obtain the second threshold; the output of the logistic growth function increases as the first exponent increases.
[0058] Here, the logistic growth function is a mathematical model that describes "growth under limited resources". Its core feature is the "S"-shaped curve: growth is slow at the beginning, accelerates in the middle, and finally tends to plateau as it reaches the carrying capacity of the environment.
[0059] In some implementations, the second threshold can be determined by the following formula (2): (2); As can be understood from the above explanation, the second threshold is directly proportional to the target value, and the target value is related to the first and second quantities. Therefore, without changing the second quantity, the second threshold increases with the increase of the first quantity. Furthermore, as shown in the above formula (), with the increase of the first exponent, the value in the above formula... The value will also gradually increase, thus making The reciprocal decreases, thus 1 minus The increase in the difference between the reciprocals of the first and second thresholds leads to an increase in the second threshold. Therefore, in the above formula (), an increase in the first exponent will cause the second threshold to increase as well. The first exponent is related to the first quantity; that is, as the first quantity increases, the second threshold also increases. Thus, the above formula () implicitly reflects a direct proportional relationship between the second threshold and the target value.
[0060] In this embodiment, a nonlinear mapping relationship for the second threshold is constructed by introducing a first exponent and a logistic growth function. The first exponent, combined with the number of local pixels, a second preset ratio, and the global pixel base, reflects the relative importance of the defect edge region. The logistic function smoothly maps the first exponent to the second threshold, ensuring that the local spatial threshold change trend conforms to an S-shaped curve, achieving a gradual adjustment from low to high. This nonlinear processing method avoids abrupt threshold changes, improves the stability and continuity of the local spatial threshold for different defect sizes and densities, and enhances adaptability to multi-scale defects.
[0061] In some embodiments, the spatial threshold includes a local spatial threshold. Under the local spatial threshold, the target screening threshold includes a first screening threshold, the target ratio includes a first ratio, and the target imaging set includes a third imaging value set. The third imaging value set includes at least one vector coherent imaging value that can characterize the defect edge information of the target object. The above step S120 includes steps S121 to S123: Step S121: Based on the first preset ratio, determine the first imaging value set from all vector coherent imaging values; the first imaging value set includes at least one vector coherent imaging value that can characterize the defective subject of the target object; Here, the first preset ratio is a pre-set threshold ratio parameter used to filter out at least one vector coherent imaging value characterizing the defective subject from the initial vector coherent image.
[0062] In some implementations, the first preset ratio can be in the range of [0.05, 0.1].
[0063] It is understandable that the vector coherent imaging values in the first imaging value set represent the defect of the target object. In other words, the first imaging value set corresponds to the area where the defect is located in the target object, which corresponds to the bright area in the initial vector coherent image. The vector coherent imaging value of the defect under this bright area is usually close to 1. That is to say, the values of each vector coherent imaging value in the first imaging value set are close to 1.
[0064] Step S122: Based on the target offset distance and the pixel position corresponding to each vector coherent imaging value in the first imaging value set, determine the third imaging value set from the second imaging value set; the distance between the pixel position corresponding to each vector coherent imaging value in the third imaging value set and the pixel position corresponding to each vector coherent imaging value in the first imaging value set is less than or equal to the target offset distance. Here, the target offset distance is a preset spatial distance parameter used to define the range extending outward from the first set of imaging values (i.e., the highlighted area).
[0065] In some implementations, the target offset distance can range from 3mm to 5mm.
[0066] In some implementations, for each pixel location in the second imaging value set, the Euclidean distance between it and each pixel location in the first imaging value set is calculated. If the calculated shortest Euclidean distance is less than the target offset distance, then the vector coherent imaging value in the second imaging value set is included in the third imaging value set. It should be noted that the Euclidean distances between each pixel location in the second imaging value set and all pixel locations in the first imaging value set are calculated separately, resulting in the same number of Euclidean distances as the vector coherent imaging values in the first imaging value set. The shortest Euclidean distance is then calculated by minimizing these same number of Euclidean distances.
[0067] It is understandable that the region corresponding to the third set of imaging values is the defect edge region adjacent to the bright region. Although the corresponding vector coherent imaging value in this defect edge region is low, it may contain weak defect edge signals caused by sound attenuation or geometric factors. Thus, by determining the third set of imaging values, the effective range of the local spatial threshold can be determined, thereby effectively protecting the weak signals at the defect edge and improving the imaging quality of the target vector coherent image.
[0068] In some implementations, the defect edge region corresponding to the third imaging value set can be determined by the following formulas (3) and (4): (3); Among them, the distance transformation function This is represented as any point within the imaging region ( x , z ) to the highlighted area Ω The shortest Euclidean distance is used to quantify the proximity of any pixel to a highlighted area. x 0, z 0) indicates the highlighted area. Ω The spatial coordinates of any pixel within the range, x , z ) represents the spatial coordinates of the pixel to be calculated, and the shortest Euclidean distance between the two is used to quantify the proximity of any pixel to the highlighted area.
[0069] (4); in, δ- Neighborhood refers to the highlighted area. Ω (i.e., the area corresponding to the first set of imaging values mentioned above) has a surrounding distance not exceeding δ The set of all pixels serves to define the precise range of local thresholding. δ The target offset distance is a preset spatial distance parameter used to define the distance from the highlighted area. Ω The width of the outward expansion of the boundary, thereby constructing the defect edge region. ε adaptive (Right now Ω of δ- Neighborhood).
[0070] Step S123: Based on all vector coherent imaging values in the third imaging value set and each first screening threshold, determine the first ratio corresponding to each first screening threshold.
[0071] Here, the first screening threshold is a set of thresholds set for the third imaging value set, used to perform statistical analysis on the pixel value distribution within the corresponding region of the third imaging value set.
[0072] In some implementations, for each first screening threshold, the number of pixels in the third imaging value set that satisfy the vector coherent imaging value being less than or equal to the first screening threshold is counted, and the proportion of these pixels to the total number of pixels in the third imaging value set is calculated, which is the first proportion.
[0073] Understandably, the first proportion reflects the percentage of pixels smaller than the first screening threshold within the edge region of different first screening thresholds, providing data support for the subsequent dynamic calculation of local spatial thresholds.
[0074] For example, when the first screening threshold is low, the first proportion is high, indicating that there are more weak coherent signals in the edge region. In this case, a more lenient local spatial threshold should be used to retain these signals. Conversely, when the first screening threshold is high, the first proportion is low, indicating that the signal in the edge region is strong. The strictness of the local threshold can be appropriately increased.
[0075] In some implementations, the first proportion can be determined by the following formula (5): (5); in, This indicates the first screening threshold. It represents the area of the region corresponding to the third set of imaging values, or the number of all vector coherent imaging values in the third set of imaging values.
[0076] In some implementations, after obtaining the first ratio, the above steps S131 and S132 determine the local spatial threshold using the following formula (6): (6); in, p l This represents the second threshold.
[0077] In this embodiment, firstly, a first set of imaging values characterizing the defect subject of the target object is selected from all vector coherent imaging values using a first preset ratio, serving as a candidate region for the defect core area. Then, based on the target offset distance and centered on this set, a third set of imaging values adjacent to it is determined as the exclusive range for local spatial thresholding. Finally, within this third set of imaging values, the first ratio corresponding to each first screening threshold is statistically analyzed. This method ensures that the local spatial threshold only applies to the transition zone surrounding the defect core area, avoiding interference with the background region. Simultaneously, by statistically analyzing the vector coherent imaging values within the neighborhood to determine the local spatial threshold, effective preservation of weak defect edge signals is achieved, significantly improving the detection capability of near-surface or small defects.
[0078] In some embodiments, the spatial threshold includes a global spatial threshold; under the global spatial threshold, the target selection threshold includes a second selection threshold; the target ratio includes a second ratio; and the target imaging set includes all vector coherent imaging values corresponding to the initial vector coherent image. Step S120 above includes step S124: Step S124: Based on all vector coherent imaging values in the initial vector coherent image and each second screening threshold, determine the second ratio corresponding to each second screening threshold.
[0079] Here, the second screening threshold is a set of thresholds set for all vector coherent imaging values in the initial vector coherent image, used to perform statistical analysis on the pixel value distribution in the corresponding region of the initial vector coherent image.
[0080] In some implementations, for each second screening threshold, the number of pixels in the initial vector coherent image whose vector coherent imaging values are less than or equal to the second screening threshold is counted, and the proportion of these pixels to all vector coherent imaging values in the initial vector coherent image is calculated, which is the second proportion.
[0081] Understandably, the second ratio reflects the proportion of pixels smaller than the second screening threshold within the imaging region at different second screening thresholds, providing data support for the subsequent dynamic calculation of the global spatial threshold.
[0082] In some implementations, the second ratio can be determined by the following formula (7): (7); in, This indicates the second screening threshold. This represents the area of the imaging region, or the number of all vector coherent imaging values in the initial vector coherent image.
[0083] In some implementations, after obtaining the second ratio, steps S131 and S132 above determine the global spatial threshold using the following formula (8): (8); Where, p g This represents the first threshold.
[0084] In this embodiment, a second proportion corresponding to each second screening threshold is statistically calculated within all vector coherent imaging values in the initial vector coherence map. By statistically analyzing all vector coherent imaging values within the imaging region to determine the global spatial threshold, effective filtering of noise signals can be achieved, improving the imaging quality of the target vector coherent image.
[0085] In some embodiments, step S121 above includes steps S1211 to S1213: Step S1211: Determine the maximum value among all vector coherent imaging values as the target vector coherent imaging value; It should be noted that, due to the high consistency of signal phase at real defects or strong reflectors, their vector coherence imaging coherence value is theoretically close to 1. Therefore, this maximum value usually corresponds to the brightest and most coherent region in the image, which is very likely the core location of the main defect. By extracting the global maximum value, a reliable and objective reference benchmark is provided for the subsequent calculation of the local spatial threshold, avoiding misjudgments caused by noise peaks or local anomalies, and ensuring the stability and rationality of the threshold generation.
[0086] Step S1212: Determine the product of the target vector coherent imaging value and the first preset ratio as the target screening threshold; It should be noted that the selection of the first preset ratio is crucial: if the first preset ratio is too small (e.g., 0.05), the target screening threshold will be too low, which may result in a large amount of background noise being included in the first imaging value set; if the first preset ratio is too large, the target screening threshold will be too high, which may miss some weak defect signals. Therefore, the design of the first preset ratio must take into account the balance between noise suppression and defect preservation.
[0087] Step S1213: Based on the target screening threshold, determine the first set of imaging values from all vector coherent imaging values; each vector coherent imaging value in the first set of imaging values is greater than or equal to the target screening threshold.
[0088] In some implementations, for each vector coherent imaging value of the initial vector coherent image, the vector coherent imaging value is compared with a target screening threshold. If the vector coherent imaging value is greater than or equal to the target screening threshold, the vector coherent imaging value is added to the first imaging value set.
[0089] In some embodiments, steps S1211 to S1213 described above can be implemented by the following formula (9): (9); in, u and v Ω represents the position of a pixel, used to determine a pixel and then find the pixel with the largest pixel value; Ω represents the first set of imaging values, which is essentially the set of all pixels in the initial vector image that satisfy the condition that "pixel value is greater than or equal to the product of the relative threshold and the maximum pixel value of the entire image". η This indicates the first preset ratio.
[0090] In this embodiment, the target screening threshold is obtained by multiplying the maximum vector coherence imaging value by a first preset ratio. Vector coherence imaging values higher than this threshold are then selected to form a first imaging value set. Since the vector coherence imaging value at the defect is close to 1, while the noise floor is much lower than 1, this method can effectively delineate the core area of the real defect. Furthermore, by controlling the screening strictness through a scaling factor, it takes into account both strong and weak defects, providing a reliable spatial anchor point for subsequent local spatial threshold positioning.
[0091] In some embodiments, the spatial threshold includes a local spatial threshold and a global spatial threshold; all vector coherent imaging values are divided into a third imaging value set and a fourth imaging value set; the fourth imaging value set consists of vector coherent imaging values other than those in the third imaging value set; the above step S140 includes steps S141 to S143: Step S141: Binarize each vector coherent imaging value in the third imaging value set using a local spatial threshold to obtain a fifth imaging value set; vector coherent imaging values in the third imaging value set that are less than the local spatial threshold are set to zero after binarization, while vector coherent imaging values in the third imaging value set that are greater than or equal to the local spatial threshold remain unchanged after binarization. Here, the third set of imaging values refers to the set of vector coherent imaging values that are determined to require processing using a local spatial threshold based on spatial location or preset conditions.
[0092] It should be noted that, as explained above, the third set of imaging values corresponds to the defect edge region. The vector coherence imaging values in this region are generally smaller than those in the bright region. Since this region contains vector coherence imaging values that represent the edge information of the defect, if the region is binarized with a global spatial threshold, the edge information of the defect will be filtered out, affecting the image quality of the target vector coherence image. Therefore, applying a smaller local spatial threshold to this region can preserve the edge information of the defect as much as possible.
[0093] Step S142: Binarize each vector coherent imaging value in the fourth imaging value set using a global spatial threshold to obtain the sixth imaging value set; It should be noted that, as explained above, the third imaging value set corresponds to the defect edge region. The other regions in the imaging region besides the third imaging value set are mainly noise regions and highlight regions, which are the regions corresponding to the fourth imaging value set. Therefore, in this region, a global spatial threshold can be used to binarize the region, which can effectively filter out the noise signal in the region corresponding to the fourth imaging value set and improve the image quality of the target vector coherent image.
[0094] In some implementations, when binarizing the fourth set of imaging values, the vector coherent imaging values in the fourth set that are less than the global spatial threshold are set to zero after binarization, while the vector coherent imaging values in the fourth set that are greater than or equal to the global spatial threshold remain unchanged after binarization, so as to obtain the sixth set of imaging values.
[0095] Step S143: Determine the target vector coherent image based on the fifth imaging value set and the sixth imaging value set.
[0096] In some implementations, the fifth and sixth imaging value sets are merged according to pixel positions, and then the merged set is processed to obtain a target vector coherent image.
[0097] In some implementations, the target vector coherent image can be obtained by the following formula (10): (10); Where L{.} is an indicator function, which means that the value is 1 when the condition is true and 0 otherwise. It can be understood that this operation is equivalent to: in the entire imaging area, only the pixels in the original VCI value VCI(x,z) that are not less than the threshold corresponding to the position are retained, and the rest of the pixels are set to zero. The spatial threshold is represented by the following formula (11): (11); in, This represents the region corresponding to the fourth set of imaging values. Indicates a local spatial region. Represents the global spatial region.
[0098] In this embodiment, all vector coherent imaging values are divided into a third imaging value set and a fourth imaging value set. A local spatial threshold is applied to the third imaging value set, and a global spatial threshold is applied to the sixth imaging value set for binarization. This approach preserves the edge information of defects through the local spatial threshold and removes background noise through the global spatial threshold, thereby improving the image quality of the target vector coherent image.
[0099] In some embodiments, step S110 above includes steps S111 to S113: Step S111: For each transmit-receive array element pair, perform Hilbert transform on the time-domain signal corresponding to the transmit-receive array element pair to determine the instantaneous phase of the time-domain signal at the corresponding imaging point; Here, the time-domain signal refers to the raw A-scan signal obtained by each transmit-receive element pair of the ultrasonic phased array probe in full-matrix capture mode, recording the amplitude variation of the ultrasonic wave along the time axis. The Hilbert transform is a signal processing technique that converts real-valued signals into analytic signals, thereby extracting the instantaneous envelope and instantaneous phase of the signal.
[0100] In some implementations, the instantaneous phase of the time-domain signal at the corresponding imaging point is calculated using the following formula (12).
[0101] (12); in, This represents the instantaneous phase of the ultrasonic signal transmitted from element p and received by element q at the imaging point (x, z). This represents the time-domain signal corresponding to the transmit-receive array element pair. Indicates to The analytic signal obtained by performing the Hilbert transform.
[0102] Step S112: For each imaging point, perform unit vector superposition and modulus normalization on the instantaneous phases corresponding to at least one time-domain signal associated with the imaging point to obtain the vector coherence factor corresponding to the imaging point; the vector coherence factor characterizes the phase synchronization degree between at least one time-domain signal corresponding to the imaging point. Here, the Vector Coherence Factor (VCF) is a key algorithmic metric used in total focused ultrasound (TFM) imaging to improve image quality. It reflects the degree of phase consistency by treating the instantaneous phase of the signal as a unit circular random variable on the complex plane and calculating the magnitude of the average vector sum.
[0103] It is understandable that the VCF value ranges from [0, 1], and its physical meaning is an indicator that quantifies the degree of phase synchronization of signals from all transmit and receive paths at a given imaging point. When a real reflector or defect exists at a pixel, the echo signals from different paths have a highly consistent phase distribution, and the VCF value is close to 1. However, inside homogeneous material or in noisy regions, the phases of each path are randomly distributed, and the VCF value tends to be close to 0. Therefore, the higher the VCF value, the stronger the signal phase consistency at that point, and the more likely it corresponds to a real defect.
[0104] In some implementations, for each imaging point within the imaging region, the total cosine sum and the total cosine sum corresponding to that imaging point are calculated; based on the total cosine sum and the total cosine sum, the vector coherence factor is determined.
[0105] In one example, for a certain imaging point within the imaging region (x , z Consider all M×M transmit-receive pairs. Treat the instantaneous phase extracted at the imaging point for each path as the angle of a unit complex vector in the complex plane. Take the cosine component of this vector and sum it over all M² paths to obtain the total cosine sum. Similarly, take the sine component of each unit complex vector and sum it over M² paths to obtain the total sine sum.
[0106] In one example, the total cosine sum can be obtained by the following formula (13): (13); In one example, the total sine sum can be obtained by the following formula (14): (14); Where M represents the number of array elements in the total focusing imaging ultrasonic phased array testing equipment, and j represents the imaginary unit.
[0107] In one example, VCF can be obtained using the following formula (15): (15); It should be noted that VCF can statistically quantify the phase consistency of the multipath signal corresponding to each imaging point. This eliminates the traditional TFM strategy that relies on signal amplitude superposition, effectively removes the influence of material attenuation on amplitude, and significantly enhances the detection capability of small-sized defects, near-surface defects, and defects in high-attenuation media.
[0108] Step S113: Determine the initial vector coherence image based on the vector coherence factors corresponding to all imaging points.
[0109] Here, the Initial Vector Coherence Image (VCI) is a two-dimensional image composed of the vector coherence factors VCI(x,z) corresponding to all imaging points (x,z) within the imaging region.
[0110] Understandably, the grayscale value of each pixel in the initial vector coherent image can be mapped to a VCF value. High VCF value regions (typically bright) correspond to locations with high signal phase coherence, potentially containing real defects or strong reflectors, while low VCF value regions (typically dark) correspond to noise or scattering background. This method visualizes the abstract phase coherence quantization result as an image, facilitating subsequent determination of the spatial threshold and providing a crucial intermediate product for generating the final target vector coherent image.
[0111] In some implementations, the vector coherence imaging value corresponding to each imaging point is determined based on the vector coherence factor corresponding to each imaging point; and an initial vector coherence image is determined based on the vector coherence imaging values corresponding to all imaging points.
[0112] In one example, the vector coherence factor corresponding to each imaging point is determined as the vector coherence imaging value of that imaging point.
[0113] In one example, the vector coherence factor corresponding to each imaging point is averaged to obtain the vector coherence imaging value of that imaging point, as shown in the following formula (16): (16); In this embodiment, a Hilbert transform is first performed on the time-domain signal of each transmit-receive array element pair to extract its instantaneous phase at the corresponding imaging point. Then, for each imaging point, the instantaneous phases corresponding to at least one time-domain signal associated with that imaging point are vector-superimposed and normalized to obtain a vector coherence factor. The vector coherence factor reflects the phase synchronization degree of each instantaneous signal at that imaging point. Finally, the vector coherence factors of all imaging points are used to determine the initial vector coherence image. This method reduces the dependence on signal amplitude during imaging, minimizes the impact of amplitude attenuation on imaging, and effectively improves the imaging capability for diffraction-type defects. Furthermore, by visualizing the abstract phase coherence quantification results as an image, reliable data support is provided for subsequent spatial thresholding, thereby improving the accuracy of subsequent defect detection of the target object.
[0114] The following describes the application of the vector coherent imaging method based on adaptive threshold processing provided in this application in a real-world scenario.
[0115] The Total Focusing Method (TFM), based on Full Matrix Capture (FMC), reconstructs the focused signals of each point within the imaging region through Delay and Sum (DAS), possessing a natural advantage in full dynamic focusing and becoming one of the mainstream imaging techniques for ultrasonic array detection. However, traditional TFM relies on the amplitude information of the echo signals for superposition, and its imaging quality is highly dependent on the signal-to-noise ratio and amplitude consistency. When detecting materials such as coarse-grained materials, composite materials, or high-attenuation media, amplitude information is easily affected by material scattering, dispersion, and attenuation, causing the amplitude of the defect echo to be lower than the noise floor. In such cases, TFM, which simply relies on amplitude accumulation, cannot effectively distinguish between defects and background noise.
[0116] Imaging methods based on the Vector Coherence Factor (VCF) offer a novel approach to addressing the aforementioned problems. VCF treats the instantaneous phase of a signal as a random variable on a unit circle. Based on this, a ring-shaped vector model is constructed, and the average magnitude of this vector reflects the phase consistency of the signals received by each array element within the imaging region. When a reflector is present at a spatial focal point, the echo signals received by different array elements from that focal point exhibit a highly consistent phase distribution, resulting in a larger VCF value. Conversely, when no reflector is present at the focal point or the echo signals primarily originate from noise, the phase distribution of the received signals tends to be disordered, and the VCF value approaches zero. Therefore, VCF essentially characterizes the statistical information about the presence of coherent scatterers within the imaging region, serving as a direct, amplitude-independent measure of defect probability. Directly displaying the VCF as the imaging result constitutes Vector Coherence Imaging (VCI).
[0117] Unlike traditional TFM, which relies on signal amplitude superposition, the VCI algorithm completely discards signal amplitude information during reconstruction, retaining only the instantaneous phase information. Since material attenuation primarily affects the amplitude of the ultrasonic signal while having a negligible impact on its phase, the VCI algorithm possesses unique technical advantages in detecting highly attenuated materials, thick workpieces, and complex detection scenarios where precise amplitude calibration is difficult. Furthermore, existing research has shown that VCI can significantly enhance the imaging intensity of omnidirectional scatterers while effectively suppressing interference from strong geometric reflection signals such as specular reflection, making it more identifiable of diffraction-type defects (such as crack tips, pores, and other micro-defects) compared to traditional TFM images. In practical applications, VCI has been proven to clearly detect surface fatigue crack tips with an extension height less than two ultrasonic wave lengths, as well as micropores and microcracks caused by early high-temperature hydrogen erosion damage, demonstrating excellent capabilities for detecting small-sized and near-boundary defects.
[0118] However, existing VCI and VCF-based coherent weighted imaging algorithms still have significant shortcomings in the processing. First, VCI, as a pure phase imaging method, completely discards amplitude information. While this effectively eliminates the impact of amplitude attenuation on imaging, it also leads to the loss of the original reflection intensity information of the defect signal, which is not conducive to a comprehensive assessment of the defect type, size, and severity. Second, the threshold or exponential parameters on which the phase coherence determination in existing VCF weighted methods usually adopt globally fixed values or empirical presets. This static threshold setting mode is difficult to adapt to the dynamic changes in signal coherence characteristics under different sound beam propagation paths, different acoustic properties of materials, and different imaging regions: when the threshold is set too high, weak amplitude defect signals are easily misjudged as noise and over-suppressed; when the threshold is set too low, random noise and structural noise cannot be effectively filtered out, resulting in a large number of artifacts remaining in the imaging background. In addition, most existing methods do not fully consider the directional differences of the ultrasonic propagation path and the weighting effect of the array element geometry on the phase coherence statistics. There is still room for improvement in imaging resolution, contrast, and the adaptive capability of multi-view fusion.
[0119] Therefore, existing vector coherence imaging (VCI) uses a fixed threshold for phase consistency determination, which is difficult to adapt to changes in signal characteristics of different materials and imaging regions, and is prone to problems such as excessive suppression of defects or noise residue. This invention proposes a vector coherence imaging method and device based on adaptive threshold processing.
[0120] In a first aspect, this application provides a vector coherent imaging method based on adaptive thresholding, comprising: acquiring full matrix data, performing Hilbert transform on each A-scan signal, and extracting the instantaneous phase; calculating the vector coherence factor (VCF) based on the instantaneous phase of each transmitter-receiver pair at the imaging point, and constructing the vector coherent imaging (VCI) result from the VCF values of each imaging point; performing statistical distribution analysis on the pixel values of the VCI result according to the statistical distribution characteristics of the pixel values of the VCI image, and dynamically calculating the global adaptive threshold and the local adaptive threshold; performing thresholding segmentation on the VCI image based on the global adaptive threshold and the local adaptive threshold, generating an optimized weighting matrix (corresponding to Formula 13 below), receiving the optimized weighting matrix or the fused imaging data, completing the spatial mapping and dynamic range adjustment of the image, and finally outputting the vector coherent image after adaptive thresholding.
[0121] Secondly, this application provides a vector coherence imaging device based on adaptive threshold processing, comprising: a data acquisition and preprocessing unit, used to control an ultrasonic phased array probe to perform full matrix data acquisition, acquire raw echo signals, and sequentially perform Hilbert transform and instantaneous phase extraction on each A-scan signal, outputting preprocessed instantaneous phase data and optional analysis signal envelope; and a vector coherence imaging calculation unit, which receives instantaneous phase data, calculates the vector coherence factor (VCF) corresponding to each imaging point according to the acoustic propagation path from each transmit and receive array element to each imaging point, and superimposes the VCF values of all imaging points in the entire imaging area to obtain a vector coherence imaging (VCI) result.
[0122] The following describes a vector coherent imaging method based on adaptive thresholding provided in an embodiment of this application, such as... Figure 2 As shown, the method includes steps S201 to S205: Step S201: Acquire the raw echo signal; In some embodiments, a fully focused imaging ultrasonic phased array detection device is used to scan the target under test.
[0123] In some implementations, the target to be tested is a high-density polyethylene test block containing artificial defects, the dimensions of which are as follows: Figure 3 As shown. The total focusing imaging ultrasonic phased array testing equipment uses a linear phased array probe with a center frequency of 2.25MHz, 64 array elements, and an element spacing of 0.75mm. The testing mode of the total focusing imaging ultrasonic phased array testing equipment is set to single longitudinal wave mode, with a sound velocity of 2300m / s, a transmission voltage of 100V, and a pulse width of 410ns. Through the full matrix acquisition mode, each array element is excited sequentially, and all array elements receive and store the original A-scan signal, thereby acquiring complete full matrix data.
[0124] Step S202: Extract vector information by performing Hilbert transform on the original echo signal.
[0125] In some embodiments, vector information is extracted based on Hilbert transform of the original echo signal, and the calculation process of the vector information is as shown in formulas (12) to (14) above.
[0126] Step S203: Perform vector coherent synthesis on the multi-channel data and calculate the VCI value of each pixel.
[0127] In some embodiments, the unit complex vectors of all M×M transmit-receive pairs (M is the number of array elements, for example, M=64) are summed, their modulus is calculated, and then normalized by dividing by the total logarithm to obtain the VCF, as shown in the above formula (15).
[0128] In some implementations, VCF is substituted into the above formula (16) to obtain VCI.
[0129] Step 204: Determine the adaptive threshold.
[0130] In some implementations, the process of determining the adaptive threshold (i.e., the spatial threshold mentioned above) includes: 1. calculating the global threshold (i.e., the global spatial threshold mentioned above), 2. determining the adaptive edge region, and 3. calculating the local threshold.
[0131] 1. Calculate the global threshold; Introducing the image pixel value set and its cumulative distribution function, as shown in formulas (7) and (8) above, defines the global quantile threshold operator. Where D... R2 represents the entire imaging area, and |D| is its area (or total number of pixels).
[0132] In some implementations, the image pixel value set is obtained by formula (16) above. This image pixel value set refers to a mathematical set that collects the pixel values of all pixels in the entire vector coherence imaging (VCI) image. This image pixel set is obtained by formula (16), where the pixel value at each pixel (x, z) is the VCI(x, z) of that point (with a value range of 0 to 1). This image pixel value set is the basic data source for adaptive threshold calculation.
[0133] In some implementations, the cumulative distribution function (i.e., formula (7)) is a fundamental function describing the distribution characteristics of a set of data. In this embodiment, it specifically refers to the function constructed for the set of image pixel values {V(x,z)|(x,z)∈D}. The cumulative distribution function is defined in integral form, indicating that the function L performs conditional judgment on each pixel (counting it as 1 if the condition is met, otherwise 0). The integral operation essentially counts all pixels that meet the condition across the entire image, and dividing by the total area achieves the calculation ratio. Therefore, this cumulative function characterizes the cumulative distribution function value mathematically as being equal to a pixel value not greater than... The proportion of pixels in a given image to the total number of pixels is a direct result of the integral of the indicator function and a concrete manifestation of the standard definition of the cumulative distribution function in the image pixel set. Understandably, the core function of the cumulative distribution function is to quantitatively describe the statistical distribution of pixel values across the entire image.
[0134] In some implementations, the global quantile threshold operator T g It is a preset global quantile p g The mathematical operator that maps to the global threshold of the actual image is based on the cumulative distribution function of pixel values in the current VCI image, and is obtained by solving for values greater than or equal to... p gminimum value To calculate the threshold.
[0135] L{.} is an indicator function, which is a function that takes only 0 or 1 and is used to determine whether a given condition is true. The purpose of the indicator function is to implement pixel counting that meets specific conditions. p g The preset global quantile (ranging from 98% to 99.5%) is a user-defined numerical parameter used to determine the proportion of the most coherent pixels to be retained as candidate defect regions in the entire image.
[0136] It is understandable that in formula (8), a very high global quantile is preset. (e.g., 98%~99.5%), then search through all pixel values in the entire image from low to high, finding the value that just makes the cumulative distribution function value reach or exceed the threshold. That minimum pixel value is determined as Tg. Tg filters out the small subset of the brightest (most coherent) pixels in the entire image as potential defect areas, while the vast majority of the remaining pixels are judged as noisy background.
[0137] 2. Determine the adaptive edge region; In some implementations, firstly, the highlight region Ω is defined as the set of all pixels that satisfy the relative intensity threshold, as shown in the above formula (9). Then, the distance transformation function is defined, as shown in the above formula (3). Finally, the adaptive edge region is determined according to the distance transformation function, as shown in the above formula (4).
[0138] It should be noted that the purpose of setting the highlighted region Ω in this embodiment is to provide a reliable spatial anchor point for adaptive threshold processing. Based on the physical characteristics of VCF (close to 1 at the defect), the global threshold can be used to ensure that the core area of the real defect is delineated without missing weak defects; and this region is used as a premise for the subsequent delineation of the edge region, so that the local threshold protection band is expanded outward from the anchor point, thereby achieving the preservation of weak defect signals.
[0139] Since the VCI value has a large numerical difference between defects and noise, the instantaneous phase of each path at the real defect is highly consistent, and the VCI value is theoretically close to 1, while the phase of the noise region is randomly dispersed, and the VCI value is close to 0. Based on the value of the first preset ratio in the above formula (9), even the weak defect signal weakened by attenuation still has a VCI value that is significantly higher than the noise floor, and can be easily included in the bright area. The pure noise region cannot meet the selection criteria because the VCI value is extremely low (usually less than 1%). This ensures that the bright area neither misses the real defect nor mistakenly enters the pure noise region. Therefore, the bright area Ω can effectively capture these pixels that are most likely to contain real defects.
[0140] In some implementations, η is a proportionality coefficient relative to the maximum pixel value Vmax of the image, which controls the strictness of pixel selection in the highlighted areas.
[0141] It should be noted that Ω is independently constructed by formula (9) based on the relative threshold ηVmax as a spatial anchor point, while Tg is independently calculated by formulas (7) and (8) based on the cumulative distribution function of pixel values in the whole image as a statistical threshold. The two point to the same group of strongest coherent pixels from different dimensions.
[0142] In some implementations... ε adaptive It is called the "spatial boundary" between the global threshold and the local threshold because it is located precisely in the highlighted area. Ω Between the (defect core area) and the pure background area, and mathematically determined by the adaptive threshold function of formula (11). τ ( x , z It implements spatial switching between two thresholds: pixels falling within the region are judged using a local threshold, while pixels falling outside the region are judged using a global threshold.
[0143] 3. Calculate the local threshold; In some implementations, the edge region can be calculated using the above formulas (5) and (6). Here, the edge region refers to the set of all pixels in the imaging region D whose distance to the highlight region Ω does not exceed the edge offset δ. The edge region can be understood as the spatial boundary between the global threshold and the local threshold, used to delineate the exclusive area for local threshold processing.
[0144] It should be noted that the local threshold is a threshold dynamically calculated based on the statistical distribution of pixel values within the adaptive edge region. It is defined as a high quantile of the cumulative distribution function of pixel values in that region. The global threshold, however, filters out the strongest coherent signal (i.e., the bright area Ω and its nearest strongest points) in the entire image with extremely high quantiles (98%~99.5%). But for the transition zone surrounding the bright area (where the VCI value is relatively low but may still contain defect edges or weak scattering signals), if the same strict global threshold is used, this useful information will be filtered out. Therefore, this embodiment uses a local threshold... T l A relatively lenient threshold is provided within the edge region (because) p l Usually less than p gThis allows weak coherent signals in these transition zones to be preserved. In other words, the global threshold Tg is a strict sieve (high quantile) that acts on the entire imaging area, responsible for filtering out most random noise and background clutter to ensure image cleanliness; the local threshold is a relatively loose sieve (quantile dynamically adjusts with edge area), which only acts on the edge transition zone outside the defect core area, responsible for protecting weak coherent signals that are at the defect edge and have low VCI values due to attenuation from being filtered out.
[0145] In some implementations... p l These are local quantiles, not fixed quantiles. They vary with the proportion of the edge region's area; the larger the proportion of the edge region in the entire map, the more significant the variation. p l The higher the value, the smaller the proportion of the edge region in the entire image. p l The lower the value, the more automatically the strictness of the local threshold can be adjusted according to the relative size of the edge region.
[0146] In some implementations, the local fractions can be achieved using the above formulas (1) and (2).
[0147] Step S205: Use global and local thresholds for image optimization and output the final image.
[0148] In some implementations, the global threshold and the local threshold are combined to obtain an adaptive threshold, as shown in the above formula (11).
[0149] In some implementations, by executing formula (10), pixels with correlation coefficients greater than an adaptive threshold are retained, while low-coherence regions with high noise levels below the threshold are discarded, thus retaining valid coherent pixels that meet the phase consistency condition for imaging. In practice, for each pixel, if the pixel is located in the adaptive edge region... ε adaptive Within this range, a more lenient local threshold is assigned. T l To protect weak defect edge signals from being filtered out; if the point is located outside the edge region, a more stringent global threshold is assigned. T g It effectively filters out random noise and structural artifacts.
[0150] In some implementations, phase reconstruction is performed using the selected coherent pixels, and the final image is output.
[0151] In some implementations, the above-described vector coherent imaging method based on adaptive thresholding is used for... Figure 3 The high-density polyethylene test block shown was tested, and the generated image is as follows. Figure 4 As shown. In contrast, Figure 5 The results of detection on the same sample block using the traditional total focusing imaging (TFM) method are shown. (Comparison) Figure 4 , Figure 5 As can be seen, the embodiments of this application can effectively suppress the interference of structural noise and random noise, significantly reduce background clutter and artifacts, and improve spatial resolution and defect identification. Quantitative analysis shows that the defect detection signal-to-noise ratio of the embodiments of this application is 42.8 dB, while the defect detection signal-to-noise ratio of the traditional all-focusing imaging algorithm is 34.5 dB, representing an improvement of 8.3 dB. This indicates that the embodiments of this application can effectively improve the detection quality of internal defects in high-density polyethylene materials, especially for near-surface micro-defects and weak scatterers, demonstrating superior identification capabilities and better detection performance.
[0152] In one embodiment, a vector coherence imaging system based on adaptive thresholding is provided. The system includes: a data acquisition and preprocessing unit, used to control an ultrasonic phased array probe to perform full-matrix data acquisition, obtain raw echo signals, and sequentially perform Hilbert transform, real-to-imaginary part separation, and instantaneous phase extraction on each A-scan signal, outputting preprocessed instantaneous phase data and an optional analysis signal envelope; and a vector coherence imaging calculation unit, connected to the data acquisition and preprocessing unit, used to receive the instantaneous phase data, calculate the vector coherence factor (VCF) corresponding to each imaging point based on the acoustic propagation path from each transmit-receive array element pair to each imaging point, and organize the VCF values of all imaging points within the entire imaging area into a... Vector coherent imaging (VCI) results; an adaptive thresholding unit, connected to the vector coherent imaging calculation unit, is used to perform statistical distribution analysis on the pixel values of the VCI results and dynamically determine the global or local adaptive threshold; based on the threshold, binary segmentation, soft thresholding, or multi-level threshold transformation is performed on the VCI image to generate an optimized weighting matrix; an image reconstruction and output unit, connected to the adaptive thresholding unit, is used to receive the optimized weighting matrix or fused imaging data, complete the spatial mapping, dynamic range adjustment, and pseudo-color rendering of the image, and finally output the vector coherent full-focus image after adaptive thresholding.
[0153] In this embodiment, phase coherence classification and weighting of vector coherence imaging results are performed by dynamically calculating global and local adaptive thresholds, overcoming the shortcomings of traditional VCI algorithms where fixed thresholds or fixed exponential parameters are difficult to adapt to different detection scenarios. This method can automatically adjust the threshold according to the actual signal coherence distribution within the imaging area, preserving weak defect signals from excessive suppression in strong noise backgrounds, while effectively filtering out random noise and structural artifacts in uniform regions. This achieves a dynamic balance between noise suppression and defect preservation. For example, in uniform noise regions, a global high quantile threshold is used to uniformly set low-amplitude noise to zero, achieving strong filtering; in local edge regions near bright defects, a more lenient threshold based on local statistical distribution is used, making it easier for weak defect signals to pass the judgment requirements. The global and local thresholds are automatically switched by the algorithm based on pixel spatial location, achieving strong noise suppression and weak defect preservation. Compared to existing fixed-parameter methods, this invention significantly improves the signal-to-noise ratio, contrast, and defect identifiability of ultrasonic imaging under complex detection conditions (such as coarse-grained materials, high-attenuation media, and near-surface defects), and requires no manual parameter adjustment, exhibiting good adaptability and robustness.
[0154] This application provides a vector coherent imaging device based on adaptive threshold processing, such as... Figure 6 As shown, the device 600 includes: The acquisition module 610 is used to acquire the full matrix data of the target object in response to the completion of scanning of the target object by the full-focusing imaging ultrasonic phased array detection equipment; the full matrix data includes the time domain signal corresponding to each transmit-receive array element pair. Analysis module 620 is used to perform coherence analysis on the full matrix data to obtain the initial vector coherence image of the target object; coherence analysis is used to quantify the phase synchronization degree of each time domain signal at the corresponding imaging point; The first determining module 630 is used to determine the target ratio corresponding to each target screening threshold based on all vector coherent imaging values corresponding to the initial vector coherent image and each target screening threshold; the target ratio represents the proportion of vector coherent imaging values less than or equal to the target screening threshold in the target imaging set; the target imaging set is determined based on all vector coherent imaging values corresponding to the initial vector coherent image. The second determining module 640 is used to determine the spatial threshold based on the target proportions corresponding to all target screening thresholds; The processing module 650 is used to binarize all vector coherent imaging values through a spatial threshold to obtain a target vector coherent image of the target object; the target vector coherent image is used to realize defect detection of the target object.
[0155] In some embodiments, the second determining module includes: a first determining unit, configured to determine a set of target proportions from the target proportions corresponding to all target screening thresholds based on a target threshold; each target proportion in the target proportion set is greater than or equal to the target threshold divided by 100 to obtain a value; and a second determining unit, configured to determine the target screening threshold corresponding to the minimum value in the target proportion set as a spatial threshold.
[0156] In some embodiments, the spatial threshold includes a global spatial threshold and a local spatial threshold, and the target threshold includes a first threshold and a second threshold. The first threshold is used to determine the global spatial threshold, and the second threshold is used to determine the local spatial threshold. The second threshold is less than the first threshold.
[0157] In some embodiments, the second threshold is directly proportional to the target value, which is the quotient between the first number of vector coherent imaging values included in the third imaging value set and the second number of all vector coherent imaging values; the third imaging value set corresponds to the local spatial threshold.
[0158] In some embodiments, the second determining module further includes: a third determining unit, configured to determine a first index based on a first quantity, a second preset ratio, and a first value; the first value increases as the second quantity increases; the second preset ratio is used to fine-tune the second threshold; and a substitution unit, configured to substitute the first index into a logistic growth function to obtain a second threshold; the output of the logistic growth function increases as the first index increases.
[0159] In some embodiments, the spatial threshold includes a local spatial threshold. Under the local spatial threshold, the target screening threshold includes a first screening threshold, the target ratio includes a first ratio, and the target imaging set includes a third imaging value set. The third imaging value set includes at least one vector coherent imaging value that can characterize the defect edge information of the target object. The first determining module includes: a fourth determining unit, configured to determine a first imaging value set from all vector coherent imaging values based on a first preset ratio; the first imaging value set includes at least one vector coherent imaging value that can characterize the defect body of the target object; a fifth determining unit, configured to determine a third imaging value set from a second imaging value set based on a target offset distance and the pixel position corresponding to each vector coherent imaging value in the first imaging value set; the distance between the pixel position corresponding to each vector coherent imaging value in the third imaging value set and the pixel position corresponding to each vector coherent imaging value in the first imaging value set is less than or equal to the target offset distance; and a sixth determining unit, configured to determine a first ratio corresponding to each first screening threshold based on all vector coherent imaging values in the third imaging value set and each first screening threshold.
[0160] In some embodiments, the fourth determining unit includes: a first determining subunit, configured to determine the maximum value among all vector coherent imaging values as the target vector coherent imaging value; a second determining subunit, configured to determine the product of the target vector coherent imaging value and a first preset ratio as a target screening threshold; and a third determining subunit, configured to determine a first imaging value set from all vector coherent imaging values based on the target screening threshold; wherein each vector coherent imaging value in the first imaging value set is greater than or equal to the target screening threshold.
[0161] In some embodiments, the spatial threshold includes a local spatial threshold and a global spatial threshold; all vector coherent imaging values are divided into a third imaging value set and a fourth imaging value set; the fourth imaging value set consists of vector coherent imaging values other than those in the third imaging value set; the processing module includes: a first processing unit, configured to binarize each vector coherent imaging value in the third imaging value set using the local spatial threshold to obtain a fifth imaging value set; vector coherent imaging values in the third imaging value set that are less than the local spatial threshold are set to zero after binarization, and vector coherent imaging values in the third imaging value set that are greater than or equal to the local spatial threshold remain unchanged after binarization; a second processing unit, configured to binarize each vector coherent imaging value in the fourth imaging value set using the global spatial threshold to obtain a sixth imaging value set; and a seventh determining unit, configured to determine a target vector coherent image based on the fifth imaging value set and the sixth imaging value set.
[0162] In some implementations, the analysis module includes: an eighth determining unit, configured to perform a Hilbert transform on the time-domain signal corresponding to each transmit-receive array element pair to determine the instantaneous phase of the time-domain signal at the corresponding imaging point; a normalization unit, configured to perform unit vector superposition and modulo normalization on the instantaneous phases corresponding to at least one time-domain signal associated with the imaging point for each imaging point to obtain the vector coherence factor corresponding to each imaging point; the vector coherence factor characterizes the phase synchronization degree between at least one time-domain signal corresponding to the imaging point; and a ninth determining unit, configured to determine an initial vector coherence image based on the vector coherence factors corresponding to all imaging points.
[0163] The above description of the vector coherent imaging device embodiment based on adaptive thresholding is similar to the description of the method embodiment described above, and has similar beneficial effects. For technical details not disclosed in the vector coherent imaging device embodiment based on adaptive thresholding of this application, please refer to the description of the method embodiment of this application for understanding.
[0164] It should be noted that, in the embodiments of this application, if the above-mentioned vector coherent imaging method based on adaptive threshold processing is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0165] Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, external hard drive, read-only memory (ROM), magnetic disk, or optical disk. Therefore, the embodiments of this application are not limited to any specific hardware and software combination.
[0166] This application provides a computer device, which includes: a memory for storing computer-executable instructions or computer programs; and a processor for executing some or all of the steps in the above method when executing the computer-executable instructions or computer programs stored in the memory.
[0167] This application provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements some or all of the steps in the above-described method. The computer-readable storage medium can be transient or non-transient.
[0168] This application provides a computer program product, including a computer program or instructions, which, when executed by a processor, implement some or all of the steps in the above-described method.
[0169] It should be noted that the descriptions of the above-described storage media, computer program products, and device embodiments are similar to the descriptions of the above-described method embodiments, and have similar beneficial effects. For technical details not disclosed in the embodiments of the storage media, computer program products, and devices of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0170] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.
[0171] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0172] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.
[0173] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.
[0174] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0175] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.
[0176] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence or the part that contributes to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0177] The above are merely embodiments of this application and are not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of this application are included within the scope of protection of this application.
Claims
1. A vector coherent imaging method based on adaptive thresholding, characterized in that, The method includes: In response to the completion of scanning of the target object by the total focusing imaging ultrasonic phased array detection equipment, the full matrix data of the target object is acquired; the full matrix data includes the time domain signal corresponding to each transmit-receive array element pair. Coherence analysis is performed on the full matrix data to obtain an initial vector coherence image of the target object; the coherence analysis is used to quantify the phase synchronization degree of each time domain signal at the corresponding imaging point; Based on all the vector coherent imaging values corresponding to the initial vector coherent image and each target selection threshold, the target proportion corresponding to each target selection threshold is determined; the target proportion represents the percentage of vector coherent imaging values less than or equal to the target selection threshold in the target imaging set; the target imaging set is determined based on all the vector coherent imaging values corresponding to the initial vector coherent image. Determine the spatial threshold based on the target proportions corresponding to all target screening thresholds; The spatial threshold is used to binarize all the vector coherent imaging values to obtain the target vector coherent image of the target object; the target vector coherent image is used to detect defects in the target object.
2. The method based on claim 1, characterized in that, The determination of the spatial threshold based on the target proportions corresponding to all target screening thresholds includes: Based on the target threshold, a set of target proportions is determined from the target proportions corresponding to all target screening thresholds; each target proportion in the set of target proportions is greater than or equal to the target threshold divided by 100. The target screening threshold corresponding to the minimum value in the target ratio set is determined as the spatial threshold.
3. The method based on claim 2, characterized in that, The spatial threshold includes a global spatial threshold and a local spatial threshold. The target threshold includes a first threshold and a second threshold. The first threshold is used to determine the global spatial threshold, and the second threshold is used to determine the local spatial threshold. The second threshold is less than the first threshold.
4. The method based on claim 3, characterized in that, The second threshold is directly proportional to the target value, which is the quotient between the first number of vector coherent imaging values included in the third imaging value set and the second number of all vector coherent imaging values; the third imaging value set corresponds to the local spatial threshold.
5. The method based on claim 4, characterized in that, The method further includes: Based on the first quantity, the second preset ratio, and the first value, a first index is determined; the first value increases as the second quantity increases; the second preset ratio is used to fine-tune the second threshold. Substituting the first exponent into the logistic growth function yields the second threshold; the output of the logistic growth function increases as the first exponent increases.
6. The method according to any one of claims 1 to 5, characterized in that, The spatial threshold includes a local spatial threshold. Under the local spatial threshold, the target screening threshold includes a first screening threshold. The target ratio includes a first ratio. The target imaging set includes a third imaging value set. The third imaging value set includes at least one vector coherent imaging value that can characterize the defect edge information of the target object. The step of determining the target ratio corresponding to each target selection threshold based on all vector coherent imaging values corresponding to the initial vector coherent image and each target selection threshold includes: Based on a first preset ratio, a first set of imaging values is determined from all the vector coherent imaging values; the first set of imaging values includes at least one vector coherent imaging value that can characterize the defective subject of the target object; Based on the target offset distance and the pixel position corresponding to each vector coherent imaging value in the first imaging value set, a third imaging value set is determined from the second imaging value set; the distance between the pixel position corresponding to each vector coherent imaging value in the third imaging value set and the pixel position corresponding to each vector coherent imaging value in the first imaging value set is less than or equal to the target offset distance; Based on all vector coherent imaging values in the third imaging value set and each first screening threshold, a first ratio corresponding to each first screening threshold is determined.
7. The method based on claim 6, characterized in that, The step of determining the first imaging value set from all the vector coherent imaging values based on a first preset ratio includes: The maximum value among all the vector coherent imaging values is determined as the target vector coherent imaging value; The product of the target vector coherent imaging value and the first preset ratio is determined as the target screening threshold; Based on the target screening threshold, the first set of imaging values is determined from all the vector coherent imaging values; each vector coherent imaging value in the first set of imaging values is greater than or equal to the target screening threshold.
8. The method according to any one of claims 1 to 5, characterized in that, The spatial threshold includes a local spatial threshold and a global spatial threshold; all the vector coherent imaging values are divided into a third imaging value set and a fourth imaging value set; the fourth imaging value set is composed of vector coherent imaging values other than those in the third imaging value set. The step of binarizing all the vector coherent imaging values using the spatial threshold to obtain the target vector coherent image of the target object includes: The local spatial threshold is used to binarize each vector coherent imaging value in the third imaging value set to obtain a fifth imaging value set; the vector coherent imaging values in the third imaging value set that are less than the local spatial threshold are set to zero after binarization, and the vector coherent imaging values in the third imaging value set that are greater than or equal to the local spatial threshold remain unchanged after binarization. The sixth imaging value set is obtained by binarizing each vector coherent imaging value in the fourth imaging value set using the global spatial threshold. The target vector coherent image is determined based on the fifth imaging value set and the sixth imaging value set.
9. The method according to any one of claims 1 to 5, characterized in that, The step of performing coherence analysis on the full matrix data to obtain the initial vector coherence image of the target object includes: For each of the transmit-receive array element pairs, a Hilbert transform is performed on the time-domain signal corresponding to the transmit-receive array element pair to determine the instantaneous phase of the time-domain signal at the corresponding imaging point; For each imaging point, the instantaneous phases corresponding to at least one time-domain signal associated with the imaging point are superimposed by unit vectors and normalized by modulus to obtain the vector coherence factor corresponding to the imaging point; the vector coherence factor characterizes the phase synchronization degree between at least one time-domain signal corresponding to the imaging point. The initial vector coherence image is determined based on the vector coherence factors corresponding to all imaging points.
10. A vector coherent imaging device based on adaptive thresholding, characterized in that, The device includes: The acquisition module is used to acquire the full matrix data of the target object in response to the completion of scanning of the target object by the total focusing imaging ultrasonic phased array detection equipment; the full matrix data includes the time domain signal corresponding to each transmit-receive array element pair; The analysis module is used to perform coherence analysis on the full matrix data to obtain an initial vector coherence image of the target object; the coherence analysis is used to quantify the phase synchronization degree of each time domain signal at the corresponding imaging point; The first determining module is used to determine the target proportion corresponding to each target selection threshold based on all vector coherent imaging values corresponding to the initial vector coherent image and each target selection threshold; the target proportion represents the proportion of vector coherent imaging values less than or equal to the target selection threshold in the target imaging set; the target imaging set is determined based on all vector coherent imaging values corresponding to the initial vector coherent image. The second determining module is used to determine the spatial threshold based on the target proportions corresponding to all target screening thresholds; The processing module is used to binarize all the vector coherent imaging values using the spatial threshold to obtain the target vector coherent image of the target object; the target vector coherent image is used to detect defects in the target object.
