针对图切割在图像分割中的研究主要集中于交互式图像分割,提出一种基于图切割,对彩色图像和灰度图像均可进行自动分割的方法.通过对图像进行初始化,建立能量函数的数据项、光滑项,图切割求解及迭代执行等步骤自动实现图像的分割,既无需用户人工交互进行约束,也无需对图像建模及对数据分布进行估计,可以较快速度获得良好的分割结果.通过实验对彩色图像和灰度图像进行自动分割,实验结果验证该方法的有效性.
Aiming at graph cuts majoring in interactive image segmentation, an automatic image segmentation method based on graph cuts is proposed. It can be used in both segmenting color images and segmenting gray images. In this method, the data item and the smooth item of the energy function are established after initialization. The energy function is solved by graph cuts. The series of steps are implemented iteratively until certain condition is met. The method does not need to make any constraints, build image model or estimate data distribution. It obtains good segmentation result rapidly. Gray images and color images are segmented by experiments. The experimental results show that the proposed approach is favorable.