CN111462145B - Active contour image segmentation method based on double-weight symbol pressure function - Google Patents
Active contour image segmentation method based on double-weight symbol pressure function Download PDFInfo
- Publication number
- CN111462145B CN111462145B CN202010251518.8A CN202010251518A CN111462145B CN 111462145 B CN111462145 B CN 111462145B CN 202010251518 A CN202010251518 A CN 202010251518A CN 111462145 B CN111462145 B CN 111462145B
- Authority
- CN
- China
- Prior art keywords
- function
- term
- contour
- image
- active contour
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/12—Edge-based segmentation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0012—Biomedical image inspection
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/149—Segmentation; Edge detection involving deformable models, e.g. active contour models
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10072—Tomographic images
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10072—Tomographic images
- G06T2207/10081—Computed x-ray tomography [CT]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30004—Biomedical image processing
- G06T2207/30101—Blood vessel; Artery; Vein; Vascular
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
- Radiology & Medical Imaging (AREA)
- Quality & Reliability (AREA)
- Software Systems (AREA)
- Image Analysis (AREA)
- Image Processing (AREA)
Abstract
本发明公开了一种基于双权重符号压力函数的活动轮廓图像分割方法,包括以下步骤:步骤S1,输入待分割的原始图像,并初始化活动轮廓模型的参数及设定初始轮廓;步骤S2,计算全局灰度项和勒让德多项式,得到基于双权重的符号压力函数;计算边缘停止函数g(|▽I|);步骤S3,使用梯度下降算法求解活动轮廓模型的能量函数,得到所对应的梯度流方程以进行分割曲线的迭代,得到新时刻的水平集函数;步骤S4,对新时刻的水平集函数进行二值化惩罚以及高斯滤波的正则化处理;步骤S5,判断曲线是否继续迭代,若满足收敛条件,则停止迭代,完成图像分割;若不满足收敛条件,则执行步骤S2,进行下一次迭代。
The invention discloses a method for segmenting an active contour image based on a double-weight sign pressure function, comprising the following steps: step S1, inputting the original image to be segmented, initializing the parameters of the active contour model and setting the initial contour; step S2, calculating The global grayscale term and the Legendre polynomial are used to obtain the symbolic pressure function based on double weights; the edge stop function g(|▽I|) is calculated; step S3 is to use the gradient descent algorithm to solve the energy function of the active contour model to obtain the corresponding The gradient flow equation is used to iterate the segmentation curve to obtain the level set function at the new moment; step S4, perform binarization penalty and regularization processing of Gaussian filtering on the level set function at the new moment; step S5, judge whether the curve continues to iterate, If the convergence condition is satisfied, the iteration is stopped and the image segmentation is completed; if the convergence condition is not satisfied, step S2 is executed for the next iteration.
Description
技术领域Technical Field
本发明涉及图像分割领域,具体涉及一种基于双权重符号压力函数的活动轮廓图像分割方法。The invention relates to the field of image segmentation, and in particular to an active contour image segmentation method based on a dual-weighted signed pressure function.
背景技术Background Art
图像分割在图像处理,机器学习,计算机视觉和其他领域中发挥着重要作用。基于活动轮廓模型(active contour model,ACM)的图像分割技术目前占据着十分重要的地位,它目前广泛应用于医学图像、雷达图像、合成图像分割等相关领域中,具有广泛的应用前景与应用价值。医学图像有多种图像模态,诸如MR、CT、PET、超声成像等等,各种图像可以获得反映二维和三维区域人体的生理和物理特性。基于活动轮廓模型的图像分割技术应用于医学图像领域时,可以分割提取医学图像中的特征区域,为后续的临床诊疗和病理学研究提供可靠的依据,辅助医生做出更为准确的诊断帮助,例如图1所示的冠状动脉CT血管分割,如图2所示的脑出血CT图像分割等领域。Image segmentation plays an important role in image processing, machine learning, computer vision and other fields. Image segmentation technology based on active contour model (ACM) currently occupies a very important position. It is currently widely used in medical images, radar images, synthetic image segmentation and other related fields, and has broad application prospects and application value. Medical images have a variety of image modalities, such as MR, CT, PET, ultrasound imaging, etc. Various images can obtain physiological and physical characteristics of the human body in two-dimensional and three-dimensional regions. When image segmentation technology based on active contour model is applied to the field of medical images, it can segment and extract characteristic areas in medical images, provide a reliable basis for subsequent clinical diagnosis and treatment and pathological research, and assist doctors in making more accurate diagnoses, such as the segmentation of coronary artery CT blood vessels shown in Figure 1, and the segmentation of cerebral hemorrhage CT images shown in Figure 2.
现有的ACM可被分类为两种类型:基于边缘的活动轮廓模型和基于区域的活动轮廓模型。基于边缘的活动轮廓模型利用图像梯度模定义的边缘停止函数使演化曲线停止在待分割的图像边缘上。基于区域的活动轮廓模型利用轮廓线内部和外部的统计信息来控制曲线的演化。在基于活动轮廓模型的图像分割方法中,灰度不均匀、噪声、边缘模糊,计算耗时以及对初始轮廓敏感等复杂情况对于准确高效地得到图像分割结果具有一定的挑战。因此,有必要提出一种更为准确和高效的方法,以保证能够在各种复杂情况下保持较高的分割准确率并且有效地控制耗时和计算量。Existing ACMs can be classified into two types: edge-based active contour models and region-based active contour models. The edge-based active contour model uses the edge stop function defined by the image gradient modulus to stop the evolution curve at the edge of the image to be segmented. The region-based active contour model uses the statistical information inside and outside the contour line to control the evolution of the curve. In the image segmentation method based on the active contour model, complex situations such as uneven grayscale, noise, blurred edges, time-consuming calculations, and sensitivity to initial contours pose certain challenges to accurately and efficiently obtaining image segmentation results. Therefore, it is necessary to propose a more accurate and efficient method to ensure that a high segmentation accuracy can be maintained in various complex situations and that time consumption and calculation amount can be effectively controlled.
发明内容Summary of the invention
本发明的目的在于克服现有技术中所存在的基于活动轮廓模型的图像分割方法实时性准确度不高的问题,提供一种基于双权重符号压力函数的活动轮廓图像分割方法,在待分割图像存在灰度不均匀、噪声、边缘模糊等复杂情况时,提高分割效率与准确率。The purpose of the present invention is to overcome the problem of low real-time accuracy of image segmentation methods based on active contour models in the prior art, and to provide an active contour image segmentation method based on a dual-weighted signed pressure function, which improves the segmentation efficiency and accuracy when the image to be segmented has complex situations such as uneven grayscale, noise, and blurred edges.
为了实现上述发明目的,本发明提供了以下技术方案:In order to achieve the above-mentioned object of the invention, the present invention provides the following technical solutions:
一种基于双权重符号压力函数的活动轮廓图像分割方法,包括以下步骤:An active contour image segmentation method based on a dual-weighted signed pressure function comprises the following steps:
步骤S1,输入获取的待分割的原始图像;并初始化活动轮廓模型的参数及设定初始轮廓;Step S1, inputting the acquired original image to be segmented; initializing the parameters of the active contour model and setting the initial contour;
步骤S2,计算全局灰度项以及勒让德多项式,得到基于双权重的符号压力函数;计算边缘停止函数g(|▽I|);Step S2, calculating the global grayscale term and Legendre polynomial to obtain a double-weighted signed pressure function; calculating the edge stop function g(|▽I|);
步骤S3,使用梯度下降算法对活动轮廓模型的能量函数进行数值求解,得到所对应的梯度流方程以进行分割曲线的迭代,得到新时刻水平集函数;Step S3, using a gradient descent algorithm to numerically solve the energy function of the active contour model, obtain the corresponding gradient flow equation to iterate the segmentation curve, and obtain the level set function at a new moment;
步骤S4,对步骤S3得到的新时刻水平集函数进行二值化惩罚以及高斯滤波的正则化处理;Step S4, performing binarization penalty and Gaussian filtering regularization processing on the new moment level set function obtained in step S3;
步骤S5,判断曲线是否继续迭代,若满足收敛条件,停止迭代,完成图像分割;若不满足收敛条件,则执行步骤S2,进行下一次迭代。Step S5, determining whether the curve continues to iterate, if the convergence condition is met, stopping the iteration and completing the image segmentation; if the convergence condition is not met, executing step S2 and performing the next iteration.
优选地,所述步骤S1的详细步骤如下所述:Preferably, the detailed steps of step S1 are as follows:
输入原始图像,并计算各像素点灰度值,记做I(x),x为图像域Ω中的像素点;初始化活动轮廓模型的参数,并设定初始轮廓。Input the original image and calculate the grayscale value of each pixel, denoted as I(x), where x is the pixel in the image domain Ω; initialize the parameters of the active contour model and set the initial contour.
优选地,所述步骤S2中,Preferably, in step S2,
基于双权重的符号压力函数为:The symbolic pressure function based on dual weights is:
其中I(x)为图像域中像素点的灰度值,为勒让德项,为全局灰度项,w1为勒让德项在符号压力函数中所占的权重,w2为全局灰度项在符号压力函数中所占的权重。Where I(x) is the gray value of the pixel in the image domain, For Legendre, is the global grayscale term, w1 is the weight of the Legendre term in the signed pressure function, and w2 is the weight of the global grayscale term in the signed pressure function.
优选地,所述勒让德项以及全局灰度项的计算公式如下所示:Preferably, the calculation formulas of the Legendre term and the global grayscale term are as follows:
其中P(x)为勒让德多项式向量,η用来调整内部与外部所占的权重;为轮廓线内部区域勒让德多项式系数向量的闭式解,为轮廓线外部区域勒让德多项式系数向量的闭式解,c1为轮廓线内部的平均灰度值,c2为轮廓线外部的平均灰度值;上述4个变量c1,c2与的计算公式如下所示:Where P(x) is the Legendre polynomial vector, and η is used to adjust the weights of the internal and external parts; is the closed-form solution of the Legendre polynomial coefficient vector for the interior region of the contour, is the closed-form solution of the Legendre polynomial coefficient vector outside the contour line, c 1 is the average gray value inside the contour line, and c 2 is the average gray value outside the contour line; the above four variables c 1 , c 2 and The calculation formula is as follows:
其中,n1(x)=Hε(φ(x)),n2(x)=1-Hε(φ(x));Among them, n 1 (x) = H ε (φ (x)), n 2 (x) = 1-H ε (φ (x));
其中,M表示k×k的单位矩阵,K和L表示k×k的格里姆矩阵,λ1与λ2为两个常数,使用默认值;ε为预设参数。Where M represents the k×k identity matrix, K and L represent the k×k Grimm matrices, λ 1 and λ 2 are two constants with default values; ε is a preset parameter.
优选地,所述边缘停止函数为单调递减的非负函数。Preferably, the edge stop function is a monotonically decreasing non-negative function.
优选地,所述边缘停止函数由分数和指数形式组成,计算公式如下所示:Preferably, the edge stop function is composed of fractional and exponential forms, and the calculation formula is as follows:
其中x和y表示像素点,表示标准差为δ的高斯核函数Gδ与待分割图像I的卷积运算,为梯度算子。Where x and y represent pixel points. represents the convolution operation of the Gaussian kernel function G δ with the image to be segmented I, is the gradient operator.
优选地,步骤S3中所述能量函数的数值求解过程为先计算获得梯度流方程再对梯度流方程进行数值迭代运算,其梯度流方程如下所示:Preferably, the numerical solution process of the energy function in step S3 is to first calculate the gradient flow equation and then perform numerical iteration operation on the gradient flow equation, and the gradient flow equation is as follows:
其中,α,μ为预设的常数项,t为时间,表示曲率。Among them, α, μ are preset constants, t is time, Represents curvature.
优选地,步骤S4包括以下步骤:Preferably, step S4 comprises the following steps:
步骤S41,当新时刻水平集函数φi+1>0时,φi+1=1;φi+1≤0时,φi+1=-1;Step S41, when the level set function φ i+1 at the new moment is >0, φ i+1 =1; when φ i+1 ≤0, φ i+1 =-1;
步骤S42,用高斯滤波正则化水平集函数φi+1,φi+1=φi+1*Gδ。Step S42: Regularize the level set function φ i+1 using Gaussian filtering, φ i+1 = φ i+1 *G δ .
优选地,步骤S5数值迭代运算的收敛条件为:Preferably, the convergence condition of the numerical iteration operation in step S5 is:
其中Γ为预设像素点个数阈值,length(·)用来计算的长度,i+1为迭代次数。Where Γ is the preset pixel number threshold, length(·) is used to calculate The length of i+1 is the number of iterations.
与现有技术相比,本发明的有益效果:Compared with the prior art, the present invention has the following beneficial effects:
(1)将勒让德项以及全局灰度项融合到符号压力函数中,改进后的符号压力函数能够适应更加复杂的应用环境,对灰度不均匀、噪声、边缘模糊、多目标图像以及不同的初始轮廓都有较好的鲁棒性。(1) The Legendre term and the global grayscale term are integrated into the signed pressure function. The improved signed pressure function can adapt to more complex application environments and has good robustness to grayscale unevenness, noise, edge blur, multi-target images and different initial contours.
(2)使用一个权重系数来控制勒让德项以及全局灰度项的影响程度,引入另一个权重系数来调节轮廓线内部与外部拟合中心的比例系数,使曲线能够更好地演化收缩到区域内部。(2) A weight coefficient is used to control the influence of the Legendre term and the global grayscale term, and another weight coefficient is introduced to adjust the ratio coefficient between the inner and outer fitting centers of the contour line, so that the curve can better evolve and shrink into the interior of the region.
(3)提出一个新的边缘停止函数,将边缘停止函数纳入梯度流方程,引入边缘信息。边缘信息结合符号压力函数提供的区域信息来驱动轮廓线的演化,使曲线能够更好地收敛到目标的边缘,完成图像分割。(3) A new edge stop function is proposed, which is incorporated into the gradient flow equation and introduces edge information. The edge information is combined with the regional information provided by the signed pressure function to drive the evolution of the contour line, so that the curve can better converge to the edge of the target and complete image segmentation.
附图说明:Description of the drawings:
图1为ACM用于冠状动脉CT血管图像分割的示例图;FIG1 is an example diagram of ACM used for segmentation of coronary CT vascular images;
图2为ACM用于脑出血CT图像分割的示例图;FIG2 is an example diagram of ACM used for CT image segmentation of cerebral hemorrhage;
图3为本发明示例性实施例1的基于双权重符号压力函数的活动轮廓图像分割方法的流程图一;FIG3 is a flowchart 1 of an active contour image segmentation method based on a dual-weighted signed pressure function according to an exemplary embodiment 1 of the present invention;
图4为本发明示例性实施例1的基于双权重符号压力函数的活动轮廓图像分割方法的流程图二。FIG. 4 is a second flowchart of the active contour image segmentation method based on a dual-weighted signed pressure function according to exemplary embodiment 1 of the present invention.
具体实施方式DETAILED DESCRIPTION
下面结合试验例及具体实施方式对本发明作进一步的详细描述。但不应将此理解为本发明上述主题的范围仅限于以下的实施例,凡基于本发明内容所实现的技术均属于本发明的范围。The present invention is further described in detail below in conjunction with test examples and specific implementation methods. However, this should not be understood as the scope of the above subject matter of the present invention being limited to the following embodiments, and all technologies realized based on the content of the present invention belong to the scope of the present invention.
实施例1Example 1
如图3或图4所示,本实施例提供一种基于双权重符号压力函数的活动轮廓图像分割方法,包括如下步骤:As shown in FIG. 3 or FIG. 4 , this embodiment provides an active contour image segmentation method based on a dual-weighted signed pressure function, comprising the following steps:
步骤S1,输入获取的待分割的原始图像;并初始化活动轮廓模型的参数及设定初始轮廓;Step S1, inputting the acquired original image to be segmented; initializing the parameters of the active contour model and setting the initial contour;
步骤S2,计算全局灰度项以及勒让德多项式,得到基于双权重的符号压力函数;计算边缘停止函数g(|▽I|);Step S2, calculating the global grayscale term and Legendre polynomial to obtain a double-weighted signed pressure function; calculating the edge stop function g(|▽I|);
步骤S3,使用梯度下降算法对活动轮廓模型的能量函数进行数值求解,得到所对应的梯度流方程以进行分割曲线的迭代,得到新时刻水平集函数;Step S3, using a gradient descent algorithm to numerically solve the energy function of the active contour model, obtain the corresponding gradient flow equation to iterate the segmentation curve, and obtain the level set function at a new moment;
步骤S4,对步骤S3得到的新时刻水平集函数,进行二值化惩罚以及高斯滤波的正则化处理;Step S4, performing binarization penalty and Gaussian filtering regularization processing on the new moment level set function obtained in step S3;
步骤S5,判断曲线是否继续迭代,若满足收敛条件,停止迭代,完成图像分割;若不满足收敛条件,则执行步骤S2,进行下一次迭代。Step S5, determining whether the curve continues to iterate, if it meets the convergence condition, stopping the iteration and completing the image segmentation; if it does not meet the convergence condition, executing step S2 and performing the next iteration.
活动轮廓图像分割方法广泛应用于医学图像、雷达图像、合成图像分割等相关领域中,因此采集的原始图像可以为医学图像或雷达图像等。以医学图像为例,本实施例采集的原始图像可以为各种图像模态(诸如MR、CT、PET、超声成像等)的医学图像,例如图1所示的冠状动脉CT图像,图2所示的脑部CT图像。通过本实施例所述的基于双权重符号压力函数的活动轮廓图像分割方法提取医学图像的特征区域,实现图像分割,例如提取出图1所示的冠状动脉CT图像的血管部分,提取出图2所示的脑部CT图像的脑部出血位置。本实施例将勒让德项以及全局灰度项融合到符号压力函数中,使得改进后的符号压力函数能够适应更加复杂的应用环境,对灰度不均匀、噪声、边缘模糊、多目标图像以及不同的初始轮廓都有较好的鲁棒性。Active contour image segmentation methods are widely used in medical images, radar images, synthetic image segmentation and other related fields, so the collected original images can be medical images or radar images. Taking medical images as an example, the original images collected in this embodiment can be medical images of various image modalities (such as MR, CT, PET, ultrasound imaging, etc.), such as the coronary artery CT image shown in Figure 1 and the brain CT image shown in Figure 2. The active contour image segmentation method based on the dual-weighted signed pressure function described in this embodiment is used to extract the characteristic area of the medical image to achieve image segmentation, such as extracting the blood vessel part of the coronary artery CT image shown in Figure 1 and extracting the brain hemorrhage position of the brain CT image shown in Figure 2. In this embodiment, the Legendre term and the global grayscale term are integrated into the signed pressure function, so that the improved signed pressure function can adapt to more complex application environments and has good robustness to grayscale unevenness, noise, blurred edges, multi-target images and different initial contours.
步骤S1,输入获取的待分割的原始图像;并初始化活动轮廓模型的参数及设定初始轮廓;Step S1, inputting the acquired original image to be segmented; initializing the parameters of the active contour model and setting the initial contour;
步骤S1的详细步骤如下所述:The detailed steps of step S1 are as follows:
输入原始图像,并计算各像素点灰度值,记做I(x),x为图像域Ω中的像素点,在原始图像中I:Ω→R。Input the original image and calculate the grayscale value of each pixel, recorded as I(x), where x is the pixel in the image domain Ω, and in the original image I:Ω→R.
初始化活动轮廓模型的参数,并设定初始轮廓。初始化活动轮廓模型的参数,具体包括符号压力函数、边缘停止函数、梯度流方程以及收敛条件中的预设参数值。初始轮廓是一条初始化的轮廓曲线,初始轮廓的能量不一定是最小的,需要通过迭代演化得到目标轮廓边缘。目标轮廓边缘可以提取图像中的特征区域,实现图像分割。初始轮廓,中间迭代过程生成的曲线,以及最终的目标轮廓都可以称为活动轮廓。Initialize the parameters of the active contour model and set the initial contour. Initialize the parameters of the active contour model, including the signed pressure function, edge stop function, gradient flow equation, and preset parameter values in the convergence condition. The initial contour is an initialized contour curve. The energy of the initial contour is not necessarily the minimum, and the target contour edge needs to be obtained through iterative evolution. The target contour edge can extract the feature area in the image and realize image segmentation. The initial contour, the curve generated by the intermediate iterative process, and the final target contour can all be called active contours.
零水平集函数设定为:The zero level set function is set as:
Φ0=x:Φ(x)=0Φ 0 = x:Φ(x) = 0
其中Φ为水平集函数,x为待分割图像域Ω中的像素点;零水平集函数Φ0将区域Ω其分为两个不相邻区域Ω1={x:Φ(x)>0}与Ω2={x:Φ(x)<0},分别代表前景与背景区域。Where Φ is the level set function, and x is the pixel point in the image domain Ω to be segmented; the zero level set function Φ 0 divides the region Ω into two non-adjacent regions Ω 1 ={x:Φ(x)>0} and Ω 2 ={x:Φ(x)<0}, representing the foreground and background regions respectively.
步骤S2,计算全局灰度项以及勒让德多项式,得到基于双权重的符号压力函数;计算边缘停止函数g(|▽I|);Step S2, calculating the global grayscale term and Legendre polynomial to obtain a double-weighted signed pressure function; calculating the edge stop function g(|▽I|);
其中,所述基于双权重的符号压力函数为:Wherein, the double-weighted sign pressure function is:
其中I(x)为图像域中像素点的灰度值,为勒让德项,为全局灰度项,w1为勒让德项在符号压力函数中所占的权重,w2为全局灰度项在符号压力函数中所占的权重。将勒让德项以及全局灰度项融合到符号压力函数中,并分别使用一个权重系数来控制勒让德项以及全局灰度项的影响程度,引入另一个权重系数来调节轮廓线内部与外部拟合中心的比例系数,使曲线能够更好地演化收缩到区域内部。勒让德项占主导地位时有利于分割灰度不均匀图像,而全局灰度项占主导地位时有利于分割噪声图像。根据具体的图像特征调整勒让德项以及全局灰度项的权重,控制勒让德项以及全局灰度项的影响程度,使得改进后的符号压力函数能够适应更加复杂的应用环境,对灰度不均匀、噪声、边缘模糊、多目标图像以及不同的初始轮廓都有较好的鲁棒性。Where I(x) is the gray value of the pixel in the image domain, For Legendre, is the global grayscale term, w1 is the weight of the Legendre term in the sign pressure function, and w2 is the weight of the global grayscale term in the sign pressure function. The Legendre term and the global grayscale term are integrated into the sign pressure function, and a weight coefficient is used to control the influence of the Legendre term and the global grayscale term respectively. Another weight coefficient is introduced to adjust the ratio coefficient of the inner and outer fitting centers of the contour line, so that the curve can better evolve and shrink to the inside of the region. When the Legendre term is dominant, it is beneficial to segment grayscale uneven images, while when the global grayscale term is dominant, it is beneficial to segment noisy images. According to the specific image features, the weights of the Legendre term and the global grayscale term are adjusted to control the influence of the Legendre term and the global grayscale term, so that the improved sign pressure function can adapt to more complex application environments and has good robustness to grayscale unevenness, noise, edge blur, multi-target images and different initial contours.
其中,所述勒让德项以及全局灰度项的计算公式如下所示:The calculation formulas of the Legendre term and the global grayscale term are as follows:
其中P(x)为勒让德多项式向量,η用来调整内部与外部所占的权重;为轮廓线内部区域(即为前景区域)勒让德多项式系数向量的闭式解,为轮廓线外部区域(即为背景区域)勒让德多项式系数向量的闭式解,c1为轮廓线内部的平均灰度值,c2为轮廓线外部的平均灰度值,上述4个变量c1,c2与的计算公式如下所示:Where P(x) is the Legendre polynomial vector, and η is used to adjust the weights of the internal and external parts; is the closed-form solution of the Legendre polynomial coefficient vector in the inner area of the contour (i.e., the foreground area), is the closed-form solution of the Legendre polynomial coefficient vector of the area outside the contour (i.e., the background area), c 1 is the average grayscale value inside the contour, and c 2 is the average grayscale value outside the contour. The above four variables c 1 , c 2 are related to The calculation formula is as follows:
其中,n1(x)=Hε(φ(x)),n2(x)=1-Hε(φ(x));Among them, n 1 (x) = H ε (φ (x)), n 2 (x) = 1-H ε (φ (x));
其中,M表示k×k的单位矩阵,K和L表示k×k的格里姆矩阵,λ1与λ2为两个常数,通常使用默认值;Hε(φ)为海氏函数。Where M represents the k×k identity matrix, K and L represent the k×k Grimm matrices, λ 1 and λ 2 are two constants, and the default values are usually used; H ε (φ) is the Hyatt function.
Hε(φ(x))的计算公式如下所示:The calculation formula of H ε (φ(x)) is as follows:
其中ε为步骤S1中初始的参数之一。Where ε is one of the initial parameters in step S1.
步骤S2中边缘停止函数可以是任何单调递减的非负函数。在图像平坦区域有和在目标边缘有趋于无穷大且即背景区域与前景区域的差别较大,若活动轮廓划分的区域满足该条件,则认为已识别出待分割的区域,可以停止活动轮廓的演化。在基于区域信息的能量函数中引入一个边缘停止函数来约束曲率,将区域信息与边缘信息相结合,以停止活动轮廓的演化,进一步得到目标边缘轮廓。The edge stop function in step S2 can be any monotonically decreasing non-negative function. and At the edge of the target tends to infinity and That is, the difference between the background area and the foreground area is large. If the area divided by the active contour meets this condition, it is considered that the area to be segmented has been identified and the evolution of the active contour can be stopped. An edge stop function is introduced into the energy function based on region information to constrain the curvature, and the region information is combined with the edge information to stop the evolution of the active contour and further obtain the target edge contour.
优选地,为了鲁棒地捕获目标的边缘并加快多目标图像的分割速度,边缘停止函数g(|▽I|)中引入了两个单调递减的非负函数,分别由分数和指数形式组成。所述边缘停止函数如下所示:Preferably, in order to robustly capture the edge of the target and speed up the segmentation of the multi-target image, two monotonically decreasing non-negative functions are introduced into the edge stop function g(|▽I|), which are respectively composed of fractional and exponential forms. The edge stop function is as follows:
其中x和y表示像素点,x是中心像素点,y是x邻域周围的像素点;表示标准差为δ的高斯核函数Gδ与待分割图像I的卷积运算,为梯度算子。其中标准差δ,根据具体情况设定,本实施例中,该值为步骤S1中初始的参数之一。Where x and y represent pixel points, x is the center pixel point, and y is the pixel points around x's neighborhood; represents the convolution operation of the Gaussian kernel function G δ with the image to be segmented I, is the gradient operator. The standard deviation δ is set according to the specific situation. In this embodiment, this value is one of the initial parameters in step S1.
本实施例提出一个新的边缘停止函数,将边缘停止函数纳入梯度流方程,引入边缘信息。边缘信息结合符号压力函数提供的区域信息来驱动轮廓线的演化,使曲线能够更好地收敛到目标的边缘,完成图像分割。This embodiment proposes a new edge stop function, incorporates the edge stop function into the gradient flow equation, and introduces edge information. The edge information is combined with the regional information provided by the signed pressure function to drive the evolution of the contour line, so that the curve can better converge to the edge of the target and complete image segmentation.
步骤S3,使用梯度下降算法对活动轮廓模型的能量函数进行数值求解,得到所对应的梯度流方程以进行分割曲线的迭代,计算偏微分方程得到新时刻水平集函数φi+1;其中i+1表示迭代次数,若为第一次迭代,则i为0;φ0表示初始化的水平集函数,φ1表示第一次迭代后得到的新时刻水平集函数。Step S3, using the gradient descent algorithm to numerically solve the energy function of the active contour model, obtain the corresponding gradient flow equation to iterate the segmentation curve, calculate the partial differential equation to obtain the new moment level set function φ i+1 ; where i+1 represents the number of iterations, if it is the first iteration, i is 0; φ 0 represents the initialized level set function, and φ 1 represents the new moment level set function obtained after the first iteration.
在本发明的再种优选实施方式中,所述能量函数的数值求解过程为先计算获得梯度流方程再对梯度流方程进行数值迭代运算,其梯度流方程如下所示:In another preferred embodiment of the present invention, the numerical solution process of the energy function is to first calculate the gradient flow equation and then perform numerical iteration operation on the gradient flow equation, and the gradient flow equation is as follows:
其中,α,μ为常数项,t为时间,表示曲率。常数项α和μ,可根据具体情况设定,本实施例中,该值为步骤S1中初始的参数之一。Among them, α, μ are constant terms, t is time, The constant terms α and μ can be set according to the specific situation. In this embodiment, the value is one of the initial parameters in step S1.
步骤S4,对步骤S3得到的新时刻水平集函数φi+1,进行二值化惩罚以及高斯滤波的正则化处理。Step S4, performing binarization penalty and Gaussian filtering regularization processing on the new level set function φ i+1 obtained in step S3.
具体的,步骤S4包括以下步骤:Specifically, step S4 includes the following steps:
步骤S41,当φi+1>0时,φi+1=1;φi+1≤0时,φi+1=-1;Step S41, when φ i+1 >0, φ i+1 =1; when φ i+1 ≤0, φ i+1 =-1;
步骤S42,用高斯滤波正则化水平集函数φi+1,如φi+1=φi+1*Gδ。Step S42: Regularize the level set function φ i+1 using Gaussian filtering, such as φ i+1 = φ i+1 *G δ .
在步骤S42中,高斯核函数的标准差δ是一个关键参数,应根据具体图像适当选择。如果太小,会导致模型对噪声敏感,且演化不稳定;另一方面,如果太大,则可能发生边缘泄漏,并且检测到的边界可能不准确。In step S42, the standard deviation δ of the Gaussian kernel function is a key parameter and should be appropriately selected according to the specific image. If it is too small, the model will be sensitive to noise and the evolution will be unstable; on the other hand, if it is too large, edge leakage may occur and the detected boundary may be inaccurate.
步骤S5,判断曲线是否继续迭代,若满足收敛条件,停止迭代,完成图像分割;若不满足收敛条件,则执行步骤S2,进行下一次迭代。Step S5, determining whether the curve continues to iterate, if the convergence condition is met, stopping the iteration and completing the image segmentation; if the convergence condition is not met, executing step S2 and performing the next iteration.
具体的,步骤S5数值迭代运算的收敛条件为:Specifically, the convergence condition of the numerical iteration operation in step S5 is:
其中Γ为像素点个数阈值,length(·)用来计算的长度,i+1为迭代次数,第一次迭代时,i为0。Where Γ is the pixel number threshold, length(·) is used to calculate , i+1 is the number of iterations, and i is 0 for the first iteration.
活动轮廓模型使用连续曲线来表达目标轮廓,并定义了一个能量泛函,将分割过程转变为求解能量泛函的最小值过程,数值实现时可以通过求解函数对应的欧拉(Euler-Lagrange)方程,得到能量泛函的梯度流方程。当能量达到最小时,最终的曲线就是所求的目标轮廓。通过目标轮廓区分前景区域与背景区域,实现图像分割。The active contour model uses a continuous curve to express the target contour and defines an energy functional, which transforms the segmentation process into a process of solving the minimum value of the energy functional. When numerically implemented, the gradient flow equation of the energy functional can be obtained by solving the Euler-Lagrange equation corresponding to the function. When the energy reaches the minimum, the final curve is the target contour. The target contour is used to distinguish the foreground area from the background area to achieve image segmentation.
以上所述,仅为本发明具体实施方式的详细说明,而非对本发明的限制。相关技术领域的技术人员在不脱离本发明的原则和范围的情况下,做出的各种替换、变型以及改进均应包含在本发明的保护范围之内。The above is only a detailed description of the specific implementation of the present invention, rather than a limitation of the present invention. Various substitutions, modifications and improvements made by those skilled in the relevant art without departing from the principle and scope of the present invention should be included in the protection scope of the present invention.
Claims (2)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010251518.8A CN111462145B (en) | 2020-04-01 | 2020-04-01 | Active contour image segmentation method based on double-weight symbol pressure function |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010251518.8A CN111462145B (en) | 2020-04-01 | 2020-04-01 | Active contour image segmentation method based on double-weight symbol pressure function |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111462145A CN111462145A (en) | 2020-07-28 |
| CN111462145B true CN111462145B (en) | 2023-04-07 |
Family
ID=71684353
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010251518.8A Active CN111462145B (en) | 2020-04-01 | 2020-04-01 | Active contour image segmentation method based on double-weight symbol pressure function |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111462145B (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112102243B (en) * | 2020-08-13 | 2023-06-09 | 哈尔滨工业大学(深圳) | Active contour segmentation method and system combining general energy function and priori information item |
| CN112884765A (en) * | 2021-03-25 | 2021-06-01 | 上海交通大学 | 2D image and 3D image registration method based on contour features |
| CN115984312B (en) * | 2023-03-15 | 2023-07-07 | 苏州大学 | Image segmentation method, electronic device and computer-readable storage medium |
| CN116777935B (en) * | 2023-08-16 | 2023-11-10 | 天津市肿瘤医院(天津医科大学肿瘤医院) | Method and system for automatically segmenting the entire prostate gland based on deep learning |
| CN117593323B (en) * | 2024-01-19 | 2024-03-29 | 苏州大学 | An image segmentation method, system, medium and device based on non-local features |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6282307B1 (en) * | 1998-02-23 | 2001-08-28 | Arch Development Corporation | Method and system for the automated delineation of lung regions and costophrenic angles in chest radiographs |
| CN106204592A (en) * | 2016-07-12 | 2016-12-07 | 东北大学 | A kind of image level collection dividing method based on local gray level cluster feature |
| CN107274414A (en) * | 2017-05-27 | 2017-10-20 | 西安电子科技大学 | Image partition method based on the CV models for improving local message |
| JP2018077112A (en) * | 2016-11-09 | 2018-05-17 | 学校法人同志社 | Particle diameter analysis method and particle diameter analysis program |
| CN108090909A (en) * | 2017-12-15 | 2018-05-29 | 中国人民解放军陆军军医大学第附属医院 | A kind of ultrasonic contrast image partition method based on statistics Partial Differential Equation Model |
| CN109472792A (en) * | 2018-10-29 | 2019-03-15 | 石家庄学院 | An Image Segmentation Method Combining Local Energy Functional with Local Entropy and Non-convex Regular Term |
| CN109886977A (en) * | 2019-02-19 | 2019-06-14 | 闽南师范大学 | An image segmentation method with neighborhood constraints, terminal device and storage medium |
| CN110211140A (en) * | 2019-06-14 | 2019-09-06 | 重庆大学 | Abdominal vascular dividing method based on 3D residual error U-Net and Weighted Loss Function |
| WO2019209179A1 (en) * | 2018-04-27 | 2019-10-31 | Agency For Science, Technology And Research | System and method for intensity inhomogeneous image segmentation |
Family Cites Families (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO1999005640A1 (en) * | 1997-07-25 | 1999-02-04 | Arch Development Corporation | Method and system for the segmentation of lung regions in lateral chest radiographs |
| US7248736B2 (en) * | 2004-04-19 | 2007-07-24 | The Trustees Of Columbia University In The City Of New York | Enhancing images superimposed on uneven or partially obscured background |
| WO2007027893A2 (en) * | 2005-08-30 | 2007-03-08 | The Regents Of The University Of California, Santa Cruz | Kernel regression for image processing and reconstruction |
| NL2003699A (en) * | 2008-12-18 | 2010-06-21 | Brion Tech Inc | Method and system for lithography process-window-maximixing optical proximity correction. |
| CN102135606B (en) * | 2010-12-13 | 2012-11-07 | 电子科技大学 | KNN (K-Nearest Neighbor) sorting algorithm based method for correcting and segmenting grayscale nonuniformity of MR (Magnetic Resonance) image |
| CN102411794B (en) * | 2011-07-29 | 2013-11-06 | 南京大学 | Output method of two-dimensional (2D) projection of three-dimensional (3D) model based on spherical harmonic transform |
| FR2999325A1 (en) * | 2012-12-07 | 2014-06-13 | Commissariat Energie Atomique | ITERATIVE METHOD OF DETERMINING A TWO-DIMENSIONAL OR THREE-DIMENSIONAL IMAGE FROM X-RAY TOMOGRAPHY SIGNALS |
| US10229492B2 (en) * | 2015-06-17 | 2019-03-12 | Stoecker & Associates, LLC | Detection of borders of benign and malignant lesions including melanoma and basal cell carcinoma using a geodesic active contour (GAC) technique |
| US9999400B2 (en) * | 2015-07-29 | 2018-06-19 | Perkinelmer Health Services, Inc. | Systems and methods for automated segmentation of individual skeletal bones in 3D anatomical images |
| CN106845512A (en) * | 2016-11-30 | 2017-06-13 | 湖南文理学院 | Beasts shape recognition method and system based on fractal parameter |
| CN107730513B (en) * | 2017-09-29 | 2019-09-13 | 华中科技大学 | A Particle Identification and Tracking Method Based on Spherical Harmonic Invariants |
-
2020
- 2020-04-01 CN CN202010251518.8A patent/CN111462145B/en active Active
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6282307B1 (en) * | 1998-02-23 | 2001-08-28 | Arch Development Corporation | Method and system for the automated delineation of lung regions and costophrenic angles in chest radiographs |
| CN106204592A (en) * | 2016-07-12 | 2016-12-07 | 东北大学 | A kind of image level collection dividing method based on local gray level cluster feature |
| JP2018077112A (en) * | 2016-11-09 | 2018-05-17 | 学校法人同志社 | Particle diameter analysis method and particle diameter analysis program |
| CN107274414A (en) * | 2017-05-27 | 2017-10-20 | 西安电子科技大学 | Image partition method based on the CV models for improving local message |
| CN108090909A (en) * | 2017-12-15 | 2018-05-29 | 中国人民解放军陆军军医大学第附属医院 | A kind of ultrasonic contrast image partition method based on statistics Partial Differential Equation Model |
| WO2019209179A1 (en) * | 2018-04-27 | 2019-10-31 | Agency For Science, Technology And Research | System and method for intensity inhomogeneous image segmentation |
| CN109472792A (en) * | 2018-10-29 | 2019-03-15 | 石家庄学院 | An Image Segmentation Method Combining Local Energy Functional with Local Entropy and Non-convex Regular Term |
| CN109886977A (en) * | 2019-02-19 | 2019-06-14 | 闽南师范大学 | An image segmentation method with neighborhood constraints, terminal device and storage medium |
| CN110211140A (en) * | 2019-06-14 | 2019-09-06 | 重庆大学 | Abdominal vascular dividing method based on 3D residual error U-Net and Weighted Loss Function |
Non-Patent Citations (2)
| Title |
|---|
| Jim Braux-Zin等.A General Dense Image Matching Framework Combining Direct and Feature-Based Costs.《Proceedings of the IEEE International Conference on ComputerVision (ICCV)》.2013,全文. * |
| 何宁等.基于几何活动轮廓模型的图像分割方法研究综述.《2008 年全国射线数字成像与CT 新技术研讨会论文集》.2010,全文. * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111462145A (en) | 2020-07-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111462145B (en) | Active contour image segmentation method based on double-weight symbol pressure function | |
| US9968257B1 (en) | Volumetric quantification of cardiovascular structures from medical imaging | |
| Lynch et al. | Automatic segmentation of the left ventricle cavity and myocardium in MRI data | |
| Dubey et al. | Evaluation of three methods for MRI brain tumor segmentation | |
| CN109300113B (en) | Pulmonary nodule auxiliary detection system and method based on improved convex hull method | |
| CN109431531B (en) | Blood vessel segmentation method and device based on perfusion imaging and computer device | |
| Ibrahim et al. | A new deformable model based on fractional Wright energy function for tumor segmentation of volumetric brain MRI scans | |
| Yin et al. | Fully-automatic segmentation of kidneys in clinical ultrasound images using a boundary distance regression network | |
| CN106296660B (en) | A fully automatic coronary artery segmentation method | |
| CN109191468B (en) | Blood vessel extraction method, device and storage medium | |
| Czipczer et al. | Adaptable volumetric liver segmentation model for CT images using region-based features and convolutional neural network | |
| Larrey-Ruiz et al. | Automatic image-based segmentation of the heart from CT scans | |
| Kaftan et al. | Fuzzy pulmonary vessel segmentation in contrast enhanced CT data | |
| Dogra et al. | Glioma extraction from MR images employing gradient based kernel selection graph cut technique | |
| CN104751457B (en) | A kind of new liver segmentation method based on variation energy | |
| CN109816665B (en) | A method and device for fast segmentation of optical coherence tomography images | |
| Santos et al. | Automatic segmentation of the lumen of the carotid artery in ultrasound B-mode images | |
| CN111192249A (en) | Medical image lesion region segmentation method based on energy functional model of machine learning | |
| CN115018863A (en) | Image segmentation method and device based on deep learning | |
| Kazemi et al. | Automated segmentation of cardiac fats based on extraction of textural features from non-contrast CT images | |
| CN111091578B (en) | Segmentation method for vascular medical image | |
| Akkasaligar et al. | Automatic segmentation and analysis of renal calculi in medical ultrasound images | |
| Wang et al. | A robust statistics driven volume-scalable active contour for segmenting anatomical structures in volumetric medical images with complex conditions | |
| TW201419167A (en) | Dynamic cardiac image analysis and cardiac function assessment system | |
| Hussain | A stable region-based image segmentation model integrating fuzzy logic and geometric principles |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |