An automatic extraction method of ultrasonic CT transit time based on edge detection
Through the edge detection operator and adaptive threshold method, the problem of low signal-to-noise ratio and noise interference in ultrasonic CT transit time extraction is solved, accurate automatic extraction of transit time is achieved, avoiding artificial threshold setting, and improving the extraction efficiency. Precision and efficiency.
Patent Information
- Application Number
- CN202210784649.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-29
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-06-29
AI Technical Summary
Existing ultrasound CT transit time extraction methods have problems such as low signal-to-noise ratio, susceptibility to noise interference, and the need to manually set thresholds, resulting in inaccurate extraction.
The adaptive threshold method based on edge detection is used to automatically extract the ultrasound CT transit time and reduce the impact of noise through bandpass filtering, edge detection operator convolution, adaptive threshold calculation and transit time matrix filtering.
It achieves accurate transit time extraction of low signal-to-noise ratio signals, avoids artificial threshold setting, and improves extraction accuracy and processing efficiency.
Smart Images

Figure CN115100164B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of ultrasonic tomography, and more specifically, relates to an automatic extraction method of ultrasonic CT transit time based on edge detection, which can automatically extract the transit time of a transmission signal in an ultrasonic tomography sound velocity imaging mode. Background Art
[0002] Ultrasonic CT (ultrasonic CT) refers to the process of transmitting ultrasonic waves to an object through an ultrasonic probe and receiving reflected data or transmitted data, and using these data to reconstruct an ultrasonic tomographic image in order to observe the three-dimensional information inside the object. Ultrasonic testing has the advantages of being inexpensive and harmless to the human body. With the rapid development of probe processing technology and high-performance computer computing, ultrasonic CT technology has once again become a hot topic in medical imaging research in recent years.
[0003] Ultrasonic CT imaging has two imaging modes, reflection imaging and transmission imaging. Due to the collection of multi-directional reflection information, the reflection image of ultrasonic CT has a higher image resolution, which can assist doctors in seeing smaller lesions. Functional parameters such as sound velocity and attenuation coefficient can be reconstructed through transmission data, which belongs to the field of functional imaging. Studies have shown that in the early stage of the lesion, the functional parameters of the lesion tissue change first, and then the structure changes. Therefore, transmission imaging is of great significance for the early imaging and diagnosis of lesions, and can diagnose lesions earlier.
[0004] Ultrasonic CT sound velocity imaging solves the sound velocity parameters based on the transit time extracted from the transmission wave, so the transit time is an important input parameter in the imaging process. The transit time is the time when the signal arrives (i.e. the take-off time of the signal). The main difficulty in the current transit time extraction is that the signal-to-noise ratio is low, and it is difficult to determine the arrival time of the signal. The existing transit time extraction methods include the amplitude method, the Akaike information standard method, and the cross-correlation method. The Akaike information standard method is easily disturbed by switch switching noise. The amplitude in the implementation process of the amplitude method needs to be set manually, so there is uncertainty. The cross-correlation method has errors due to the nonlinear effects of the actual human body.
[0005] As an image processing algorithm, the existing image edge detection algorithm uses a single global threshold for binarization, does not consider the differences in signal strength of each channel, and is prone to detecting the start time of the signal propagating along the inner wall of the ultrasound probe. Summary of the invention
[0006] In view of the above deficiencies or improvement requirements of the prior art, the purpose of the present invention is to provide an automatic extraction method for the transit time of ultrasonic CT based on edge detection. By improving the overall process design of the processing method, the adaptive value-taking rules of key thresholds, etc., based on the theory of image edge detection, using adaptive thresholds for each channel, and preferably cooperating with a set detection range, and filtering the transit time difference matrix, it is possible to avoid artificially setting threshold parameters and weaken the influence of noise, thereby solving the technical problem of inaccurate extraction of the transit time of low signal-to-noise ratio signals.
[0007] To achieve the above object, according to one aspect of the present invention, there is provided an automatic extraction method for the transit time of ultrasonic CT based on edge detection, characterized by including the following steps:
[0008] (1) Band-pass filtering: Determine the bandwidth range according to the cut-off frequency of the probe, and perform band-pass filtering on the collected ultrasonic tomographic transmission signal;
[0009] (2) Edge detection operator and pixel convolution: According to the signal after band-pass filtering obtained in step (1), draw an initial channel signal set image of a single element transmitting and other receiving elements receiving; the initial channel signal set image uses the receiving element number and the sampling time as the coordinate axes respectively, and the gray value of each pixel point in the figure corresponds to the received signal amplitude;
[0010] Then, perform convolution on the initial channel signal set image with the edge detection operator to obtain the channel signal set image after edge detection;
[0011] (3) Calculate the binarization threshold of each channel: Based on the channel signal set image after edge detection obtained in step (2), for a certain receiving element channel, divide the pixel points corresponding to this channel into two parts with a pre-selected threshold T0 as the boundary, and calculate their average gray values for each of these two parts respectively; denote the average gray values obtained for these two parts as A_mean and B_mean respectively, calculate T1 = (A_mean + B_mean) / 2, if abs(T1 - T0) < epsilon, then take T1 as the binarization segmentation threshold of this channel; otherwise, assign T1 to T0 and repeat this step; where epsilon is a positive number set in advance;
[0012] Process each channel to obtain the binarization segmentation threshold of each channel;
[0013] (4) Binarization processing: Based on the channel signal set image after edge detection obtained in step (2), for a certain receiving array element channel, the pixel points corresponding to the channel are divided into two parts with the binarization segmentation threshold of the channel obtained in step (3) as the boundary, wherein for the part where the grayscale values of the pixel points are greater than or equal to the threshold, the grayscale values of these pixel points are set to a pre-selected non-zero value; for the other part where the grayscale values of the pixel points are less than or equal to the threshold, the grayscale values of these pixel points are set to 0;
[0014] By processing each channel, a binary channel signal set image can be obtained;
[0015] (5) Obtaining the transit time: Based on the binary channel signal set image obtained in step (4), the grayscale of each channel pixel is retrieved, and the first non-zero value of each channel is taken as the transit time of the channel in combination with the sampling time sequence corresponding to each sampling point; in this way, the transit time of each channel can be obtained, and the transit time of the ultrasonic transmission signal can be automatically extracted; the transit time can be used for sound velocity image reconstruction.
[0016] As a further preferred embodiment of the present invention, before starting step (3), the method further comprises:
[0017] Calculate the detection range of the binarization threshold of each channel: Based on the channel signal set image after edge detection obtained in step (2), according to the temperature in the current data acquisition process to be processed, obtain the coupling agent sound velocity at the temperature; then, use the position distance between the corresponding transmitting array element and the receiving array element in the probe, combined with the coupling agent sound velocity, to calculate the theoretical transit time of each channel; then, based on the channel signal set image after edge detection obtained in step (2), for a certain receiving array element channel, use the range covered by the m sampling points before and after the theoretical transit time corresponding to the channel as the detection range of the binarization threshold of the channel, and set the grayscale value of each pixel outside the range to 0; wherein m is a pre-selected positive integer;
[0018] In this way, the binary threshold detection range of each channel can be obtained;
[0019] Correspondingly, in step (3), the pre-selected threshold value T0 is the grayscale average value of each pixel point corresponding to the detection range of the corresponding channel.
[0020] As further preferred in the present invention, m is 50 to 200.
[0021] As a further preferred embodiment of the present invention, in step (5), after obtaining the transit time of each channel, the method further comprises the following steps:
[0022] (S1) Obtain the transit time matrix:
[0023] Based on the transit time of each channel of all transmitting array elements, a transit time matrix of all transmitting array elements is obtained as the transit time matrix of the signal to be measured;
[0024] (S2) Obtain the transit time difference matrix:
[0025] Acquire the ultrasonic tomography transmission signal under the pure coupling agent condition and record it as the reference signal; then repeat steps (1) to (5) based on the reference signal, and obtain the transit time matrix of all the transmitting array elements based on the transit time of each channel of all the transmitting array elements under the reference signal condition as the transit time matrix of the reference signal;
[0026] After subtracting the transit time matrix of the signal to be measured obtained in step (S1) from the transit time matrix of the reference signal, a transit time difference matrix can be obtained;
[0027] (S3) Transit time difference matrix filtering:
[0028] A template of size a×b is established, and the center of the template is made to traverse each element in the transit time difference matrix. During the traversal process, the median or mean of each element within the template size range is used as the update value corresponding to the corresponding template center element, and the updated value assignment of the transit time difference matrix is completed after the traversal is completed, so that the filtered transit time difference matrix can be obtained; wherein a and b are both pre-set positive integers;
[0029] Each element in the filtered transit time difference matrix corresponds to the transit time difference between the signal to be measured and the reference signal of the corresponding transmitting array element and the corresponding receiving array element.
[0030] As a further preferred embodiment of the present invention, in the step (S3), the repeated traversal for several times is specifically repeated traversal for 1 to 5 times.
[0031] As a further preferred embodiment of the present invention, the probe is specifically a ring probe;
[0032] In the step (1), the ultrasonic tomography transmission signal is collected, specifically, other array elements on the annular probe excluding the transmitting array element as the center and not exceeding 1 / 4 of the circumference are used as receiving array elements, and the corresponding ultrasonic tomography transmission signal is obtained.
[0033] According to another aspect of the present invention, the present invention provides an automatic extraction system for ultrasonic CT transit time based on edge detection, characterized in that it comprises:
[0034] The bandpass filter function module is used to: perform bandpass filtering on the collected ultrasonic tomography transmission signal according to the bandwidth range determined by the cutoff frequency of the probe;
[0035] Edge detection operator and pixel convolution function module, which is used for: according to the signal after band-pass filtering obtained by the band-pass filtering function module, drawing an image of the initial channel signal set where a single element emits and other receiving elements receive, and performing convolution on the initial channel signal set image with the edge detection operator to obtain the channel signal set image after edge detection; wherein, the initial channel signal set image takes the receiving element number and the sampling time as coordinate axes respectively, and the gray value of each pixel point in the figure corresponds to the received signal amplitude.
[0036] Binary threshold calculation function module for each channel, which is used for: based on the channel signal set image after edge detection obtained by the edge detection operator and pixel convolution function module, for a certain receiving element channel, taking the pre-selected threshold T0 as the boundary, dividing the pixel points corresponding to this channel into two parts, and respectively calculating their average gray values for each of these two parts; denoting the average gray values obtained for these two parts as A_mean and B_mean respectively, calculating T1 = (A_mean + B_mean) / 2, if abs(T1 - T0) < epsilon, then taking T1 as the binary segmentation threshold for this channel; otherwise, assigning T1 to T0 and repeating this step; wherein, epsilon is a positive number with a pre-set value; processing each channel can obtain the binary segmentation threshold for each channel.
[0037] Binary processing function module, which is used for: based on the channel signal set image after edge detection obtained by the edge detection operator and pixel convolution function module, for a certain receiving element channel, taking the binary segmentation threshold for this channel obtained by the binary threshold calculation function module for each channel as the boundary, dividing the pixel points corresponding to this channel into two parts, wherein, for the part where the pixel point gray value is greater than or greater than or equal to the threshold, setting the gray values of these pixel points to a pre-selected non-zero value; for the other part where the pixel point gray value is less than or equal to or less than the threshold, setting the gray values of these pixel points to 0; processing each channel can obtain the binary channel signal set image.
[0038] Transit time acquisition function module, which is used for: based on the binary channel signal set image obtained by the binary processing function module, retrieving the pixel gray values of each channel, and combining the sequence of sampling times corresponding to each sampling point, taking the first non-zero value of each channel as the transit time of this channel; thus, the transit times of each channel can be obtained, completing the automatic extraction of the transit times of ultrasonic transmission signals; the transit times can be used for sound speed image reconstruction.
[0039] As a further preference of the present invention, between the edge detection operator and pixel convolution function module and the binary threshold calculation function module for each channel, there is also included:
[0040] The function module for calculating the detection range of the binary threshold of each channel is used to: obtain the coupling agent sound velocity at the temperature according to the temperature in the current data acquisition process to be processed based on the channel signal set image after edge detection obtained by the edge detection operator and the pixel convolution function module; then, calculate the theoretical transit time of each channel by using the position distance between the corresponding transmitting array element and the receiving array element in the probe in combination with the coupling agent sound velocity; then, based on the channel signal set image after edge detection obtained by the edge detection operator and the pixel convolution function module, for a certain receiving array element channel, take the range covered by the m sampling points before and after the theoretical transit time corresponding to the channel as the detection range of the binary threshold of the channel, and set the gray value of each pixel outside the range to 0; wherein m is a pre-selected positive integer; in this way, the binary threshold detection range of each channel can be obtained;
[0041] Correspondingly, for the binarization threshold calculation function modules of each channel, the pre-selected threshold T0 is the grayscale average value of each pixel point corresponding to the detection range of the corresponding channel.
[0042] As a further preferred embodiment of the present invention, after the transit time acquisition function module, the following sub-function modules are also included:
[0043] The transit time matrix acquisition sub-function module is used to: obtain the transit time matrix of all transmitting array elements based on the transit time of each channel of all transmitting array elements as the transit time matrix of the signal to be measured;
[0044] The transit time difference matrix acquisition sub-function module is used to: collect the ultrasonic tomography transmission signal under the pure coupling agent condition and record it as the reference signal; then based on the reference signal, using the bandpass filtering function module, the edge detection operator and pixel convolution function module, the binarization threshold calculation function module for each channel, the binarization processing function module and the transit time acquisition function module, and based on the transit time of each channel of all transmitting array elements under the reference signal condition, obtain the transit time matrix of all transmitting array elements as the transit time matrix of the reference signal; after subtracting the transit time matrix of the signal to be measured obtained by the transit time matrix acquisition sub-function module from the transit time matrix of the reference signal, the transit time difference matrix can be obtained;
[0045] The transit time difference matrix filter sub-function module is used to: establish a template of size a×b, so that the center of the template traverses each element in the transit time difference matrix, and during the traversal process, the median or mean of each element within the template size range is used as the update value corresponding to the corresponding template center element, and after the traversal, the update value assignment of the transit time difference matrix is completed, so as to obtain the filtered transit time difference matrix; wherein a and b are both pre-set positive integers;
[0046] Each element in the filtered transit time difference matrix corresponds to the transit time difference between the signal to be measured and the reference signal of the corresponding transmitting array element and the corresponding receiving array element.
[0047] The above technical scheme conceived by the present invention, compared with the prior art, firstly performs convolution processing on the filtered channel signal set image through an edge detection operator, and calculates the threshold in each channel through an iterative method to realize edge detection, which can better extract the transit time of the low signal-to-noise ratio channel than the traditional single threshold edge detection method; and, based on the present invention, it can further cooperate with the calculation of the theoretical transit time of the reference signal as the threshold detection range of each channel, and eliminate outliers by filtering the transit time matrix, which can further weaken the influence of noise and obtain a more accurate transit time.
[0048] Similar to the existing edge detection algorithm, the present invention can weaken the influence of noise by convolution of edge detection template and pixel. Furthermore, unlike the existing edge detection algorithm, the present invention does not need to manually set the threshold. Based on the edge detection theory of the image, the present invention introduces a channel adaptive threshold in the edge detection process of the channel signal set image, takes into account the amplitude difference of each channel, and calculates the threshold in each channel to extract the transit time more accurately than the global threshold, thereby realizing the automatic extraction of the transit time of the ultrasonic transmission signal.
[0049] Furthermore, by setting a detection range and performing filtering on the transit time difference matrix and other optimization processes, the processing efficiency and accuracy can be further improved.
[0050] In summary, the automatic extraction method of transit time in ultrasonic tomography based on edge detection of the present invention avoids artificial setting of threshold parameters, weakens the influence of noise, and realizes automatic extraction of transit time of low signal-to-noise ratio signals. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 This is an example of a channel signal set image from a breast cancer patient in an actual ring probe ultrasound CT system.
[0052] Figure 2 yes Figure 1 The data is detected by the Sobel operator.
[0053] Figure 3 is Figure 2 Then the image is edge detected using a single threshold Sobel operator implemented by an iterative method.
[0054] Figure 4 yes Figure 3 The transit time detected after edge detection using the iterative single threshold Sobel operator.
[0055] Figure 5 is Figure 2 Then the image is detected by edge using the adaptive intra-channel threshold Sobel operator implemented by iterative method.
[0056] Figure 6 yes Figure 5 The transit time detected after edge detection using the sobel operator with adaptive intra-channel threshold in the iterative method.
[0057] Figure 7 yes Figure 1 After limiting the detection range in the data, the sobel operator edge detection image is performed using an iterative method to adaptively adjust the channel threshold.
[0058] Figure 8 yes Figure 7 The detection range is limited and the transit time is detected after edge detection using the iterative adaptive channel threshold Sobel operator.
[0059] Fig. 9 It is the transit time difference matrix of breast cancer patient data extracted by the method of the embodiment of the present invention (each element in the matrix, that is, the transit time difference between the measured signal and the reference signal of the corresponding transmitting array element and the corresponding receiving array element, has been displayed in grayscale).
[0060] Fig.10 Yes Figure 1 Ultrasonic CT data is used to extract the transit time and reconstruct the sound velocity map using the method of the embodiment of the present invention.
[0061] Fig.11 It is a block diagram corresponding to the method of the embodiment of the present invention. DETAILED DESCRIPTION
[0062] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0063] The automatic extraction method of ultrasonic CT transit time based on edge detection of the present invention may include the following steps when implemented:
[0064] 1) Bandpass filtering
[0065] First, the ultrasonic tomography signal collected by the system is bandpass filtered. The bandwidth range is frequency f1~f2 (f1 and f2 are the upper and lower cutoff frequencies, which are the factory parameters of the probe). A bandpass filter with a passband range of f1~f2 is designed to filter the signal. The bandpass filter can be selected from FIR filter, IIR filter, etc.
[0066] 2) Edge detection operator and pixel convolution
[0067] Based on the band-pass filtered signal obtained in step 1), an image of the channel signal set where a single element emits and other elements receive is drawn as the image to be processed. Similar to the prior art, the specific drawing method can be: the x-axis is the receiving channel number, the y-axis is the sampling time, and different signal amplitudes are reflected as the depth of brightness. An edge detection operator is convolved with the pixels of the channel signal set image to obtain a grayscale image after edge detection. This grayscale image is not a binary image. The edge detection operator can be selected from Sobel operator, Roberts operator, Prewitt operator, etc.
[0068] 3) Calculate the detection range of the binarization threshold for each channel
[0069] According to the temperature during the current data acquisition to be processed, the sound speed of the coupling agent is obtained by looking up a table. The coupling agent is generally water or other materials with parameters similar to those of the human body. According to the positions of each element provided when the probe leaves the factory and the sound speed of the coupling agent, the theoretical transit time of each channel is calculated when a current element emits and other elements receive signals. Similar to the prior art, the specific calculation method of the theoretical transit time is: the element distance when the probe leaves the factory / the sound speed of water, where the sound speed of water can be measured by a sound speed meter. The range of m sampling points before and after this theoretical transit time is used as the detection range of the binarization threshold for each channel. m is a natural number, and its value can be preset in advance. For example, it can be selected from 50 to 200. The time of m sampling points = (m - 1) / sampling frequency.
[0070] 4) Calculate the binarization threshold for each channel
[0071] (a) For a certain channel (the channel corresponds to the receiving element number), select an initial threshold T0. For example, the mean value of all pixels in this channel can be taken;
[0072] (b) According to the threshold T0, this channel is divided into two parts, A and B. The average gray values A_mean and B_mean of A and B are calculated respectively;
[0073] (c) Calculate T1 = (A_mean + B_mean) / 2, and compare whether abs(T1 - T0) < epsilon (epsilon is a relatively small positive number, and its specific value can be preset in advance; abs represents the absolute value function, the same below) holds. If it holds, stop the iteration, and at this time T1 is the segmentation threshold within this channel; otherwise, assign T1 to T0 (T0 = T1, and at this time T0 is the threshold in the update process), and continue from step (b).
[0074] 5) Binarization
[0075] According to the threshold Tx of each channel calculated in step 4), the pixels within the detection range of each channel are binarized, that is, the grayscale of pixels less than Tx is set to 0, and the grayscale of pixels greater than or equal to Tx is set to 1. The pixel values outside the detection range of each channel are set to 0.
[0076] 6) Get the transit time
[0077] By searching the grayscale of each channel pixel, the first non-zero value of each channel (corresponding to the binarization rule of step 5) is taken as the transit time of the channel.
[0078] 7) Get the transit time matrix
[0079] Perform steps 1) to 6) on all transmitting array elements to obtain the transit time matrix of all transmitting array elements.
[0080] 8) Obtain the transit time difference matrix
[0081] The reference signal (signal collected in a pure coupling agent state without a human body) and the human body signal (human organs are placed in a coupling agent for signal collection) are processed according to steps 1) to 7), and the transit time matrix of the human body signal is subtracted from the transit time matrix of the reference signal to obtain a transit time difference matrix.
[0082] 9) Transit time difference matrix filtering
[0083] The transit time difference matrix is filtered. The processing method is:
[0084] (a) Calculate the median (or mean) of the transit time differences within a 3×3 range of a matrix element. The template size is not limited to 3×3.
[0085] (b) If the difference between the transit time difference value of the element and the median (or mean) is greater than twice the median (or mean), the transit time difference value of the element is set to the median (or mean).
[0086] (c) Search each matrix element one by one and perform the processing of steps (a) and (b).
[0087] (d) Perform steps (a), (b), and (c) on the transit time difference matrix n times, where n can be 1 to 5.
[0088] 10) Image reconstruction
[0089] The transit time difference matrix obtained in step 9) can be further used to reconstruct a sound velocity image, thereby obtaining a sound velocity map and completing the ultrasonic tomography output.
[0090] The following are specific embodiments:
[0091] Example 1
[0092] This example demonstrates the human breast signals collected by the annular probe.
[0093] The annular probe of the system consists of 2048 elements, and the center frequency of the elements is 1.5 - 4 MHz. As Figure 1 shown, it is the image drawing of the channel signal set where the 1st element emits and other elements receive. Here, 256 elements on each side of the emitting element are removed. Based on the present invention, the specific processing process of the transmission wave transit time automatic extraction method in ultrasonic tomography is as follows:
[0094] First, perform band - pass filtering on the ultrasonic tomography signals collected by the system. Analyze the spectrum of the signals, and the main bandwidth range is obtained as 1.5 - 4 MHz. As Figure 2 shown, it is the image of the channel signal set after band - pass filtering with a pass - band range of 1.5 - 4 MHz, and the filter used is the FIR filter.
[0095] Draw the image of the channel signal set where a single element emits and other elements receive as the image to be processed. Convolve the edge - detection Sobel operator with the pixels to obtain the grayscale image after edge detection. Figure 3 It is the edge - detection effect of the iterative method with a single threshold. The edge - detection operator used is the Sobel operator (the edge - detection with the iterative method and a single threshold means that the iterative calculation of the threshold is performed on the entire image, that is, the threshold T0 divides the entire image into two parts A and B, rather than calculating the threshold iteratively for each single channel separately; calculating the threshold for each single channel separately means that the threshold T0 divides a single channel into two parts A and B). Figure 4 For Figure 3 the detected transit time.
[0096] (a) For a certain channel (the channel corresponds to the serial number of the receiving element), select an initial threshold T0, such as taking the mean value of all pixels in this channel as T0; (b) Divide this channel into two parts A and B according to the threshold T0. Calculate the average grayscale values A_mean and B_mean of A and B respectively; (c) Calculate T1=(A_mean + B_mean) / 2, and compare whether abs(T1 - T0)<epsilon (epsilon is a relatively small value, and in this example, epsilon is taken as 10 -5 ) holds. If it holds, stop the iteration, and at this time, T1 is the segmentation threshold within this channel; otherwise, assign T1 to T0 (T0 = T1, and at this time, T0 is the threshold in the updating process), and continue from step (b). Figure 5 It is the edge - detection effect of the iterative method with an adaptive threshold within the channel. Figure 6 For Figure 5The detected transit time. Figure 6 and Figure 4 , you can find some Figure 4 At the location where the abnormal value (3750) was detected, a normal value was detected.
[0097] According to the temperature during the current data collection process, the sound velocity of the coupling agent (water in this example) is obtained by looking up the table. According to the position of each array element and the sound velocity of water provided by the probe when it leaves the factory, the theoretical transit time of each channel when the current array element transmits and other array elements receive signals is calculated. The range of 150 sampling points before and after the theoretical transit time is used as the detection range of the binarization threshold of each channel. Figure 7 The edge detection effect of the adaptive threshold in the iterative channel is used to limit the threshold detection range. The first non-zero value of each channel is taken as the transit time of the channel by searching the grayscale of each channel pixel. Figure 8 For the corresponding Figure 7 Detected flight time. Figure 8 This is the effect of implementing steps 1) to 6). It can be found that Figure 8 Relative to Figure 6 , further reducing the number of outliers (3750). Figure 8 Compared to Figure 4 ,It can be seen that the number of outliers in the transit time is ,gradually reduced by further relying on the limited detection range and ,adaptive threshold within the channel.
[0098] The above steps are processed for all transmitting array elements to obtain the transit time matrix of all transmitting array elements. The above steps are processed for the reference signal (signal collected in a pure coupling agent state without a human body) and the human body signal (human organs are placed in a coupling agent for signal collection), and the transit time matrix of the human body signal is subtracted from the transit time matrix of the reference signal to obtain the transit time difference matrix. The transit time difference matrix is filtered. The processing method is:
[0099] (a) Calculate the median (or mean) of the transit time differences within a 3×3 range of a matrix element.
[0100] (b) If the difference between the transit time difference value of the element and the median (or mean) is greater than twice the median (or mean), the transit time difference value of the element is set to the median (or mean).
[0101] (c) Search each matrix element one by one and perform the processing of steps (a) and (b).
[0102] (d) The transit time difference matrix is processed twice in steps (a), (b), and (c).
[0103] The transit time difference matrix is obtained as Fig. 9 As shown. Fig. 9 Reconstruct the sound velocity image and obtain the sound velocity image as follows Fig.10 shown.
[0104] It can be seen that based on the method of the present invention, the filtered channel signal set image is first convolved by the edge detection operator, then the theoretical transit time of the reference signal is calculated as the threshold detection range of each channel, and then the threshold in each channel is calculated by iteration to realize transit time detection, and finally the outliers are eliminated by filtering the transit time difference matrix, which has the best effect. Of course, considering Figure 6 The corresponding effect is still better than Figure 4 , or only the improvement of adaptive channel threshold by iteration can be adopted, and the processing effect better than the existing technology can still be achieved.
[0105] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. An automatic extraction method of ultrasonic CT transit time based on edge detection, characterized in that: It includes the following steps: (1) Band-pass filtering: Determine the bandwidth range according to the cut-off frequency of the probe, and perform band-pass filtering on the collected ultrasonic tomographic transmission signal; (2) Edge detection operator and pixel convolution: Based on the signal after band-pass filtering obtained in step (1), draw an image of the initial channel signal set where a single element emits and other receiving elements receive; in this initial channel signal set image, the receiving element number and the sampling time are used as the coordinate axes respectively, and the gray value of each pixel point in the figure corresponds to the received signal amplitude; Then, perform convolution on the initial channel signal set image with the edge detection operator to obtain the channel signal set image after edge detection; (3) Calculate the binarization threshold for each channel: Based on the channel signal set image after edge detection obtained in step (2), for a certain receiving element channel, divide the pixel points corresponding to this channel into two parts with a pre-selected threshold T0 as the boundary, and calculate their average gray values for each of these two parts respectively; denote the average gray values obtained for these two parts as A_mean and B_mean respectively, calculate T1 = (A_mean + B_mean) / 2, if abs(T1 - T0) < epsilon, then take T1 as the binarization segmentation threshold for this channel; otherwise, assign T1 to T0 and repeat this step; where epsilon is a pre-set positive number; Process each channel to obtain the binarization segmentation threshold for each channel; (4) Binarization processing: Based on the channel signal set image after edge detection obtained in step (2), for a certain receiving element channel, divide the pixel points corresponding to this channel into two parts with the binarization segmentation threshold of this channel obtained in step (3) as the boundary. Among them, for the part where the pixel point gray value is greater than or greater than or equal to the threshold, set the gray values of these pixel points to a pre-selected non-zero value; for the other part where the pixel point gray value is less than or equal to or less than the threshold, set the gray values of these pixel points to 0; Process each channel to obtain the binarized channel signal set image; (5) Obtain the transit time: Based on the binarized channel signal set image obtained in step (4), retrieve the pixel gray levels of each channel, and in combination with the sequence of sampling times corresponding to each sampling point, take the first non-zero value of each channel as the transit time of this channel; in this way, the transit times of each channel can be obtained, and the automatic extraction of the transit time of the ultrasonic transmission signal is completed; the transit time can be used for the reconstruction of the sound velocity image.
2. The method for automatically extracting ultrasonic CT transit time based on edge detection according to claim 1, characterized in that: Before step (3) of this method, it further includes: Calculate the detection range of the binarization threshold of each channel: Based on the channel signal set image after edge detection obtained in step (2), according to the temperature in the current data acquisition process to be processed, obtain the coupling agent sound velocity at the temperature; then, use the position distance between the corresponding transmitting array element and the receiving array element in the probe, combined with the coupling agent sound velocity, to calculate the theoretical transit time of each channel; then, based on the channel signal set image after edge detection obtained in step (2), for a certain receiving array element channel, use the range covered by the m sampling points before and after the theoretical transit time corresponding to the channel as the detection range of the binarization threshold of the channel, and set the grayscale value of each pixel outside the range to 0; wherein m is a pre-selected positive integer; In this way, the binary threshold detection range of each channel can be obtained; Correspondingly, in step (3), the pre-selected threshold value T0 is the grayscale average value of each pixel point corresponding to the detection range of the corresponding channel.
3. The method for automatically extracting ultrasonic CT transit time based on edge detection as claimed in claim 2, characterized in that: m is 50 to 200.
4. The method for automatically extracting ultrasonic CT transit time based on edge detection according to claim 1, characterized in that: In the step (5), after obtaining the transit time of each channel, the step further includes: (S1) Obtain the transit time matrix: Based on the transit time of each channel of all transmitting array elements, a transit time matrix of all transmitting array elements is obtained as the transit time matrix of the signal to be measured; (S2) Obtain the transit time difference matrix: Acquire the ultrasonic tomography transmission signal under the pure coupling agent condition and record it as the reference signal; then repeat steps (1) to (5) based on the reference signal, and obtain the transit time matrix of all the transmitting array elements based on the transit time of each channel of all the transmitting array elements under the reference signal condition as the transit time matrix of the reference signal; After subtracting the transit time matrix of the signal to be measured obtained in step (S1) from the transit time matrix of the reference signal, a transit time difference matrix can be obtained; (S3) Transit time difference matrix filtering: A template of size a×b is established, and the center of the template is made to traverse each element in the transit time difference matrix. During the traversal process, the median or mean of each element within the template size range is used as the update value corresponding to the corresponding template center element, and the updated value assignment of the transit time difference matrix is completed after the traversal is completed, so that the filtered transit time difference matrix can be obtained; wherein a and b are both pre-set positive integers; Each element in the filtered transit time difference matrix corresponds to the transit time difference between the signal to be measured and the reference signal of the corresponding transmitting array element and the corresponding receiving array element.
5. The method for automatically extracting ultrasonic CT transit time based on edge detection as claimed in claim 1, characterized in that: In the step (S3), the repeated traversal for a number of times specifically refers to repeated traversal for 1 to 5 times.
6. The method for automatically extracting ultrasonic CT transit time based on edge detection as claimed in claim 1, characterized in that: The probe is specifically a ring probe; In the step (1), the ultrasonic tomography transmission signal is collected, specifically, other array elements on the annular probe excluding the transmitting array element as the center and not exceeding 1 / 4 of the circumference are used as receiving array elements, and the corresponding ultrasonic tomography transmission signal is obtained.
7. An automatic extraction system of ultrasonic CT transit time based on edge detection, characterized in that: include: The bandpass filter function module is used to: perform bandpass filtering on the collected ultrasonic tomography transmission signal according to the bandwidth range determined by the cutoff frequency of the probe; The edge detection operator and pixel convolution function module is used for: according to the signal after band-pass filtering obtained by the band-pass filtering function module, drawing an image of the initial channel signal set where a single array element emits and other receiving array elements receive, and performing convolution on the initial channel signal set image with the edge detection operator to obtain the channel signal set image after edge detection; wherein, the initial channel signal set image takes the receiving array element number and the sampling time as coordinate axes respectively, and the gray value of each pixel point in the figure corresponds to the received signal amplitude. The binary threshold calculation function module for each channel is used for: based on the channel signal set image after edge detection obtained by the edge detection operator and pixel convolution function module, for a certain receiving array element channel, taking a pre-selected threshold T0 as the boundary, dividing the pixel points corresponding to this channel into two parts, and respectively calculating their average gray values for each of these two parts; denoting the average gray values obtained for these two parts as A_mean and B_mean respectively, calculating T1 = (A_mean + B_mean) / 2, if abs(T1 - T0) < epsilon, then taking T1 as the binary segmentation threshold for this channel; otherwise, assigning T1 to T0 and repeating this step; wherein, epsilon is a positive number with a pre-set value; processing each channel can obtain the binary segmentation threshold for each channel. The binary processing function module is used for: based on the channel signal set image after edge detection obtained by the edge detection operator and pixel convolution function module, for a certain receiving array element channel, taking the binary segmentation threshold for this channel obtained by the binary threshold calculation function module for each channel as the boundary, dividing the pixel points corresponding to this channel into two parts, wherein, for the part where the pixel point gray value is greater than or greater than or equal to the threshold, setting the gray values of these pixel points to a pre-selected non-zero value; for the other part where the pixel point gray value is less than or equal to the threshold, setting the gray values of these pixel points to 0; processing each channel can obtain the binary channel signal set image. The transit time acquisition function module is used for: based on the binary channel signal set image obtained by the binary processing function module, retrieving the pixel gray levels of each channel, combining the sequence of sampling times corresponding to each sampling point, and taking the first non-zero value of each channel as the transit time of this channel; thus, the transit time of each channel can be obtained, completing the automatic extraction of the transit time of the ultrasonic transmission signal; the transit time can be used for the reconstruction of the sound speed image.
8. The ultrasonic CT transit time automatic extraction system based on edge detection as claimed in claim 7, characterized in that: Between the edge detection operator and pixel convolution function module and the binary threshold calculation function module for each channel, there is also included: The function module for calculating the detection range of the binary threshold of each channel is used to: obtain the coupling agent sound velocity at the temperature according to the temperature in the current data acquisition process to be processed based on the channel signal set image after edge detection obtained by the edge detection operator and the pixel convolution function module; then, calculate the theoretical transit time of each channel by using the position distance between the corresponding transmitting array element and the receiving array element in the probe in combination with the coupling agent sound velocity; then, based on the channel signal set image after edge detection obtained by the edge detection operator and the pixel convolution function module, for a certain receiving array element channel, take the range covered by the m sampling points before and after the theoretical transit time corresponding to the channel as the detection range of the binary threshold of the channel, and set the gray value of each pixel outside the range to 0; wherein m is a pre-selected positive integer; in this way, the binary threshold detection range of each channel can be obtained; Correspondingly, for the binarization threshold calculation function modules of each channel, the pre-selected threshold T0 is the grayscale average value of each pixel point corresponding to the detection range of the corresponding channel.
9. The ultrasonic CT transit time automatic extraction system based on edge detection as claimed in claim 7, characterized in that: After the transit time acquisition function module, the following sub-function modules are also included: The transit time matrix acquisition sub-function module is used to: obtain the transit time matrix of all transmitting array elements based on the transit time of each channel of all transmitting array elements as the transit time matrix of the signal to be measured; The transit time difference matrix acquisition sub-function module is used to: collect the ultrasonic tomography transmission signal under the pure coupling agent condition and record it as the reference signal; then based on the reference signal, using the bandpass filtering function module, the edge detection operator and pixel convolution function module, the binarization threshold calculation function module for each channel, the binarization processing function module and the transit time acquisition function module, and based on the transit time of each channel of all transmitting array elements under the reference signal condition, obtain the transit time matrix of all transmitting array elements as the transit time matrix of the reference signal; after subtracting the transit time matrix of the signal to be measured obtained by the transit time matrix acquisition sub-function module from the transit time matrix of the reference signal, the transit time difference matrix can be obtained; The transit time difference matrix filter sub-function module is used to: establish a template of size a×b, so that the center of the template traverses each element in the transit time difference matrix, and during the traversal process, the median or mean of each element within the template size range is used as the update value corresponding to the corresponding template center element, and after the traversal, the update value assignment of the transit time difference matrix is completed, so as to obtain the filtered transit time difference matrix; wherein a and b are both pre-set positive integers; Each element in the filtered transit time difference matrix corresponds to the transit time difference between the signal to be measured and the reference signal of the corresponding transmitting array element and the corresponding receiving array element.
