Virtual focusing imaging method and device, electronic equipment and storage medium
By determining the target detection area in ultrasonic phased array imaging and utilizing transducer coupling and delayed data processing, rapid and high-precision defect detection is achieved, solving the problems of large data volume and low temporal resolution, and improving imaging speed and quality.
Patent Information
- Application Number
- CN202511118441.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-11
- Publication Date
- 2025-11-18
AI Technical Summary
Existing ultrasonic phased array imaging technology suffers from problems such as large data volume and low imaging temporal resolution in defect detection.
By determining the target detection area, coupling the transducer with the detection object, emitting an excitation signal and acquiring the reflected signal, calculating the delay data for imaging processing, and combining the defect judgment and filling of pixels, initial and target virtual focusing imaging is achieved.
This reduces the amount of data processing, improves imaging speed and temporal resolution, and enables rapid and high-precision defect detection of the target detection area.
Smart Images

Figure CN120971573A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of ultrasonic imaging and nondestructive testing, and in particular to a virtual focusing imaging method and device, an electronic device, and a storage medium. BACKGROUND
[0002] The ultrasonic phased array imaging detection technology is widely used in the fields of aerospace, railway, automobile, ship, petroleum, chemical industry, and power due to its detection sensitivity and method flexibility. Among them, the virtual focusing imaging algorithm of the ultrasonic phased array has higher precision and greater dynamic range, and has higher defect imaging capability than the current conventional phased array ultrasonic detection technology. SUMMARY
[0003] The present application aims to at least solve one of the technical problems in the related art to some extent.
[0004] To this end, the first object of the present application is to provide a virtual focusing imaging method to realize low data volume processing on a target detection region and improve the time resolution of virtual focusing imaging.
[0005] The second object of the present application is to provide a virtual focusing imaging device.
[0006] The third object of the present application is to provide an electronic device.
[0007] The fourth object of the present application is to provide a computer-readable storage medium.
[0008] The fifth object of the present application is to provide a computer program product.
[0009] To achieve the above objects, the first aspect of the present application provides a virtual focusing imaging method, comprising: determining a target detection region in a detection object, and coupling a transducer with the detection object based on the target detection region;
[0010] emitting an excitation signal to the target detection region through the coupled transducer, and collecting a reflection signal of the target detection region to obtain a target data set;
[0011] determining first delay data between the excitation signal and the reflection signal based on a pixel point corresponding to the target detection region, and processing the target data set based on the first delay data to obtain a first imaging result;
[0012] determining a target pixel point with a defect and a defect-free pixel point from the pixel point according to the first imaging result;
[0013] perform pixel filling on the non-defective pixel points based on the first imaging result to obtain an initial virtual focus imaging result of the target detection area;
[0014] determine second delay data based on the target pixel points, and perform processing on the target data set based on the second delay data to obtain a second imaging result;
[0015] determine a target pixel value corresponding to the target pixel points based on the second imaging result, and perform pixel filling on the initial virtual focus imaging result based on the target pixel value to obtain a target virtual focus imaging result.
[0016] To achieve the above object, a second aspect embodiment of the present application provides a virtual focus imaging device, comprising: a coupling module configured to determine a target detection area in a detection object, and couple a transducer with the detection object based on the target detection area;
[0017] a data acquisition module configured to emit an excitation signal to the target detection area through the coupled transducer, and acquire a reflection signal of the target detection area to obtain a target data set;
[0018] a first processing module configured to determine first delay data between the excitation signal and the reflection signal based on pixel points corresponding to the target detection area, and perform processing on the target data set based on the first delay data to obtain a first imaging result;
[0019] a determination module configured to determine target pixel points with defects and non-defective pixel points from the pixel points according to the first imaging result;
[0020] a first filling module configured to perform pixel filling on the non-defective pixel points based on the first imaging result to obtain an initial virtual focus imaging result of the target detection area;
[0021] a second processing module configured to determine second delay data based on the target pixel points, and perform processing on the target data set based on the second delay data to obtain a second imaging result;
[0022] a second filling module configured to determine a target pixel value corresponding to the target pixel points based on the second imaging result, and perform pixel filling on the initial virtual focus imaging result based on the target pixel value to obtain a target virtual focus imaging result.
[0023] To achieve the above object, the third aspect of the present application provides an electronic device, comprising: a processor; and a memory connected with the processor; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory, so that the processor can execute the virtual focusing imaging method in the first aspect of the present application.
[0024] To achieve the above object, the fourth aspect of the present application provides a computer readable storage medium, which stores a computer program, and the computer program is used to make the computer execute the virtual focusing imaging method in the first aspect of the present application.
[0025] To achieve the above object, the fifth aspect of the present application provides a computer program product, which comprises a computer program, and the computer program is executed by the processor to realize the virtual focusing imaging method in the first aspect of the present application.
[0026] The virtual focusing imaging method, device, electronic device and storage medium provided by the present application can obtain a target data set by emitting an excitation signal to a target detection area through a transducer and collecting data of a reflection signal corresponding to the excitation signal. By determining a pixel point of the target detection area, the first delay data is calculated according to the pixel point, and the target data set is processed using the first delay data, so that the first imaging result can be obtained. Then, the pixel filling is performed on the non-defective pixel point according to the first imaging result, so that the initial virtual focusing imaging result is obtained. Further, the second imaging result is obtained by processing the target data set through the defective target pixel point, and the pixel filling is performed on the initial virtual focusing imaging result according to the second imaging result, so that the target virtual focusing imaging result is obtained. Therefore, the present application realizes the defect positioning of the target detection area, and performs the pixel filling on the defect, so that the area which does not need to be processed by high-precision virtual focusing is excluded, the data processing amount is reduced, the imaging speed is improved, and the time resolution of the virtual focusing imaging is improved.
[0027] Additional aspects and advantages of the present application will be in part apparent and in part pointed out hereinafter. BRIEF DESCRIPTION OF DRAWINGS
[0028] The above and / or additional aspects and advantages of the present application will become apparent and be readily appreciated from the following description, taken in conjunction with the accompanying drawings, in which:
[0029] Figure 1 A flowchart of a virtual focusing imaging method provided by an embodiment of the present application;
[0030] Figure 2 A flowchart of another virtual focusing imaging method provided by an embodiment of the present application;
[0031] Figure 3 A flowchart of a virtual focusing imaging method provided by an embodiment of the present application;
[0032] Figure 4 A structural diagram of a virtual focusing imaging device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0033] The embodiments of the present application are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar notations represent the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the accompanying drawings are exemplary and are intended to explain the present application, and cannot be understood as a limitation of the present application.
[0034] The virtual focusing imaging method and device of the embodiments of the present application are described below with reference to the accompanying drawings.
[0035] Figure 1 is a flowchart of a virtual focusing imaging method provided by an embodiment of the present application, as shown in Figure 1 The virtual focusing imaging method of the embodiments of the present application includes, but is not limited to, the following steps:
[0036] S101, determining a target detection region in a detection object, and coupling a transducer with the detection object based on the target detection region.
[0037] It should be noted that the execution subject of the virtual focusing imaging method provided by the embodiments of the present application is an electronic device, which can be a terminal device. Alternatively, the terminal device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc., and the non-mobile electronic device can be a personal computer (PC), a television, etc. The embodiments of the present application are not limited specifically.
[0038] In some embodiments, the detection object refers to an object for which virtual focusing imaging is performed. By determining a target detection region from the detection object and performing virtual focusing imaging on the target detection region, a virtual focusing imaging result of the target detection region can be obtained. That is, if the detection object is divided into multiple detection regions, according to imaging requirements, a detection region A can be determined as the target detection region from the multiple detection regions.
[0039] For example, the detection object is a phased array standard block, and two groups of arc-shaped through holes in the block can be used as the target detection area.
[0040] In some embodiments, the transducer can be a linear array transducer, a curved linear array transducer, or a 2D array transducer, and the type of transducer is not limited in the embodiments of the present application.
[0041] In some embodiments, in order to ensure that the signal emitted by the transducer is effectively transmitted into the detection object and a reflected signal is generated when a defect or an interface is encountered, a coupling agent can be applied to the target detection area, and the transducer can be coupled to the detection object through the coupling agent, so as to improve the accuracy and reliability of data acquisition.
[0042] In S102, an excitation signal is emitted to the target detection area by the coupled transducer, and a reflected signal of the target detection area is collected to obtain a target data set.
[0043] It can be understood that the transducer is composed of a plurality of array elements arranged and combined in a certain geometric shape (such as linear, annular, and surface array).
[0044] In some embodiments, the transducer emits an ultrasonic signal, i.e., an excitation signal, to the target detection area through the array elements, and can receive an ultrasonic signal reflected by the target detection area, i.e., a reflected signal.
[0045] In some embodiments, the target data set can be obtained by collecting the reflected signal. Alternatively, the reflected signal can be collected by using the Nyquist sampling method, so as to obtain a plane wave data set and a full matrix capture data set as the target data set.
[0046] That is, the array elements in the transducer emit ultrasonic signals simultaneously to form a plane wave as an excitation signal to propagate to the target detection area, and the target detection area reflects the excitation signal, so that the array elements in the transducer can receive the reflected signal, thereby obtaining a plane wave data set.
[0047] For example, the transducer includes 128 array elements, and the 128 array elements emit ultrasonic signals simultaneously, and then the 128 array elements can receive the reflected signal simultaneously, thereby obtaining a plane wave data set of 1*128*1152.
[0048] In some embodiments, the array elements in the transducer can also emit excitation signals to the target detection area in a set emission sequence, and the target detection area reflects the excitation signals, so that the array elements in the transducer can receive the reflected signals in sequence, thereby obtaining a full matrix capture data set.
[0049] For example, the transducer includes 128 array elements, the 128 array elements sequentially emit ultrasonic signals, and then the 128 array elements can sequentially receive reflected signals to obtain a full matrix capture data set of 128*128*1152.
[0050] In S103, first delay data between the excitation signal and the reflected signal is determined based on the pixel point corresponding to the target detection area, and target data set is processed based on the first delay data to obtain a first imaging result.
[0051] In some embodiments, the target detection area can be discretized to determine the pixel point corresponding to the target detection area according to the discretization result. By dividing the target detection area into grids according to the set grid density, the pixel point corresponding to each grid can be obtained.
[0052] Further, the propagation sound path between the pixel point and the transducer array element can be calculated, and the first delay data can be calculated according to the propagation sound path. The propagation sound path refers to the total path length of the signal from the array element to the pixel point and reflected back to the array element.
[0053] Optionally, the propagation time of the signal from the array element to the pixel point can be calculated as the first delay data according to the propagation sound path and the sound speed.
[0054] In some embodiments, the plane wave data set in the target data set can be phase-shifted and superimposed based on the first delay data to obtain the first imaging result. By phase-shifting and superimposing the data set according to the first delay data, the signals in the data set can be aligned in time, thereby improving the accuracy of the first imaging result.
[0055] In S104, target pixel points with defects and defect-free pixel points are determined from the pixel points according to the first imaging result.
[0056] In some embodiments, the pixel points with defects in the target detection area can be determined as target pixel points according to the first imaging result. Optionally, whether each pixel point in the first imaging result has a defect can be determined according to the pixel value of the pixel point, and the pixel point with a defect is determined as a target pixel point. The pixel points other than the target pixel points are defect-free pixel points.
[0057] In some embodiments, the pixel value range of the pixel points with defects in the detection area corresponding to the pixel points can be determined in advance, and whether the pixel value of the pixel point of the target detection area is within the pixel value range is determined, and the pixel point within the pixel value range is determined as a target pixel point.
[0058] In some embodiments, pixel value analysis can be performed on the first imaging result to determine the distribution range, average value, standard deviation, etc. of the pixel values corresponding to the first imaging result as analysis results, and a pixel value range can be set according to the analysis results, so as to take the pixel points within the pixel value range as target pixel points, and take the pixel points not within the pixel value range as defect-free pixel points.
[0059] In S105, pixel filling is performed on the defect-free pixel points based on the first imaging result, to obtain an initial virtual focus imaging result of the target detection area.
[0060] In some embodiments, since the grid density corresponding to the defect-free pixel points is different from the grid density of the pixel points in the first imaging result, interpolation can be performed on the grid density to obtain the defect-free pixel points and the pixel points in the first imaging result with the same grid density.
[0061] Further, the pixel values of the pixel points in the first imaging result can be obtained and filled into the defect-free pixel points, to obtain the initial virtual focus imaging result of the target detection area.
[0062] Optionally, the pixel values of the pixel points in the first imaging result can also be amplified, so that the orders of magnitude of the pixel values between different pixel points remain consistent, and the initial virtual focus imaging result can be obtained by filling according to the amplified pixel values.
[0063] In S106, second delay data is determined based on the target pixel points, and the target data set is processed based on the second delay data to obtain a second imaging result.
[0064] In some embodiments, the second delay data can be calculated according to the target pixel points, and the target data set can be processed according to the second delay data to obtain the second imaging result as the initial virtual focus imaging result of the target detection area.
[0065] In some embodiments, the propagation sound path between the target pixel points and the transducer elements can be calculated, and the second delay data can be calculated according to the propagation sound path. Further, the full matrix capture data set in the target data set can be phase-shifted and superimposed according to the second delay data, to obtain the second imaging result.
[0066] It can be understood that, by performing phase-shifted superposition, the precise focusing of the ultrasonic wave signal in the target detection area can be simulated, without the need to physically move the transducer or adjust the hardware parameters of the transducer, thereby significantly improving the imaging quality.
[0067] In S107, a target pixel value corresponding to the target pixel point is determined based on the second imaging result, and pixel filling is performed on the initial virtual focus imaging result based on the target pixel value, to obtain a target virtual focus imaging result.
[0068] In some embodiments, the target virtual focus imaging result can be obtained by determining a target pixel value of the target pixel point in the second imaging result, and determining a target pixel position of the target pixel point in the initial virtual focus imaging result, and filling the target pixel value into the target pixel position.
[0069] In some embodiments, the target virtual focus imaging result can also be obtained by determining a target pixel value corresponding to the target pixel point, and determining a candidate pixel value of the target pixel point in the initial virtual focus imaging result, and replacing the candidate pixel value with the target pixel value.
[0070] In the virtual focus imaging method provided by the embodiments of the present application, the target data set can be obtained by emitting the excitation signal to the target detection area by the transducer and collecting the reflection signal corresponding to the excitation signal. The first delay data can be calculated according to the pixel point by determining the pixel point of the target detection area, and the first imaging result can be obtained by processing the target data set using the first delay data. Then, the initial virtual focus imaging result can be obtained by performing pixel filling on the non-defective pixel point according to the first imaging result. Further, the second imaging result can be obtained by processing the target data set through the target pixel point with defects, and the target virtual focus imaging result can be obtained by performing pixel filling on the initial virtual focus imaging result according to the second imaging result. Thus, the present application realizes the defect positioning of the target detection area, and performs pixel filling on the defects, so as to exclude the area that does not need to be processed by high-precision virtual focus, thereby reducing the data processing amount, improving the imaging speed, and improving the time resolution of virtual focus imaging.
[0071] Figure 2 is a flow chart of a virtual focus imaging method according to the embodiments of the present application, as shown in Figure 2 The virtual focus imaging method of the embodiments of the present application includes but is not limited to the following steps:
[0072] S201, determining a target detection area in a detection object, and coupling the transducer with the detection object based on the target detection area.
[0073] S202, emitting an excitation signal to the target detection area by the coupled transducer, and collecting the reflection signal of the target detection area to obtain a target data set.
[0074] In the embodiments of the present application, the implementation manners of steps S201-S202 can be implemented by any one of the embodiments of the present application, and here the present application is not limited thereto, and will not be described again.
[0075] S203, emitting a first excitation signal and a second excitation signal to the target detection area by the array element of the transducer.
[0076] In some embodiments, the signal parameters of the first excitation signal and the second excitation signal are the same. For example, the parameters such as the frequency, amplitude and waveform of the first excitation signal and the second excitation signal are the same. The first excitation signal refers to a plane wave signal obtained by simultaneously emitting ultrasonic waves by all elements of the transducer. The second excitation signal refers to an ultrasonic wave signal obtained by sequentially emitting ultrasonic waves by each element of the transducer.
[0077] S204, receiving the first reflection signal corresponding to the first excitation signal as the first data set.
[0078] S205, receiving the second reflection signal corresponding to the second excitation signal as the second data set.
[0079] S206, taking the first data set and the second data set as the target data set.
[0080] It can be understood that when the elements of the transducer emit the excitation signal, the elements of the transducer can also receive the reflection signal corresponding to the excitation signal. When the elements of the transducer emit and receive signals, the elements that emit the excitation signal and receive the reflection signal can be combined as an element combination, and the data set can be collected based on the element combination.
[0081] That is, the first data set at least includes a first data combination corresponding to a first element combination that emits the first excitation signal and receives the first reflection signal. The second data set at least includes a second data combination corresponding to a second element combination that emits the second excitation signal and receives the second reflection signal.
[0082] In some embodiments, the first excitation signal is emitted simultaneously by the elements of the transducer, and the elements of the transducer can simultaneously receive the first reflection signal. The second excitation signal is emitted sequentially by the elements of the transducer, and the elements of the transducer can sequentially receive the second reflection signal.
[0083] For example, the transducer includes 128 elements, the 128 elements simultaneously emit ultrasonic signals, and then the 128 elements can simultaneously receive the reflection signals to obtain a 1*128*1152 plane wave data set as the first data set.
[0084] For example, the transducer includes 128 elements, the 128 elements sequentially emit ultrasonic signals, and then the 128 elements can sequentially receive the reflection signals to obtain a 128*128*1152 full matrix capture data set as the second data set.
[0085] S207, determining the first delay data between the excitation signal and the reflection signal based on the pixel points corresponding to the target detection area, and processing the target data set based on the first delay data to obtain the first imaging result.
[0086] In some embodiments, the planar wave imaging result can be obtained as the first imaging result by determining the pixel points from the target detection region, and calculating the first delay data between the excitation signal and the reflection signal according to the pixel points, and processing the first data set in the target data set according to the first delay data.
[0087] In some embodiments, the pixel points can be determined by discretization of the target detection region, that is, the pixel points can be obtained by discretization of the target detection region. Optionally, the target detection region can be divided into grids according to a set grid density, so as to determine the pixel points corresponding to the target detection region according to the grid division result.
[0088] Further, the first delay data between the excitation signal and the reflection signal can be calculated according to the propagation sound range between the pixel points and the corresponding elements. Optionally, the first delay data can be determined according to the first propagation sound range between the pixel points and the elements.
[0089] Optionally, the propagation time of the signal from the element to the pixel point can be calculated as the first delay data according to the first propagation sound range and the sound speed, so that the first data combination can be phase-shifted and superimposed based on the first delay data to obtain the first imaging result.
[0090] S208, determining the target pixel points with defects and the pixel points without defects from the pixel points according to the first imaging result.
[0091] In some embodiments, the pixel value corresponding to each pixel point in the first imaging result can be determined by pixel value analysis of the first imaging result, so that whether any pixel point is the target pixel point with defects or the pixel point without defects can be determined according to the pixel value.
[0092] In some embodiments, the target pixel points with defects and the pixel points without defects can be determined by setting a pixel value range and judging whether the pixel value of the pixel point is within the pixel value range. Optionally, the pixel points within the pixel value range can be regarded as the target pixel points, and the pixel points not within the pixel value range can be regarded as the pixel points without defects.
[0093] That is, in response to the pixel value being within the pixel value range, the pixel point corresponding to the pixel value is determined as the target pixel point. In response to the pixel value not being within the pixel value range, the pixel point corresponding to the pixel value is determined as the pixel point without defects.
[0094] S209, pixel filling the pixel points without defects based on the first imaging result to obtain an initial virtual focused imaging result of the target detection region.
[0095] In some embodiments, the grid densities corresponding to the first imaging result and the defect-free pixel points can be unified so as to be the same, and the defect-free pixel points can be filled with pixels under the same grid density, so as to obtain the initial virtual focus imaging result of the target detection area.
[0096] In some embodiments, the orders of magnitude of the pixel values can be unified, the pixel points can be enlarged by an amplification coefficient, and the defect-free pixel points can be filled with pixels using the processed pixel points, so as to obtain the initial virtual focus imaging result of the target detection area.
[0097] In some embodiments, the first grid density corresponding to the defect-free pixel points and the second grid density corresponding to the first imaging result can be determined, and the second grid density can be interpolated to obtain a third grid density same as the first grid density, so that the pixel points in the first imaging result and the defect-free pixel points have spatial correspondence.
[0098] Further, the pixel points corresponding to the third grid density in the first imaging result can be processed based on the amplification coefficient, and the defect-free pixel points can be replaced according to the processed pixel points, so as to obtain the initial virtual focus imaging result.
[0099] Optionally, the pixel values of the defect-free pixel points can be replaced according to the pixel values corresponding to the processed pixel points, so as to obtain the initial virtual focus imaging result.
[0100] S210, determining second delay data based on the target pixel point, and processing the target data set based on the second delay data to obtain a second imaging result.
[0101] In some embodiments, the second delay data can be determined by calculating the propagation sound path between the target pixel point and the array element, so that the second data combination in the target data set can be phase-shifted and superimposed according to the second delay data, so as to obtain the second imaging result.
[0102] That is, the second propagation sound path between the target pixel point and the array element is determined, the second delay data is determined according to the second propagation sound path, and further, the second data combination is phase-shifted and superimposed based on the second delay data, so as to obtain the second imaging result.
[0103] Optionally, the propagation time of the signal from the array element to the pixel point can be calculated as the second delay data according to the second propagation sound path and the sound speed, so that the second data combination can be phase-shifted and superimposed based on the second delay data, so as to obtain the second imaging result.
[0104] S211, determining a target pixel value corresponding to the target pixel point based on the second imaging result, and filling the initial virtual focus imaging result with pixels based on the target pixel value, so as to obtain a target virtual focus imaging result.
[0105] In the embodiment of the present application, the implementation of step S211 can be realized by any of the embodiments of the present application, and here it is not limited, and will not be repeated.
[0106] In the virtual focusing imaging method provided by the embodiment of the present application, the transducer array elements emit the first excitation signal and the second excitation signal, and receive the corresponding reflection signal to obtain the target data set, and determine the first delay data to perform phase shift superposition on the target data set, so that the first imaging result can be obtained. Further, the target pixel point and the non-defect pixel point are determined from the first imaging result, and the second delay data is determined according to the target pixel point to perform phase shift superposition on the target data set, so that the second imaging result is obtained. Through the first imaging result and the second imaging result, the pixel filling is performed on the non-defect pixel point and the target pixel point, so that the target virtual focusing imaging result is obtained, which can realize the combination of the ultrasonic phased array plane wave imaging and the virtual focusing imaging, so that the virtual focusing imaging can improve the time resolution on the premise of maintaining the spatial resolution, thereby realizing the fast and high-precision ultrasonic phased array imaging detection.
[0107] Figure 3 The flowchart of the virtual focusing imaging is shown, which is coupled with the detection object, that is, the detection object in (3) multi-element linear array ultrasonic transducer, and the target data set is obtained by transmitting the excitation signal to the detection object through (2) multi-channel ultrasonic transceiver system and receiving the reflection signal reflected by the detection object. Figure 3
[0108] Further, the target data set is transmitted to (5) virtual focusing ultrasonic imaging system through (1) beam control delay system, so as to perform virtual focusing imaging based on the target data set, and obtain the target virtual focusing imaging result. The (5) virtual focusing ultrasonic imaging system can perform virtual focusing imaging based on the target data set by using the method provided by the embodiment of the present application, and the specific implementation steps can be referred to the above-mentioned embodiments, which will not be repeated here.
[0109] Optionally, after the (5) virtual focusing ultrasonic imaging system determines the first imaging result based on the target data set, the first imaging result can also be sent to the (4) threshold processing program, and the (4) threshold processing program analyzes the first imaging result, so as to determine the target pixel point with defects and the non-defect pixel point from the pixel points of the target detection area.
[0110] Corresponding to the virtual focusing imaging method proposed in the above several embodiments, one embodiment of the present application further proposes a virtual focusing imaging device. Since the virtual focusing imaging device proposed in the embodiment of the present application corresponds to the virtual focusing imaging method proposed in the above several embodiments, the implementation manners of the virtual focusing imaging method described above are also applicable to the virtual focusing imaging device proposed in the embodiment of the present application, which will not be described in detail in the following embodiments.
[0111] In order to implement the above embodiments, the present application further proposes a virtual focusing imaging device.
[0112] Figure 4 A structural schematic diagram of a virtual focusing imaging device provided by an embodiment of the present application.
[0113] As shown in Figure 4 , the virtual focusing imaging device 400 comprises:
[0114] A coupling module 401 is configured to determine a target detection area in a detection object, and couple a transducer with the detection object based on the target detection area;
[0115] A data acquisition module 402 is configured to emit an excitation signal to the target detection area through the coupled transducer, and acquire a reflection signal of the target detection area to obtain a target data set;
[0116] A first processing module 403 is configured to determine first delay data between the excitation signal and the reflection signal based on a pixel point corresponding to the target detection area, and process the target data set based on the first delay data to obtain a first imaging result;
[0117] A determination module 404 is configured to determine a target pixel point with a defect and a defect-free pixel point from the pixel points according to the first imaging result;
[0118] A first filling module 405 is configured to perform pixel filling on the defect-free pixel point based on the first imaging result to obtain an initial virtual focusing imaging result of the target detection area;
[0119] A second processing module 406 is configured to determine second delay data based on the target pixel point, and process the target data set based on the second delay data to obtain a second imaging result;
[0120] A second filling module 407 is configured to determine a target pixel value corresponding to the target pixel point based on the second imaging result, and perform pixel filling on the initial virtual focusing imaging result based on the target pixel value to obtain a target virtual focusing imaging result.
[0121] In a possible implementation manner of the embodiment of the present application, the data acquisition module 402 is further configured to: transmit the first excitation signal and the second excitation signal to the target detection area through the array elements of the transducer, and the signal parameters of the first excitation signal and the second excitation signal are the same; the first excitation signal refers to a plane wave signal obtained by simultaneously transmitting ultrasonic waves by all array elements of the transducer; and the second excitation signal refers to an ultrasonic wave signal obtained by sequentially transmitting ultrasonic waves by each array element of the transducer.
[0122] In a possible implementation manner of the embodiment of the present application, the data acquisition module 402 is further configured to: receive the first reflection signal corresponding to the first excitation signal as a first data set, and the first data set at least includes a first data combination corresponding to a first array element combination that transmits the first excitation signal and receives the first reflection signal; receive the second reflection signal corresponding to the second excitation signal as a second data set, and the second data set at least includes a second data combination corresponding to a second array element combination that transmits the second excitation signal and receives the second reflection signal; and take the first data set and the second data set as a target data set.
[0123] In a possible implementation manner of the embodiment of the present application, the first processing module 403 is further configured to: perform discretization processing on the target detection area to obtain a pixel point; determine a first propagation sound path between the pixel point and the array element, to determine first delay data according to the first propagation sound path; and perform phase shift superposition on the first data combination based on the first delay data, to obtain a first imaging result.
[0124] In a possible implementation manner of the embodiment of the present application, the determining module 404 is further configured to: determine a pixel value corresponding to each pixel point in the first imaging result; in response to the pixel value being in a pixel value range, determine that the pixel point corresponding to the pixel value is a target pixel point; and in response to the pixel value not being in the pixel value range, determine that the pixel point corresponding to the pixel value is a non-defect pixel point.
[0125] In a possible implementation manner of the embodiment of the present application, the second processing module 406 is further configured to: determine a second propagation sound path between the target pixel point and the array element, to determine second delay data according to the second propagation sound path; and perform phase shift superposition on the second data combination based on the second delay data, to obtain a second imaging result.
[0126] In a possible implementation of the embodiment of the present application, the first filling module 405 is further configured to: determine a first grid density corresponding to the defect-free pixel point and a second grid density corresponding to the first imaging result; perform interpolation processing on the second grid density to obtain a third grid density same as the first grid density, so that the pixel points in the first imaging result and the defect-free pixel point have spatial correspondence; process the pixel points corresponding to the third grid density in the first imaging result based on the magnification coefficient, and replace the defect-free pixel point according to the processed pixel points to obtain the initial virtual focus imaging result.
[0127] In the virtual focus imaging device provided by the embodiment of the present application, the transducer emits an excitation signal to the target detection area, and data acquisition is performed on the reflection signal corresponding to the excitation signal to obtain a target data set. By determining the pixel point of the target detection area, the first delay data is calculated according to the pixel point, and the target data set is processed using the first delay data to obtain the first imaging result. Then, the initial virtual focus imaging result is obtained by performing pixel filling on the defect-free pixel point according to the first imaging result. Further, the second imaging result is obtained by processing the target data set through the target pixel point with defects, and the target virtual focus imaging result is obtained by performing pixel filling on the initial virtual focus imaging result according to the second imaging result. Therefore, the present application realizes defect positioning of the target detection area, and performs pixel filling on the defects, so as to exclude the area that does not need to be processed by high-precision virtual focus, reduces the data processing amount, improves the imaging speed, and improves the time resolution of the virtual focus imaging.
[0128] It should be noted that the foregoing explanation and description of the virtual focus imaging method embodiment are also applicable to the virtual focus imaging device of the embodiment, which will not be described here again.
[0129] In order to implement the above-mentioned embodiments, the present application further provides an electronic device, comprising: a processor and a memory connected with the processor in communication; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory to implement the method provided by the foregoing embodiments.
[0130] In order to implement the above-mentioned embodiments, the present application further provides a computer readable storage medium, the computer readable storage medium stores computer execution instructions, and the computer execution instructions are executed by the processor to implement the method provided by the foregoing embodiments.
[0131] In order to implement the above-mentioned embodiments, the present application further provides a computer program product, comprising a computer program, which is executed by the processor to implement the method provided by the foregoing embodiments.
[0132] In the foregoing detailed description, reference is made to descriptive terms such as "one embodiment", "some embodiments", "an example", "a specific example" or "some examples" etc. for describing various embodiments of the application. These descriptive terms are used for the purpose of the description and are not meant to limit or restrict the scope of the application. The use of these terms does not imply that the described feature is essential to the application or that it will be combined with other features as described to achieve the advantages described. The scope of the application is defined by the appended claims.
[0133] Furthermore, the terms "first", "second", "third", "fourth", "fifth" and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily presented chronologically. It is to be understood that the describing of a certain feature as "first", "second", "third", "fourth", "fifth" etc. does not mean that the same feature will not be described as such at a later stage. The terms "first", "second", "third", "fourth", "fifth" etc. are used to distinguish between different features, and are not meant to limit the number of features presented. The use of the terms "first", "second", "third", "fourth", "fifth" etc. does not limit the scope of the application, either to the specific feature or to the specific embodiment described with such a term. The use of these terms is interchangeable within the scope of the present application.
[0134] Any process or method described in a flowchart or described elsewhere herein can be understood as representing one or more modules, segments, or portions of code that includes executable instructions for performing a particular logical function or step in the process, and the various embodiments of the preferred implementation of the application can include additional or fewer steps performing the described function in the same order as shown or in a different order than illustrated, as will be understood by those skilled in the art.
[0135] The logic and / or steps represented in the flowcharts and / or described herein, for example, can be considered as a sequence of instructions to implement logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, apparatus, or device, such as a computer-based system, processor- based system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For purposes of this specification, a "computer-readable medium" can be any apparatus that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. The computer-readable medium can be a computer- readable storage medium or a computer-readable signal medium. The computer- readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium include the following: an electrical connection having one or more wires (electrical connections), a portable computer diskette (a magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, and a portable compact disc read-only memory (CDROM). In addition, the computer-readable medium can even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, for example, via optical scanning of the paper or other medium, then compiled, interpreted, or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
[0136] It should be understood that aspects of the application can be implemented in hardware, software, firmware or combinations thereof. In the above embodiments, various steps or methods can be implemented in software or firmware that is stored in memory and executed by a suitable instruction execution system. As such, in some embodiments, specifically configured hardware can be used to implement at least some of the functionality described herein. For example, if implemented in hardware, the hardware can include any or a combination of the following: a discrete logic circuit having logic gates for implementing logic functions upon data signals, an application specific integrated circuit having appropriate combinational logic gates, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0137] Those of skill in the art would understand that information and signals can be represented using any of a variety of technologies and techniques. For example, data, instructions, commands, information, signals, bits, symbols, and chips that can be referenced throughout the above description can be represented by voltages, currents, electromagnetic waves, magnetic fields or particles, optical fields or particles, or any combination thereof.
[0138] In addition, each of the functional units in the various embodiments of the present application can be integrated in one processing module, or each of the units can be physically present separately, or two or more units can be integrated in one module. The integrated module can be implemented in the form of hardware or in the form of a software functional module. When the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer readable storage medium.
[0139] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it should be understood that the above embodiments are exemplary and should not be construed as limiting the present application, and those skilled in the art can make changes, modifications, replacements and variations to the above embodiments within the scope of the present application.
Claims
1. A virtual focusing imaging method, characterized in that, The method includes: Determine the target detection area in the object to be detected, and couple the transducer to the object to be detected based on the target detection area; An excitation signal is emitted to the target detection area through a coupled transducer, and the reflected signal of the target detection area is collected to obtain a target dataset. Based on the pixels corresponding to the target detection area, a first delay data between the excitation signal and the reflection signal is determined, and the target dataset is processed based on the first delay data to obtain a first imaging result; Based on the first imaging result, target pixels with defects and pixels without defects are determined from the pixels; Based on the first imaging result, pixel filling is performed on the defect-free pixels to obtain the initial virtual focused imaging result of the target detection area; Second delay data is determined based on the target pixels, and the target dataset is processed based on the second delay data to obtain a second imaging result; Based on the second imaging result, the target pixel value corresponding to the target pixel point is determined, and the initial virtual focus imaging result is filled with pixels based on the target pixel value to obtain the target virtual focus imaging result.
2. The method according to claim 1, characterized in that, The step of transmitting an excitation signal to the target detection region via a coupled transducer includes: The transducer array elements transmit a first excitation signal and a second excitation signal to the target detection area, and the first excitation signal and the second excitation signal have the same signal parameters. The first excitation signal refers to the plane wave signal obtained by all the array elements of the transducer simultaneously emitting ultrasonic waves. The second excitation signal refers to the ultrasonic signal obtained by each element of the transducer sequentially emitting ultrasonic waves.
3. The method according to claim 2, characterized in that, The process of acquiring the reflection signal of the target detection area to obtain the target dataset includes: The first reflected signal corresponding to the first excitation signal is received as a first dataset, and the first dataset includes at least a first data combination corresponding to the first array element combination that transmits the first excitation signal and receives the first reflected signal. The second reflected signal corresponding to the second excitation signal is received as a second dataset, and the second dataset includes at least a second data combination corresponding to the second array element combination that transmits the second excitation signal and receives the second reflected signal; The first dataset and the second dataset are used as the target dataset.
4. The method according to claim 3, characterized in that, The step of determining a first delay data between the excitation signal and the reflection signal based on the pixels corresponding to the target detection region, and processing the target dataset based on the first delay data to obtain a first imaging result includes: The target detection region is discretized to obtain the pixel points; Determine the first propagation path between the pixel and the array element, so as to determine the first delay data based on the first propagation path; The first imaging result is obtained by phase-shifting and superimposing the first data combination based on the first delayed data.
5. The method according to any one of claims 1-4, characterized in that, The step of determining the defective target pixel and the defect-free pixel from the pixel points based on the first imaging result includes: Determine the pixel value corresponding to each pixel in the first imaging result; In response to the pixel value being within the pixel value range, the pixel point corresponding to the pixel value is determined as the target pixel point; In response to the pixel value not being within the range of the pixel value, the pixel point corresponding to the pixel value is determined to be the defect-free pixel point.
6. The method according to claim 3, characterized in that, The step of determining second delay data based on the target pixels and processing the target dataset based on the second delay data to obtain a second imaging result includes: Determine the second propagation path between the target pixel and the array element, so as to determine the second delay data based on the second propagation path; The second imaging result is obtained by phase-shifting and superimposing the second data combination based on the second delayed data.
7. The method according to claim 1, characterized in that, The step of filling the defect-free pixels with pixels based on the first imaging result to obtain the initial virtual focused imaging result of the target detection area includes: Determine the first grid density corresponding to the defect-free pixel and the second grid density corresponding to the first imaging result; The second grid density is interpolated to obtain a third grid density that is the same as the first grid density, so that the pixels in the first imaging result have a spatial correspondence with the defect-free pixels. The pixels corresponding to the third grid density in the first imaging result are processed based on the magnification factor, and the defect-free pixels are replaced according to the processed pixels to obtain the initial virtual focusing imaging result.
8. A virtual focusing imaging device, characterized in that, The device includes: A coupling module is used to determine the target detection area in the detection object and couple the transducer to the detection object based on the target detection area; The data acquisition module is used to transmit an excitation signal to the target detection area through a coupled transducer and to acquire the reflected signal of the target detection area to obtain a target dataset. The first processing module is used to determine the first delay data between the excitation signal and the reflection signal based on the pixels corresponding to the target detection area, and to process the target dataset based on the first delay data to obtain a first imaging result; The determining module is used to determine, based on the first imaging result, target pixels with defects and pixels without defects from the pixels; The first filling module is used to fill the defect-free pixels based on the first imaging result to obtain the initial virtual focused imaging result of the target detection area; The second processing module is used to determine second delay data based on the target pixels, and to process the target dataset based on the second delay data to obtain a second imaging result; The second filling module is used to determine the target pixel value corresponding to the target pixel point based on the second imaging result, and to fill the initial virtual focus imaging result with pixels based on the target pixel value to obtain the target virtual focus imaging result.
9. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-7.
11. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method of any one of claims 1-7.