Summary of the invention
Order of the present invention is to provide a kind of ultrasonic system Doppler signal gap interpolation method and device.
One of for achieving the above object, an embodiment of the present invention provides a kind of ultrasonic system Doppler signal gap interpolation method, said method comprising the steps of:
M1, obtain two sections of adjacent Doppler's scanning signals, to be respectively before gap Doppler signal after Doppler signal and gap;
Interpolation calculation is carried out in M2, gap between two sections of Doppler's scanning signals, obtains the interpolation sequence inserting described gap;
M3, frequency domain rectification is carried out to described interpolation sequence, obtain the time-domain signal inserting described gap.
As a further improvement on the present invention, described " interpolation calculation is carried out in the gap between two sections of Doppler's scanning signals, obtains the interpolation sequence inserting described gap " specifically comprises:
S1, value is carried out to two sections of Doppler's scanning signals, obtain front complementary series to be inserted and rear complementary series to be checked;
S2, described front complementary series to be inserted and rear complementary series to be checked carried out respectively to phase place rectification, frequency is corrected, bandwidth is corrected;
S3, step S2 is corrected after front complementary series to be inserted and rear complementary series to be checked be added after windowing respectively, obtain interpolation sequence.
As a further improvement on the present invention, described frequency is corrected and is specifically comprised: carry out FFT conversion to signal of strangling general behind Doppler signal before gap and gap, calculate its FFT result;
Mid frequency corresponding to forward and backward complementary series to be inserted and bandwidth is obtained according to described FFT result;
Described mid frequency according to obtaining determines front complementary series frequency compensation scope to be inserted, and forward and backward complementary series compensating frequency sequence to be inserted;
Complementary series forward and backward to be checked after correcting according to described forward and backward complementary series compensating frequency retrieval frequency to be inserted.
As a further improvement on the present invention, described bandwidth is corrected and is specifically comprised:
By arranging wave filter respectively to the filtering that forward and backward complementary series to be inserted is carried out;
Described wave filter is IIR type or FIR type.
As a further improvement on the present invention, described " carry out frequency domain rectification to described interpolation sequence, obtain the time-domain signal inserting described gap " specifically comprises:
P1, to described interpolation its superimposition random phase noise;
P2, the interpolation sequence after step P1 done to frequency domain and correct;
P3, windowing is done to the interpolation sequence after step P2 fill up, obtain the time-domain signal inserting described gap.
As a further improvement on the present invention, described frequency domain is corrected and is specifically comprised:
According to forward and backward complementary series to be inserted, and insert the described interpolation sequence in described gap, obtain the gap frequency spectrum in described gap;
Judge that the mould of described gap frequency spectrum is whether between the mould of forward and backward complementary series frequency spectrum to be inserted;
If so, step P3 is continued;
If not, after the amplitude of described gap frequency spectrum is adjusted, then step P3 is carried out.
One of for achieving the above object, an embodiment of the present invention provides a kind of ultrasonic system Doppler signal gap interpolating apparatus, described device comprises: signal acquisition module, for obtaining two sections of adjacent Doppler's scanning signals, to be respectively before gap Doppler signal after Doppler signal and gap;
Interpolating module, carries out interpolation calculation for the gap between two sections of Doppler's scanning signals, obtains the interpolation sequence inserting described gap;
Frequency-domain correction module, for carrying out frequency domain rectification to described interpolation sequence, obtains the time-domain signal inserting described gap.
As a further improvement on the present invention, described interpolating module specifically for:
Value is carried out to two sections of Doppler's scanning signals, obtains front complementary series to be inserted and rear complementary series to be checked;
Phase place rectification is carried out respectively to described front complementary series to be inserted and rear complementary series to be checked, frequency is corrected, bandwidth is corrected;
Be added after complementary series to be inserted front after above-mentioned rectification and rear complementary series to be checked respectively windowing, obtain interpolation sequence.
As a further improvement on the present invention, described interpolating module carry out frequency correct time specifically for:
FFT conversion is carried out to signal of strangling general behind Doppler signal before gap and gap, calculates its FFT result;
Mid frequency corresponding to forward and backward complementary series to be inserted and bandwidth is obtained according to described FFT result;
Described mid frequency according to obtaining determines front complementary series frequency compensation scope to be inserted, and forward and backward complementary series compensating frequency sequence to be inserted;
Complementary series forward and backward to be checked after correcting according to described forward and backward complementary series compensating frequency retrieval frequency to be inserted.
As a further improvement on the present invention, described interpolating module carry out bandwidth correct time specifically for:
By arranging wave filter respectively to the filtering that forward and backward complementary series to be inserted is carried out;
Described wave filter is IIR type or FIR type.
As a further improvement on the present invention, described frequency-domain correction module specifically for:
To described interpolation its superimposition random phase noise;
Do frequency domain to the interpolation sequence after superposition random phase noise to correct;
To do frequency domain correct after interpolation sequence do windowing and fill up, obtain the time-domain signal inserting described gap.
As a further improvement on the present invention, described frequency-domain correction module carry out frequency domain correct time also for:
According to forward and backward complementary series to be inserted, and insert the described interpolation sequence in described gap, obtain the gap frequency spectrum in described gap;
Judge that the mould of described gap frequency spectrum is whether between the mould of forward and backward complementary series frequency spectrum to be inserted;
If so, to do frequency domain correct after interpolation sequence do windowing and fill up, obtain the time-domain signal inserting described gap;
If not, after the amplitude of described gap frequency spectrum is adjusted, then to do frequency domain correct after interpolation sequence do windowing and fill up, obtain the time-domain signal inserting described gap.
Compared with prior art, the invention has the beneficial effects as follows: ultrasonic system Doppler signal gap interpolation method of the present invention and device, adopt real-time adaptive Doppler interpolation scheme to obtain the interpolation sequence inserting gap; Further, frequency domain rectification is carried out to described interpolation sequence, obtain the time-domain signal inserting described gap; Make the high frequency pseudo of the spectrogram of acquisition less, and more continuous in the fast-changing place of frequency spectrum, improve the interpolation quality of Doppler frequency spectrum.
Detailed description of the invention
Describe the present invention below with reference to each embodiment shown in the drawings.But these embodiments do not limit the present invention, the structure that those of ordinary skill in the art makes according to these embodiments, method or conversion functionally are all included in protection scope of the present invention.
As shown in Figure 6, ultra sonic imaging flowage structure schematic diagram in ultrasonic system.
Ultrasonic signal in tissue changes electric analoging signal into via the different primitives of probe transducers, is amplified by front amplification module, then is converted to digital signal by A/D D/A converter module; The digital signal of each different primitive, through Beam synthesis module, synthesizes radiofrequency signal; Quadrature demodulation result i/q signal, after quadrature demodulation, is sent into corresponding processing module by radiofrequency signal.
Under many synchronous modes, ultrasonic system utilizes time-multiplexed method, periodically at different time scanning different mode.Below, concrete introduction will be done for two synchronous mode (B+PW).
Shown in composition graphs 7, shown in composition graphs 9, the ultrasonic system Doppler signal gap interpolation method that an embodiment of the present invention provides comprises the following steps:
M1, obtain two sections of adjacent Doppler's scanning signals;
Interpolation calculation is carried out in M2, gap between two sections of Doppler's scanning signals, obtains the interpolation sequence inserting described gap.
Be understandable that, although the application does concrete introduction for two synchronous mode (B+PW), but the scanning result of the application is based on two sections of Doppler's scanning signal acquisitions, therefore, between adjacent two sections of Doppler's scanning signals, B-mode can also be converted to color mode or B-mode variegates the forms such as pattern, the application is not specifically limited the scanning pattern between two sections of Doppler's scanning signals.
M3, frequency domain rectification is carried out to described interpolation sequence, obtain the time-domain signal inserting described gap.
In present embodiment, for convenience of description, adjacent two ends Doppler's scanning signal is defined as respectively Doppler signal Pre_Gap before gap, and Doppler signal Post_Gap behind gap.
It should be noted that, for convenience of description, in the following embodiments, the explanation of each alphabetical noun is generally all occurred once, but this explanation, be all suitable for later description content, be not described in detail at this.
Further, the interpolation sequence obtaining described gap in step M2 specifically comprises:
S1, value is carried out to two sections of Doppler's scanning signals, obtain front complementary series to be inserted and rear complementary series to be checked.
It should be noted that, in the following embodiments, for convenience, when current complementary series to be inserted and rear complementary series to be inserted occur, by it referred to as forward and backward complementary series to be inserted simultaneously.
In present embodiment, described step S1 specifically comprises:
The repeat its transmission frequency of setting Doppler scanning;
Obtain the time cycle of every section of Doppler's scanning, and the gap scanning time cycle between the time cycle obtaining two sections of Doppler's scannings; In scanning process, the time cycle of every section of described Doppler's scanning is all identical;
According to repeat its transmission frequency, the time cycle of above-mentioned Doppler's scanning, and the gap scanning time cycle, obtain every section of Doppler's number of scanning line, and the interpolation line number in described gap; In present embodiment: adopt following algorithm to calculate.
Suppose that the time cycle of every section of Doppler's scanning is: T_pw, the described gap scanning time cycle is T_gap, and the repeat its transmission frequency of Doppler's scanning is: prf;
So, every section of Doppler's number of scanning line: N_pw=T_pw*prf;
Interpolation line number in described gap: N_gap=T_gap*prf.
Further, according to acquisition every section of Doppler's number of scanning line, and the interpolation line number in described gap, get the conjugation of the Doppler's scanning signal behind the Doppler's scanning signal before described gap and described gap, obtain front complementary series to be inserted and rear complementary series to be checked.
In present embodiment: adopt following algorithm to calculate.
Pre_Sig_Conj(k) =conj( Pre_Gap(N_gap-k)); k<= N_inter;
Post _Sig_ Conj (k) =conj(Post _Gap(N_inter - k)); k<= N_inter;
Wherein, Pre_Sig_Conj (k) represents preorder interpolation sequence; Post _ Sig_ Conj (k) represents follow-up interpolation sequence; N_inter=min (N_pw, N_gap), namely N_inter is N_gap and N_pw smaller value, conj(.) represent and conjugation is got to the value inside bracket.
Further, the interpolation sequence obtaining described gap also comprises:
S2, described front complementary series to be inserted and rear complementary series to be checked carried out respectively to phase place rectification, frequency is corrected, bandwidth is corrected.
In present embodiment, described to described front complementary series to be inserted and rear complementary series to be checked carry out phase place correct specifically comprise:
Calculating preorder interpolation sequence and follow-up interpolation sequence need RA.
In present embodiment: adopt following algorithm to calculate.
Angle_pre = angle(Pre_Gap(N_gap)) - angle (Pre_Sig_ Conj (1));
Angle_post = angle (Post _Gap(1) ) - angle (Post_Sig_ Conj (N_inter));
Wherein, Angle_pre represents the angle that front complementary series to be inserted corrects; The angle that after Angle_post, complementary series to be inserted corrects, the phase angle be worth inside bracket is got in operator angle (.) expression.。
Further, respectively front sequence to be inserted and rear sequence to be inserted are multiplied by the unit vector of RA, carry out phase place rectification, obtain new complementary series forward and backward to be inserted.
In present embodiment: adopt following algorithm to calculate.
Pre_Sig_ForGap(k) = Pre_Sig_ Conj (k)*exp(Angle_pre *i);
Post _Sig_ForGap(k) = Post _Sig_ Conj (k)*exp(Angle_ post *i)
Wherein, Pre_Sig_ForGap (k) for phase place correct after before complementary series to be inserted; Post _ Sig_ForGap (k) is the complementary series rear to be inserted after phase place rectification; I represents imaginary unit.
In present embodiment, after carrying out phase place rectification to forward and backward complementary series to be inserted, further, carry out frequency rectification to described front complementary series to be inserted and rear complementary series to be checked specifically to comprise:
Carry out FFT conversion to the signal Post_Gap that strangles general behind Doppler signal Pre_Gap before gap and gap, calculate its FFT result, the complementary series frequency spectrum forward and backward to be inserted of acquisition is respectively: pre_fft and post_fft; And according to the mid frequency that pre_fft and post_fft obtains forward and backward complementary series to be inserted corresponding be: pre_f0, post_f0; Bandwidth is: pre_B and post_B;
Described FFT is fast Fourier transform (abbreviation of Fast Fourier Transformation), it is the fast algorithm of discrete fourier transform, it is the characteristic such as odd, even, empty, real according to discrete fourier transform, carries out improving obtaining the algorithm of discrete Fourier transform (DFT).
In present embodiment, for holding frequency smooth transition, forward and backward sequence to be filled up needs progressively to change its mid frequency successively in chronological order, consider the time slot between Doppler's scanning signal and gap simultaneously, determine that front complementary series frequency compensation scope to be inserted is [0, (post_f0-pre_f0) * T_gap/T_pw], rear complementary series frequency compensation scope to be inserted is: [-(post_f0-pre_f0) * T_gap/T_pw, 0];
Further, forward and backward complementary series compensating frequency sequence to be inserted is determined according to the described mid frequency obtained; And the complementary series forward and backward to be checked after correcting according to described forward and backward complementary series compensating frequency retrieval frequency to be inserted.
In present embodiment: adopt following algorithm to carry out calculating and carry out frequency adjustment to forward and backward complementary series to be inserted respectively:
Pre_fre_Diff(k) = k*(post_f0-pre_f0)*T_gap/T_pw/ N_gap;
Pre_Sig_ForGap(k) = Pre_Sig_ ForGap (k)*exp(k*Pre_fre_Diff(k) *i);
Post_fre_Diff(k) = (N_gap-k)*( pre_f0 - post_f0)*T_gap/T_pw/ N_gap;
Post _Sig_ForGap(k) = Post _Sig_ ForGap (k)*exp((N_gap-k)*Post_fre_Diff(k) *i);
Wherein, 0< k<=N_inter; Pre_fre_Diff is front complementary series compensating frequency sequence to be inserted, and Post_fre_Diff is rear complementary series compensating frequency sequence to be inserted; Pre_Sig_ForGap (k) for frequency correct after before complementary series to be inserted; Post _ Sig_ForGap (k) is the complementary series rear to be inserted after frequency rectification;
In present embodiment, after carrying out frequency rectification to forward and backward complementary series to be inserted, further, carry out bandwidth rectification to described front complementary series to be inserted and rear complementary series to be checked specifically to comprise:
In order to ensure that complementary series to be inserted keeps the bandwidth concordance with neighboring Doppler data respectively, respectively corresponding filtering is carried out to forward and backward complementary series to be inserted.
In present embodiment, respectively corresponding filtering is carried out to forward and backward complementary series to be inserted by arranging wave filter.
Described wave filter can be IIR or FIR type.
In present embodiment: adopt following algorithm to calculate.
To front sequence filter designing requirement to be inserted be:
Mid frequency is pre_filter_f0=cof1*pre_f0;
Bandwidth requirement is pre_filter_B=cof2*pre_B;
To rear sequence filter designing requirement to be inserted be:
Mid frequency is post_filter_f0=cof3*post_f0;
Bandwidth requirement is post_filter_B=cof4*post_B;
Wherein, cof1, cof2, cof3, cof4 are coefficient, and its value is all defaulted as 1.0;
In present embodiment, after carrying out corresponding filtering to forward and backward complementary series to be inserted, acquisition Pre_Sig_ForGap_filtered and post _ Sig_ForGap_filtered, Pre_Sig_ForGap_filtered is the complementary series front to be inserted after bandwidth is corrected; Post _ Sig_ForGap_filtered is the complementary series rear to be inserted after bandwidth is corrected.
It should be noted that, in present embodiment, order according to the order of phase place rectification, frequency rectification, bandwidth rectification, forward and backward complementary series to be inserted might not be corrected, as long as ensure that bandwidth is corrected to complete after frequency is corrected, namely can complete illustrated method, not be described in detail at this.
Further, the interpolation sequence obtaining described gap also comprises:
S3, step S2 is corrected after front complementary series to be inserted and rear complementary series to be checked be added after windowing respectively, obtain interpolation sequence.
For ensureing progressively transition, obtain interpolation sequence to being added after Pre_Sig_ForGap_filtered and post _ Sig_ForGap_filtered respectively windowing: Sig_For_Gap.
In present embodiment, if N_inter< is N_gap, needs after Pre_Sig_ForGap_filtered, mend 0 and make its length equal N_gap, equally, need before post _ Sig_ForGap_filtered, mend 0 and make its length equal N_Gap.
In present embodiment: adopt following algorithm to calculate.
Sig_For_Gap(k) =
Pre_Sig_ForGap_filtered(k)*win(k) + (1-win(k))* post _Sig_ForGap_filtered(k);
Wherein, Win is the coefficient of institute's windowing, such as: can be oblique angle window win (k)=1-k/N_Gap; Certainly, also can be designed as the shape of other transition gradually, be not described in detail at this.
Further, in step M3, frequency domain rectification is carried out to described interpolation sequence, obtains the time-domain signal inserting described gap and specifically comprise:
P1, to described interpolation its superimposition random phase noise;
In present embodiment, because fir filter interpolator bandwidth may be narrower compared with front and back Doppler signal bandwidth, for keeping the concordance of the background white-noise level of frequency spectrum, need the corresponding random phase noise of Signal averaging.
In present embodiment: adopt following algorithm to calculate.
Sig_For_Gap(k) = Sig_For_Gap(k)*exp(Phase_random(k)*i);
Wherein, Phase_random is random phase, and it can be designed as and is evenly distributed, and also can be designed to other distribution forms such as Gauss, not be described in detail at this.
Further, described step M3 also comprises:
P2, the interpolation sequence after step P1 done to frequency domain and correct;
In present embodiment: adopt following algorithm to calculate.
With data grid technology in gap, get length be N_pw data for calculating FFT, the N_pw data Sig_gap_ForFFT wherein obtained represents.
So, record a demerit that to cross coincidence length be N_Overlap=(N_pw-N_gap)/2;
Sig_gap_ForFFT ( k) = Pre_Gap(N_pw- N_ Overlap +k) ;
k <= N_ Overlap;
Sig_gap_ForFFT ( k) = Sig_For_Gap(k - N_ Overlap);
N_ Overlap< k <= N_ Overlap+N_gap;
Sig_gap_ForFFT ( k) = Post _Gap (k- N_ Overlap- N_gap);
N_ Overlap+N_gap < k <= N_pw; Overlap+N_gap
Further, FFT conversion is done to Sig_gap_ForFFT and obtains frequency spectrum gap_FFT, according to pre_FFT and post_FFT, gap_FFT is adjusted, obtain gap_adjusted_FFT.
Further, judge that the mould of gap_FFT (k) is whether between pre_FFT (k) and the mould of post_FFT (k), if so, continues step P3, if not, then adjusts the amplitude of gap_FFT (k); Wait being adjusted to after between pre_FFT (k) and the mould of post_FFT (k), then carry out step P3.
Further, in present embodiment, resize ratio can adopt nonlinear way, also can adopt simple linear mode.
In present embodiment, further, set following program segment judge gap_FFT (k) whether between pre_FFT (k) and the mould of post_FFT (k), and it to be adjusted.
If( fabs(gap_FFT(k)) < min( fabs(pre_FFT(k)), fabs(post_FFT(k))) || fabs(gap_FFT(k)) > max( fabs(pre_FFT(k)), fabs(post_FFT(k))))
gap_adjusted_FFT(k) =
gap_FFT(k)/ fabs(gap_FFT(k))*( fabs(pre_FFT(k))+ fabs(post_FFT(k)));
else
gap_adjusted_FFT(k) = gap_FFT(k);
Wherein, 0<k <fft_num; Fft_num represents fft variation length; The modulus of complex number is got in operator fabs () expression.
Further, in present embodiment, described step M3 is further comprising the steps of:
P3, windowing is done to the interpolation sequence after step P2 fill up, obtain the time-domain signal inserting described gap.
In present embodiment, in order in the smooth transition of two ends place, need signal windowing process, certainly, the selection of window also can multiformity, such as: shown in Figure 10, so, to gap_adjusted_FFT inverse transformation, obtain, finally for the time-domain signal sig_gap_Result in interpolation space, not being described in detail at this.
Shown in composition graphs 11A, 11B, the spectrogram on the left of screen is by background technology, and U.S. Patent number is the spectrogram that the technical scheme of US5891036 obtains.Spectrogram for being obtained by method shown in the application on the right side of screen.Known by the contrast of Figure 11 A: the high frequency pseudo of the spectrogram obtained by method shown in the application is less.
Known by the contrast of Figure 11 B: spectrogram more continuous in the fast-changing place of frequency spectrum obtained by method shown in the application.
To sum up, ultrasonic system Doppler signal gap interpolation method of the present invention, adopts real-time adaptive Doppler interpolation scheme to obtain the interpolation sequence inserting gap; Further, frequency domain rectification is carried out to described interpolation sequence, obtain the time-domain signal inserting described gap; Make the high frequency pseudo of the spectrogram of acquisition less, and more continuous in the fast-changing place of frequency spectrum, improve the interpolation quality of Doppler frequency spectrum.
Shown in composition graphs 7, disclose a kind of ultrasonic system Doppler signal gap interpolating apparatus in an embodiment of the present invention, described device comprises: signal acquisition module 100, interpolating module 200, frequency-domain correction module 300; Interpolating module 200 comprises: value unit 201, phase place correcting unit 203, frequency correcting unit 205, bandwidth correcting unit 207, and synthesis unit 209; Frequency-domain correction module 300 comprises noise superpositing unit 301, frequency-domain correction unit 303, and windowing unit 305.
Signal acquisition module 100 is for obtaining two sections of adjacent Doppler's scanning signals;
Interpolating module 200 carries out interpolation calculation for the gap between two sections of Doppler's scanning signals, obtains the interpolation sequence inserting described gap.
Be understandable that, although the application does concrete introduction for two synchronous mode (B+PW), but the scanning result of the application is based on two sections of Doppler's scanning signal acquisitions, therefore, between adjacent two sections of Doppler's scanning signals, B-mode can also be converted to color mode or B-mode variegates the forms such as pattern, the application is not specifically limited the scanning pattern between two sections of Doppler's scanning signals.
Frequency-domain correction module 300, for carrying out frequency domain rectification to described interpolation sequence, obtains the time-domain signal inserting described gap.
In present embodiment, for convenience of description, adjacent two ends Doppler's scanning signal is defined as respectively Doppler signal Pre_Gap before gap, and Doppler signal Post_Gap behind gap.
It should be noted that, for convenience of description, in the following embodiments, the explanation of each alphabetical noun is generally all occurred once, but this explanation, be all suitable for later description content, be not described in detail at this.
Further, value unit 201, for carrying out value to two sections of Doppler's scanning signals, obtains front complementary series to be inserted and rear complementary series to be checked.
It should be noted that, in the following embodiments, for convenience, when current complementary series to be inserted and rear complementary series to be inserted occur, by it referred to as forward and backward complementary series to be inserted simultaneously.
In present embodiment, value unit 201 is for the repeat its transmission frequency for setting Doppler's scanning;
Obtain the time cycle of every section of Doppler's scanning, and the gap scanning time cycle between the time cycle obtaining two sections of Doppler's scannings; In scanning process, the time cycle of every section of described Doppler's scanning is all identical;
According to repeat its transmission frequency, the time cycle of above-mentioned Doppler's scanning, and the gap scanning time cycle, obtain every section of Doppler's number of scanning line, and the interpolation line number in described gap; In present embodiment: adopt following algorithm to calculate.
Suppose that the time cycle of every section of Doppler's scanning is: T_pw, the described gap scanning time cycle is T_gap, and the repeat its transmission frequency of Doppler's scanning is: prf;
So, every section of Doppler's number of scanning line: N_pw=T_pw*prf;
Interpolation line number in described gap: N_gap=T_gap*prf.
Further, value unit 201 for according to acquisition every section of Doppler's number of scanning line, and the interpolation line number in described gap, get the conjugation of the Doppler's scanning signal behind the Doppler's scanning signal before described gap and described gap, obtain front complementary series to be inserted and rear complementary series to be checked.
In present embodiment: adopt following algorithm to calculate.
Pre_Sig_Conj(k) =conj( Pre_Gap(N_gap-k)); k<= N_inter;
Post _Sig_ Conj (k) =conj(Post _Gap(N_inter - k)); k<= N_inter;
Wherein, Pre_Sig_Conj (k) represents preorder interpolation sequence; Post _ Sig_ Conj (k) represents follow-up interpolation sequence; N_inter=min (N_pw, N_gap), namely N_inter is N_gap and N_pw smaller value, conj(.) represent and conjugation is got to the value inside bracket.
Further, phase place correcting unit 203 is for carrying out phase place rectification respectively to described front complementary series to be inserted and rear complementary series to be checked.
In present embodiment, phase place correcting unit 203 calculates preorder interpolation sequence and follow-up interpolation sequence needs RA.
In present embodiment: adopt following algorithm to calculate.
Angle_pre = angle(Pre_Gap(N_gap)) - angle (Pre_Sig_ Conj (1));
Angle_post = angle (Post _Gap(1) ) - angle (Post_Sig_ Conj (N_inter));
Wherein, Angle_pre represents the angle that front complementary series to be inserted corrects; The angle that after Angle_post, complementary series to be inserted corrects, the phase angle be worth inside bracket is got in operator angle (.) expression.。
Further, phase place correcting unit 203 is multiplied by the unit vector of RA respectively to front sequence to be inserted and rear sequence to be inserted, carry out phase place rectification, obtain new complementary series forward and backward to be inserted.
In present embodiment: adopt following algorithm to calculate.
Pre_Sig_ForGap(k) = Pre_Sig_ Conj (k)*exp(Angle_pre *i);
Post _Sig_ForGap(k) = Post _Sig_ Conj (k)*exp(Angle_ post *i)
Wherein, Pre_Sig_ForGap (k) for phase place correct after before complementary series to be inserted; Post _ Sig_ForGap (k) is the complementary series rear to be inserted after phase place rectification; I represents imaginary unit.
Further, frequency correcting unit 205 is for carrying out frequency rectification to described front complementary series to be inserted and rear complementary series to be checked;
In present embodiment, frequency correcting unit 205 is for carrying out frequency rectification to by the described front complementary series to be inserted after phase place rectification module 203 and rear complementary series to be checked.
Before frequency correcting unit 205 pairs of gaps, behind Doppler signal Pre_Gap and gap, the general signal Post_Gap that strangles carries out FFT conversion, and calculate its FFT result, the complementary series frequency spectrum forward and backward to be inserted of acquisition is respectively: pre_fft and post_fft; And according to the mid frequency that pre_fft and post_fft obtains forward and backward complementary series to be inserted corresponding be: pre_f0, post_f0; Bandwidth is: pre_B and post_B;
In present embodiment, frequency correcting unit 205 is holding frequency smooth transition, forward and backward sequence to be filled up needs progressively to change its mid frequency successively in chronological order, consider the time slot between Doppler's scanning signal and gap simultaneously, determine that front complementary series frequency compensation scope to be inserted is [0, (post_f0-pre_f0) * T_gap/T_pw], rear complementary series frequency compensation scope to be inserted is: [-(post_f0-pre_f0) * T_gap/T_pw, 0].
Further, frequency correcting unit 205 determines forward and backward complementary series compensating frequency sequence to be inserted according to the described mid frequency obtained; And the complementary series forward and backward to be checked after correcting according to described forward and backward complementary series compensating frequency retrieval frequency to be inserted.
In present embodiment: frequency correcting unit 205 adopts following algorithm to carry out calculating and carry out frequency adjustment to forward and backward complementary series to be inserted respectively:
Pre_fre_Diff(k) = k*(post_f0-pre_f0)*T_gap/T_pw/ N_gap;
Pre_Sig_ForGap(k) = Pre_Sig_ ForGap (k)*exp(k*Pre_fre_Diff(k) *i);
Post_fre_Diff(k) =(N_gap-k)*( pre_f0 - post_f0)*T_gap/T_pw/ N_gap;
Post _Sig_ForGap(k)=Post_Sig_ ForGap(k)*exp((N_gap-k)*Post_fre_Diff(k)*i);
Wherein, 0< k<=N_inter; Pre_fre_Diff is front complementary series compensating frequency sequence to be inserted, and Post_fre_Diff is rear complementary series compensating frequency sequence to be inserted; Pre_Sig_ForGap (k) for frequency correct after before complementary series to be inserted; Post _ Sig_ForGap (k) is the complementary series rear to be inserted after frequency rectification;
Further, bandwidth correcting unit 207 is for carrying out bandwidth rectification to described front complementary series to be inserted and rear complementary series to be checked.
In present embodiment, bandwidth correcting unit 207 is for carrying out frequency rectification to by the described front complementary series to be inserted after phase frequency module 205 and rear complementary series to be checked.
Bandwidth correcting unit 207, in order to ensure that complementary series to be inserted keeps the bandwidth concordance with neighboring Doppler data respectively, carries out corresponding filtering to forward and backward complementary series to be inserted respectively.
In present embodiment, bandwidth correcting unit 207 carries out corresponding filtering to forward and backward complementary series to be inserted respectively by arranging wave filter.
Described wave filter can be IIR or FIR type.
In present embodiment: adopt following algorithm to calculate.
To front sequence filter designing requirement to be inserted be:
Mid frequency is pre_filter_f0=cof1*pre_f0;
Bandwidth requirement is pre_filter_B=cof2*pre_B;
To rear sequence filter designing requirement to be inserted be:
Mid frequency is post_filter_f0=cof3*post_f0;
Bandwidth requirement is post_filter_B=cof4*post_B;
Wherein, cof1, cof2, cof3, cof4 are coefficient, and its value is all defaulted as 1.0;
In present embodiment, after bandwidth correcting unit 207 carries out corresponding filtering to forward and backward complementary series to be inserted, acquisition Pre_Sig_ForGap_filtered and post _ Sig_ForGap_filtered, Pre_Sig_ForGap_filtered is the complementary series front to be inserted after bandwidth is corrected; Post _ Sig_ForGap_filtered is the complementary series rear to be inserted after bandwidth is corrected.
It should be noted that, in present embodiment, phase place correcting unit 203, frequency correcting unit 205, bandwidth correct 207 priority execution sequence might not position said sequence, as long as ensure that bandwidth correcting unit performs after frequency correcting unit, namely can complete the present invention, not be described in detail at this.
Further, synthesis unit 209 for by correct through phase place correcting unit 203, frequency correcting unit 205, bandwidth before 207 complementary series to be inserted and after complementary series to be checked be added after windowing respectively, obtain interpolation sequence.
For ensureing progressively transition, synthesis unit 209 couples of Pre_Sig_ForGap_filtered and post _ Sig_ForGap_filtered are added after windowing respectively and obtain interpolation sequence: Sig_For_Gap.
In present embodiment, if N_inter< is N_gap, synthesis unit 209 needs after Pre_Sig_ForGap_filtered, mend 0 makes its length equal N_gap, equally, needs before post _ Sig_ForGap_filtered, mend 0 and makes its length equal N_Gap.
In present embodiment: adopt following algorithm to calculate.
Sig_For_Gap(k) =
Pre_Sig_ForGap_filtered(k)*win(k) + (1-win(k))* post _Sig_ForGap_filtered(k);
Wherein, Win is the coefficient of institute's windowing, such as: can be oblique angle window win (k)=1-k/N_Gap; Certainly, also can be designed as the shape of other transition gradually, be not described in detail at this.
Further, frequency-domain correction module 300 carries out frequency domain rectification to described interpolation sequence, obtains the time-domain signal inserting described gap.
In present embodiment, noise superpositing unit 301 is for described interpolation its superimposition random phase noise.
Because fir filter interpolator bandwidth may be narrower compared with front and back Doppler signal bandwidth, noise superpositing unit 301 is the concordance of the background white-noise level keeping frequency spectrum, needs the corresponding random phase noise of Signal averaging.
In present embodiment: noise superpositing unit 301 adopts following algorithm to calculate.
Sig_For_Gap(k) = Sig_For_Gap(k)*exp(Phase_random(k)*i);
Wherein, Phase_random is random phase, and it can be designed as and is evenly distributed, and also can be designed to other distribution forms such as Gauss, not be described in detail at this.
Further, frequency-domain correction unit 303 is corrected for doing frequency domain to the interpolation sequence after step P1;
In present embodiment: frequency-domain correction unit 303 adopts following algorithm to calculate.
With data grid technology in gap, get length be N_pw data for calculating FFT, the N_pw data Sig_gap_ForFFT wherein obtained represents.
So, record a demerit that to cross coincidence length be N_Overlap=(N_pw-N_gap)/2;
Sig_gap_ForFFT ( k) = Pre_Gap(N_pw- N_ Overlap +k) ; k <= N_ Overlap;
Sig_gap_ForFFT ( k) = Sig_For_Gap(k - N_ Overlap);
N_ Overlap< k <= N_ Overlap+N_gap;
Sig_gap_ForFFT ( k) = Post _Gap (k- N_ Overlap- N_gap);
N_ Overlap+N_gap < k <= N_pw; Overlap+N_gap
Further, frequency-domain correction unit 303 couples of Sig_gap_ForFFT do FFT conversion and obtain frequency spectrum gap_FFT, adjust, obtain gap_adjusted_FFT according to pre_FFT and post_FFT to gap_FFT.
Further, frequency-domain correction unit 303 is also for judging that the mould of gap_FFT (k) is whether between pre_FFT (k) and the mould of post_FFT (k), if, by windowing unit 305 to do frequency domain correct after interpolation sequence do windowing and fill up, obtain the time-domain signal inserting described gap; If not, then the amplitude of gap_FFT (k) is adjusted; Wait being adjusted to after between pre_FFT (k) and the mould of post_FFT (k), then by windowing unit 305 to do frequency domain correct after interpolation sequence do windowing and fill up, obtain the time-domain signal inserting described gap.
Further, in present embodiment, frequency-domain correction unit 303 couples of gap_FFT (k) carry out amplitude resize ratio and can adopt nonlinear way, also can adopt simple linear mode.
In present embodiment, further, frequency-domain correction unit 303 set following program segment judge gap_FFT (k) whether between pre_FFT (k) and the mould of post_FFT (k), and it to be adjusted.
If( fabs(gap_FFT(k)) < min( fabs(pre_FFT(k)), fabs(post_FFT(k))) || fabs(gap_FFT(k)) > max( fabs(pre_FFT(k)), fabs(post_FFT(k))))
gap_adjusted_FFT(k) = gap_FFT(k)/ fabs(gap_FFT(k))*( fabs(pre_FFT(k))+ fabs(post_FFT(k)));
else
gap_adjusted_FFT(k) = gap_FFT(k);
Wherein, 0<k <fft_num; Fft_num represents fft variation length; The modulus of complex number is got in operator fabs () expression.
Further, in present embodiment, windowing unit 305 is filled up for doing windowing to the interpolation sequence after frequency-domain correction unit 303, obtains the time-domain signal inserting described gap.
In present embodiment, in order in the smooth transition of two ends place, windowing unit 305 needs signal windowing process, certainly, the selection of window also can multiformity, such as: shown in Figure 10, so, to gap_adjusted_FFT inverse transformation, obtain, finally for the time-domain signal sig_gap_Result in interpolation space, not being described in detail at this.
Shown in composition graphs 11A, 11B, the spectrogram on the left of screen is by background technology, and U.S. Patent number is the spectrogram that the technical scheme of US5891036 obtains.Spectrogram for being obtained by method shown in the application on the right side of screen.Known by the contrast of Figure 11 A: the high frequency pseudo of the spectrogram obtained by the application's shown device is less.
Known by the contrast of Figure 11 B: the spectrogram obtained by the application's shown device more continuous in the fast-changing place of frequency spectrum.
In sum, ultrasonic system Doppler signal gap interpolation method of the present invention and device, adopt real-time adaptive Doppler interpolation scheme to obtain the interpolation sequence inserting gap; Further, frequency domain rectification is carried out to described interpolation sequence, obtain the time-domain signal inserting described gap; Make the high frequency pseudo of the spectrogram of acquisition less, and more continuous in the fast-changing place of frequency spectrum, improve the interpolation quality of Doppler frequency spectrum.
For convenience of description, various module is divided into describe respectively with function when describing above device.Certainly, the function of each module can be realized in same or multiple software and/or hardware when implementing the application.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that the application can add required general hardware platform by software and realizes.Based on such understanding, the technical scheme of the application can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product can be kept to be preserved in medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, Information Push Server, or the network equipment etc.) perform the method described in some part of each embodiment of the application or embodiment.
Device embodiments described above is only schematic, the wherein said module illustrated as separating component can or may not be physically separates, parts as module display can be or may not be physical module, namely can be positioned at a place, or also can be distributed on multiple mixed-media network modules mixed-media.Some or all of module wherein can be selected according to the actual needs to realize the object of present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
The application can be used in numerous general or special purpose computing system environment or configuration.Such as: personal computer, Information Push Server computer, handheld device or portable set, laptop device, multi-processing module system, system, set top box, programmable consumer-elcetronics devices, network PC, minicomputer, mainframe computer, the distributed computing environment comprising above any system or equipment etc. based on micro treatment module.
The application can describe in the general context of computer executable instructions, such as program module.Usually, program module comprises the routine, program, object, assembly, data structure etc. that perform particular task or realize particular abstract data type.Also can put into practice the application in a distributed computing environment, in these distributed computing environment, be executed the task by the remote processing devices be connected by communication network.In a distributed computing environment, program module can be arranged in the local and remote computer preservation medium comprising preservation equipment.
Be to be understood that, although this description is described according to embodiment, but not each embodiment only comprises an independently technical scheme, this narrating mode of description is only for clarity sake, those skilled in the art should by description integrally, technical scheme in each embodiment also through appropriately combined, can form other embodiments that it will be appreciated by those skilled in the art that.
A series of detailed description listed is above only illustrating for feasibility embodiment of the present invention; they are also not used to limit the scope of the invention, all do not depart from the skill of the present invention equivalent implementations done of spirit or change all should be included within protection scope of the present invention.