[go: up one dir, main page]

CN104732551A - Level set image segmentation method based on superpixel and graph-cup optimizing - Google Patents

Level set image segmentation method based on superpixel and graph-cup optimizing Download PDF

Info

Publication number
CN104732551A
CN104732551A CN201510164483.3A CN201510164483A CN104732551A CN 104732551 A CN104732551 A CN 104732551A CN 201510164483 A CN201510164483 A CN 201510164483A CN 104732551 A CN104732551 A CN 104732551A
Authority
CN
China
Prior art keywords
image
pixel
segmentation
superpixel
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
CN201510164483.3A
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.)
Xidian University
Original Assignee
Xidian University
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 Xidian University filed Critical Xidian University
Priority to CN201510164483.3A priority Critical patent/CN104732551A/en
Publication of CN104732551A publication Critical patent/CN104732551A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

本发明涉及一种基于超像素和图割优化的水平集图像分割方法,主要解决现有技术对水平集初始位置敏感、分割效率低的问题,其实现步骤如下:1.将待分割图像I分块,得到图像I的超像素表示;2.在每个超像素中选定一个像素点,利用这些像素点构成新图像Is;3.依照Chan-Vese模型,构建新图像Is的水平集能量泛函;4.对构建的水平集能量泛函进行离散化表述;5.使用图割技术优化能量泛函,实现对新图像Is的分割;6.根据新图像Is的分割结果,完成对图像I的分割。本发明加快了图像的分割速度,减小了对水平集进行初始化位置的敏感性,能取得全局最优的分割结果,可用于自然图像、医学图像目标的快速分割与识别。

The present invention relates to a level set image segmentation method based on superpixels and graph cut optimization, which mainly solves the problems in the prior art that the initial position of the level set is sensitive and the segmentation efficiency is low. The implementation steps are as follows: 1. divide the image to be segmented into I block to obtain the superpixel representation of image I; 2. Select a pixel in each superpixel, and use these pixels to form a new image I s ; 3. According to the Chan-Vese model, construct the level set of the new image I s Energy functional; 4. Discretize the constructed level set energy functional; 5. Use graph cut technology to optimize the energy functional to realize the segmentation of the new image I s ; 6. According to the segmentation result of the new image I s , Complete the segmentation of image I. The invention accelerates the image segmentation speed, reduces the sensitivity to the initialization position of the level set, can obtain the globally optimal segmentation result, and can be used for fast segmentation and recognition of natural images and medical image objects.

Description

The level set image segmentation method of optimization is cut based on super-pixel and figure
Technical field
The invention belongs to technical field of image processing, further relate to a kind of image level collection dividing method, can be used for natural image, the Fast Segmentation of medical image target and identification.
Background technology
In mankind's activity, image is the most frequently used information carrier, and its reason is because the intuitive of image on the one hand, things represents by objectively, without the need to being subject to the impact of description person's subjective factor, being that the mankind can analyze image rapidly and understand on the other hand, obtaining image information instantaneously.
Image Engineering can be divided into image procossing, graphical analysis and image interpretation three part, and image procossing mainly gathers image, obtains image information, and carries out pretreated process to it, the technology such as main application image collection, image enhaucament, filtering; Graphical analysis mainly obtains characteristics of image and describes and interested target, and this process mainly comprises Iamge Segmentation and feature extraction; Image understanding is according to characteristics of image, studies the further feature of image, and this process relates to the contents such as target identification, scene description.Image procossing occupies critical role in Image Engineering, and on the one hand, Iamge Segmentation is the basis of target statement and pattern measurement, plays an important role to graphical analysis; On the other hand, image Segmentation Technology and image is converted into more abstract form based on the objective expression of cutting techniques, characteristic measuring techniques, and greatly reducing the data volume of the required process of image understanding, this makes further high layer analysis, image understanding and artificial intelligence become possibility.Image Segmentation Technology has been widely used in the various aspects of real life, as medical image analysis, remote Sensing Image Analysis, intelligent traffic administration system etc.
Image Segmentation Technology based on level set has become the focus direction splitting area research in recent years, comparatively unified model and framework are formed at present, it allows the topological structure of curve in evolutionary process to change, and also can obtain good segmentation result to multiple goal with the segmentation being communicated with target more.Existing level-set segmentation model has following several method:
1. based on the level-set segmentation methods of image boundary.This method is the velocity function of the gradient information tectonic level collection utilizing image, makes evolution curve approach objective contour.People [the Li C. such as such as Li, Xu C., Gui C.and Fox M., " Levelset evolution without re-initialization:a new variational formulation ", IEEE Conference onComputer Vision and Pattern Recognition, San Diego, CA, USA, pp.430-436, Jun.2005] proposing one need not initialized variational method, and the method, by definition penalty term, makes level set function close to symbolic measurement.The curve evolvement of this level-set segmentation methods based on image boundary depends on image gradient, and the Grad bounded of real image, boundary stops function can not be zero, and curve may pass border, and when picture noise is excessive, segmentation result is also undesirable.
2. based on the level-set segmentation methods of image-region.This method is the energy functional utilizing the area information of image to build level set.People [the T.Chan and L.Vese such as such as Chan, " Active contours without edges ", IEEETransactions on Image Processing, vol.10, no.2, pp.266-277,2001] by Mumford-Shah solution to model is reduced to piecewise constant, propose Chan-Vese model, can be used for the meaningless or ill-defined image of segmentation gradient, but undesirable for the image segmentation that gray scale is uneven.
3. based on the level-set segmentation methods of picture shape priori.This method is the energy functional utilizing the shape prior of image to build level set.People [the Cremers D. such as such as Cremers, Osher S.J.and Soatto S., " Kernel densityestimation and intrinsic alignment for shape priors in level set segmentation ", InternationalJournal of Computer Vision, vol.69, no.3, pp.335-351, Sep.2006] utilize Density Estimator, use shape prior constructs the difference between level set function and given embedding shape, shape difference subitem is joined in Chan-Vese parted pattern, this method does not rely on the restricted hypothesis of Gaussian distribution, allow multiplephase when obvious training shapes is encoded accurately.But this dividing method makes calculated amount greatly increase, reduce the segmentation efficiency of image.
Although the above-mentioned level-set segmentation methods based on image boundary, image-region and shape prior can complete Iamge Segmentation preferably, but these methods are responsive to the initialized location of level set, cannot obtain the segmentation result of global optimum, and the solving speed of model is slow, segmentation efficiency is low.
Summary of the invention
The object of the invention is to the deficiency for above-mentioned prior art, propose a kind of level set image segmentation method cutting optimization based on super-pixel and figure, to improve segmentation efficiency and the segmentation precision of image.
Technical thought of the present invention is: by adopting the super-pixel generation technique of simple linear iteration cluster, accelerate the splitting speed of image, cut the method for optimization by employing figure, reduce the susceptibility of level set being carried out to initialized location, obtain the segmentation result of global optimum.Implementation step comprises as follows:
(1) image I to be split is divided into M block, each block is a super-pixel, obtains the super-pixel SP={sp of image I 1..., sp k..., sp m, wherein sp krepresent a kth super-pixel, k=1,2 ..., M;
(2) each selection pixel in each super-pixel, utilizes this M pixel to form new images I s;
(3) according to Chan-Vese model, new images I is built senergy functional E cV, it is expressed as
E CV = μ ∫ Ω δ ( φ ) | ▿ φ | dxdy + λ 1 ∫ Ω | I s - c in | 2 H ( φ ) dxdy + λ 2 ∫ Ω | I s - c out | 2 ( 1 - H ( φ ) ) dxdy
Wherein, Ω represents image area, and μ is non-negative parameter, λ 1and λ 2be positive parameter, φ represents evolution curve, H ( φ ) = 1 2 + 1 π arctan ( φ ϵ ) , δ ( φ ) = 1 π 1 1 + ( φ / ϵ ) 2 , ε is constant and ε → 0, c inand c outrepresent the inside and outside gray average of closed curve respectively;
(4) to the energy functional E built cVcarry out discrete statement, its discrete form is as follows:
E CV d = μ Σ p , q w pq ( x p ( 1 - x q ) + x q ( 1 - x p ) ) + λ 1 Σ p | I s - c in | 2 x p + λ 2 Σ p | I s - c out | 2 ( 1 - x p )
Wherein, x pbe defined as image I sin the two-valued variable of each pixel, p=(x, y) ∈ Ω, φ (p) represent the value of the level set function at pixel p place, x pand x qbe respectively new images I sin the two-valued variable of two different pixels point p and q, be connected if p with q is axle, weight w pq=1, be connected if p with q is diagonal angle, then weight represent
(5) use figure cuts technical optimization energy functional, realizes new images I ssegmentation:
(5.1) the evolution curve of initialization level set;
(5.2) according to the discrete form of level set energy functional the data item E of calculating chart p(x p) and smooth item E p,q(x p, x q), it is expressed as:
E p(x p)=λ 1|I s-c in| 2x p2|I s-c out| 2(1-x p)
E p,q(x p,x q)=μw pq(x p(1-x q)+x q(1-x p))
(5.3) the data item E of figure is utilized p(x p), smooth item E p,q(x p, x q) and weight matrix design of graphics, obtained the minimal cut of figure by min-cut algorithm, upgrade x pvalue;
(5.4) compare the energy size that min-cut algorithm uses front and back, if the energy before using the energy after min-cut algorithm to be less than algorithm use, then return step (5.2), continue iterative computation; If both are equal, then stop iteration;
(5.5) according to x pvalue determination new images I sthe attribute of middle pixel: if x p=0, then x pcorresponding pixel is background, if x p=1, then x pcorresponding pixel is target, completes new images I ssegmentation;
(6) according to new images I ssegmentation result, complete the segmentation to image I;
New images I sin each pixel correspondence image I in a super-pixel, if new images I sin pixel be background, then corresponding in image I super-pixel is also background, if new images I sin pixel be target, then corresponding in image I super-pixel is also target, thus completes the segmentation to image I.
Compared to the prior art, the present invention has the following advantages:
1) the present invention adopts simple linear iteration clustering technique, generate the super-pixel of image to be split, a pixel is selected in each super-pixel, these pixels selected are utilized to form new image, because the size of new images is far smaller than original image, can calculated amount be greatly reduced in follow-up calculating, improve the efficiency of Iamge Segmentation.
2) traditional energy functional optimization generally adopts gradient descent method, the step-length of the method is selected to have a great impact iterations, and can only local minimum be obtained, the figure that the present invention adopts cuts the mode of technology as a kind of optimization energy functional, the global minimum of energy functional can be tried to achieve, reduce the susceptibility of level set being carried out to initialized location, improve the precision of Iamge Segmentation.
Accompanying drawing explanation
Fig. 1 is realization flow figure of the present invention;
Fig. 2 is the Comparative result figure split natural image with the present invention and Chan-Vese model;
Fig. 3 is the Comparative result figure split noise image with the present invention and Chan-Vese model;
Fig. 4 is the Comparative result figure split artificial image with the present invention and Chan-Vese model.
Embodiment
Below in conjunction with accompanying drawing, 1 couple of the present invention is described in further detail.
Step 1, is divided into M block by image I to be split, and each block is a super-pixel, obtains the super-pixel SP of image I.
The method of existing generation super-pixel has canonical to cut algorithm, mean shift algorithm, rapid drift algorithm and simple linear Iterative Clustering etc., because simple linear Iterative Clustering uses simple, counting yield is high, has developed into the common method that super-pixel generates.The present invention adopts simple linear Iterative Clustering, and generate the super-pixel SP of image I to be split, its step is as follows:
(1.1) rgb color space of image to be split is transformed to CIELAB color space;
(1.2) the expectation number M of super-pixel is inputted;
(1.3) with size be grid interval pixel is sampled, obtain initial cluster centre C k=[l k, a k, b k, x k, y k] t, k=1,2 ..., M, wherein, N represents image pixel number, [l k, a k, b k] for CIELAB color space pixel color vector, l krepresent brightness, a k, b krepresent color opposition dimension, x k, y kfor location of pixels;
(1.4) according to the minimal gradient position of 3 × 3 neighborhoods, cluster centre is moved on to seed position;
(1.5) initialized pixel i and cluster centre C kdistance d (i)=∞, label l (i)=-1 of initialization recording pixel i classification;
(1.6) for each cluster centre C k, calculate C kin neighbouring 2S × 2S region, each pixel is to cluster centre C kdistance D, if D < d (i), then make d (i)=D, l (i)=k;
(1.7) calculate new cluster centre and residual error E, wherein residual error E is defined as the L2 norm of successively twice cluster centre position;
(1.8) compare the threshold value T of residual error E and setting, if E≤T, then stop upgrading, otherwise be back to step (1.6), continue to upgrade cluster centre and residual error, until residual error E≤T;
(1.9) pixel being k by the category label that step (1.6) obtains is combined as one piece of super-pixel sp k, from 1 to M, k is traveled through, is combined into M super-pixel, completes the division to image I, obtain the super-pixel SP={sp of image I 1..., sp k..., sp m, wherein sp krepresent a kth super-pixel, k=1,2 ..., M.
Step 2, each selection pixel in each super-pixel, utilizes this M pixel to form new images I s.
(2.1) gray average of each super-pixel is calculated:
&mu; ( k ) = 1 m k &Sigma; j = 1 m k sp k ( j ) ,
Wherein, μ (k) is a kth super-pixel sp kgray average, m krepresent super-pixel sp kmiddle number of pixels;
(2.2) at super-pixel sp kin choose | sp k(j)-μ (k) | the pixel that minimum value is corresponding, k=1,2 ..., M;
(2.3) new images I is formed with the pixel chosen s.
Step 3, according to Chan-Vese model, builds new images I slevel set energy functional.
On the basis of Mumford-Shah model, Chan and Vese proposes the level set Image Segmentation Model based on region, the energy functional E of this model cVbe defined as smooth item E smoothwith data item E datasum, that is:
E CV=E smooth+E data
For solving energy functional E cV, introduce Heaviside function and dirac measure wherein, ε is constant and ε → 0, and φ represents evolution curve.
Solve new images I sthe concrete steps of level set energy functional as follows:
(3.1) the smooth item E of calculated level collection energy functional smooth:
E smoothbe defined as the length of closed curve, its computing formula is:
E smooth = &mu; &Integral; &Omega; &delta; ( &phi; ) | &dtri; &phi; | dxdy ,
Wherein, Ω represents image area, and μ is non-negative parameter, and φ represents evolution curve, for the divergence of φ;
(3.2) the data item E of calculated level collection energy functional data:
E data=λ 1Ω|I s-c in| 2H(φ)dxdy
2Ω|I s-c out| 2(1-H(φ))dxdy
Wherein, λ 1and λ 2be respectively data item conitnuous forms E datathe coefficient of Section 1 and Section 2, I srepresent new images, Ω represents image area, c inand c outrepresent the interior gray average of closed curve and outer gray average respectively, account form is as follows:
c in = &Integral; &Omega; I s H ( &phi; ) dxdy &Integral; &Omega; H ( &phi; ) dxdy , c out = &Integral; &Omega; I s ( 1 - H ( &phi; ) ) dxdy &Integral; &Omega; ( 1 - H ( &phi; ) ) dxdy ,
(3.3) new images I is calculated senergy functional E cV, it is expressed as:
E CV = &mu; &Integral; &Omega; &delta; ( &phi; ) | &dtri; &phi; | dxdy + &lambda; 1 &Integral; &Omega; | I s - c in | 2 H ( &phi; ) dxdy + &lambda; 2 &Integral; &Omega; | I s - c out | 2 ( 1 - H ( &phi; ) ) dxdy .
Step 4, to the level set energy functional E built cVcarry out discrete statement.
According to new images I slevel set energy functional E cV, respectively to E cVsmooth item and data item carry out discrete statement, and concrete steps are as follows:
(4.1) x is defined pfor new images I sin the two-valued variable of each pixel, wherein, p=(x, y) ∈ Ω, Ω represents image area;
(4.2) discrete form of the smooth item of level set energy functional is solved
E smooth d = &mu; &Sigma; p , q ( x p ( 1 - x q ) + x q ( 1 - x p ) ) w pq ,
Wherein, μ is non-negative parameter, x pand x qbe respectively new images I sin the two-valued variable of two different pixels point p and q, be connected if p with q is axle, then weight w pq=1, be connected if p with q is diagonal angle, then weight
(4.3) discrete form of the data item of level set energy functional is solved
E data d = &lambda; 1 &prime; &Sigma; p | I s - c in | 2 x p + &lambda; 2 &prime; &Sigma; p | I s - c out | 2 ( 1 - x p ) ,
Wherein, λ ' 1with λ ' 2be respectively data item discrete form the coefficient of Section 1 and Section 2, I srepresent new images, c inand c outbe respectively the interior gray average of closed curve and outer gray average, account form is as follows:
c in = &Sigma; p I s x p &Sigma; p x p , c out = &Sigma; p I s ( 1 - x p ) &Sigma; p ( 1 - x p ) ;
(4.4) level of aggregation collection energy functional E cVthe discrete form of smooth item with the discrete form of data item obtain E cVdiscrete form:
E CV d = E smooth d + E data d = &mu; &Sigma; p , q w pq ( x p ( 1 - x q ) + x q ( 1 - x p ) ) + &lambda; 1 &prime; &Sigma; p | I s - c in | 2 x p + &lambda; 2 &prime; &Sigma; p | I s - c out | 2 ( 1 - x p ) .
Step 5, use figure cuts technical optimization energy functional, realizes new images I ssegmentation.
(5.1) the evolution curve of initialization level set;
(5.2) according to the discrete form of level set energy functional the data item E of calculating chart p(x p) and smooth item E p,q(x p, x q), it is expressed as:
E p(x p)=λ 3|I s-c in| 2x p4|I s-c out| 2(1-x p),
E p,q(x p,x q)=μw pq(x p(1-x q)+x q(1-x p)),
Wherein, λ 3and λ 4be respectively the data item E of figure p(x p) Section 1 and the coefficient of Section 2;
(5.3) the data item E of figure is utilized p(x p), smooth item E p,q(x p, x q) and weight matrix design of graphics, obtained the minimal cut of figure by min-cut algorithm, upgrade x pvalue;
(5.4) compare the energy size that min-cut algorithm uses front and back, if the energy before using the energy after min-cut algorithm to be less than algorithm use, then return step (5.2), continue iterative computation; If both are equal, then stop iteration;
(5.5) according to x pvalue determination new images I sthe attribute of middle pixel: if x p=0, then x pcorresponding pixel is background, if x p=1, then x pcorresponding pixel is target, completes new images I ssegmentation.
Step 6, according to new images I ssegmentation result, complete the segmentation to image I to be split.
New images I sin the corresponding image I to be split of each pixel in a super-pixel, if new images I sin pixel be background, then corresponding in image I to be split super-pixel is also background, if new images I sin pixel be target, then corresponding in image I to be split super-pixel is also target, thus completes the segmentation to image I to be split.
Effect of the present invention can further illustrate by using following emulation experiment
1, simulated conditions
The present invention is Intel (R) Core (TM) i5 2.80GHZ, internal memory 4G, WINDOWS 7 in operating system at central processing unit, uses the emulation that MATLAB software carries out.
2, content is emulated
Emulation 1, with the present invention and existing Chan-Vese model, natural image is split, result as shown in Figure 2, wherein:
Fig. 2 (a) is with Chan-Vese model to the initialization of natural image,
The result that Fig. 2 (b) is split natural image for using Chan-Vese model,
Fig. 2 (c) uses Chan-Vese model to the binary map of the result that natural image is split,
Fig. 2 (d) uses the present invention to the initialization of natural image,
The result that Fig. 2 (e) is split natural image for using the present invention,
Fig. 2 (f) is for using the present invention to the binary map of the result that natural image is split.
Comparison diagram 2 (c) and Fig. 2 (f), can find out that the present invention is good to natural image segmentation effect, can obtain the segmentation result of global optimum.
Emulation 2, with the present invention and existing Chan-Vese model, noise image is split, result as shown in Figure 3, wherein:
Fig. 3 (a) uses Chan-Vese model to the initialization of noise image,
The result that Fig. 3 (b) is split noise image for using Chan-Vese model,
Fig. 3 (c) uses Chan-Vese model to the binary map of the result that noise image is split,
Fig. 3 (d) uses the present invention to the initialization of noise image,
The result that Fig. 3 (e) is split noise image for using the present invention,
Fig. 3 (f) is for using the present invention to the binary map of the result that noise image is split.
Comparison diagram 3 (c) and Fig. 3 (f), can find out that the present invention is to noise robustness, also can obtain good segmentation result under noise existent condition.
Emulation 3, with the present invention and existing Chan-Vese model, artificial image is split, result as shown in Figure 4, wherein:
Fig. 4 (a) uses Chan-Vese model to the initialization of artificial image,
The result that Fig. 4 (b) is split artificial image for using Chan-Vese model,
Fig. 4 (c) uses Chan-Vese model to the binary map of the result that artificial image is split,
Fig. 4 (d) uses the present invention to the initialization of artificial image,
The result that Fig. 4 (e) is split artificial image for using the present invention,
Fig. 4 (f) is for using the present invention to the binary map of the result that artificial image is split.
Comparison diagram 4 (c) and Fig. 4 (f), can find out that the present invention is good to artificial image segmentation effect, can obtain the segmentation result of global optimum.
Emulation 1, emulation 2 and emulation 3 time used and iterations as shown in table 1:
Table 1.
As can be seen from Table 1, compared with Chan-Vese model, the present invention only needs iteration several times just can obtain segmentation result, and the Iamge Segmentation time used is far smaller than Chan-Vese model, and the segmentation efficiency of image has greatly improved.

Claims (4)

1.一种基于超像素和图割优化的水平集图像分割方法,包括如下步骤:1. A level set image segmentation method optimized based on superpixels and graph cuts, comprising the steps of: (1)将待分割的图像I分成M块,每一块为一个超像素,得到图像I的超像素SP={sp1,…,spk,…,spM},其中spk表示第k个超像素,k=1,2,…,M;(1) Divide the image I to be segmented into M blocks, each of which is a superpixel, and obtain the superpixel SP of the image I = {sp 1 ,...,sp k ,...,sp M }, where sp k represents the kth Superpixels, k=1,2,...,M; (2)在每个超像素中各选择一个像素点,利用这M个像素点构成新图像Is(2) Select one pixel in each superpixel, and use these M pixels to form a new image I s ; (3)依照Chan-Vese模型,构建新图像Is的能量泛函ECV,其表示为(3) According to the Chan-Vese model, the energy functional function E CV of the new image I s is constructed, which is expressed as EE. CVcv == &lambda;&lambda; 11 &Integral;&Integral; &Omega;&Omega; || II sthe s -- cc inin || 22 Hh (( &phi;&phi; )) dxdydxdy ++ &lambda;&lambda; 22 &Integral;&Integral; &Omega;&Omega; || II sthe s -- cc outout || 22 (( 11 -- Hh (( &phi;&phi; )) )) ++ &mu;&mu; &Integral;&Integral; &Omega;&Omega; &delta;&delta; (( &phi;&phi; )) || &dtri;&dtri; &phi;&phi; || dxdydxdy dxdydxdy 其中,Ω表示图像域,μ为非负参数,λ1和λ2分别为ECV第一项和第二项的系数,φ表示演化曲线, H ( &phi; ) = 1 2 + 1 &pi; arctan ( &phi; &epsiv; ) , &delta; ( &phi; ) = 1 &pi; 1 1 + ( &phi; / &epsiv; ) 2 , ε为常数且ε→0,cin和cout分别表示闭合曲线的内灰度均值和外灰度均值;Among them, Ω represents the image domain, μ is a non-negative parameter, λ 1 and λ 2 are the coefficients of the first and second terms of E CV respectively, φ represents the evolution curve, h ( &phi; ) = 1 2 + 1 &pi; arctan ( &phi; &epsiv; ) , &delta; ( &phi; ) = 1 &pi; 1 1 + ( &phi; / &epsiv; ) 2 , ε is a constant and ε→0, c in and c out respectively represent the mean value of the inner gray level and the mean value of the outer gray level of the closed curve; (4)对构建的能量泛函ECV进行离散表述,其离散形式如下:(4) Discretely express the constructed energy functional E CV , and its discrete form is as follows: EE. CVcv dd == &lambda;&lambda; 11 &prime;&prime; &Sigma;&Sigma; pp || II sthe s -- cc inin || 22 xx pp ++ &lambda;&lambda; 22 &prime;&prime; &Sigma;&Sigma; pp || II sthe s -- cc outout || 22 (( 11 -- xx pp )) ++ &mu;&mu; &Sigma;&Sigma; pp ,, qq ww pqpq (( xx pp (( 11 -- xx qq )) ++ xx qq (( 11 -- xx pp )) )) 其中,λ′1和λ′2分别为离散形式ECV第一项和第二项的系数,xp定义为图像Is中各像素的二值变量,p=(x,y)∈Ω,φ(p)表示像素点p处的水平集函数的值,xp和xq分别为新图像Is中两个不同像素点p和q的二值变量,若p和q为轴连接,权重wpq=1,若p和q为对角连接,则权重 Among them, λ′ 1 and λ′ 2 are the coefficients of the first and second terms of the discrete form E CV respectively, and x p is defined as the binary variable of each pixel in the image I s , p=(x,y)∈Ω, φ(p) represents the value of the level set function at the pixel point p, x p and x q are binary variables of two different pixel points p and q in the new image I s respectively , if p and q are axially connected, the weight w pq =1, if p and q are diagonally connected, then the weight (5)使用图割技术优化能量泛函,实现对新图像Is的分割:(5) Use the graph cut technology to optimize the energy functional to realize the segmentation of the new image I s : (5.1)初始化水平集的演化曲线;(5.1) Initialize the evolution curve of the level set; (5.2)根据水平集能量泛函的离散形式计算图的数据项Ep(xp)和光滑项Ep,q(xp,xq),其表示为:(5.2) According to the discrete form of level set energy functional The data item E p (x p ) and the smooth item E p,q (x p ,x q ) of the calculation graph are expressed as: Ep(xp)=λ3|Is-cin|2 xp4|Is-cout|2(1-xp),E p (x p )=λ 3 |I s -c in | 2 xp4 |I s -c out | 2 (1-x p ), Ep,q(xp,xq)=μwpq(xp(1-xq)+xq(1-xp)),E p,q (x p ,x q )=μw pq (x p (1-x q )+x q (1-x p )), 其中,λ3和λ4分别为图的数据项Ep(xp)的第一项和第二项的系数;Wherein, λ 3 and λ 4 are the coefficients of the first item and the second item of the data item E p (x p ) of figure respectively; (5.3)利用图的数据项Ep(xp)、光滑项Ep,q(xp,xq)和权重矩阵构建图,通过min-cut算法获得图的最小割,更新xp的值;(5.3) Use the data item E p (x p ) of the graph, the smoothing item E p,q (x p ,x q ) and the weight matrix to construct the graph, obtain the minimum cut of the graph through the min-cut algorithm, and update the value of x p ; (5.4)比较min-cut算法使用前后的能量大小,如果使用min-cut算法后的能量小于算法使用前的能量,则返回步骤(5.2),继续迭代计算;如果两者相等,则停止迭代;(5.4) Compare the energy size before and after the use of the min-cut algorithm, if the energy after using the min-cut algorithm is less than the energy before the use of the algorithm, then return to step (5.2) and continue the iterative calculation; if the two are equal, then stop the iteration; (5.5)根据xp的值确定新图像Is中像素点的属性:如果xp=0,则xp对应的像素点为背景,如果xp=1,则xp对应的像素点为目标,完成对新图像Is的分割;(5.5) Determine the attributes of the pixels in the new image I s according to the value of x p : if x p =0, then the pixel corresponding to x p is the background; if x p =1, then the pixel corresponding to x p is the target , complete the segmentation of the new image I s ; (6)根据新图像Is的分割结果,完成对待分割图像I的分割。(6) According to the segmentation result of the new image I s , complete the segmentation of the image I to be segmented. 新图像Is中的每个像素点对应待分割图像I中的一个超像素,如果新图像Is中的像素点为背景,则待分割图像I中对应的超像素也为背景,如果新图像Is中的像素点为目标,则待分割图像I中对应的超像素也为目标,从而完成对待分割图像I的分割。Each pixel in the new image I s corresponds to a superpixel in the image to be segmented I, if the pixel in the new image I s is the background, then the corresponding superpixel in the image I to be segmented is also the background, if the new image If the pixel in I s is the target, then the corresponding superpixel in the image I to be segmented is also the target, so that the segmentation of the image I to be segmented is completed. 2.根据权利要求1所述的基于超像素和图割优化的水平集图像分割方法,其中所述步骤(1)中将待分割的图像I分成M块,得到图像I的超像素SP,按如下步骤进行:2. the level set image segmentation method based on superpixel and graph cut optimization according to claim 1, wherein in said step (1), the image I to be segmented is divided into M blocks, obtain the superpixel SP of image I, press Follow the steps below: (1.1)将待分割图像的RGB色彩空间变换为CIELAB色彩空间;(1.1) the RGB color space of image to be divided is transformed into CIELAB color space; (1.2)输入超像素的期望个数M;(1.2) Input the expected number M of superpixels; (1.3)以大小为的网格间隔对像素进行采样,得到初始的聚类中心Ck=[lk,ak,bk,xk,yk]T,k=1,2,…,M,其中,N表示图像像素个数,[lk,ak,bk]为CIELAB色彩空间的像素颜色向量,lk表示亮度,ak,bk表示颜色对立维度,xk,yk为像素位置;(1.3) Take the size as Pixels are sampled at grid intervals to obtain the initial cluster center C k =[l k ,a k ,b k ,x k ,y k ] T , k=1,2,…,M, where N represents The number of image pixels, [l k , a k , b k ] is the pixel color vector of CIELAB color space, l k represents brightness, a k , b k represent color opposite dimensions, x k , y k are pixel positions; (1.4)依照3×3邻域的最小梯度位置,将聚类中心移到种子位置;(1.4) Move the cluster center to the seed position according to the minimum gradient position of the 3×3 neighborhood; (1.5)初始化像素i和聚类中心Ck的距离d(i)=∞,初始化记录像素i类别的标号l(i)=-1,i=1,2,…,N;(1.5) Initialize the distance d(i)=∞ between the pixel i and the clustering center C k , initialize the label l(i)=-1 of the category of the recorded pixel i, i=1,2,...,N; (1.6)对于每一个聚类中心Ck,计算Ck附近的2S×2S区域中每个像素到聚类中心Ck的距离D,如果D<d(i),则令d(i)=D,l(i)=k;(1.6) For each cluster center C k , calculate the distance D from each pixel in the 2S×2S area near C k to the cluster center C k , if D<d(i), then let d(i)= D,l(i)=k; (1.7)计算新的聚类中心和残差E,其中残差E定义为先后两次聚类中心位置的L2范数;(1.7) Calculate the new cluster center and residual E, where the residual E is defined as the L2 norm of the two successive cluster center positions; (1.8)比较残差E和设定的阈值T,如果E≤T,则停止更新,如果E>T,则返回至步骤(1.6),继续更新聚类中心和残差,直到残差E≤T为止;(1.8) Compare the residual E with the set threshold T, if E≤T, stop updating, if E>T, return to step (1.6), and continue to update the cluster center and residual until the residual E≤ up to T; (1.9)将步骤(1.6)得到的类别标号为k的像素点组合为一块超像素spk,从1到M对k进行遍历,组合成M块超像素,完成对图像I的划分,得到图像I的超像素SP={sp1,…,spk,…,spM}。(1.9) Combining the pixels with category label k obtained in step (1.6) into a piece of superpixel sp k , traversing k from 1 to M, combining into M blocks of superpixels, completing the division of image I, and obtaining the image Superpixels SP of I = {sp 1 , . . . , sp k , . . . , sp M }. 3.根据权利要求1所述的基于超像素和图割优化的水平集图像分割方法,其中所述步骤(2)中采用的在每个超像素中各选择一个像素点,利用这M个像素点构成新图像Is,按如下步骤进行:3. the level set image segmentation method based on superpixels and graph cut optimization according to claim 1, wherein in each superpixel adopted in the step (2), one pixel is selected respectively, and these M pixels are utilized Points constitute a new image I s , proceed as follows: (2.1)计算每个超像素的灰度均值:(2.1) Calculate the gray mean value of each superpixel: &mu;&mu; (( kk )) == 11 mm kk &Sigma;&Sigma; jj == 11 mm kk spsp kk (( jj )) ,, 其中,μ(k)为第k个超像素spk的灰度均值,mk表示超像素spk中的像素点数;Among them, μ(k) is the gray mean value of the kth superpixel sp k , and m k represents the number of pixels in the superpixel sp k ; (2.2)在超像素spk中选取|spk(j)-μ(k)|最小的值对应的像素点,k=1,2,…,M;(2.2) Select the pixel point corresponding to the smallest value of |sp k (j)-μ(k)| in the superpixel sp k , k=1,2,...,M; (2.3)用选取的像素点构成新图像Is(2.3) Use the selected pixels to form a new image I s . 4.根据权利要求1所述的基于超像素和图割优化的水平集图像分割方法,其中所述步骤(4)中对水平集能量泛函的离散表述,按如下步骤进行:4. the level set image segmentation method based on superpixels and graph cut optimization according to claim 1, wherein in the step (4), the discrete expression of the level set energy functional is carried out as follows: (4.1)定义xp为新图像Is中各像素的二值变量,其中,p=(x,y)∈Ω,Ω表示图像域;(4.1) Define x p as the binary variable of each pixel in the new image I s , Among them, p = (x, y) ∈ Ω, Ω represents the image domain; (4.2)求解水平集能量泛函的光滑项的离散形式 (4.2) Solve the discrete form of the smooth term of the level set energy functional EE. smoothsmooth dd == &mu;&mu; &Sigma;&Sigma; pp ,, qq (( xx pp (( 11 -- xx qq )) ++ xx qq (( 11 -- xx pp )) )) ww pqpq ,, 其中,μ为非负参数,xp和xq分别为新图像Is中两个不同像素点p和q的二值变量,若p和q为轴连接,则权重wpq=1,若p和q为对角连接,则权重 Among them, μ is a non-negative parameter, x p and x q are binary variables of two different pixel points p and q in the new image I s respectively, if p and q are connected by axes, then the weight w pq =1, if p and q are diagonally connected, then the weight (4.3)求解水平集能量泛函的数据项的离散形式 (4.3) Solve the discrete form of the data items of the level set energy functional EE. datadata dd == &lambda;&lambda; 11 &prime;&prime; &Sigma;&Sigma; pp || II sthe s -- cc inin || 22 xx pp ++ &lambda;&lambda; 22 &prime;&prime; &Sigma;&Sigma; pp || II sthe s -- cc outout || 22 (( 11 -- xx pp )) ,, 其中,λ′1和λ′2分别为数据项离散形式第一项和第二项的系数,Is表示新图像,cin和cout为闭合曲线的内灰度均值和外灰度均值,计算公式分别为Among them, λ′ 1 and λ′ 2 are the discrete forms of data items respectively The coefficients of the first item and the second item, I s represent the new image, c in and c out are the mean value of the inner gray level and the mean value of the outer gray level of the closed curve, and the calculation formulas are respectively cc inin == &Sigma;&Sigma; pp II sthe s xx pp &Sigma;&Sigma; pp xx pp ,, cc outout == &Sigma;&Sigma; pp II sthe s (( 11 -- xx pp )) &Sigma;&Sigma; pp (( 11 -- xx pp )) ,, (4.4)综合水平集能量泛函ECV的光滑项的离散形式和数据项的离散形式得到ECV离散形式:(4.4) The discrete form of the smooth term of the comprehensive level set energy functional E CV and the discrete form of the data item Get E CV discrete form: EE. CVcv dd == EE. smoothsmooth dd ++ EE. datadata dd == &mu;&mu; &Sigma;&Sigma; pp ,, qq ww pqpq (( xx pp (( 11 -- xx qq )) ++ xx qq (( 11 -- xx pp )) )) ++ &lambda;&lambda; 11 &prime;&prime; &Sigma;&Sigma; pp || II sthe s -- cc inin || 22 xx pp ++ &lambda;&lambda; 22 &prime;&prime; &Sigma;&Sigma; pp || II sthe s -- cc outout || 22 (( 11 -- xx pp )) ..
CN201510164483.3A 2015-04-08 2015-04-08 Level set image segmentation method based on superpixel and graph-cup optimizing Pending CN104732551A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510164483.3A CN104732551A (en) 2015-04-08 2015-04-08 Level set image segmentation method based on superpixel and graph-cup optimizing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510164483.3A CN104732551A (en) 2015-04-08 2015-04-08 Level set image segmentation method based on superpixel and graph-cup optimizing

Publications (1)

Publication Number Publication Date
CN104732551A true CN104732551A (en) 2015-06-24

Family

ID=53456419

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510164483.3A Pending CN104732551A (en) 2015-04-08 2015-04-08 Level set image segmentation method based on superpixel and graph-cup optimizing

Country Status (1)

Country Link
CN (1) CN104732551A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105069798A (en) * 2015-08-12 2015-11-18 西安电子科技大学 Partial active profile image partitioning method based on graph-cut optimization
CN105894496A (en) * 2016-03-18 2016-08-24 常州大学 Semi-local-texture-feature-based two-stage image segmentation method
CN109978843A (en) * 2019-03-15 2019-07-05 华南理工大学 Image partition method, system, computer equipment and the storage medium of wafer dopant
CN110147795A (en) * 2019-05-24 2019-08-20 电子科技大学 A kind of adaptive non local fuzzy C-means clustering SAR image partitioning algorithm
CN110163822A (en) * 2019-05-14 2019-08-23 武汉大学 The netted analyte detection and minimizing technology and system cut based on super-pixel segmentation and figure
CN112419344A (en) * 2020-11-27 2021-02-26 清华大学 An Unsupervised Image Segmentation Method Based on Chan-Vese Model
CN113436171A (en) * 2021-06-28 2021-09-24 博奥生物集团有限公司 Processing method and device for canned image
CN115035130A (en) * 2022-03-08 2022-09-09 西安电子科技大学 A level set image segmentation method, storage medium and image processing terminal
CN115220665A (en) * 2022-09-14 2022-10-21 深圳市木浪云科技有限公司 Access method and system of distributed storage system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103353938A (en) * 2013-06-14 2013-10-16 山东大学 Cell membrane segmentation method based on hierarchy-level characteristic
CN103366382A (en) * 2013-07-04 2013-10-23 电子科技大学 Active contour tracing method based on superpixel
CN104036500A (en) * 2014-05-30 2014-09-10 西安交通大学 Fast double-cycle level set method for narrowband background detection

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103353938A (en) * 2013-06-14 2013-10-16 山东大学 Cell membrane segmentation method based on hierarchy-level characteristic
CN103366382A (en) * 2013-07-04 2013-10-23 电子科技大学 Active contour tracing method based on superpixel
CN104036500A (en) * 2014-05-30 2014-09-10 西安交通大学 Fast double-cycle level set method for narrowband background detection

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
NOHA EL-ZEHIRY 等: "GRAPH CUT OPTIMIZATION FOR THE MUMFORD-SHAH MODEL", 《VISUALIZATION, IMAGING AND IMAGE PROCESSING》 *
RADHAKRISHNA ACHANTA 等: "SLIC Superpixels Compared to State-of-the-Art Superpixel Methods", 《PATTERN ANALYSIS AND MACHINE INTELLIGENCE》 *
王斌 等: "一种基于边缘与区域信息的先验水平集图像分割方法", 《计算机学报》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105069798A (en) * 2015-08-12 2015-11-18 西安电子科技大学 Partial active profile image partitioning method based on graph-cut optimization
CN105894496A (en) * 2016-03-18 2016-08-24 常州大学 Semi-local-texture-feature-based two-stage image segmentation method
CN109978843A (en) * 2019-03-15 2019-07-05 华南理工大学 Image partition method, system, computer equipment and the storage medium of wafer dopant
CN110163822A (en) * 2019-05-14 2019-08-23 武汉大学 The netted analyte detection and minimizing technology and system cut based on super-pixel segmentation and figure
CN110147795A (en) * 2019-05-24 2019-08-20 电子科技大学 A kind of adaptive non local fuzzy C-means clustering SAR image partitioning algorithm
CN112419344A (en) * 2020-11-27 2021-02-26 清华大学 An Unsupervised Image Segmentation Method Based on Chan-Vese Model
CN112419344B (en) * 2020-11-27 2022-04-08 清华大学 Unsupervised image segmentation method based on Chan-Vese model
CN113436171A (en) * 2021-06-28 2021-09-24 博奥生物集团有限公司 Processing method and device for canned image
CN113436171B (en) * 2021-06-28 2024-02-09 博奥生物集团有限公司 Processing method and device for can printing image
CN115035130A (en) * 2022-03-08 2022-09-09 西安电子科技大学 A level set image segmentation method, storage medium and image processing terminal
CN115220665A (en) * 2022-09-14 2022-10-21 深圳市木浪云科技有限公司 Access method and system of distributed storage system

Similar Documents

Publication Publication Date Title
CN104732551A (en) Level set image segmentation method based on superpixel and graph-cup optimizing
Rouhani et al. Semantic segmentation of 3D textured meshes for urban scene analysis
CN102810158B (en) High-resolution remote sensing target extraction method based on multi-scale semantic model
CN102542302B (en) Automatic complicated target identification method based on hierarchical object semantic graph
CN112541904A (en) Unsupervised remote sensing image change detection method, storage medium and computing device
CN105574534A (en) Significant object detection method based on sparse subspace clustering and low-order expression
CN106920243A (en) The ceramic material part method for sequence image segmentation of improved full convolutional neural networks
CN107590515B (en) Hyperspectral image classification method of self-encoder based on entropy rate superpixel segmentation
Wang et al. A comprehensive survey of optical remote sensing image segmentation methods
CN103198479B (en) SAR image segmentation method based on semantic information classification
CN105825502B (en) A kind of Weakly supervised method for analyzing image of the dictionary study based on conspicuousness guidance
CN112381144B (en) Heterogeneous deep network method for non-European and Euclidean domain space spectrum feature learning
CN104123417B (en) A Method of Image Segmentation Based on Cluster Fusion
CN101464948A (en) Object identification method for affine constant moment based on key point
CN103544697B (en) A kind of image partition method based on hypergraph analysis of spectrum
CN101639935A (en) Digital human serial section image segmentation method based on geometric active contour target tracking
CN102915541B (en) Multi-scale image segmenting method
CN106650744B (en) Image object co-segmentation method guided by local shape transfer
CN113486967B (en) SAR image classification algorithm combining graph convolution network and Markov random field
CN103345744B (en) A kind of human body target part automatic analytic method based on many images
CN103413307A (en) Method for image co-segmentation based on hypergraph
Hua et al. Depth estimation with convolutional conditional random field network
CN104778464A (en) Garment positioning and detecting method based on depth convolution nerve network
CN102903102A (en) Non-local-based triple Markov random field synthetic aperture radar (SAR) image segmentation method
CN103093470A (en) Rapid multi-modal image synergy segmentation method with unrelated scale feature

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150624

WD01 Invention patent application deemed withdrawn after publication