Ultrasonic full-focusing wavenumber domain imaging method, system and device based on FPGA and GPU
Through the combination of FPGA and GPU, the wave number domain imaging method is used to solve the problem of computing resources and data pressure of ultrasonic full-focus detection technology under multi-channel number and high imaging frame rate, and achieve efficient real-time imaging and low-latency detection.
Patent Information
- Application Number
- CN202410011837.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-04
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-01-04
AI Technical Summary
Existing ultrasonic full-focus detection technology is difficult to achieve real-time imaging under multi-channel number, high imaging frame rate and high resolution. The computing resource requirements are too high, the data transmission and storage pressure is high, and it is difficult to meet the requirements of low imaging delay.
The ultrasonic fully focused wave number domain imaging method based on FPGA and GPU is used to allocate computing tasks to different hardware resources through fast Fourier transform and nonlinear mapping interpolation operations to achieve data pipeline processing, reduce storage and transmission pressure, and support multi-channel and High frame rate imaging.
It improves computing efficiency, reduces imaging delay and design costs, meets the imaging requirements of high resolution and high frame rate, supports full focus and plane wave full focus imaging modes, and realizes a detection system with high scalability and minimum hardware cost.
Smart Images

Figure CN117710184B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of ultrasonic detection, and in particular relates to an ultrasonic full-focusing wavenumber domain imaging method, system and device based on FPGA and GPU. Background Art
[0002] Total Focusing Method (TFM) technology based on full matrix capture (FMC) data has become a research focus in the field of phased array ultrasonic nondestructive testing. However, TFM technology has the disadvantage of huge amount of data to be transmitted and processed, and it is difficult to achieve real-time imaging. Plane wave imaging (PWI) technology, as an improved version of TFM technology, can achieve the same high-quality images with fewer transmissions, reduce the amount of data required for transmission and imaging, and improve the imaging frame rate. However, these technologies are usually based on the delay and sum (DAS) algorithm in the time domain, which requires high computing resources. The wave number domain algorithm can quickly reconstruct the sound field in the wave number domain by introducing the wave number transform theory. Benefiting from the computational efficiency of the fast Fourier transform (FFT), the wave number domain algorithm has achieved a huge improvement in computational efficiency compared to the time domain DAS algorithm, making high-frame-rate total focusing imaging with ultra-multi-channel and high image resolution possible.
[0003] Taking the patent document with publication number CN106651740 as an example, there are many ultrasonic full-focus fast imaging methods and systems. However, these methods and systems essentially improve the imaging speed by optimizing or parallelizing the specific steps of the time-domain DAS algorithm. The theoretical calculation complexity is O(PN 2), where P is the total number of image pixels calculated from the image resolution, and N is the number of channels. Therefore, the following problems exist: 1) As the number of channels, imaging frame rate, or single sampling time length increases, the amount of FMC data to be stored and transmitted will increase dramatically. In a super-multi-channel detection system (greater than 1024 channels) or in a high imaging frame rate scenario (greater than 1k frames per second), the amount of data will exceed the transmission capacity of the high-speed bus, resulting in a long data transmission time, a high imaging delay, and difficulty in achieving real-time imaging (frame rate greater than 30 frames per second). In addition, in the case of a longer sampling time, the amount of FMC data will also exceed the capacity of the FPGA. on-chip storage capacity; 2) With the increase of image resolution, number of channels or imaging frame rate, the required computing resources will exceed the computing performance of the common FPGA architecture in existing fast imaging systems. In particular, the calculation of the transit time in the DAS algorithm will consume a lot of resources. If only CPU calculation is used, it will be difficult to meet the real-time requirements. If only GPU is used, the GPU performance requirements will be high; 3) The wavenumber domain algorithm can reduce the theoretical calculation complexity to O(PN), but the existing methods and systems are based on the time domain DAS algorithm and only support TFM technology. There is no system using the wavenumber domain algorithm or the system supporting plane wave total focusing imaging.
[0004] In summary, due to the above factors, the existing methods and systems are unable to output various fully focused detection images under the requirements of multiple channels, high imaging frame rate, high resolution or low imaging delay. Summary of the invention
[0005] In view of the above-mentioned deficiencies in the prior art, the present invention provides an ultrasonic full-focusing wavenumber domain imaging method, system and device based on FPGA and GPU.
[0006] The objective of the present invention is achieved through the following technical solutions:
[0007] According to a first aspect of the present specification, a method for ultrasonic full focusing wavenumber domain imaging based on FPGA and GPU is provided, characterized in that it comprises the following steps:
[0008] Step S1, calculating and determining detection parameters, wherein the detection parameters include: emission delay law, nonlinear mapping coordinates, sampling time starting point, sampling time length and frequency bandwidth;
[0009] Step S2, exciting the corresponding ultrasonic transducer array element according to the transmission delay law in step 1, starting from the sampling time starting point in step 1, collecting the ultrasonic echo signal received by at least one array element in the ultrasonic transducer within the sampling time length in step 1, and storing the collected echo data of each channel;
[0010] Step S3, performing fast Fourier transform on the echo data of each channel in step S2 along the dimension of sampling points simultaneously through the FPGA chip to obtain echo time spectrum data of each channel;
[0011] Step S4, according to the frequency bandwidth in step 1, intercepting the echo time spectrum data of each channel in step S3 within the bandwidth range and transmitting it to the GPU;
[0012] Step S5, performing a fast Fourier transform on the echo time spectrum data of all channels intercepted in step S4 along at least one of the receiving array element dimension and the transmission number dimension through the GPU to obtain echo spatial spectrum data;
[0013] Step S6, performing nonlinear mapping interpolation operation on the echo spatial spectrum data in step S5 to obtain a target image wavenumber domain spectrum;
[0014] Step S7, performing a two-dimensional inverse Fourier transform on the wavenumber domain spectrum of the target image in step S6 to obtain a target detection image.
[0015] Furthermore, the specific method for storing the collected echo data of each channel in step S2 is: using a ping-pong storage method, the echo data is stored in area 1 during odd-numbered transmissions, and the echo data is stored in area 2 during even-numbered transmissions. While storing data in a certain area, the data in another area is read out to perform the operation of step S3.
[0016] Furthermore, the specific steps of the nonlinear mapping interpolation operation in step S6 are: firstly, based on the echo spatial spectrum data, perform interpolation operation according to the nonlinear mapping coordinates, and then accumulate the interpolation results along the transmission number dimension to obtain the target image wavenumber domain spectrum.
[0017] According to the second aspect of this specification, an ultrasonic fully focused wavenumber domain imaging system based on FPGA and GPU includes:
[0018] A detection parameter calculation and determination module, used to calculate and determine detection parameters, wherein the detection parameters include: emission delay law, nonlinear mapping coordinates, sampling time starting point, sampling time length and frequency bandwidth;
[0019] The transmitting and receiving module is used to first generate a high-voltage pulse signal and excite the ultrasonic transducer according to the transmitting delay law, and then receive the ultrasonic echo signal;
[0020] An acquisition module, used to acquire the ultrasonic echo signal received by at least one array element in the ultrasonic transducer from the sampling time starting point and within the sampling time length, and perform analog gain processing and analog-to-digital conversion operations;
[0021] A storage module, used for storing the echo data of each channel obtained by the acquisition module;
[0022] A real-time fast Fourier transform module is used to perform a fast Fourier transform operation on the echo data of each channel simultaneously along the sampling point number dimension through the FPGA chip, and intercept the echo time spectrum data of each channel within the bandwidth range according to the frequency bandwidth, and then transmit it to the GPU;
[0023] Fast Fourier transform operation module: used to perform fast Fourier transform on the intercepted echo time spectrum data of all channels along at least one of the receiving array element dimension and the transmission number dimension through the GPU to obtain echo spatial spectrum data;
[0024] Nonlinear mapping interpolation operation module: used for performing nonlinear mapping interpolation operation on the echo spatial spectrum data to obtain the wavenumber domain spectrum of the target image;
[0025] Inverse Fourier transform operation module: used to perform inverse Fourier transform operation on the wavenumber domain spectrum of the target image to obtain a target detection image.
[0026] According to a third aspect of this specification, an ultrasonic fully focused wavenumber domain imaging device based on FPGA and GPU is used to implement the ultrasonic fully focused wavenumber domain imaging system based on FPGA and GPU as described in claim 4, characterized in that it includes: an ultrasonic transducer, an ultrasonic transmitting and receiving circuit, an echo signal acquisition circuit, an FPGA circuit, a bus connection circuit, a GPU and a power supply component;
[0027] The ultrasonic transmitting and receiving circuit is used to realize the functions of the transmitting and receiving module;
[0028] The echo signal acquisition circuit is used to realize the acquisition module function;
[0029] The FPGA circuit is used to control the transmitting and receiving circuit and the echo signal acquisition circuit, and internally runs the storage module and the real-time fast Fourier transform module;
[0030] The ultrasonic transmitting and receiving circuit, the echo signal acquisition circuit and the FPGA circuit as a whole serve as an ultrasonic detection unit;
[0031] The bus connection circuit is used to connect the FPGA circuit inside one or more of the ultrasonic detection units to the GPU via a high-speed bus;
[0032] The GPU runs the fast Fourier transform operation module, the nonlinear mapping interpolation operation module and the inverse Fourier transform operation module.
[0033] Furthermore, the FPGA circuit implements the real-time fast Fourier transform module function by instantiating a fast Fourier transform LogiCORE IP core for each channel inside the Xilinx FPGA chip.
[0034] Furthermore, the bus connection circuit is implemented based on a PXIe or PCIe bus.
[0035] Furthermore, it also includes: a host computer for displaying the target detection image.
[0036] Furthermore, the host computer may be a PC based on an x86 platform, connected to the FPGA circuit via a USB or a network port or the bus connection circuit;
[0037] Alternatively, the host computer may be an embedded operating system running inside the GPU, and connected to the GPU via an internal bus.
[0038] Furthermore, the detection parameter calculation and determination module is arranged in the host computer or the GPU, and sends the detection parameters to the FPGA and the GPU after completing the calculation.
[0039] The beneficial effects of the present invention are:
[0040] (1) By performing fast Fourier transform on the echo data and intercepting it within the bandwidth range, the storage and transmission pressure of FMC data generated by the ultrasonic detection system under the requirements of multiple channels and high imaging frame rate is reduced, and the imaging delay and design cost are reduced. At the same time, by superimposing the window function in the interception process, a filtering effect can be achieved;
[0041] (2) By using the wavenumber domain imaging method, the computational efficiency is improved compared to the traditional time domain DAS algorithm to meet imaging requirements such as high resolution, multiple channels or high imaging frame rate, while supporting both full focusing and plane wave full focusing imaging modes;
[0042] (3) The different computational links in the wavenumber domain imaging method are rationally allocated to different hardware computing resources, and the data pipeline processing is realized through the design of ping-pong storage module, real-time FFT module, etc., which can improve the calculation accuracy, reduce imaging delay, meet the requirements of imaging frame rate, etc., and reduce the requirements for instrument performance and achieve the lowest hardware cost; through the modular design of bus connection circuit and ultrasonic detection unit, high scalability is achieved, and detection devices with different numbers of channels can be realized. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0044] Figure 1 A schematic diagram of the principle of a plane wave total focusing technology provided by an exemplary embodiment;
[0045] Figure 2 A flowchart of an ultrasonic fully focused wavenumber domain imaging method based on FPGA and GPU is provided as an exemplary embodiment;
[0046] Figure 3 A schematic diagram of the acoustic beam path for 45-degree shear wave double reflection detection of a flat plate weld provided by an exemplary embodiment;
[0047] Figure 4 A structural diagram of an ultrasonic fully focused wavenumber domain imaging system based on FPGA and GPU provided as an exemplary embodiment;
[0048] Figure 5 A structural diagram of an ultrasonic fully focused wavenumber domain imaging device based on FPGA and GPU provided as an exemplary embodiment;
[0049] Figure 6 A schematic diagram of the design principle of a host computer provided for an exemplary embodiment. DETAILED DESCRIPTION
[0050] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0051] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0052] like Figure 1 As shown, taking the plane wave total focusing technology (PWI) as an example, it can be understood that the basic principle of its wave number domain imaging algorithm is to combine the position information g(x,z) of the possible defects in the target detection image area with the echo data e(x,z) of all channels received when the plane wave is transmitted at an angle θ. θ The echo time spectrum data E obtained by fast Fourier transform (FFT) along the sampling point dimension (first dimension) is (t, v) θ (ω,v) are related by the following forward model:
[0053] E θ (ω,v)=∫∫e -(kxsinθ+kzcosθ) g(x,z)H(ω,xv,z)dxdz
[0054] Where v is the receiving array element number, k is the wave number, ω is the angular frequency, k and ω are related by the speed of sound, H(ω,x,z) is the two-dimensional Green's function, so according to the expansion of the Green's function, the image wave number domain spectrum G θ (k x ,k z ), and the echo time spectrum data E θ (ω,v) is then FFTed along the receiving array element dimension (the second dimension) to obtain the echo spatial spectrum data E θ (ω,k v ) are related by the following formula:
[0055]
[0056] where k x ,k z is the frequency value of the image in wavenumber domain, k v is the wave number along the receiving array element dimension. To obtain the image wave number domain spectrum G θ (k x ,k z ), it is necessary to pass the nonlinear mapping relationship k x =ksinθ+k v , Find (k x ,k z ) coordinates corresponding to the nonlinear mapping coordinates (k,k v ), then the echo spatial spectrum data E θ (ω,k v ) interpolates the value of this nonlinear mapping coordinate to obtain G θ (k x ,k z ). The image wavenumber domain spectrum G obtained by emitting plane waves at different angles θ (k x ,k z ) is accumulated along the dimension of the number of transmissions (the third dimension), and the wavenumber domain spectrum G(k x ,k z ).
[0057] Obviously, the wavenumber domain method of ultrasound full focusing is very different from the time domain DAS algorithm. In order to achieve high frame rate and high resolution imaging, optimization and design are required at the method, system and device levels.
[0058] like Figure 2As shown, a method for ultrasonic full focusing wavenumber domain imaging based on FPGA and GPU is provided, characterized in that it includes the following steps:
[0059] Step S1, calculating and determining detection parameters, wherein the detection parameters include: emission delay law, nonlinear mapping coordinates, sampling time starting point, sampling time length and frequency bandwidth;
[0060] In one embodiment, to achieve plane wave total focusing imaging (PWI), the emission delay rule is set to cyclically emit plane acoustic waves from -30 degrees to 30 degrees, with a step of 2 degrees, for a total of 31 angles; according to the width Iw and height Ih of the imaging area, the number of pixels Nw in the width direction and the number of pixels Nh in the height direction, the frequency coordinates (k x ,k z ),in Then according to the nonlinear mapping relationship k x =ksinθ+k v , At each angle θ, calculate (k x ,k z ) coordinates corresponding to (k,k v ) coordinates, thereby obtaining a total of 31 sets of nonlinear mapping coordinates; according to the starting depth of the imaging area, the shortest transit time of the sound wave from the array element to the detection area and then back to the array element is calculated, so as to set the starting point of the sampling time. When the starting depth of the imaging area is 30mm below the surface of the steel workpiece, the longitudinal wave sound velocity of 5900m / s is used to set the starting point of the sampling time to 10us; according to the imaging area, the longest transit time of the sound wave from the array element to the detection area and then back to the array element is calculated, so as to set the sampling time length. When the longest transit time of the pixel point in the imaging area is 50us, the sampling time length is set to 40us; for the ultrasonic transducer with a center frequency of 5MHz and a -6dB bandwidth of 80%, the frequency bandwidth is set to [3MHz,7MHz].
[0061] In one embodiment, to achieve total focusing imaging (TFM), the transmission delay rule is set to excite one element at a time according to the element sequence number. For a phased array probe with 128 elements, the elements from No. 1 to No. 128 are sequentially excited and cyclically transmitted; according to the nonlinear mapping relationship K x =K u +K v , In each K u Under the value, calculate (k x ,K z ) coordinates corresponding to (K,k v ) coordinates, where k uis the wave number along the dimension of the transmitting array element, thus obtaining a total of 128 sets of nonlinear mapping coordinates.
[0062] like Figure 3 As shown in one embodiment, for a 30 mm thick steel plate butt weld, if a 45 degree shear wave (sound velocity 3230 m / s) is used to detect a specific defect in a specific area along a path of two reflections, the shortest sound path will reach The transit time of the corresponding sound wave from the array element to the defect in the area and then back to the array element will exceed 52.6us. At this time, in order to achieve plane wave full-focus imaging, when the sampling frequency is 50MHz, the sampling starts from the sound wave excitation, and the sampling time length is 60us, the echo data length of each channel after each excitation will be 3000 sampling points. When the sampling accuracy is 12bit, each sampling point is stored in 2Byte space, and the echo data volume of each channel after each excitation is about 6KB. When the excitation is performed at a pulse repetition frequency of 10KHz, for a 32-channel detection system, if all the data generated per second are stored, it will require about 6KB×32×10k=1920MB≈1.92GB of space. It is almost impossible to use the on-chip storage resources of the FPGA chip to achieve storage. Only external storage chips such as DDR can be introduced, which will bring higher latency and a decrease in real-time performance. If the starting time is set to 50us and the sampling time length is 10us, the echo data length of each channel after each excitation is only 500 sampling points, and the data volume is reduced to about 16.7% of the original, achieving about 83.3% data compression.
[0063] It can be seen that by setting the sampling time starting point and the sampling time length, this method can achieve full-focus imaging detection at any depth area in the workpiece under limited sampling time length capacity without affecting the image quality in the area.
[0064] Step S2, exciting the corresponding ultrasonic transducer array element according to the transmission delay law in step 1, starting from the sampling time starting point in step 1, collecting the ultrasonic echo signal received by at least one array element in the ultrasonic transducer within the sampling time length in step 1, and storing the collected echo data of each channel;
[0065] In one embodiment, in order to realize plane wave full-focus imaging, for a detection system with 128 channels, 50MHz sampling frequency, 12bit sampling accuracy, and 10KHz pulse repetition frequency, by setting the sampling time starting point and sampling time length, the echo data length of each channel after each excitation is 2000 sampling points. At this time, the amount of data generated per second is about 4KB×128×10K=5120MB≈5.12GB. At this time, with a speed of 31 transmissions to synthesize a plane wave full-focus image, an imaging rate of about 323 frames can be achieved. However, for high frame rate imaging systems (taking 1k frames per second as an example) or ultra-multi-channel systems (taking 1024 channels as an example), while ensuring the same imaging quality, the amount of data generated per second will be approximately 15.85GB or 40.96GB respectively, while the current higher-performance PCIe4.0x16 bus has a transmission bandwidth of only 32GB / s. It can be seen that high frame rate imaging or ultra-multi-channel systems will face very large data collection and transmission pressure when performing full-focus imaging, and the actual implementation will face high costs when using high-performance buses.
[0066] In one embodiment, the specific method for storing the collected echo data of each channel in step S2 is: using a ping-pong storage method, the echo data is stored in area 1 during odd-numbered transmissions, and the echo data is stored in area 2 during even-numbered transmissions. While storing data in a certain area, the data in another area is read out to perform the operation of step S3.
[0067] In one embodiment, for a detection system with 32 channels, 50MHz sampling frequency, 12bit sampling accuracy, 10KHz pulse repetition frequency, and 2000 sampling points, the amount of echo data of the 32 channels after each excitation is 4KB×32=128KB. By adopting the ping-pong storage method, only a 256KB ping-pong storage area needs to be set in the FPGA chip to realize pipeline storage and transmission of data, which is much smaller than the 13Mb Block RAM resources of the entry-level Xilinx Artix-7 series chips, reducing the pressure on the on-chip storage space.
[0068] Step S3, performing fast Fourier transform on the echo data of each channel in step S2 along the dimension of sampling points simultaneously through the FPGA chip to obtain the echo time spectrum data of each channel;
[0069] In one embodiment, to achieve plane wave full-focus imaging, for all channel echo data e received when the plane wave is transmitted at an angle θ, θ (t,v), by instantiating an FFT module for each channel echo data inside the FPGA, the FFT operation of all channel data along the sampling point dimension is realized at the same time, and the echo time spectrum data E is obtained. θ(ω,v).
[0070] In one embodiment, in order to achieve full-focus imaging, for all channel echo data e(t,v) received after each excitation, an FFT module is instantiated for each channel echo data inside the FPGA, and FFT operations are performed on the data of all channels simultaneously along the dimension of the number of sampling points to obtain the echo time spectrum data E(ω,v).
[0071] Step S4, according to the frequency bandwidth in step 1, intercept the echo time spectrum data of each channel in step S3 within the bandwidth range and transmit it to the GPU;
[0072] In one embodiment, for a detection system with a sampling frequency of 50 MHz, a sampling accuracy of 12 bits, and 2000 sampling points, the amount of echo data of each channel after each excitation is about 4 KB. After fast Fourier transform is performed on the echo data of each channel, the resolution of the time spectrum is 50 MHz / 2000=0.025 MHz. After being intercepted within the frequency bandwidth of [3 MHz, 7 MHz], the amount of data is reduced to 160 complex values. If twice the space is used to store the real and imaginary parts of each complex value respectively, it is equivalent to reducing the amount of data from 2000 points to 320 points, which is reduced to 16% of the original amount, achieving 84% data compression. At this time, for the aforementioned high frame rate imaging system (1 k frames per second) or ultra-multi-channel system (1024 channels), the amount of data generated per second will be reduced to about 2.54 GB or 6.55 GB, respectively, and the use of PCIe3.0x8 with general performance can meet the requirements, thereby reducing the instrument cost, reducing data transmission time, and reducing imaging delay. At the same time, due to the characteristics of the frequency domain algorithm itself, this step is equivalent to applying a band-limited filter to the spectrum, which can remove the influence of high-frequency or low-frequency components on the quality of the target detection image and improve the image quality.
[0073] In one embodiment, a Hanning window function of a corresponding length is generated according to a frequency bandwidth of [3 MHz, 7 MHz], and the Hanning window function is superimposed on the echo time spectrum data of each channel after each excitation to perform spectrum interception.
[0074] Step S5, performing a fast Fourier transform on the echo time spectrum data of all channels intercepted in step S4 along at least one of the receiving array element dimension and the transmission number dimension through the GPU to obtain echo spatial spectrum data;
[0075] In one embodiment, to achieve plane wave full focus imaging (PWI), the echo time spectrum data E of all channels received when the plane wave is transmitted at an angle θ is obtained by a GPU. θ (ω,v), perform fast Fourier transform along the receiving array element dimension (the second dimension) to obtain the echo spatial spectrum data E θ (ω,kv );
[0076] In one embodiment, to achieve total focusing imaging (TFM), the GPU is used to perform a fast Fourier transform along the receiving array element dimension (the second dimension) to obtain the echo time spectrum data E(ω,v,u) of all channels received after a complete FMC acquisition, where u refers to the transmitting array element number. v ,u), and then perform fast Fourier transform along the transmit array element dimension (the third dimension) to obtain the echo spatial spectrum data E(ω,k v ,k u );
[0077] It can be seen that by first using FPGA to perform Fourier transform on the ultrasonic echo data along the dimension of the number of sampling points, the dimension of the Fourier transform operation required in the GPU is at most two-dimensional, avoiding the implementation of complex three-dimensional Fourier transform in the GPU, reducing the requirements for GPU performance, and making full use of computing resources such as DSP inside the FPGA.
[0078] Step S6, performing nonlinear mapping interpolation operation on the echo spatial spectrum data in step S5 to obtain a target image wavenumber domain spectrum;
[0079] In one embodiment, the specific steps of the nonlinear mapping interpolation operation in step S6 are: first, based on the echo spatial spectrum data, interpolation operation is performed according to the nonlinear mapping coordinates, and then the interpolation results are accumulated along the transmission number dimension to obtain the target image wavenumber domain spectrum.
[0080] In one embodiment, to achieve plane wave full focus imaging (PWI), the echo spatial spectrum data E received when the plane wave is transmitted at an angle θ is θ (ω,k v ), according to the nonlinear mapping coordinates (k,k v ) θ (ω,k c ) to interpolate the value of this nonlinear mapping coordinate, and then we can get G θ (k x ,k z ), and then the image wavenumber domain spectrum G under different angles of plane wave emission θ (k x ,k z ) is added, that is, accumulated along the dimension of the number of transmissions, to obtain the target image wave number domain spectrum G(k x ,k z ).
[0081] In one embodiment, to achieve total focusing imaging (TFM), the echo spatial spectrum data E(ω, kc ,k u ), at each k u According to the nonlinear mapping coordinates (k,k v ) for E(ω,k v |k u ) to interpolate the values on the nonlinear mapping coordinates, and then use different k u The interpolation results under the value are accumulated, that is, accumulated along the dimension of the number of transmissions, and the wave number domain spectrum G(k x ,k z ).
[0082] Step S7, performing a two-dimensional inverse Fourier transform (IFFT) on the wavenumber domain spectrum of the target image in step S6 to obtain a target detection image, which is a fully focused or plane wave fully focused detection image output under the requirements of multiple channels, high imaging frame rate, high resolution or low imaging delay.
[0083] It can be seen that the main computational effort of the wavenumber domain imaging algorithm lies in two-dimensional spectrum interpolation and Fourier transform, compared with the PN required to calculate the transit time in the time domain DAS algorithm. 2 The wave number domain algorithm only needs to perform PN times linear interpolation, which obviously has a smaller amount of calculation. For high-resolution images (million pixels), the square and square root operations of the DAS algorithm will exceed the computing capacity of the FPGA. Using only a GPU also requires a high-performance GPU, which will also cause high imaging delay. The wave number domain algorithm benefits from the computational efficiency of linear interpolation and fast Fourier, and the overall computational efficiency will be greatly improved.
[0084] like Figure 4 As shown, in one embodiment, an ultrasonic fully focused wavenumber domain imaging system based on FPGA and GPU includes:
[0085] A detection parameter calculation and determination module is used to calculate and determine the detection parameters, wherein the detection parameters include: emission delay law, nonlinear mapping coordinates, sampling time starting point, sampling time length and frequency bandwidth;
[0086] The transmitting and receiving module is used to first generate a high-voltage pulse signal and excite the ultrasonic transducer according to the transmitting delay law, and then receive the ultrasonic echo signal;
[0087] An acquisition module is used to acquire the ultrasonic echo signal received by at least one array element in the ultrasonic transducer from the sampling time starting point and within the sampling time length, and perform analog gain processing and analog-to-digital conversion operations;
[0088] A storage module, used for storing the echo data of each channel obtained by the acquisition module;
[0089] The real-time fast Fourier transform module is used to perform fast Fourier transform operations on the echo data of each channel along the sampling point dimension simultaneously through the FPGA chip, and intercept the echo time spectrum data of each channel within the bandwidth range according to the frequency bandwidth, and then transmit it to the GPU;
[0090] Fast Fourier transform operation module: used to perform fast Fourier transform on the intercepted echo time spectrum data of all channels along at least one of the receiving array element dimension and the transmission number dimension through the GPU to obtain echo spatial spectrum data;
[0091] Nonlinear mapping interpolation operation module: used to perform nonlinear mapping interpolation operation on echo spatial spectrum data to obtain the wave number domain spectrum of the target image;
[0092] Inverse Fourier transform operation module: used to perform inverse Fourier transform operation on the wave number domain spectrum of the target image to obtain a target detection image, which is a fully focused or plane wave fully focused detection image output under the requirements of multiple channels, high imaging frame rate, high resolution or low imaging delay.
[0093] like Figure 5 As shown, in one embodiment, an ultrasonic fully focused wavenumber domain imaging device based on FPGA and GPU is used to implement the ultrasonic fully focused wavenumber domain imaging system based on FPGA and GPU of claim 4, characterized in that it includes: an ultrasonic transducer, an ultrasonic transmitting and receiving circuit, an echo signal acquisition circuit, an FPGA circuit, a bus connection circuit, a GPU and a power supply component;
[0094] The ultrasonic transmitting and receiving circuit is used to realize the functions of the transmitting and receiving module;
[0095] The echo signal acquisition circuit is used to realize the acquisition module function;
[0096] The FPGA circuit is used to control the transmitting and receiving circuits and the echo signal acquisition circuit, and internally runs the storage module and the real-time fast Fourier transform module;
[0097] The ultrasonic transmitting and receiving circuit, the echo signal acquisition circuit and the FPGA circuit are integrated as an ultrasonic detection unit;
[0098] The bus connection circuit is used to connect the FPGA circuit inside one or more ultrasonic detection units to the GPU through a high-speed bus;
[0099] The GPU runs a fast Fourier transform operation module, a nonlinear mapping interpolation operation module, and an inverse Fourier transform operation module.
[0100] In one embodiment, the FPGA circuit implements the real-time fast Fourier transform module function by instantiating a fast Fourier transform LogiCORE IP core for each channel inside the Xilinx FPGA chip.
[0101] In one embodiment, the bus connection circuit is implemented based on a PXIe or PCIe bus.
[0102] In one embodiment, the ultrasonic total focusing wavenumber domain imaging device based on FPGA and GPU further includes: a host computer for displaying the target detection image.
[0103] like Figure 6 As shown in the dashed box, in one embodiment, the host computer can be a PC based on the x86 platform, which is connected to the FPGA circuit via a USB or network port or bus connection circuit.
[0104] In one embodiment, the host computer may be an embedded operating system running inside the GPU and connected to the GPU via an internal bus.
[0105] In one embodiment, the detection parameter calculation and determination module is set in the host computer or GPU, and sends the detection parameters to the FPGA and GPU after completing the calculation.
[0106] The FPGA and GPU-based ultrasonic full-focus wavenumber domain imaging method, system and device have the following advantages:
[0107] (1) By performing fast Fourier transform on the echo data and intercepting it within the bandwidth range, the storage and transmission pressure of FMC data generated by the ultrasonic detection system under the requirements of multiple channels and high imaging frame rate is reduced, and the imaging delay and design cost are reduced. At the same time, by superimposing the window function in the interception process, a filtering effect can be achieved;
[0108] (2) By using the wavenumber domain imaging method, the computational efficiency is improved compared to the traditional time domain DAS algorithm to meet imaging requirements such as high resolution, multiple channels or high imaging frame rate, while supporting both full focusing and plane wave full focusing imaging modes;
[0109] (3) The different computational links in the wavenumber domain imaging method are rationally allocated to different hardware computing resources, and the data pipeline processing is realized through the design of ping-pong storage module, real-time FFT module, etc., which can improve the calculation accuracy, reduce imaging delay, meet the requirements of imaging frame rate, etc., and reduce the requirements for instrument performance and achieve the lowest hardware cost; through the modular design of bus connection circuit and ultrasonic detection unit, high scalability is achieved, and detection devices with different numbers of channels can be realized.
[0110] The above are only preferred embodiments of one or more embodiments of this specification, and are not intended to limit one or more embodiments of this specification. Any modifications made within the spirit and principles of one or more embodiments of this specification are not intended to limit this specification.
Claims
1. An ultrasonic full-focusing wavenumber domain imaging method based on FPGA and GPU, characterized in that: The following steps are involved: Step S1, calculating and determining detection parameters in a host computer or GPU, wherein the detection parameters include: emission delay rule, nonlinear mapping coordinates, sampling time starting point, sampling time length, and frequency bandwidth; Step S2, according to the transmission delay law in step S1, the corresponding ultrasonic transducer array element is excited, starting from the sampling time starting point in step S1, within the sampling time length in step S1, the ultrasonic echo signal received by at least one array element in the ultrasonic transducer is collected, and the collected echo data of each channel is stored; the specific method of storing the collected echo data of each channel is: using a ping-pong storage method, the echo data is stored in the storage area 1 in the FPGA chip when the odd number of transmissions is performed, and the echo data is stored in the storage area 2 in the FPGA chip when the even number of transmissions is performed, and while the data storage operation is performed on a certain area, the data of another area is read out to perform the operation of step S3; Step S3, performing fast Fourier transform on the echo data of each channel in step S2 along the dimension of sampling points simultaneously through the FPGA chip to obtain the echo time spectrum data of each channel, specifically: For all channel echo data received after each excitation, a fast Fourier transform module is instantiated for each channel echo data inside the FPGA to implement fast Fourier transform operations on all channel data simultaneously along the sampling point dimension to obtain echo time spectrum data; Step S4, according to the frequency bandwidth in step S1, intercept the echo time spectrum data of each channel in step S3 within the bandwidth range and transmit it to the GPU, specifically: Generate a window function of corresponding length according to the frequency bandwidth, and superimpose the window function on the echo time spectrum data of each channel after each excitation to perform spectrum interception; Step S5, performing a fast Fourier transform on the echo time spectrum data of all channels intercepted in step S4 along at least one of the receiving array element dimension and the transmission number dimension through the GPU to obtain echo spatial spectrum data; To achieve plane wave full-focus imaging, GPU is used to θ The echo time spectrum data of all channels received when the plane wave is transmitted under the angle is fast Fourier transformed along the receiving array element dimension to obtain the echo spatial spectrum data; To achieve full-focus imaging, the GPU performs a fast Fourier transform along the receiving array element dimension and then performs a fast Fourier transform along the transmitting array element dimension to obtain the echo spatial spectrum data for the echo time spectrum data of all channels received after a complete full-matrix data acquisition. Step S6, performing nonlinear mapping interpolation operation on the echo spatial spectrum data in step S5 to obtain the wavenumber domain spectrum of the target image, specifically: Firstly, based on the echo spatial spectrum data, an interpolation operation is performed according to the nonlinear mapping coordinates, and then the interpolation results are accumulated along the transmission number dimension to obtain the target image wave number domain spectrum; Step S7, performing a two-dimensional inverse Fourier transform on the wavenumber domain spectrum of the target image in step S6 to obtain a target detection image.
2. An ultrasonic full-focusing wavenumber domain imaging system based on FPGA and GPU implemented by the method of claim 1, characterized in that: include: A detection parameter calculation and determination module, used to calculate and determine detection parameters, wherein the detection parameters include: emission delay law, nonlinear mapping coordinates, sampling time starting point, sampling time length and frequency bandwidth; The transmitting and receiving module is used to first generate a high-voltage pulse signal and excite the ultrasonic transducer according to the transmitting delay law, and then receive the ultrasonic echo signal; An acquisition module, used to acquire the ultrasonic echo signal received by at least one array element in the ultrasonic transducer from the sampling time starting point and within the sampling time length, and perform analog gain processing and analog-to-digital conversion operations; A storage module, used for storing the echo data of each channel obtained by the acquisition module; A real-time fast Fourier transform module is used to perform a fast Fourier transform operation on the echo data of each channel simultaneously along the sampling point number dimension through the FPGA chip, and intercept the echo time spectrum data of each channel within the bandwidth range according to the frequency bandwidth, and then transmit it to the GPU; Fast Fourier transform operation module: used to perform fast Fourier transform on the intercepted echo time spectrum data of all channels along at least one of the receiving array element dimension and the transmission number dimension through the GPU to obtain echo spatial spectrum data; Nonlinear mapping interpolation operation module: used for performing nonlinear mapping interpolation operation on the echo spatial spectrum data to obtain the wavenumber domain spectrum of the target image; Inverse Fourier transform operation module: used to perform inverse Fourier transform operation on the wavenumber domain spectrum of the target image to obtain a target detection image.
3. An ultrasonic fully focused wavenumber domain imaging device based on FPGA and GPU, used to implement the ultrasonic fully focused wavenumber domain imaging system based on FPGA and GPU as claimed in claim 2, characterized in that: include: Ultrasonic transducer, ultrasonic transmitting and receiving circuit, echo signal acquisition circuit, FPGA circuit, bus connection circuit, GPU and power supply components; The ultrasonic transmitting and receiving circuit is used to realize the functions of the transmitting and receiving module; The echo signal acquisition circuit is used to realize the acquisition module function; The FPGA circuit is used to control the transmitting and receiving circuit and the echo signal acquisition circuit, and internally runs the storage module and the real-time fast Fourier transform module; The ultrasonic transmitting and receiving circuit, the echo signal acquisition circuit and the FPGA circuit as a whole serve as an ultrasonic detection unit; The bus connection circuit is used to connect the FPGA circuit inside one or more of the ultrasonic detection units to the GPU via a high-speed bus; The GPU runs the fast Fourier transform operation module, the nonlinear mapping interpolation operation module and the inverse Fourier transform operation module.
4. The ultrasonic total focusing wavenumber domain imaging device based on FPGA and GPU according to claim 3, characterized in that: The FPGA circuit implements the real-time fast Fourier transform module function by instantiating a fast Fourier transform LogiCORE IP core for each channel inside the Xilinx FPGA chip.
5. The ultrasonic total focusing wavenumber domain imaging device based on FPGA and GPU according to claim 3, characterized in that: The bus connection circuit is implemented based on a PXIe or PCIe bus.
6. The ultrasonic total focusing wavenumber domain imaging device based on FPGA and GPU according to claim 3, characterized in that: Also includes: Host computer used to display target detection images.
7. The ultrasonic total focusing wavenumber domain imaging device based on FPGA and GPU according to claim 6, characterized in that: The host computer is a PC based on the x86 platform, which is connected to the FPGA circuit via a USB or a network port or the bus connection circuit; Alternatively, the host computer is an embedded operating system running inside the GPU and is connected to the GPU via an internal bus.
8. The ultrasonic total focusing wavenumber domain imaging device based on FPGA and GPU according to claim 7, characterized in that: The detection parameter calculation and determination module is arranged in the host computer or the GPU, and sends the detection parameters to the FPGA and the GPU after completing the calculation.
