Summary of the invention
The problem that the present invention solves is to provide the dividing method of prospect in a kind of 3-D view, not only realizes simple, fast, stably can also extract the prospect in 3 d medical images.
In order to solve the problem, the invention provides the dividing method of prospect in a kind of 3-D view, comprising the steps:
(1) input described 3-D view, calculate the image constraint prospect probability of each pixel in described 3-D view; Remember that the foreground mask of described 3-D view is M, M
(1)for initial foreground mask;
(2) based on current foreground mask M
(k), calculate the shape constraining prospect probability of each pixel in described 3-D view
wherein, k is iterations, k>=1;
(3) based on described image constraint prospect probability and shape constraining prospect probability
obtain next foreground mask M
(k+1);
(4) if described current foreground mask M
(k)with next foreground mask M
(k+1)change be less than predetermined value or iterations k equals predetermined maximum iteration time, then finishing iteration, described current foreground mask M
(k)be the prospect of required segmentation; Otherwise then return step (2), k increases by 1.
The dividing method of prospect in a kind of 3-D view described above, wherein, calculates the image constraint prospect Probability p of each pixel in described 3-D view
1 (X)process comprise: 1) by described 3-D view binaryzation, obtain binary image; 2) described binary image is carried out spatial filtering and conversion, obtain described image constraint prospect Probability p
1 (X).
The dividing method of prospect in a kind of 3-D view described above, wherein, obtains described image constraint prospect Probability p
1 (X)formula be:
Wherein, X represents the locus of arbitrary pixel in described 3-D view; g
1for transforming function transformation function;
for spatial filtering operator;
represent convolution algorithm; I
bfor described binary image.
The dividing method of prospect in a kind of 3-D view described above, wherein, calculates described shape constraining prospect probability
formula be:
Wherein, g
2for transforming function transformation function;
for spatial filtering operator;
represent convolution algorithm; K is iterations; X represents the locus of arbitrary pixel in described 3-D view.
The dividing method of prospect in a kind of 3-D view described above, wherein, obtains next foreground mask M described
(k+1)process comprise:
1) by described image constraint prospect Probability p
1 (X)with described shape constraining prospect probability
combination, obtaining each pixel in described 3-D view becomes the probability of prospect
2) to described prospect probability
carry out binaryzation, obtain interim foreground mask;
3) described interim foreground mask is carried out space smoothing filtering and binaryzation, obtain next foreground mask M described
(k+1).
The dividing method of prospect in a kind of 3-D view described above, wherein, the formula of described combination is
wherein, w is described prospect probability
middle p
1 (X)weight, 0 < w < 1.
The dividing method of prospect in a kind of 3-D view described above, wherein, the formula of described combination is
The dividing method of prospect in a kind of 3-D view described above, wherein, obtains next foreground mask M described
(k+1)formula be:
Wherein,
for spatial filtering operator;
represent convolution algorithm; I is target function, and when the inequality in its variable is set up, value is 1, otherwise value is 0; t
2and t
3for predetermined threshold.
The dividing method of prospect in a kind of 3-D view described above, wherein, the span of described predetermined value is 0.000001-0.001.
The dividing method of prospect in a kind of 3-D view described above, wherein, the span of described predetermined maximum iteration time is 10-20.
Compared with prior art, the whole process of the present invention can by after image binaryzation, then carries out spatial filtering and simple arithmetical operation completes, and compared with movable contour model, the complexity that the method realizes is low, and computing velocity is fast;
Further, Shape-based interpolation constraint and region increase, and use the shape facility of the characteristic sum mask of image self simultaneously, have higher stability.
Embodiment
Set forth a lot of detail in the following description so that fully understand the present invention.But the present invention can be much different from alternate manner described here to implement, those skilled in the art can when without prejudice to doing similar popularization when intension of the present invention, therefore the present invention is by the restriction of following public concrete enforcement.
Secondly, the present invention utilizes schematic diagram to be described in detail, and when describing the embodiment of the present invention in detail, for ease of illustrating, described schematic diagram is example, and it should not limit the scope of protection of the invention at this.
Below in conjunction with drawings and Examples, the dividing method of prospect in a kind of 3-D view of the present invention is described in detail.In the 3-D view of the embodiment of the present invention, the dividing method of prospect as shown in Figure 1, first, performs step S1, input described 3-D view and initial foreground mask M
(1).Wherein, M is the foreground mask of described 3-D view.In the present embodiment, the 3-D view of input is CT abdomen images, and the prospect of required segmentation is the liver (or spleen) of CT image.
Then, perform step S2, calculate the image constraint prospect Probability p of each pixel in described 3-D view
1 (X).Wherein, p
1 (X)=p
1 (X)(O=1|X), X is the locus of arbitrary pixel in described 3-D view,
particularly, the image constraint prospect Probability p of arbitrary pixel p in described 3-D view is calculated
1 (X)process comprise: 1) by the setting method such as threshold value, K means Data Cluster Algorithm (K-means) by described 3-D view binaryzation, obtain binary image, extract at the pixel of interested gray value interval by gray-scale value in described 3-D view; 2) described binary image is carried out spatial filtering and conversion, obtain described image constraint prospect Probability p by formula (1)
1 (X), described formula (1) is:
Wherein, X represents the locus of arbitrary pixel in described 3-D view; g
1for transforming function transformation function;
for spatial filtering operator;
represent convolution algorithm; I
bfor described binary image.
In the present embodiment, first, adopt threshold method to carry out binaryzation to CT abdomen images, the pixel that gray-scale value in described CT abdomen images belongs to liver intensity value interval is extracted, obtains binary image.Then, by described formula (1), spatial filtering and conversion are carried out to binary image, obtain the image constraint prospect probability of each pixel in CT abdomen images.Wherein,
for moving average filter, along the width cs of three-dimensional
1=[2,2,2] mm, transforming function transformation function is g
1(t)=t.
Then, step S3 is performed, based on current foreground mask M
(k), calculate the shape constraining prospect probability of each pixel in described 3-D view
wherein, k is iterations, k>=1, as k=1, and described foreground mask M
(1)for the initial foreground mask inputted described in step S1.Particularly, by formula (2) to foreground mask M
(k)do spatial filtering and conversion, obtain shape constraining prospect probability
described formula (2) is:
Wherein, g
2for transforming function transformation function;
for spatial filtering operator;
represent convolution algorithm; K is iterations; X represents the locus of arbitrary pixel in described 3-D view.
In the present embodiment, for the liver in CT abdomen images, according to the liver initial foreground mask M of formula (2) to input
(1)carry out spatial filtering and conversion, namely initial foreground mask carries out first time region growth (first time iteration), obtains the shape constraining prospect probability that arbitrary pixel in CT abdomen images carries out first time region growth
the function of described conversion is g
1(t)=t
2.
Then, step S4 is performed, based on described image constraint prospect probability and shape constraining prospect probability
obtain next foreground mask M
(k+1).Particularly, next foreground mask M described is obtained
(k+1)process as shown in Figure 2, first, perform step S201, by described image constraint prospect Probability p
1 (X)with described shape constraining prospect probability
combination, obtaining each pixel in described 3-D view becomes the probability of prospect
particularly, by linear suggestion pond, i.e. formula
to image constraint prospect Probability p
1 (X)with shape constraining prospect probability
combine, wherein, w is described prospect probability
middle p
1 (X)weight, 0 < w < 1; Or by logarithm suggestion pond, i.e. formula
To image constraint prospect Probability p
1 (X)with shape constraining prospect probability
combine.In the present embodiment, by logarithm suggestion pond, to the image constraint prospect Probability p obtained in step S2
1 (X)with the shape constraining prospect probability obtained in step S3
combine, obtain arbitrary pixel in first time region growth CT abdomen images and belong to the probability of liver
Then, step S202 is performed, to described prospect probability
carry out binaryzation, obtain interim foreground mask.Particularly, by all prospect probability
compare with predetermined threshold, if be greater than described predetermined threshold, then assignment is 1, if be less than or equal to predetermined threshold, then assignment is 0.In the present embodiment, the probability of prospect will be become in step S201
the pixel assignment being greater than 0.5 is 1, and remaining pixel assignment is 0, namely obtains the interim foreground mask of first time region growth.
Then, perform step S203, described interim foreground mask is carried out space smoothing filtering and binaryzation, obtain next foreground mask M described
(k+1), namely
Wherein,
for spatial filtering operator;
represent convolution algorithm; I is target function, and when the inequality in its variable is set up, value is 1, otherwise value is 0; t
2and t
3for predetermined threshold.
In the present embodiment, the interim foreground mask obtained in step S203 is carried out space smoothing filtering, foreground mask after level and smooth is carried out binaryzation, the assignment being greater than 0.5 by level and smooth interim foreground mask pixel value is 1, remaining pixel assignment is 0, and binary image is now foreground mask M
(2).
Then, step S5, more described foreground mask M is performed
(k)with foreground mask M
(k+1)size or compare the size of iterations k and predetermined maximum iteration time, if current foreground mask M
(k)with next foreground mask M
(k+1)change be less than predetermined value or k equals predetermined maximum iteration time, then perform step S6, finishing iteration, described current foreground mask M
(k)be the described prospect that need split; If current foreground mask M
(k)with next foreground mask M
(k+1)change be more than or equal to predetermined value or k is less than predetermined maximum iteration time, then return step S3, iterations k increases by 1.Wherein, the change between foreground mask can be the absolute value of both relative volume changes; The span of predetermined value is 0.000001-0.001; The span of predetermined maximum iteration time is 10-20.In the present embodiment, the foreground mask M will obtained in step S203
(2)with the initial foreground mask M of the liver of input
(1)volume compare, if be more than or equal to predetermined value, then re-execute step S3, and obtain foreground mask M
(2)method the same, try to achieve foreground mask M
(3), then by foreground mask M
(2)with foreground mask M
(3)volume compare; If foreground mask M
(2)with the initial foreground mask M of the liver of input
(1)the change of volume be less than predetermined value, then initial foreground mask M
(1)be the prospect of required segmentation.With foreground mask M
(1)with foreground mask M
(2)between relatively the same, foreground mask M
(2)with foreground mask M
(3)the change of volume be less than predetermined value, then foreground mask M
(2)be the prospect of required segmentation, otherwise, continue to calculate next foreground mask, until the change of the foreground mask of front and back twice is less than predetermined value.In addition, in the present embodiment, predetermined maximum iteration time is 12, if when iterating to the 12nd time, and foreground mask M
(12)with foreground mask M
(13)volume change be still more than or equal to predetermined value, now, also finishing iteration, foreground mask M
(12)be the prospect of required segmentation.
As shown in Figure 3, figure (a) and figure (b) is respectively the liver position and spleen position that this method obtains, the liver position that the region growing methods that figure (c) and figure (d) is respectively traditional obtains and spleen position.As can be seen from the figure, adopt identical gray threshold and iterations, there is a large amount of segmenting pixels point by mistake in traditional region growing methods, and said method is to the liver in CT abdomen images and spleen segmentation, well remains the shape of corresponding organ.
Although the present invention with preferred embodiment openly as above; but it is not for limiting the present invention; any those skilled in the art without departing from the spirit and scope of the present invention; the Method and Technology content of above-mentioned announcement can be utilized to make possible variation and amendment to technical solution of the present invention; therefore; every content not departing from technical solution of the present invention; the any simple modification done above embodiment according to technical spirit of the present invention, equivalent variations and modification, all belong to the protection domain of technical solution of the present invention.