张敏, 闵乐泉, 张群, 刘飒. 基于马氏距离和模糊C均值聚类的抠图算法与应用[J]. 工程科学学报, 2014, 36(5): 688-694. DOI: 10.13374/j.issn1001-053x.2014.05.018
引用本文: 张敏, 闵乐泉, 张群, 刘飒. 基于马氏距离和模糊C均值聚类的抠图算法与应用[J]. 工程科学学报, 2014, 36(5): 688-694. DOI: 10.13374/j.issn1001-053x.2014.05.018
ZHANG Min, MIN Le-quan, ZHANG Qun, LIU Sa. Matting algorithm and application based on Mahalanobis distance and the fuzzy C-means clustering algorithm[J]. Chinese Journal of Engineering, 2014, 36(5): 688-694. DOI: 10.13374/j.issn1001-053x.2014.05.018
Citation: ZHANG Min, MIN Le-quan, ZHANG Qun, LIU Sa. Matting algorithm and application based on Mahalanobis distance and the fuzzy C-means clustering algorithm[J]. Chinese Journal of Engineering, 2014, 36(5): 688-694. DOI: 10.13374/j.issn1001-053x.2014.05.018

基于马氏距离和模糊C均值聚类的抠图算法与应用

Matting algorithm and application based on Mahalanobis distance and the fuzzy C-means clustering algorithm

  • 摘要: 基于马氏距离和模糊C均值聚类算法提出了一种数字彩色图像抠图算法.该算法首先对彩色图像像素的红绿蓝三种彩色分量进行正则化处理;然后在正则化图像背景中选取适当的掩膜作为样本集,计算各像素与样本集之间的马氏距离;再利用模糊C均值聚类算法对计算出的马氏距离进行分类;最后利用填洞操作提高抠图质量.对八幅彩色数字图像进行对比实验,结果显示本算法可以自动抠图,且结果优于马氏距离算法、Grow-Cut算法和正则化线性回归算法的相应抠图效果.

     

    Abstract: Based on Mahalanobis distance and the fuzzy C-means algorithm, this article introduces a digital color image matting algorithm. First the red, green and blue color components of color image pixels are normalized. Second the appropriate mask as a sample set is selected in the background of the normalized image, and the Mahalanobis distance between each pixel and the sample set is calculated. Third the calculated Mahalanobis distances are classified into two categories using the fuzzy C-means clustering algorithm:the foreground and the background. Finally, the quality of the matting is improved using the filling-hole technique. Eight images have been processed for comparison, the results show that this algorithm can automatically segment these images, and is better than the Mahalanobis distance algorithm, fuzzy C-means clustering algorithm and linear regression algorithm.

     

/

返回文章
返回