Summary of the invention
The purpose of the present invention is to provide a kind of method and apparatus of peak velocity point for searching target spectrum line.
One of in order to achieve the above-mentioned object of the invention, an embodiment of the present invention provides a kind of side for reducing seeking scope
Method includes the following steps:Pretreatment image is obtained, the pretreatment image includes several frequency spectrums chronologically arranged
Line, several spectrum lines include target spectrum line;The pretreatment image is divided into several subgraphs along frequency spectrum direction
Picture, and several subgraphs are lined up into a queue along the sequence in inverse frequency spectrum direction;Continue to take from team's head of the queue
A subgraph that do not test and tested out, until judge the sub-picture pack contain in the target spectrum line along
The first marginal point or all subgraphs in the queue in inverse frequency spectrum direction have been tested, and are judging the subgraph
When including the first marginal point in the target spectrum line along inverse frequency spectrum direction, intercepts out and wrap from the pretreatment image
Parts of images containing the subgraph obtains final image.
As the further improvement of an embodiment of the present invention, judge that the sub-picture pack contains the target spectrum line
In along inverse frequency spectrum direction first marginal point, including:The first mean value and first variance of the pretreatment image are obtained, it is described
The second mean value and second variance for the subgraph that do not test;Determining the first mean value and the second mean value and first variance and the
When two variances all meet preset condition, then judge that the sub-picture pack contains in the target spectrum line along inverse frequency spectrum direction
First marginal point.
As the further improvement of an embodiment of the present invention, first mean value of determination and the second mean value and first
Variance and second variance all meet preset condition, including:Determining the second mean value>The first mean value of regulatory factor * and second variance
>When regulatory factor * first variance, meet preset condition, wherein the value range of regulatory factor is(0,1].
The embodiment of the invention also provides a kind of devices for reducing seeking scope, comprise the following modules:Pretreatment image obtains
Modulus block, for obtaining pretreatment image, the pretreatment image includes several spectrum lines chronologically arranged, described
Several spectrum lines include target spectrum line;Pretreatment image division module, for scheming the pretreatment along frequency spectrum direction
As being divided into several subgraphs, and several subgraphs are lined up into a queue along the sequence in inverse frequency spectrum direction;Pretreatment
Image measurement module, for continuing team's head one subgraph that do not test of taking-up from the queue and being tested, until sentencing
It is disconnected go out the sub-picture pack contain in the target spectrum line along the first marginal point in inverse frequency spectrum direction and from the pretreatment
The parts of images comprising the subgraph is intercepted out in image, to obtain final image.
The embodiment of the invention also provides a kind of methods of peak velocity point for searching target spectrum line, including following step
Suddenly:Spectral image is obtained, the spectral image includes several spectrum lines chronologically arranged, several spectrum line packets
Contain target spectrum line;It obtains in the target spectrum line along the first marginal point in inverse frequency spectrum direction, then the marginal point is
For the peak velocity point.
As the further improvement of an embodiment of the present invention, several spectrum lines include target spectrum line, including:
Several spectrum lines include target spectrum line and come several frequency spectrums before the target spectrum line on order
Line.
As the further improvement of an embodiment of the present invention, several spectrum lines include target spectrum line, including:
Several spectrum lines include target spectrum line, come on order several spectrum lines and row before the target spectrum line
Several spectrum lines after the target spectrum line.
It is described to obtain in the target spectrum line along inverse frequency spectrum side as the further improvement of an embodiment of the present invention
To first marginal point, including:The spectral image is positioned as pretreatment image, and executes above-mentioned kind and reduces seeking scope
Method, obtain final image;From being obtained in the final image in the target spectrum line along the first of inverse frequency spectrum direction
Marginal point.
It is described that the target spectrum is obtained from the final image as the further improvement of an embodiment of the present invention
Along the first marginal point in inverse frequency spectrum direction in line, including:Final image is set as pretreatment image;Continuously carry out above-mentioned diminution
The method of seeking scope obtains final image and final image is set as pretreatment image, until the final image is in frequency spectrum
Length on direction is less than or equal to preset value.
The embodiment of the invention also provides a kind of devices of peak velocity point for searching target spectrum line, including with lower die
Block:Spectral image obtains module, and for obtaining spectral image, the spectral image includes several frequencies chronologically arranged
Spectral line, several spectrum lines include target spectrum line;Peak velocity point searching module, for obtaining the target spectrum line
In along inverse frequency spectrum direction first marginal point, then the marginal point is the peak velocity point.
Compared with the existing technology, the technical effects of the invention are that:The present invention provides a kind of peak for searching target spectrum line
It is worth the method for speed point, includes the following steps:Spectral image is obtained, if the spectral image includes chronologically to arrange
Dry spectrum line, several spectrum lines include target spectrum line;It obtains in the target spectrum line along inverse frequency spectrum direction
First marginal point, then the marginal point is the peak velocity point.In spectral image, along frequency spectrum direction, target spectrum
The top of line is peak velocity point, and the parameter of the peak velocity point and its surrounding pixel point(For example, color etc.)Usually
Unequal, i.e., the peak velocity point is a marginal point, is peak value speed along the first marginal point on inverse frequency spectrum direction therefore
Degree point;Here, since the area of final image is less than the area of pretreatment image, lookup peak value can be greatly reduced
Search speed is improved in the region of speed point.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to various embodiments shown in the accompanying drawings.But these embodiments are not
The limitation present invention, structure that those skilled in the art are made according to these embodiments, method or change functionally
It changes and is included within the scope of protection of the present invention.
Fig. 1 shows a kind of frequency spectrum Doppler curve typically generated by ultrasonic system, newly generated spectrum line(Scheme
Vertical line in 1)It can constantly be shown in side according to chronological order(For example, constantly being shown on right side in Fig. 1), from
And the spectrum line arranged according to chronological order is obtained, and make spectrum line sequence to the other side(For example, in Fig. 1, to the left
Side)It is moved or rolled.Each spectrum line is for being characterized in the inspection of this frequency spectrum Doppler, at the selected location of human body(By taking
It is determined at sample volume position)Blood flow rates, the peak velocity point of every spectrum line connected by pursuit path 10.?
When spectrum line occurs and is shown, ultrasonic system can determine peak velocity point from spectrum line, and by several spectral line peaks
Speed point is connected using straight line or curve, it will be able to obtain the pursuit path 10 in Fig. 1, the lookup in the embodiment of the present invention
The method of the peak velocity point of target spectrum line is exactly for realizing the function of " determining peak velocity point from spectrum line ".
The embodiment of the present invention one provides a kind of method of peak velocity point for searching target spectrum line, as shown in Fig. 2, packet
Include following steps:
Step 201:Spectral image is obtained, the spectral image includes several spectrum lines chronologically arranged, if described
Dry spectrum line includes target spectrum line;For example, the spectrum line that top indicates ' * ' is target spectrum line, in Fig. 3 in Fig. 3
In, the peak velocity point of the spectrum line before target spectrum line has all been found out, and is all with pursuit path 10 to connection
Get up, at this point, ultrasonic system generates target spectrum line, then obtain multiple spectrum lines before or after the target spectrum line,
Then the target spectrum line and multiple spectrum lines are arranged according to chronological order, it will be able to obtain several spectrum lines.
Step 202:It obtains in the target spectrum line along the first marginal point in inverse frequency spectrum direction, then the marginal point is
For the peak velocity point.
In practice, when showing frequency spectrum Doppler curve, abscissa is usually the time, and ordinate is usually velocity amplitude,
Then the number axis direction of velocity amplitude can upward or downward, this direction is frequency spectrum direction, for example, in Fig. 1 and Fig. 3, number axis
Direction be it is upward, i.e., frequency spectrum direction is also upward, similarly, inverse frequency spectrum direction is downward.
It is understood that the top of target spectrum line is peak velocity point along frequency spectrum direction(For example, in Fig. 3
The location of ' * '), and the parameter of the peak velocity point and its surrounding pixel point(For example, color etc.)It is usually unequal, i.e.,
The peak velocity point is a marginal point, is peak velocity point along the first marginal point on inverse frequency spectrum direction therefore;This
In, edge detection algorithm can be used(Such as:Sobel operator, Roberts operator, Prewitt operator and Laplacian operator
Deng)It detects the marginal point, has also looked up out peak velocity point.
Preferably, several spectrum lines include target spectrum line, including:Several spectrum lines include target frequency
Spectral line and several spectrum lines before the target spectrum line are come on order.Here, Fig. 3 shows one specifically
Example has chosen two spectrum lines before target spectrum line and the target spectrum line and constitutes several spectrum lines, the frequency
Spectrogram picture is as shown in Figure 7.
Preferably, several spectrum lines include target spectrum line, including:Several spectrum lines include target frequency
Spectral line, the target spectrum line is come on order before several spectrum lines and come several after the target spectrum line
Spectrum line.Here it is possible to as shown in figure 4, include a spectrum line, target spectrum line and target before target spectrum line
The subsequent spectrum line of spectrum line;It can also be as shown in figure 5, including spectrum line, a target before target spectrum line
Spectrum line and subsequent two spectrum lines of the target spectrum line;It can also be as shown in fig. 6, including two before target spectrum line
A spectrum line, target spectrum line and the subsequent spectrum line of the target spectrum line.
Preferably, the first marginal point obtained in the target spectrum line along inverse frequency spectrum direction, including:It will be described
Spectral image is positioned as pretreatment image, and the method for executing the diminution seeking scope in embodiment two, obtains final image;From
It is obtained in the final image in the target spectrum line along the first marginal point in inverse frequency spectrum direction.Here, due to finally scheming
The area of picture is less than the area of pretreatment image, therefore, the region for searching peak velocity point can be greatly reduced, improve and search
Speed.
Preferably, it is described from being obtained in the final image in the target spectrum line along the first side in inverse frequency spectrum direction
Edge point, including:
Final image is set as pretreatment image;
The method of the diminution seeking scope in embodiment two is continuously carried out, final image is obtained and final image is set as pre- place
Image is managed, until length of the final image on frequency spectrum direction is less than or equal to preset value.
Here, as shown in figure 8, final image 8 can be divided into 6 subgraphs, subgraph 31, subgraph 32, son
Image 33, subgraph 34, subgraph 35 and subgraph 36, and again call embodiment and in diminution seeking scope method,
Until final image 3 to be narrowed down to the range of anticipation, consequently facilitating searching peak velocity point.
Optionally, length of the final image on frequency spectrum direction is less than or equal to preset value, including:The final image
The quantity of pixel on frequency spectrum direction is less than or equal to preset value, which can be 1,2 or 3 etc..
Here, when executing the method for the diminution seeking scope in embodiment two, it is also possible to cannot get final image, then
It searches less than peak velocity point, at this point it is possible to come according to the peak velocity point on the spectrum line of target spectrum line front and back
Curve fit process is done, the peak velocity point on target spectrum line has been obtained by curve matching(For example, higher order polynomial-fitting
Algorithm).
The embodiment of the invention also provides a kind of devices of peak velocity point for searching target spectrum line, including with lower die
Block:
Spectral image obtains module, for obtaining spectral image, the spectral image include chronologically arrange it is several
Spectrum line, several spectrum lines include target spectrum line;
Peak velocity point searching module, for obtaining along the first marginal point in inverse frequency spectrum direction in the target spectrum line, then
The marginal point is the peak velocity point.
Second embodiment of the present invention provides a kind of methods for reducing seeking scope, as shown in figure 9, including the following steps:
Step 901:Pretreatment image is obtained, the pretreatment image includes several spectrum lines chronologically arranged, institute
Stating several spectrum lines includes target spectrum line;
Step 902:The pretreatment image is divided into several subgraphs along frequency spectrum direction, and along the suitable of inverse frequency spectrum direction
Several subgraphs are lined up a queue by sequence;Here, several subgraphs can be isometric on inverse frequency spectrum direction.
For example, in fig. 8, pretreatment image 2 is divided into 6 subgraphs, subgraph 26, subgraph 25, son along upwardly direction
Image 24, subgraph 23, subgraph 22 and subgraph 21, and it is isometric in the vertical direction that this 6 subgraphs, which are,;And it can incite somebody to action
This 6 subgraphs line up a queue along downwardly direction, are followed successively by from the order of team head to tail of the queue:21 à subgraph of subgraph
As 22 à subgraph, 23 à subgraph, 24 à subgraph, 25 à subgraph 26.
Step 903:Continue to take out a subgraph that do not test from team's head of the queue and be tested, until judgement
The sub-picture pack contains in the target spectrum line along the institute in the first marginal point in inverse frequency spectrum direction or the queue out
There is subgraph to be tested, and is judging that the sub-picture pack contains in the target spectrum line along inverse frequency spectrum direction
When first marginal point, the parts of images comprising the subgraph is intercepted out from the pretreatment image, obtains final image.
Here, it can be tested according to the subgraph of the secondary ordered pair queue from team's head to tail of the queue, until some sub-picture pack
Containing in the target spectrum line along the first marginal point in inverse frequency spectrum direction, it is seen then that the area of final image can be less than pre- place
Image is managed, therefore, in subsequent processing, it is only necessary to peak velocity point is searched just from final image, thus greatly
Reduce the range of lookup.Such as:In fig. 8, successively subgraph 21 and 22 is tested, it is undesirable(Not comprising having
Along the first marginal point in inverse frequency spectrum direction in the target spectrum line), subgraph 23 meets the requirements(It include the target frequency
Along the first marginal point in inverse frequency spectrum direction in spectral line), then can will include that the parts of images 3 of subgraph 23 is set as final
Image.
Here, it is also possible to which all subgraphs are undesirable(Not comprising having in the target spectrum line along inverse
The first marginal point in frequency spectrum direction), at this point, then obtaining not most final image.
Optionally, described that the parts of images comprising the subgraph is intercepted out from the pretreatment image, to obtain
Final image, including:The subgraph and adjacent with the subgraph several subgraphs in the queue are spelled
It connects, to obtain final image.Here, " splicing " refers to is spliced according to the order of these subgraphs in the queue.Such as:
In fig. 8, according to order, subgraph 22, subgraph 23 and subgraph 24 are spliced into final image 3.
Preferably, judge that the sub-picture pack contains in the target spectrum line along the first edge in inverse frequency spectrum direction
Point, including:Obtain the first mean value and first variance of the pretreatment image, the second mean value of the subgraph that do not test and
Second variance;When determining that the first mean value and the second mean value and first variance and second variance all meet preset condition, then sentence
The disconnected sub-picture pack out contains in the target spectrum line along the first marginal point in inverse frequency spectrum direction.
Preferably, first mean value of determination and the second mean value and first variance and second variance all meet default item
Part, including:Determining the second mean value>The first mean value of regulatory factor * and second variance>When regulatory factor * first variance, meet
Preset condition, wherein the value range of regulatory factor is(0,1].Here, since peak velocity point is a marginal point,
As long as regulatory factor takes suitable value, the second mean value is naturally larger than the first mean value of regulatory factor *, and second variance is naturally larger than
When regulatory factor * first variance, therefore, it can determine whether some subgraph includes peak velocity point with this.
The embodiment of the invention also provides a kind of devices for reducing seeking scope, comprise the following modules:
Pretreatment image obtains module, and for obtaining pretreatment image, the pretreatment image includes chronologically to arrange
Several spectrum lines, several spectrum lines include target spectrum line;
Pretreatment image division module, for the pretreatment image to be divided into several subgraphs, and edge along frequency spectrum direction
The sequence in inverse frequency spectrum direction several subgraphs are lined up into a queue;
Pretreatment image test module, for continuing team's head one subgraph that do not test of taking-up from the queue and being surveyed
Examination, until judge the sub-picture pack contain in the target spectrum line along inverse frequency spectrum direction first marginal point and from
The parts of images comprising the subgraph is intercepted out in the pretreatment image, to obtain final image.
It should be appreciated that although this specification is described in terms of embodiments, but not each embodiment only includes one
A independent technical solution, this description of the specification is merely for the sake of clarity, and those skilled in the art should will say
As a whole, the technical solution in each embodiment may also be suitably combined to form those skilled in the art can for bright book
With the other embodiments of understanding.
The series of detailed descriptions listed above only for feasible embodiment of the invention specifically
Protection scope bright, that they are not intended to limit the invention, it is all without departing from equivalent implementations made by technical spirit of the present invention
Or change should all be included in the protection scope of the present invention.