CN103295218A - Image cutting method and device - Google Patents

Image cutting method and device Download PDF

Info

Publication number
CN103295218A
CN103295218A CN201210053520XA CN201210053520A CN103295218A CN 103295218 A CN103295218 A CN 103295218A CN 201210053520X A CN201210053520X A CN 201210053520XA CN 201210053520 A CN201210053520 A CN 201210053520A CN 103295218 A CN103295218 A CN 103295218A
Authority
CN
China
Prior art keywords
image
zero level
curve
level collection
level set
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201210053520XA
Other languages
Chinese (zh)
Inventor
袁春
周赫圣
徐伟
郝红霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210053520XA priority Critical patent/CN103295218A/en
Publication of CN103295218A publication Critical patent/CN103295218A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses an image cutting method and device. The image cutting method comprises the following steps that a zero level set outline is initialized; image parameter information and an Nth level set outline of an image to be processed are substituted into a preset partial differential equation, and the difference value of a Nth level set function is calculated, wherein the preset partial differential equation is obtained from an energy equation in a converted mode, and the energy equation comprises image border information, image region information, and internal energy making a zero level set be similar to a signed distance function; when N is equal to 0, the zero level set outline is the initialized zero level set outline; the difference value of the initialized zero level set outline and the Nth level set function is substituted into a preset iterative formula, and a zero level set curve of N+1th iteration is calculated out; whether the zero level set curve calculated out through current iteration is identical to the zero level set curve calculated through last iteration is judged, and if yes, iteration is finished. The image cutting method has the better cutting effect on images with blurry edges and noise images.

Description

A kind of image partition method and device
Technical field
The present invention relates to image processing field, be specifically related to a kind of image partition method and device.
Background technology
It is the vital task that image is handled that image is cut apart, and its objective is that hope separates interested object in the image with remainder in the image, serves in order to handle for high-level diagram picture more.Image Segmentation Technology is to find profile and the border of the part in the image, and or rather, image Segmentation Technology is to distribute a label to each pixel in the image, and the pixel with same label has common visual signature.
Based on the image partition method of dynamic outline, the thinking that this method adopts comprises in the prior art:
The first step: adopt and set up energy equation, following formula (1-1):
L R ( C ) = ∫ 0 L ( C ) g ( | ▿ I [ C ( s ) ] | ) ds - - - ( 1 - 1 )
Wherein, the arc length of L (C) expression closed curve C, L R(C) be the curve energy functional of weighting arc length, g is the edge indicator function, and g can be chosen for following (1-2):
g ( x , y ) = 1 1 + ( ▿ I ( x , y ) / K ) p , p = 1,2 - - - ( 1 - 2 )
Wherein, I is image to be split,
Figure BDA0000140259130000013
Be gradient, the constant coefficient of K for choosing according to different images.Need to prove that gradient is very big at the edge of image place, the value convergence of corresponding edge indicator function g zero (being g → 0).
Second step: minimization of energy equation (1-1), that is:
min L R ( C ) = min ∫ 0 L ( C ) g ( | ▿ I [ C ( s ) ] | ) ds - - - ( 1 - 3 )
The physical significance of following formula (1-3) is: the weighting arc length at the closed curve C of place, image border is the shortest.
Find the solution the extreme value of following formula (1-3) functional (this functional replaces with E (I) for convenience of explanation) and can obtain the necessary condition of finding the solution the functional extreme value, that is: according to Euler-Lagrange equation (Euler-Lagrange function)
∂ F ∂ I - d dx ( ∂ F ∂ Ix ) - d dy ( ∂ F ∂ Iy ) = 0 - - - ( 1 - 4 )
The 3rd step: verified for the partial differential equation (PDE, Partial Differential Equation) of following formula (1-4), adopting classical process of iteration for this partial differential equation is the gradient descent method, can get following curve evolvement equation:
∂ C ∂ t = g ( C ) κN - ( ▿ g · N ) N - - - ( 1 - 5 )
K is curvature of curve in the formula (1-5), and N is normal to curve.
The 4th step: according to verified curve evolvement equation and the relation between the level set, the corresponding horizontal collected explanations or commentaries of formula (1-5) is:
∂ C ∂ t = g ( C ) | ▿ φ | κ - ( ▿ g · ▿ φ ) - - - ( 1 - 6 )
φ is zero level collection curve in the formula (1-6),
The 5th step: the partial differential equation to formula (1-6) is carried out discretize on the room and time, (1-6) is converted into corresponding difference equation with formula, adopt iterative computation to obtain final numerical solution, the meaning of the numerical solution that this is final is: final numerical solution is the closed curve of split image.Therefore, the operation of carrying out in computing machine is to find the solution by formula (1-6) to be converted into corresponding difference equation, specifically comprises:
Step S1: initialization zero level collection profile;
Step S2: according to being converted into the iterative formula that corresponding difference equation is changed out by formula (1-6), carry out iterative computation;
Formula (1-6) is to be obtained by energy equation (1-1) conversion, has only comprised image edge information in energy equation (1-1), and indicator function g represents with the edge.
Step S3: in iterative computation, regularly reinitialize level set function;
Step S4: stop when satisfying the iteration stopping condition, the curve of acquisition is the curve of split image.
The prior art of above-mentioned explanation is difficult to detect edge of image under the ill-defined situation, causes ill-defined image segmentation effect not good.
Summary of the invention
The embodiment of the invention provides a kind of image partition method and device, has overcome for the not good defective of ill-defined image segmentation effect.
The embodiment of the invention provides a kind of image partition method, and described method comprises:
Initialization zero level collection profile;
With image parameter information and the N sub-level collection profile of pending image, the partial differential equation that substitution is preset is calculated the difference of N sub-level set function; Wherein, the described partial differential equation that presets is obtained by the energy equation conversion that has comprised image edge information and image area information; N is zero-based integer, and the zero level collection profile when the N value is 0 is initialized zero level collection profile;
With the difference of initialization zero level collection profile and described N sub-level set function, the iterative formula that substitution is preset calculates the zero level collection curve of iteration the N+1 time;
Regularly zero level collection curve and the symbolic distance function that calculates according to current iteration reinitializes level set function;
With image parameter information and the described level set function that reinitializes of pending image, the described partial differential equation of substitution is calculated the difference of M sub-level set function; M is zero-based integer, and the level set function when the M value is 0 is initialized level set function again;
With the described difference that reinitializes level set function and described M sub-level set function, the iterative formula that substitution is preset calculates the zero level collection curve of iteration the M+1 time;
Judge whether the zero level collection curve that current iteration calculates is identical with the zero level collection curve that last iterative computation goes out, if identical, iteration finishes.
The invention process also example provides a kind of image partition method, and described method comprises:
Initialization zero level collection profile;
With image parameter information and the N sub-level collection profile of pending image, the partial differential equation that substitution is preset is calculated the difference of N sub-level set function; Wherein, the described partial differential equation that presets is by having comprised image edge information, and the energy equation conversion of the internal energy of image area information and maintenance zero level set function and symbolic distance functional similarity obtains; N is zero-based integer, and the zero level collection profile when the N value is 0 is initialized zero level collection profile;
With the difference of initialization zero level collection profile and described N sub-level set function, the iterative formula that substitution is preset calculates the zero level collection curve of iteration the N+1 time;
Judge whether the zero level collection curve that current iteration calculates is identical with the zero level collection curve that last iterative computation goes out, if identical, iteration finishes.
The embodiment of the invention also provides a kind of image segmenting device, and described device comprises:
First initialization unit, first computing unit, second computing unit reinitializes unit and first judging unit;
Described first initialization unit is used for initialization zero level collection profile;
Described first computing unit is used for image parameter information and N sub-level collection profile with pending image, and the partial differential equation that substitution is preset is calculated the difference of N sub-level set function; Wherein, the described partial differential equation that presets is obtained by the energy equation conversion that has comprised image edge information and image area information; N is zero-based integer, and the zero level collection profile when the N value is 0 is initialized zero level collection profile;
Described second computing unit is used for the difference with initialization zero level collection profile and described N sub-level set function, and the iterative formula that substitution is preset calculates the zero level collection curve of iteration the N+1 time;
The described unit that reinitializes is used for timing according to zero level collection curve and symbolic distance function that current iteration calculates, reinitializes level set function; Then, described first computing unit also is used for image parameter information and the described level set function that reinitializes with pending image, and the described partial differential equation of substitution is calculated the difference of M sub-level set function; M is zero-based integer, and the level set function when the M value is 0 is initialized level set function again; Described second computing unit also is used for the described difference that reinitializes level set function and described M sub-level set function, and the iterative formula that substitution is preset calculates the zero level collection curve of iteration the M+1 time;
Described first judging unit, for judging whether the zero level collection curve that current iteration calculates is identical with the zero level collection curve that last iterative computation goes out, if identical, iteration finishes.
The embodiment of the invention also provides a kind of image segmenting device, and described device comprises:
Second initialization unit, the 3rd computing unit, the 4th calculates single and second judging unit;
Described second initialization unit is used for initialization zero level collection profile;
Described the 3rd computing unit is used for image parameter information and N sub-level collection profile with pending image, and the partial differential equation that substitution is preset is calculated the difference of N sub-level set function; Wherein, the described partial differential equation that presets is by having comprised image edge information, and the energy equation conversion of the internal energy of image area information and maintenance zero level set function and symbolic distance functional similarity obtains; N is zero-based integer, and the zero level collection profile when the N value is 0 is initialized zero level collection profile;
The described the 4th calculates singly, is used for the difference with initialization zero level collection profile and described N sub-level set function, and the iterative formula that substitution is preset calculates the zero level collection curve of iteration the N+1 time;
Described second judging unit, for judging whether the zero level collection curve that current iteration calculates is identical with the zero level collection curve that last iterative computation goes out, if identical, iteration finishes.
As can be seen from the above technical solutions, the image partition method of embodiment of the invention explanation is not only considered image edge information, also consider the area information of image, these information are represented by energy functional, by finding the solution minimizing of energy functional, thereby acquire the closed curve of split image, this image partition method comprises that for ill-defined image noisy image has more excellent segmentation effect.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is a kind of image partition method flow process simplified schematic diagram that the embodiment of the invention one provides;
Fig. 2 is the concise and to the point schematic flow sheet of thinking that general dotted line evolutionary model realization is cut apart image;
Fig. 3 is a kind of image partition method flow process simplified schematic diagram that the embodiment of the invention two provides;
Fig. 4 is a kind of image partition method flow process simplified schematic diagram that the embodiment of the invention three provides;
Fig. 5 is a kind of image partition method flow process simplified schematic diagram that the embodiment of the invention four provides;
Fig. 6 is the image segmentation effect comparison diagram to a plurality of objects;
Fig. 7 is to the image segmentation effect comparison diagram of noise is arranged;
Fig. 8 is to ill-defined image segmentation effect comparison diagram;
Fig. 9 is a kind of image segmenting device simplified schematic diagram that the embodiment of the invention five provides;
Figure 10 is a kind of image segmenting device simplified schematic diagram that the embodiment of the invention six provides.
Embodiment
Embodiment one
The embodiment of the invention provides a kind of image partition method, and as shown in Figure 1, this method comprises:
Step 101: initialization zero level collection profile;
Wherein, initialization zero level collection profile can be the closed curve of choosing at random.
Step 102: with image parameter information and the N sub-level collection profile of pending image, the partial differential equation that substitution is preset is calculated the difference of N sub-level set function; Wherein, the partial differential equation that presets is obtained by the energy equation conversion that has comprised image edge information and image area information; Zero level collection profile when the N value is 0 is initialized zero level collection profile;
It will be appreciated that equipment can specifically comprise in the operation of the difference of carrying out the calculated level set function: after finishing the difference of a calculated level set function, begin the difference of calculated level set function next time again.
For the ease of understanding present embodiment, general dotted line evolutionary model is realized thinking brief description that image is cut apart herein.As shown in Figure 2, the curve evolvement model can comprise:
The first step: be that energy function (as E (u)) is asked minimization problem, i.e. minE (u) with curve evolvement;
Second step: adopt the variational method, the energy function minimization problem is converted to corresponding Euler-Lagrange equation
Figure BDA0000140259130000061
The problem of finding the solution;
The 3rd step: find the solution equation in second step by the gradient descent method, obtain the curve evolvement equation that t in time develops;
The 4th step: introduce the Level Set Method of curve, obtain the level set EVOLUTION EQUATION of curve;
The 5th step: the level set equation carry out numerical discretizationization, carry out iteration according to corresponding difference equation and obtain the final curve of cutting apart.In the realization operation of computing machine, calculate all and in the 5th step, carry out.
By above five operations, to the thinking of curve evolvement by basic understanding.From the angle that computing machine is carried out, step 101 to step 105 all is the specific operation process to the 5th step in the curve evolvement thinking among this embodiment.Difference with the prior art is, in embodiments of the present invention, consider in the energy equation to have comprised image edge information and image area information, make computing machine in execution in step 101 to step 105, to ill-defined image better segmentation effect can be arranged.
Step 103: with the difference of initialization zero level collection profile and N sub-level set function, the iterative formula that substitution is preset calculates the zero level collection curve of iteration the N+1 time;
Step 104: timing reinitializes level set function according to zero level collection curve and symbolic distance function that current iteration calculates; With image parameter information and the described level set function that reinitializes of pending image, the partial differential equation that substitution is preset is calculated the difference of M sub-level set function; Level set function when the M value is 0 is initialized level set function again; With the described difference that reinitializes level set function and described M sub-level set function, the iterative formula that substitution is preset calculates the zero level collection curve of iteration the M+1 time;
It will be appreciated that in the calculating of step 103, level set function can be undergone mutation, in order to remedy the sudden change in the level set function evolutionary process, need periodically level set function to be reinitialized to the symbolic distance function.Timing initialization zero level collection profile in the step 104 is not picked at random, is according to the symbolic distance function each point on the image that represents level set to be carried out assignment again, thereby obtains the initialization contour curve.
Step 105: judge whether the zero level collection curve that current iteration calculates is identical with the zero level collection curve that last iterative computation goes out, if iteration finishes, if not, execution in step 104.
Wherein, the zero level collection curve that iteration finishes to obtain in the step 105 is the curve of split image.
Image partition method by embodiment of the invention explanation, this method is not only considered image edge information, also consider the area information of image, these information are represented by energy functional, by finding the solution minimizing of energy functional, thereby acquire the closed curve of split image, this image partition method comprises that for ill-defined image noisy image has more excellent segmentation effect.
Embodiment two
The embodiment of the invention provides a kind of image partition method, this method is similar to embodiment one, difference is: the energy equation that is used for obtaining to preset partial differential equation in the present embodiment, not only comprised image edge information and the image area information identical with embodiment one, also comprised and make zero level set function φ and symbolic distance function keep similar internal energy P.By in energy equation, increasing this internal energy P, can keep zero level set function φ and symbolic distance functional similarity, thereby needn't reinitialize, simplify the computing machine carries out image and cut apart middle calculating.
As shown in Figure 3, the embodiment of the invention provides a kind of image partition method, comprising:
Step 201: initialization zero level collection profile;
Wherein, initialization zero level collection profile can be the closed curve of choosing at random.
Step 202: with image parameter information and the N sub-level collection profile of pending image, the partial differential equation that substitution is preset is calculated the difference of N sub-level set function; Wherein, the described partial differential equation that presets is by having comprised image edge information, and the energy equation conversion of the internal energy of image area information and maintenance zero level set function and symbolic distance functional similarity obtains; Zero level collection profile when the N value is 0 is initialized zero level collection profile;
It will be appreciated that equipment can specifically comprise in the operation of the difference of carrying out the calculated level set function: after finishing the difference of a calculated level set function, begin the difference of calculated level set function next time again.
Step 203: with the difference of initialization zero level collection profile and described N sub-level set function, the iterative formula that substitution is preset calculates the zero level collection curve of iteration the N+1 time;
Step 204: judge whether the zero level collection curve that current iteration calculates is identical with the zero level collection curve that last iterative computation goes out, if iteration finishes, if not, execution in step 203.
Image partition method by embodiment of the invention explanation, this method is not only considered image edge information, also consider the area information of image, and make zero level set function φ and symbolic distance function keep similar internal energy P, these information are represented by energy functional, by finding the solution minimizing of energy functional, thereby acquire the closed curve of split image, this image partition method is for ill-defined image, comprise that noisy image has more excellent segmentation effect, and need not initialization, reduced the complexity of calculating.
Embodiment three
The embodiment of the invention provides a kind of image partition method, and this image partition method is considered the area information of image edge information and image, makes that the image segmentation effect is better.
The image partition method of only having considered image edge information has been described in background technology, and the thinking of this method comprises:
The first step: adopt and set up energy equation, following formula (2-1):
L R ( C ) = ∫ 0 L ( C ) g ( | ▿ I [ C ( s ) ] | ) ds - - - ( 2 - 1 )
Wherein, the arc length of L (C) expression closed curve C, L R(C) be the curve energy functional of weighting arc length, g is the edge indicator function, and g can be chosen for following (2-2):
g ( x , y ) = 1 1 + ( ▿ I ( x , y ) / K ) p , p = 1,2 - - - ( 2 - 2 )
Wherein, I is image to be split, Be gradient, K is selected constant.Need to prove that gradient is very big at the edge of image place, the value convergence of corresponding edge indicator function g zero (being g → 0).
Second step: minimization of energy equation (1-1), that is:
min L R ( C ) = min ∫ 0 L ( C ) g ( | ▿ I [ C ( s ) ] | ) ds - - - ( 2 - 3 )
The physical significance of following formula (1-3) is: the weighting arc length at the closed curve C of place, image border is the shortest.
Find the solution the extreme value of following formula (1-3) functional (this functional replaces with E (I) for convenience of explanation) and can obtain the necessary condition of finding the solution the functional extreme value, that is: according to Euler-Lagrange equation (Euler-Lagrange function)
∂ F ∂ I - d dx ( ∂ F ∂ Ix ) - d dy ( ∂ F ∂ Iy ) = 0 - - - ( 2 - 4 )
The 3rd step: verified for the partial differential equation (PDE, Partial Differential Equation) of following formula (2-4), adopting classical process of iteration for this partial differential equation is the gradient descent method, can get following curve evolvement equation:
∂ C ∂ t = g ( C ) κN - ( ▿ g · N ) N - - - ( 2 - 5 )
K is curvature of curve in the formula (2-5), and N is normal to curve.
What need to describe in detail is that the physical significance of formula (2-5) comprising: at the image flat site, because g is close to 1, and
Figure BDA0000140259130000093
Be similar to zero, so formula (2-5) has only first on the right to work, this is simple contour curvature evolution equation; At the image border annex, because gradient is much larger than parameter K, so at this moment g has only back one to work close to zero.
Because
Figure BDA0000140259130000094
Direction always point to the direction that g increases, so no matter in interior of articles or outside,
Figure BDA0000140259130000095
Always point to the direction of leaving the edge.Supposition curve C (t) has moved near the edge of object now, and the method direction N of C (t) always points to the inside of curve in accordance with regulations.So, if the position of current curves is the outside that is in the border, so N will with Direction is opposite, namely
Figure BDA0000140259130000097
For negative, thereby
Figure BDA0000140259130000098
Consistent with N, visible second effect at this moment is to make curve C (t) from the outside, border, to the direction motion on more close border.
In like manner, if the position of current curves is the inside that is in the border, so N will with
Figure BDA0000140259130000099
Direction is identical, namely
Figure BDA00001402591300000910
For on the occasion of, thereby
Figure BDA00001402591300000911
Opposite with N, visible second effect at this moment is to make C (t) from inside, border, to the direction motion on more close border.
By above reasoning as can be known, second behavior is the local maximum of curve C (t) being pushed to image gradient on the right of in the formula (2-5).
The 4th step: according to verified curve evolvement equation and the relation between the level set, the corresponding horizontal collected explanations or commentaries of formula (2-5) is:
∂ C ∂ t = g ( C ) | ▿ φ | κ - ( ▿ g · ▿ φ ) - - - ( 2 - 6 )
φ is zero level collection curve in the formula (2-6).
The 5th step: the partial differential equation shown in the formula (2-6) is carried out discretize on the room and time, ((2-6) is converted into corresponding difference equation with formula, adopt iterative computation to obtain final numerical solution, the meaning of the numerical solution that this is final is: final numerical solution is the closed curve of split image.
Also need to illustrate the image partition method of only having considered image area information in the present embodiment, also claim the Chan-Vese Image Segmentation Model, the basic ideas of this method only consider that to above-mentioned the image partition method of image edge information is similar, and its key distinction is the energy function difference that arranges.Describe in detail with reference to as follows:
Suppose that C is the evolution curve, Ω is image-region, ω represent the to develop interior zone (inside (C)) of curve C, then the perimeter of curve C (outside (C)) be Ω ω (" " difference set of two set of symbology).For the characteristics of this model are described, lift a simple example: suppose image u 0In only have two homogeneous regions, the zone in gray-scale value be respectively
Figure BDA0000140259130000102
With
Figure BDA0000140259130000103
Further the hypothesis gray-scale value is
Figure BDA0000140259130000104
The zone be zone to be detected, its border is C 0Can obtain examined object border C by above-mentioned hypothesis 0Inside, namely examined object inside has
Figure BDA0000140259130000105
C 0The outside has
Figure BDA0000140259130000106
Therefore, can suppose that energy equation is as follows:
F 1(C)+F 2(C)=
inside(C)|u 0(x,y)-c 1| 2dxdy+∫ outside(C)|u 0(x,y)-c 2| 2dxdy
(2-7)
Wherein, C represents the arbitrary curve in the evolutionary process, C 1Be the average gray of all pixels of C inside, C 2Average gray for all pixels of C outside.
Can be drawn by (2-7), when curve C develops to object boundary C 0The time, F 1(C)+F 2(C) can obtain minimum value.That is:
Min{F 1(C)+F 2(C)}≈0≈F 1(C 0)+F 2(C 0) (2-8)
The total energy equation of Chan-Vese Image Segmentation Model not only comprises the energy term in (2-7), also comprises some relevant informations of evolution curve C, as the length of curve C, and the interior zone area of curve C.Therefore, the energy equation of Chan-Vese Image Segmentation Model is defined as follows:
F(c 1,c 2,C)=μLength(C)+vArea(inside(C))
1inside(C)|u 0(x,y)-c 1| 2dxdy (2-9)
2outside(C)|u 0(x,y)-c 2| 2dxdy
Wherein, μ, v, λ 1, λ is positive weight coefficient μ 〉=0 of each energy term, v 〉=0, λ 1>0, λ 2>0, and be fixing parameter.In numerical solution, can get λ 12=0, v=0.General μ, v, λ 1, λ 2Value the experience data are arranged.
In order to find the solution the energy functional shown in the formula (2-9), introduced Level Set Method.
If (x is interior just outer negative symbolic distance function y) to φ, and zero level collection curve is represented curve C, that is:
C = &PartialD; &omega; = ( x , y ) &Element; &Omega; : &phi; ( x , y ) = 0 , inside ( C ) = &omega; = ( x , y ) &Element; &Omega; : &phi; ( x , y ) > 0 , outside ( C ) = &Omega; \ &omega; = ( x , y ) &Element; &Omega; : &phi; ( x , y ) < 0 - - - ( 2 - 10 )
Introduce Heaviside function and a Di Lake function δ, they are defined as follows:
H ( z ) = 1 , if z &GreaterEqual; 0 0 , if z < 0 , - - - ( 2 - 11 )
&delta; ( z ) = d dz H ( z ) - - - ( 2 - 12 )
Then the every of the energy functional shown in the formula (2-9) with level set representations is:
First zero level collection length of curve is:
Length&phi; = 0 = &Integral; &Omega; | &dtri; H ( x , y ) ) | dxdy = &Integral; &Omega; &delta; 0 ( &phi; ( x , y ) ) | &dtri; &phi; ( x , y ) | dxdy
(2-13)
Second zero level collection curve interior zone area is:
Areaφ=∫ ΩH(φ(x,y))dxdy≥0 (2-14)
The variance of third and fourth zero level collection curve interior zone and the variance of curve perimeter.
φ>0|u 0(x,y)-c 1|dxdy=∫ Ω|u 0(x,y)-c 1| 2H(φ(x,y))dxdy
φ>0|u 0(x,y)-c 2|dxdy=∫ Ω|u 0(x,y)-c 2| 2(1-H(φ(x,y)))dxdy
(2-15)
So gross energy equation F (c 1, c 2, φ) can be expressed as following form:
F ( c 1 , c 2 , &phi; ) = &mu; &Integral; &Omega; &delta; ( &phi; ( x , y ) ) | &dtri; &phi; ( x , y ) | dxdy
+ &nu; &Integral; &Omega; H ( &phi; ( x , y ) ) dxdy
+ &lambda; 1 &Integral; &Omega; | u 0 ( x , y ) - c 1 | 2 H ( &phi; ( x , y ) ) dxdy
+ &lambda; 2 &Integral; &Omega; | u 0 ( x , y ) - c 2 | 2 ( 1 - H ( &phi; ( x , y ) ) ) dxdy - - - ( 2 - 16 )
c 1, c 2Be defined as follows:
c 1 ( &phi; ) = average ( u 0 ) in { &phi; &GreaterEqual; 0 } c 2 ( &phi; ) = average ( u 0 ) in { &phi; < 0 } - - - ( 2 - 17 )
In order to calculate the corresponding Eulerian equation of zero level set function, Heaviside function H and Di Lake function δ are adjusted slightly, use H εAnd δ εExpression, wherein ε → 0.At this time can be similar to and obtain δ ε=δ ' εIn the gross energy equation that is based on ε be:
F ( c 1 , c 2 , &phi; ) = &mu; &Integral; &Omega; &delta; &epsiv; ( &phi; ( x , y ) ) | &dtri; &phi; ( x , y ) | dxdy
+ &nu; &Integral; &Omega; H &epsiv; ( &phi; ( x , y ) ) dxdy
+ &lambda; 1 &Integral; &Omega; | u 0 ( x , y ) - c 1 | 2 H &epsiv; ( &phi; ( x , y ) ) dxdy
+ &lambda; 2 &Integral; &Omega; | u 0 ( x , y ) - c 2 | 2 ( 1 - H &epsiv; ( &phi; ( x , y ) ) ) dxdy - - - ( 2 - 18 )
Keep c in the formula (2-18) 1, c 2Immobilize, only adjust φ and make the F minimum.Introduce time step t>0, then φ (Eulerian equation y) is for t, x:
&PartialD; &phi; &PartialD; t = &delta; &epsiv; ( &phi; ) [ &mu; div ( &dtri; &phi; | &dtri; &phi; | ) - &nu; - &lambda; 1 ( u 0 - c 1 ) 2 + &lambda; 2 ( u 0 - c 2 ) 2 ] (2-19)
φ(0,x,y)=φ 0(x,y)inΩ
Wherein initialization curve φ (0, x, y)=φ 0(x, y).
The verified numerical solution for the partial differential equation shown in the formula (2-19) is that (2-19) is converted into corresponding difference equation with formula to formula (2-19) discretize on time and space, adopts iterative computation to obtain final numerical solution.
The image splitting scheme of above-mentioned explanation is the image partition method of considering image area information, i.e. Chan-Vese Image Segmentation Model.When handling ill-defined picture, can access good segmentation effect based on the image splitting scheme of image area information.
The embodiment of the invention provides a kind of image edge information of not only considering, also considers the image splitting scheme of the area information of image, can obtain the better pictures segmentation effect.Following is to describe in detail.
In the explanation about the Chan-Vese Image Segmentation Model, introduced, when considering factors such as arc length and area, total energy equation of supposing such as formula (2-9), first and second physical significance refers on the right of in the formula (2-9): under the identical situation of area, arc length is more short, and the expression curve is more smooth.Third and fourth is in order to guarantee that different zones can be divided into different parts on the right of in the formula (2-9).
In conjunction with the splitting scheme of only considering image edge information of above explanation with only consider the splitting scheme (being the Chan-Vese Image Segmentation Model) of the area information of image, ignore the slickness at edge.Can obtain following energy functional:
F ( c 1 , c 2 , &phi; ) = &lambda; &Integral; C gds
+ &Integral; &Integral; &Omega; 1 &lambda; 1 | u 0 ( x , y ) - c 1 | 2 dxdy - - - ( 2 - 20 )
+ &Integral; &Integral; &Omega; 2 &lambda; 2 | u 0 ( x , y ) - c 2 | 2 dxdy
For in conjunction with Level Set Method, zero level collection curve φ and the curved profile C of above definition are associated, be defined as follows:
C = &PartialD; &omega; = ( x , y ) &Element; &Omega; : &phi; ( x , y ) = 0 , inside ( C ) = &omega; = ( x , y ) &Element; &Omega; : &phi; ( x , y ) > 0 , outside ( C ) = &Omega; \ &omega; = ( x , y ) &Element; &Omega; : &phi; ( x , y ) < 0 - - - ( 2 - 21 )
Introduce Heaviside function and Dirac function δ, they are defined as follows:
H ( z ) = 1 , if z &GreaterEqual; 0 0 , if z < 0 , &delta; 0 ( z ) = d dz H ( z ) - - - ( 2 - 22 )
To including the function g definition of marginal information, can in the present embodiment g be defined as follows according to design to the g definition:
g ( x , y ) = 1 1 + ( &dtri; I ( x , y ) / K ) p , p = 1,2 - - - ( 2 - 23 )
Therefore, the expression formula of the energy equation shown in the formula (2-20) is converted to following expression:
F ( c 1 , c 2 , &phi; ) = &lambda; &Integral; &Omega; g &CenterDot; &delta; ( &phi; ( x , y ) ) | &dtri; &phi; ( x , y ) | dxdy
+ &lambda; 1 &Integral; &Omega; | u 0 ( x , y ) - c 1 | 2 H ( &phi; ( x , y ) ) dxdy - - - ( 2 - 24 )
+ &lambda; 2 &Integral; &Omega; | u 0 ( x , y ) - c 2 | 2 ( 1 - H ( &phi; ( x , y ) ) ) dxdy
When other parameters fixedly the time, with respect to c 1, c 2Minimize following formula, can obtain:
c i = &Integral; &Integral; &Omega; i u ( x , y ) dxdy / &Integral; &Integral; &Omega; i dxdy , i = 1,2 - - - ( 2 - 25 )
Work as c 1, c 2In the time of fixedly, minimize above-mentioned partial differential equation with respect to φ, can obtain:
&PartialD; &phi; &PartialD; t = &delta; &epsiv; [ &lambda; div ( g &dtri; &phi; | &dtri; &phi; | ) - &lambda; 1 ( u 0 - c 1 ) 2 + &lambda; 2 ( u 0 - c 2 ) 2 ] - - - ( 2 - 26 )
Numerical solution for the partial differential equation shown in the formula (2-26) is to formula (2-26) discretize on time and space, according to pixels be divided into image latticed, to be divided into several time periods Δ t the time, formula (2-26) is converted into corresponding difference equation (as formula (2-28)), adopts iterative computation to obtain final numerical solution.
Wherein, the Dirac function that adopts in real image is cut apart is as follows:
&delta; &epsiv; ( x ) = 0 , | x | > &epsiv; 1 2 &epsiv; [ 1 + cos ( &pi;x &epsiv; ) ] , | x | &le; &epsiv; - - - ( 2 - 27 )
Wherein, adopt the Di Lake function of ε=1 in the present embodiment.Iterative process only needs simple difference, in the following way estimation:
&phi; i , j n + 1 - &phi; i , j n &Delta;t = L ( &phi; i , j n ) - - - ( 2 - 28 )
Wherein,
Figure BDA0000140259130000154
Representative grid (i j) locates the level set function value of the n time iteration,
Figure BDA0000140259130000155
Be the value of the n+1 time iteration,
Figure BDA0000140259130000156
Represent the value on formula (2-26) equal sign right side.
In the usage level diversity method carries out process that image cuts apart, need to calculate each Δ t constantly, each net point in the full images scope is to the distance of current outline line, tries to achieve distance and be zero point
Figure BDA0000140259130000157
Connect all these then successively and put to regain new preliminary examination contour curve, so iterate to cut apart up to image and finish.
Above-mentioned is that the embodiment of the invention provides a kind of image edge information of not only considering, also considers the image splitting scheme of the area information of image.As shown in Figure 4, this scheme specifically comprises in the implementation of computing machine:
Step 301: initialization zero level collection profile is assumed to be φ 0
Wherein, initialization zero level collection profile φ 0It can be the closed curve of picked at random.
Step 302: at each Δ t constantly, the formula on computing formula (2-26) equal sign the right remembers that its value is
Figure BDA0000140259130000161
Wherein, in the formula (2-26), μ, λ, λ 1, λ 2Be the constant coefficient of selecting according to actual conditions, other parameter can be by obtaining pending image calculation in the formula (2-26).Need to prove that also the partial differential equation shown in the formula (2-26) is to be converted to by the energy equation that has comprised image edge information and image area information.Wherein, image edge information in the energy equation is represented by edge indicator function g, image area information in the energy equation is embodied by formula (2-7), can be understood as image area information and represents by the variance of curve interior zone and the variance of curve perimeter.
Step 303: according to formula (2-28), and known initialization zero level collection profile, iterative computation
Figure BDA0000140259130000162
For example: when initialization zero level collection profile is φ 0, calculate by step 302
Figure BDA0000140259130000163
Then
Figure BDA0000140259130000164
Can obtain easily with reference to following formula (2-29).
Figure BDA0000140259130000165
Get access to reference to formula (2-29) iteration
Figure BDA0000140259130000166
Step 304: zero level collection curve and the symbolic distance function that calculates according to current iteration regularly reinitializes level set function, according to the profile that reinitializes with calculate
Figure BDA0000140259130000167
And formula (2-29), iterative computation zero level collection curve;
It will be appreciated that in the calculating of step 303, level set function can be undergone mutation, in order to remedy the sudden change in the level set function evolutionary process, need periodically level set function be reinitialized to the level set function with the symbolic distance functional similarity.Timing initialization zero level collection profile in the step 304 is not picked at random, is according to the symbolic distance function each point on the image that represents level set to be carried out assignment again, thereby obtains the initialization contour curve.
Step 305: when
Figure BDA0000140259130000168
With
Figure BDA0000140259130000169
Value identical (perhaps approximate identical), then iteration finishes, otherwise continues next iteration.
The closed curve that the point that iteration acquires after finishing forms is cut apart image.
Image partition method by embodiment of the invention explanation, this method is not only considered image edge information, also consider the area information of image, these information are represented by energy functional, by finding the solution minimizing of energy functional, thereby acquire the closed curve of split image, this image partition method comprises that for ill-defined image noisy image has more excellent segmentation effect.
Embodiment four
The embodiment of the invention provides a kind of image partition method, this image partition method is similar to embodiment two, all consider image edge information, area information with image, the difference of this embodiment and embodiment two is, in iterative computation, need not in this example to reinitialize, increased computing velocity.
It will be appreciated that at first cut apart in the calculating at traditional images, level set function can be undergone mutation, in order to remedy the sudden change in the level set function evolutionary process, periodically level set function is reinitialized to the level set function similar to meeting distance function.The equation that reinitializes of standard is:
&PartialD; &phi; &PartialD; t = sign ( &phi; 0 ) ( 1 - | &dtri; &phi; | ) - - - ( 3 - 1 )
Wherein, φ 0Be level set function to be reinitialized, sign is-symbol distance function.The most algorithm that reinitializes is based on partial differential equation or its mutation.Yet there is shortcoming in these methods, namely work as φ 0And unevenness or φ 0One side when more precipitous than another side, the moving direction of zero level set function can be very inaccurate.Moreover, when level set function φ and symbolic distance function difference were very big, this moment, traditional Level Set Method was difficult to level set function is reinitialized to the symbolic distance function.In the evolutionary process of time, even iteration several times, level set function also is easy to deviate from the symbolic distance function, and is particularly short inadequately when step-length, deviates from easily.Therefore, the interval that reinitializes often can not be too of a specified duration.
Heavily initialization has extensively been applied to stablize evolution for keeping curve, and obtains good experimental result.But from angle of practice, heavy initialized process still too complicated, computing time is long.
More than about in the description that reinitializes as can be seen, the key in the evolution process is to keep level set function to be similar to the Fu Hai distance function, particularly the zero level collection near.As everyone knows, the symbolic distance function must satisfy
Figure BDA0000140259130000172
Otherwise function phi satisfies arbitrarily
Figure BDA0000140259130000173
Function can be expressed as the product of a symbolic distance function and a constant.In view of the symbolic distance function property, proposed as lower integral:
P ( &phi; ) = 1 2 &Integral; &Omega; ( | &dtri; &phi; | - 1 ) 2 dxdy - - - ( 3 - 2 )
By introducing the compensation of internal energy P (φ), the level set function φ in the evolutionary process will maintain voluntarily and be similar to the symbolic distance function.Therefore, need not to reinitialize process.
In view of above-mentioned explanation, the basis of the energy equation (2-24) that the embodiment of the invention can propose at embodiment two proposes a kind of new energy equation:
F ( c 1 , c 2 , &phi; ) = &mu;P ( &phi; )
+ &lambda; &Integral; C gds
+ &Integral; &Integral; &Omega; 1 &lambda; 1 | u 0 ( x , y ) - c 1 | 2 dxdy (3-3)
+ &Integral; &Integral; &Omega; 2 &lambda; 2 | u 0 ( x , y ) - c 2 | 2 dxdy
For in conjunction with Level Set Method, zero level collection curve φ and the curved profile C of above definition are associated, be defined as follows:
C = &PartialD; &omega; = ( x , y ) &Element; &Omega; : &phi; ( x , y ) = 0 , inside ( C ) = &omega; = ( x , y ) &Element; &Omega; : &phi; ( x , y ) > 0 , outside ( C ) = &Omega; \ &omega; = ( x , y ) &Element; &Omega; : &phi; ( x , y ) < 0 - - - ( 3 - 4 )
Introduce Heaviside function and Dirac function δ, they are defined as follows:
H ( z ) = 1 , if z &GreaterEqual; 0 0 , if z < 0 , &delta; 0 ( z ) = d dz H ( z ) - - - ( 3 - 5 )
To including the function g definition of marginal information, can in the present embodiment g be defined as follows according to design to the g definition:
g ( x , y ) = 1 1 + ( &dtri; I ( x , y ) / K ) p , p = 1,2 - - - ( 3 - 6 )
Therefore, the expression formula of the energy equation shown in the formula (2-20) is converted to following expression:
F ( c 1 , c 2 , &phi; ) = &mu; 2 &Integral; &Omega; ( | &dtri; &phi; | - 1 ) 2 dxdy
+ &lambda; &Integral; &Omega; g &CenterDot; &delta; ( &phi; ( x , y ) ) | &dtri; &phi; ( x , y ) | dxdy
+ &lambda; 1 &Integral; &Omega; | u 0 ( x , y ) - c 1 | 2 H ( &phi; ( x , y ) ) dxdy - - - ( 3 - 7 )
+ &lambda; 2 &Integral; &Omega; | u 0 ( x , y ) - c 2 | 2 ( 1 - H ( &phi; ( x , y ) ) ) dxdy
When other parameters fixedly the time, with respect to c 1, c 2Minimize following formula, can obtain:
c i = &Integral; &Integral; &Omega; i u ( x , y ) dxdy / &Integral; &Integral; &Omega; i dxdy , i = 1,2 - - - ( 3 - 8 )
Work as c 1, c 2In the time of fixedly, minimize above-mentioned partial differential equation with respect to φ, can obtain:
&PartialD; &phi; &PartialD; t = &mu; [ &Delta;&phi; - div ( &dtri; &phi; | &dtri; &phi; | ) ] + &delta; &epsiv; [ &lambda; div ( g &dtri; &phi; | &dtri; &phi; | ) - &lambda; 1 ( u 0 - c 1 ) 2 + &lambda; 2 ( u 0 - c 2 ) 2 ] - - - ( 3 - 9 )
Numerical solution for the partial differential equation shown in the formula (3-9) is to formula (3-9) discretize on time and space, according to pixels be divided into image latticed, to be divided into several time periods Δ t the time, formula (3-9) is converted into corresponding difference equation (as formula (3-11)), adopts iterative computation to obtain final numerical solution.
Wherein, the Dirac function that adopts in real image is cut apart is as follows:
&delta; &epsiv; ( x ) = 0 , | x | > &epsiv; 1 2 &epsiv; [ 1 + cos ( &pi;x &epsiv; ) ] , | x | &le; &epsiv; - - - ( 3 - 10 )
Wherein, adopt the Di Lake function of ε=1 in the present embodiment.Iterative process only needs simple difference, in the following way estimation:
&phi; i , j n + 1 - &phi; i , j n &Delta;t = L ( &phi; i , j n ) - - - ( 3 - 11 )
Wherein,
Figure BDA0000140259130000199
Representative grid (i j) locates the level set function value of the n time iteration,
Figure BDA00001402591300001910
Be the value of the n+1 time iteration,
Figure BDA0000140259130000201
Represent the value on formula (3-9) equal sign right side.
In the usage level diversity method carries out process that image cuts apart, need to calculate each Δ t constantly, each net point in the full images scope is to the distance of current outline line, tries to achieve distance and be zero point Connect all these then successively and put to regain new preliminary examination contour curve, so iterate to cut apart up to image and finish.
Above-mentioned is that the embodiment of the invention provides a kind of image edge information of not only considering, also considers the image splitting scheme of the area information of image.As shown in Figure 5, this scheme specifically comprises in the implementation of computing machine:
Step 401: initialization zero level collection profile is assumed to be φ 0
Wherein, initialization zero level collection profile φ 0It can be the closed curve of picked at random.
Step 402: at each Δ t constantly, the formula on computing formula (3-9) equal sign the right remembers that its value is
Figure BDA0000140259130000203
Wherein, in the formula (3-9), μ, λ, λ 1, λ 2Be the constant coefficient of selecting according to actual conditions, other parameter can be by obtaining pending image calculation in the formula (3-9).Need to prove that also the partial differential equation shown in the formula (3-9) is by having comprised image edge information, image area information, and keep the energy equation of the internal energy P of level set function φ and symbolic distance approximation to function to be converted to.Wherein, the image edge information in the energy equation is represented that by edge indicator function g the image area information in the energy equation is embodied by formula (2-7), and image area information is represented by the variance of curve interior zone and the variance of curve perimeter.
Step 403: according to formula (3-11), and known initialization zero level collection profile, iterative computation
Figure BDA0000140259130000204
For example: when initialization zero level collection profile is φ 0, calculate by step 202 Then
Figure BDA0000140259130000206
Can obtain easily with reference to following formula (2-29).
Get access to reference to formula (3-12) iteration
Figure BDA0000140259130000208
Step 404: when
Figure BDA0000140259130000209
With
Figure BDA00001402591300002010
Value identical (perhaps approximate identical), then iteration finishes, otherwise continues next iteration.
The closed curve that the point that iteration acquires after finishing forms is cut apart image.
Image partition method by embodiment of the invention explanation, this method is not only considered image edge information, also consider the area information of image, in the design of energy functional, increased simultaneously the compensation P (φ) of internal energy, these information are represented by energy functional, by finding the solution minimizing of energy functional, thereby acquire the closed curve of split image, this image partition method is for ill-defined image, comprise that noisy image has more excellent segmentation effect, and need not initialization, reduced the complexity of calculating.
Under the following three kinds of situations of giving an example out, the experimental result that the image partition method that adopts embodiment four to provide obtains, and this experimental result and prior art compared.Specific as follows:
Situation one: the image to a plurality of objects is cut apart.
The effect that the method that adopts present embodiment to provide as first behavior among Fig. 6 is cut apart, adopt Chunming Li method gained experimental result as second behavior among Fig. 6, two kinds of method initial profile lines are identical, in the ChunmingLi method, v=3.0 is positive number, outline line develops and can only inwardly contract, so the object representation that has in the net result is imperfect, and for example the arm segment of the shank of toy doggie and the right rag baby all is not included in the net result.And the method that present embodiment provides has well solved the problems referred to above, because improved dividing method is based on area information, contracting still extends out in the outline line so do not need to specify, and initialization profile at an arbitrary position all can obtain good segmentation result.The iterations aspect, Chunming Li method is lasted 17.19 seconds through 589 iteration, and the method that present embodiment provides is only used iteration 22 times, lasts 1.03 seconds.
Situation two: the image that noise is arranged is cut apart.
The effect that the method that adopts present embodiment to provide as first behavior among Fig. 7 is cut apart adopts Chunming Li method gained experimental result as second behavior among Fig. 6, and two kinds of method initial profile lines are identical.Contour curve can't effectively be crossed noise and arrive object bounds in Chunming Li method, because this method is based on rim detection, it is the edge that the noise in the image also is construed to, so can't effectively develop, still can't restrain through 2000 iteration, be 20.66 seconds operation time.The method that present embodiment provides can effectively be cut apart noise image, and iterations only is 32 times, and be 0.92 second operation time.
Situation three: cut apart ill-defined image is arranged.
The effect that the method that adopts present embodiment to provide as first behavior among Fig. 8 is cut apart adopts Chunming Li method gained experimental result as second behavior among Fig. 8, and two kinds of method initial profile lines are identical.Former figure is the nebula image, even naked eyes also can't shrewd its border.Adopt the peripheral boundary that finds that Chunming Li method can only blur, can't further inwardly tighten.Through the basic no change of image outline after 1000 times the iteration, manual with its end, be 132.32 seconds operation time.The method that present embodiment provides has accurately found object outline in the nebula image, and iterations is 45 times, 3.11 seconds operation time.
By giving an example of above three kinds of experimental results, find that the image partition method that the embodiment of the invention provides has better segmentation effect for edge fog, image noisy, a plurality of objects.
Embodiment five
The embodiment of the invention provides a kind of image segmenting device, and as shown in Figure 9, this device comprises: first initialization unit, 501, the first computing units, 502, the second computing units 503 reinitialize unit 504 and first judging unit 505.
Wherein, first initialization unit 501 is used for initialization zero level collection profile;
Need to prove that initialization zero level collection profile can be the closed curve of choosing at random.
First computing unit 502 is used for image parameter information and N sub-level collection profile with pending image, and the partial differential equation that substitution is preset is calculated the difference of N sub-level set function; Wherein, the described partial differential equation that presets is obtained by the energy equation conversion that has comprised image edge information and image area information; Zero level collection profile when the N value is 0 is initialized zero level collection profile;
For the ease of understanding present embodiment, general dotted line evolutionary model is realized thinking brief description that image is cut apart herein.The curve evolvement model can comprise:
The first step: be that energy function (as E (u)) is asked minimization problem, i.e. minE (u) with curve evolvement;
Second step: adopt the variational method, the energy function minimization problem is converted to corresponding Euler-Lagrange equation
Figure BDA0000140259130000221
The problem of finding the solution;
The 3rd step: find the solution equation in second step by the gradient descent method, obtain the curve evolvement equation that t in time develops;
The 4th step: introduce the Level Set Method of curve, obtain the level set EVOLUTION EQUATION of curve;
The 5th step: the level set equation carry out numerical discretizationization, carry out iteration according to corresponding difference equation and obtain the final curve of cutting apart.In the realization operation of computing machine, calculate all and in the 5th step, carry out.
By above five operations, to the thinking of curve evolvement by basic understanding.All unit modules were used for realizing to the 5th step of curve evolvement thinking in this device.Difference with the prior art is, in embodiments of the present invention, considers in the energy equation to have comprised image edge information and image area information that making can have better segmentation effect to ill-defined image by this image segmenting device.
Image edge information in the said energy equation can be to be represented by edge indicator function g, image area information in the energy equation is embodied by formula (2-7), can be understood as image area information and represents by the variance of curve interior zone and the variance of curve perimeter.
Second computing unit 503 is used for the difference with initialization zero level collection profile and described N sub-level set function, and the iterative formula that substitution is preset calculates the zero level collection curve of iteration the N+1 time;
Reinitialize unit 504, be used for timing according to zero level collection curve and symbolic distance function that current iteration calculates, reinitialize level set function;
Then, first computing unit 502 also is used for image parameter information and the described level set function that reinitializes with pending image, and the partial differential equation that substitution is preset is calculated the difference of M sub-level set function; Level set function when the M value is 0 is initialized level set function again; Second computing unit 503 also is used for the described difference that reinitializes level set function and described M sub-level set function, and the iterative formula that substitution is preset calculates the zero level collection curve of iteration the M+1 time.
It will be appreciated that, in the calculating by 503 execution of second computing unit, level set function can be undergone mutation, and in order to remedy the sudden change in the level set function evolutionary process, need periodically level set function be reinitialized to the function with the symbolic distance functional similarity.Reinitializing unit 504 timing initialization zero level collection profiles is not picked at random, is according to the symbolic distance function each point on the image that represents level set to be carried out assignment again, thereby obtains the initialization contour curve.
First judging unit 505; For judging whether the zero level collection curve that current iteration calculates is identical with the zero level collection curve that last iterative computation goes out, if iteration finishes, and if not, notifies second computing unit 503.
The zero level collection curve that iteration finishes to obtain is the curve of split image.
Image segmenting device by embodiment of the invention explanation, this device is not only considered image edge information, also consider the area information of image, these information are represented by energy functional, by finding the solution minimizing of energy functional, thereby acquire the closed curve of split image, this image partition method comprises that for ill-defined image noisy image has more excellent segmentation effect.
The explanation of the image partition method that the explanation of the image partition method that provides about present embodiment also can reference example one, three provides.
Embodiment six
The embodiment of the invention provides a kind of image segmenting device, and as shown in figure 10, this device comprises: second initialization unit, 601, the three computing units 602, the four calculate single 603 and second judging unit 604.
Wherein, second initialization unit 601 is used for initialization zero level collection profile;
The 3rd computing unit 602 is used for image parameter information and N sub-level collection profile with pending image, and the partial differential equation that substitution is preset is calculated the difference of N sub-level set function; Wherein, the described partial differential equation that presets is by having comprised image edge information, and the energy equation conversion of the internal energy of image area information and maintenance zero level set function and symbolic distance functional similarity obtains; Zero level collection profile when the N value is 0 is initialized zero level collection profile;
Wherein, image edge information in the energy equation is represented by edge indicator function g, image area information in the energy equation is embodied by formula (2-7), can be understood as image area information and represents by the variance of curve interior zone and the variance of curve perimeter.
The 4th calculates singly 603, is used for the difference with initialization zero level collection profile and described N sub-level set function, and the iterative formula that substitution is preset calculates the zero level collection curve of iteration the N+1 time;
Second judging unit 604 is for judging whether the zero level collection curve that current iteration calculates is identical with the zero level collection curve that last iterative computation goes out, if iteration finishes, and if not, notifies the 4th computing unit.
Image segmenting device by embodiment of the invention explanation, this device is not only considered image edge information, also consider the area information of image, and make zero level set function φ and symbolic distance function keep similar internal energy P, these information are represented by energy functional, by finding the solution minimizing of energy functional, thereby acquire the closed curve of split image, this image partition method is for ill-defined image, comprise that noisy image has more excellent segmentation effect, and need not initialization, reduced the complexity of calculating.
The explanation of the image partition method that the explanation of the image partition method that provides about present embodiment also can reference example two, four provides.
One of ordinary skill in the art will appreciate that all or part of step that realizes in above-described embodiment method is to instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
More than a kind of image partition method provided by the present invention and device are described in detail, for one of ordinary skill in the art, thought according to the embodiment of the invention, part in specific embodiments and applications all can change, in sum, this description should not be construed as limitation of the present invention.

Claims (12)

1. an image partition method is characterized in that, described method comprises:
Initialization zero level collection profile;
With image parameter information and the N sub-level collection profile of pending image, the partial differential equation that substitution is preset is calculated the difference of N sub-level set function; Wherein, the described partial differential equation that presets is obtained by the energy equation conversion that has comprised image edge information and image area information; N is zero-based integer, and the zero level collection profile when the N value is 0 is initialized zero level collection profile;
With the difference of initialization zero level collection profile and described N sub-level set function, the iterative formula that substitution is preset calculates the zero level collection curve of iteration the N+1 time;
Regularly zero level collection curve and the symbolic distance function that calculates according to current iteration reinitializes level set function;
With image parameter information and the described level set function that reinitializes of pending image, the described partial differential equation of substitution is calculated the difference of M sub-level set function; M is zero-based integer, and the level set function when the M value is 0 is initialized level set function again;
With the described difference that reinitializes level set function and described M sub-level set function, the iterative formula that substitution is preset calculates the zero level collection curve of iteration the M+1 time;
Judge whether the zero level collection curve that current iteration calculates is identical with the zero level collection curve that last iterative computation goes out, if identical, iteration finishes.
2. method according to claim 1 is characterized in that, described method also comprises:
If the zero level collection curve that the zero level collection curve that current iteration calculates and last iterative computation go out is inequality, repeat described iterative computation zero level collection curve.
3. method according to claim 1 is characterized in that, described image edge information represents that by the edge indicator function described image area information is represented by the variance of curve interior zone and the variance of curve perimeter.
4. an image partition method is characterized in that, described method comprises:
Initialization zero level collection profile;
With image parameter information and the N sub-level collection profile of pending image, the partial differential equation that substitution is preset is calculated the difference of N sub-level set function; Wherein, the described partial differential equation that presets is by having comprised image edge information, and the energy equation conversion of the internal energy of image area information and maintenance zero level set function and symbolic distance functional similarity obtains; N is zero-based integer, and the zero level collection profile when the N value is 0 is initialized zero level collection profile;
With the difference of initialization zero level collection profile and described N sub-level set function, the iterative formula that substitution is preset calculates the zero level collection curve of iteration the N+1 time;
Judge whether the zero level collection curve that current iteration calculates is identical with the zero level collection curve that last iterative computation goes out, if identical, iteration finishes.
5. method according to claim 4 is characterized in that, described method also comprises:
If the zero level collection curve that the zero level collection curve that current iteration calculates and last iterative computation go out is inequality, repeat described iterative computation zero level collection curve.
6. method according to claim 4 is characterized in that, described image edge information represents that by the edge indicator function described image area information is represented by the variance of curve interior zone and the variance of curve perimeter.
7. an image segmenting device is characterized in that, described device comprises:
First initialization unit, first computing unit, second computing unit reinitializes unit and first judging unit;
Described first initialization unit is used for initialization zero level collection profile;
Described first computing unit is used for image parameter information and N sub-level collection profile with pending image, and the partial differential equation that substitution is preset is calculated the difference of N sub-level set function; Wherein, the described partial differential equation that presets is obtained by the energy equation conversion that has comprised image edge information and image area information; N is zero-based integer, and the zero level collection profile when the N value is 0 is initialized zero level collection profile;
Described second computing unit is used for the difference with initialization zero level collection profile and described N sub-level set function, and the iterative formula that substitution is preset calculates the zero level collection curve of iteration the N+1 time;
The described unit that reinitializes is used for timing according to zero level collection curve and symbolic distance function that current iteration calculates, reinitializes level set function; Then, described first computing unit also is used for image parameter information and the described level set function that reinitializes with pending image, and the described partial differential equation of substitution is calculated the difference of M sub-level set function; M is zero-based integer, and the level set function when the M value is 0 is initialized level set function again; Described second computing unit also is used for the described difference that reinitializes level set function and described M sub-level set function, and the iterative formula that substitution is preset calculates the zero level collection curve of iteration the M+1 time;
Described first judging unit, for judging whether the zero level collection curve that current iteration calculates is identical with the zero level collection curve that last iterative computation goes out, if identical, iteration finishes.
8. device according to claim 7, it is characterized in that, if it is inequality that described first judging unit also is used for the zero level collection curve that zero level collection curve that current iteration calculates and last iterative computation go out, notify described second computing unit to repeat described iterative computation zero level collection curve.
9. device according to claim 7 is characterized in that, described image edge information represents that by the edge indicator function described image area information is represented by the variance of curve interior zone and the variance of curve perimeter.
10. an image segmenting device is characterized in that, described device comprises:
Second initialization unit, the 3rd computing unit, the 4th calculates single and second judging unit;
Described second initialization unit is used for initialization zero level collection profile;
Described the 3rd computing unit is used for image parameter information and N sub-level collection profile with pending image, and the partial differential equation that substitution is preset is calculated the difference of N sub-level set function; Wherein, the described partial differential equation that presets is by having comprised image edge information, and the energy equation conversion of the internal energy of image area information and maintenance zero level set function and symbolic distance functional similarity obtains; N is zero-based integer, and the zero level collection profile when the N value is 0 is initialized zero level collection profile;
The described the 4th calculates singly, is used for the difference with initialization zero level collection profile and described N sub-level set function, and the iterative formula that substitution is preset calculates the zero level collection curve of iteration the N+1 time;
Described second judging unit, for judging whether the zero level collection curve that current iteration calculates is identical with the zero level collection curve that last iterative computation goes out, if identical, iteration finishes.
11. device according to claim 10, it is characterized in that, if it is inequality that described second judging unit also is used for the zero level collection curve that zero level collection curve that current iteration calculates and last iterative computation go out, notify described the 4th computing unit to repeat described iterative computation zero level collection curve.
12. device according to claim 10 is characterized in that, described image edge information represents that by the edge indicator function described image area information is represented by the variance of curve interior zone and the variance of curve perimeter.
CN201210053520XA 2012-03-02 2012-03-02 Image cutting method and device Pending CN103295218A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210053520XA CN103295218A (en) 2012-03-02 2012-03-02 Image cutting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210053520XA CN103295218A (en) 2012-03-02 2012-03-02 Image cutting method and device

Publications (1)

Publication Number Publication Date
CN103295218A true CN103295218A (en) 2013-09-11

Family

ID=49096024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210053520XA Pending CN103295218A (en) 2012-03-02 2012-03-02 Image cutting method and device

Country Status (1)

Country Link
CN (1) CN103295218A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111127479A (en) * 2019-12-17 2020-05-08 昆明理工大学 Level set image segmentation method based on curve area
US10884396B2 (en) 2019-02-27 2021-01-05 General Electric Company Sensor based smart segmentation

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110222749A1 (en) * 2006-07-06 2011-09-15 The Gov't Of The U.S.A. As Represented By The Secretary Of The Dept. Of Health & Human Services Hybrid segmentation of anatomical structure
CN102354396A (en) * 2011-09-23 2012-02-15 清华大学深圳研究生院 Method for segmenting image with non-uniform gray scale based on level set function

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110222749A1 (en) * 2006-07-06 2011-09-15 The Gov't Of The U.S.A. As Represented By The Secretary Of The Dept. Of Health & Human Services Hybrid segmentation of anatomical structure
CN102354396A (en) * 2011-09-23 2012-02-15 清华大学深圳研究生院 Method for segmenting image with non-uniform gray scale based on level set function

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
TONY F CHAN等: "Active Contours Without Edges", 《IEEE TRANSACTIONS ON IMAGE PROCESSING》, vol. 10, no. 2, 28 February 2001 (2001-02-28), pages 266 - 277, XP011025732 *
任继军 等: "一种新的水平集图像分割方法", 《计算机工程与应用》, vol. 43, no. 19, 31 December 2007 (2007-12-31) *
王晓飞 等: "结合边缘与区域信息的超声图像分割方法", 《计算机工程与应》, vol. 47, no. 9, 31 December 2011 (2011-12-31), pages 185 - 187 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10884396B2 (en) 2019-02-27 2021-01-05 General Electric Company Sensor based smart segmentation
CN111127479A (en) * 2019-12-17 2020-05-08 昆明理工大学 Level set image segmentation method based on curve area

Similar Documents

Publication Publication Date Title
CN106296578B (en) Image processing method and device
CN106780442B (en) Stereo matching method and system
CN104408460B (en) A kind of lane detection and tracking detection method
Fraz et al. Delineation of blood vessels in pediatric retinal images using decision trees-based ensemble classification
Kelman et al. Vision-based localisation of mature apples in tree images using convexity
CN108010081B (en) RGB-D visual odometer method based on Census transformation and local graph optimization
Mebatsion et al. A Fourier analysis based algorithm to separate touching kernels in digital images
US20130184570A1 (en) Moving object contour extraction apparatus, left ventricle image segmentation apparatus, moving object contour extraction method and left ventricle image segmentation method
US20150070354A1 (en) Computing device and method for reconstructing curved surface of point cloud data
CN105675625A (en) Method for detecting fruit surface defects by virtue of segmentation of gradient iteration threshold
CN108629809B (en) Accurate and efficient stereo matching method
CN102354396A (en) Method for segmenting image with non-uniform gray scale based on level set function
CN103514441A (en) Facial feature point locating tracking method based on mobile platform
CN102043966B (en) Face recognition method based on combination of partial principal component analysis (PCA) and attitude estimation
CN102281386A (en) Method and device for performing adaptive denoising on video image
CN103729843B (en) Medical image cutting method based on markov
CN106663315A (en) Method for denoising noisy image
CN101980285A (en) Method for restoring non-local images by combining GMRF priori
US10219688B2 (en) System and method for the selection of optical coherence tomography slices
CN103955906A (en) Criminisi image restoration method based on bat algorithm
JP2007265331A (en) Image recognition device
CN103295218A (en) Image cutting method and device
CN110929668A (en) Commodity detection method and device based on unmanned goods shelf
US20160217556A1 (en) Systems and methods for automatic image enhancement utilizing feedback control
Fernández-Caballero et al. Dynamic stereoscopic selective visual attention (DSSVA): Integrating motion and shape with depth in video segmentation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20130911

RJ01 Rejection of invention patent application after publication