A kind of region real time method for segmenting of medical image
Technical field
The present invention relates to the region real time method for segmenting in medical information processing field, more particularly to a kind of medical image.
Background technology
Image Segmentation Technology is that digital picture is subdivided into the process of multiple images subregion, it is therefore intended that simplifies or changes
The representation of image so that image is more easy to be understood and analyzed, image split as digital picture important process means and
It is widely used in all trades and professions.In field of medical image processing, image Segmentation Technology understands form, the size of lump for doctor
Play the part of very important role Deng key property.
In the prior art, substantial amounts of medical image Real-time segmentation technology is limited only to the positioning of area-of-interest:(1) base
Handled in the Real-time segmentation of gradient, partitioning parameters t can not be controlled in real time, what is obtained in real time is the result of fixed segmentation, for side
The complicated lump segmentation effect of edge is simultaneously bad;(2) after selecting starting point in area-of-interest, the process for choosing terminating point is pulled
In, region growing is carried out from four direction based on starting point, only when four direction all reaches the border in region to be split
Final segmentation result is shown, real-time region segmentation result can not be obtained.
The content of the invention
Present invention solves the technical problem that it is to provide a kind of region real time method for segmenting of medical image, to solve user
During carrying out real-time region segmentation, fail to adjust partitioning parameters in real time while the positioning of area-of-interest is realized, make
Segmentation result can not be controlled in real time according to their needs by obtaining user.
In order to solve the above problems, the invention provides a kind of region segmentation method of medical image, comprise the following steps:
Starting point is selected, positions area-of-interest;
By controlling the position of terminating point to adjust the scope of partitioning parameters t and the area-of-interest in real time, and described
Region Real-time segmentation is carried out in area-of-interest;
Wherein, the partitioning parameters t be the starting point and ending point line vector on y direction component it is big
It is small.
Optionally, the method by controlling terminating point to carry out region Real-time segmentation comprises the following steps:
If the terminating point is located in region to be split, with the region growing of fixed threshold in the area-of-interest
Carry out Real-time segmentation;
If the terminating point is located at outside region to be split, sent out in the area-of-interest with adaptive region growing
Carry out Real-time segmentation.
Optionally, the bottom threshold of the region growing methods of the fixed threshold is that the starting point and the terminating point connect
Minimum gradation value on line.
Optionally, the bottom threshold of the adaptive region growing methods is:ThL=[(1-t) × (Tmax+Tmin)]/
2, wherein TmaxAnd TminRespectively current maximum gradation value and minimum gradation value in growth district.
Optionally, the area-of-interest be with the line vector of the starting point and ending point in X direction component
Size for radius circle composition region.
Optionally, projection of the line vector of the starting point and ending point in x-axis is located in the region to be split,
Then the terminating point is located in the region to be split, and otherwise the terminating point is located at outside region to be split.
Optionally, the terminating point is determined by pulling the method for mouse action or contact action.
Compared with prior art, the present invention has advantages below:
(1) present invention can be widely applied in the region Real-time segmentation processing of various images, and the degree of accuracy is high, and speed is fast,
It is directly perceived convenient;(2) the parameter t of partitioning algorithm can be adjusted in the present invention while area-of-interest scope is controlled so that point
Cut result and be rapidly and accurately presented to user in real time with area-of-interest and partitioning parameters t adjustment, obtain really real
When, accurate segmentation result.
Brief description of the drawings
Fig. 1 show the schematic flow sheet of the region real time method for segmenting of the medical image of one embodiment of the invention;
Fig. 2 is the result schematic diagram of the region real time method for segmenting of the medical image of one embodiment of the invention;
Fig. 3 a~3b are result schematic diagram of the one embodiment of the invention in the inside and outside Real-time segmentation in region to be split;
Fig. 4 a~4b are the result schematic diagram of the breast lump Real-time segmentation of one embodiment of the invention.
Embodiment
Many details are elaborated in the following description in order to fully understand the present invention.But the present invention can be with
Much it is different from other manner described here to implement, those skilled in the art can be in the situation without prejudice to intension of the present invention
Under do similar popularization, therefore the present invention is not limited to the specific embodiments disclosed below.
Secondly, the present invention is described in detail using schematic diagram, when the embodiment of the present invention is described in detail, for purposes of illustration only, institute
It is example to state schematic diagram, and it should not limit the scope of protection of the invention herein.
In the prior art, user often only defines the model of area-of-interest during the region Real-time segmentation of medical image
Enclose, but partitioning parameters can not be defined according to their needs so as to efficiently control Real-time segmentation result to solve above-mentioned technology
Problem, the invention provides a kind of region real time method for segmenting of medical image, including:Starting point is selected, positions region of interest
Domain;By controlling the position of terminating point to adjust partitioning parameters and the scope of the area-of-interest in real time, and described interested
Region Real-time segmentation is carried out in region.
The present invention is by the way that while area-of-interest is positioned on various types of medical images, ginseng is split in adjustment in real time
Number, so as to obtain accurate, real-time region segmentation result.
The present invention will be described in detail below in conjunction with the accompanying drawings.Such as the area of the medical image of Fig. 1 one embodiment of the invention
Shown in the schematic flow sheet of domain real time method for segmenting, methods described comprises the following steps:
First, step S10 is performed:Starting point 2 is chosen according to region 1 to be split on the original image, determined as seed point
Position area-of-interest 3.Then S20 is performed:User's control terminating point 4, it is real-time while 3 scope of area-of-interest is adjusted
Partitioning parameters t is adjusted, and region Real-time segmentation is carried out in the area-of-interest 3, obtains Real-time segmentation result 5.Wherein, such as
Shown in the result schematic diagram of the region real time method for segmenting of the medical image of Fig. 2 one embodiment of the invention, the area to be split
Domain 1 is the breast lump region in segmentation object region, such as mammary gland nuclear magnetic resonance image;The area-of-interest 3 is with institute
The line vector 6 of starting point 2 and terminating point 4 is stated in the region that the size of X direction component 7 forms for the circle of radius;Such as Fig. 3 a
~3b is the partitioning parameters shown in result schematic diagram of the one embodiment of the invention in 1 inside and outside Real-time segmentation of region to be split
T is the size of the component 8 on y direction of line vector 6 of starting point 2 and terminating point 4.The terminating point can pass through dragging
The determination of the method for mouse or contact action, the invention is not limited in this regard.
It should be noted that in a kind of region real time method for segmenting of medical image provided by the invention, the segmentation ginseng
Number t changes in real time with the change of terminating point 4, because will to partitioning parameters t value under different images or scene
Ask different, such as during the MRI progress Real-time segmentation of corresponding breast lump, suitable for sketch figure picture and strengthen image
Partitioning parameters t is typically different so that partitioning parameters t can be adjusted flexibly as needed by user, emerging in Perceived control in the prior art
While interesting region, partitioning parameters are not adjusted in real time so that accurate, real-time requirement that segmentation result can not meet, so this
Method can be applied in the region Real-time segmentation processing of the various images under different scenes.
Then step S30~S60 is performed:Divided in real time by controlling terminating point 4 to carry out region in the area-of-interest 3
Cut:If the terminating point 4 is located in region 1 to be split, with the region growing side of fixed threshold in the area-of-interest 3
Method carries out Real-time segmentation, obtains the Real-time segmentation result 5 in region 1 to be split, as shown in Figure 3 a;Treated if the terminating point 4 is located at
Outside cut zone 1, then Real-time segmentation is carried out with adaptive region growing forwarding method in the area-of-interest 3, treated
The Real-time segmentation result 5 of cut zone 1, as shown in Figure 3 b.It should be noted that whether the terminating point 4 is located at area to be split
The inside and outside standard in domain 1 is:If projection of the line vector 6 of the starting point 2 and the terminating point 4 in x-axis is treated positioned at described
In cut zone 1, then the terminating point 4 is located in the region 1 to be split, and otherwise the terminating point 4 is located at region 1 to be split
Outside, as shown in the inside and outside result schematic diagram in real time in the region to be split that Fig. 3 a~3b are one embodiment of the invention.
Further, the bottom threshold of the region growing methods of the fixed threshold is the starting point 2 and the termination
Minimum gradation value on 4 lines of point;The bottom threshold of the adaptive region growing methods is:ThL=[(1-t) × (Tmax+
Tmin)]/2, wherein TmaxAnd TminRespectively current maximum gradation value and minimum gradation value in growth district, according to above-mentioned threshold
It is worth lower limit ThLFormula understand, TmaxAnd TminThe continuous real-time update with the change of the partitioning parameters t, and with segmentation
Parameter t size is directly proportional, the bottom threshold increased by changing partitioning parameters t sizes come real-time adjustment region, according to formula,
Partitioning parameters t value is smaller, ThLBe worth it is smaller, so as to including pixel it is more, the scope of growth district is also bigger.
As Fig. 4 a~4b show the result schematic diagram of the breast lump Real-time segmentation of one embodiment of the invention.Wherein,
Seed point of the starting point 2 that user chooses as positioning area-of-interest, user pull what control was chosen by mouse or touch screen
Terminating point 4, partitioning parameters t and control area-of-interest size are adjusted by controlling terminating point 4, real-time mammary gland is obtained and swells
The segmentation result 9 of block, obtained as shown in Figure 4 a after the region growth of the fixed value threshold value in region to be split real-time
Breast lump segmentation result, the real-time breast obtained after increasing as shown in Figure 4 b for the adaptive region outside region to be split
Adenoncus block segmentation result 10.Compared with prior art, real time method for segmenting provided by the invention is adjusted by controlling terminating point 2
Feel the size and partitioning parameters in emerging region so that segmentation result is quick, accurate with the adjustment of area-of-interest and partitioning parameters
User really is presented in real time, Real-time segmentation processing intuitively is carried out to image according to the demand of user, meets that user's is real-time
Interactive demand.
Although the present invention is disclosed as above with preferred embodiment, it is not for limiting the present invention, any this area
Technical staff without departing from the spirit and scope of the present invention, may be by the methods and technical content of the disclosure above to this hair
Bright technical scheme makes possible variation and modification, therefore, every content without departing from technical solution of the present invention, according to the present invention
Any simple modifications, equivalents, and modifications made to above example of technical spirit, belong to technical solution of the present invention
Protection domain.