系统仿真学报 ›› 2015, Vol. 27 ›› Issue (10): 2359-2364.

• 虚拟现实与可视化 • 上一篇    下一篇

基于K均值聚类和区域匹配的颜色迁移技术

张子迎1,2, 周明全1,2, 税午阳1,2, 武仲科1,2, 郑霞3   

  1. 1.北京师范大学信息科学与技术学院,北京 100875;
    2.虚拟现实应用教育部工程研究中心,北京 100875;
    3.浙江大学文物与博物馆学系,杭州 310058
  • 收稿日期:2015-06-13 修回日期:2015-07-24 出版日期:2015-10-08 发布日期:2020-08-07
  • 作者简介:张子迎(1987-),女,安徽,博士,研究方向为数字图像处理;周明全(1954-),男,陕西,博士,教授,研究方向为三维可视化技术;税午阳(1983-),男,陕西,博士,研究方向为文化遗产数字化。
  • 基金资助:
    国家自然科学基金(61202198, 61402042); 中央高校基本科研业务费(2013YB72)

Color Transfer Based on K-means Clustering Algorithm and Region Matching

Zhang Ziying1,2, Zhou Mingquan1,2, Shui Wuyang1,2, Wu Zhongke1,2, Zheng Xia3   

  1. 1. College of Information Science and Technology, Beijing Normal University, Beijing 100875, China;
    2. Engineering Research Center of Virtual Reality and Applications, Ministry of Education, Beijing 100875, China;
    3. Department of Culture Heritage and Museology, Hangzhou 310058, China
  • Received:2015-06-13 Revised:2015-07-24 Online:2015-10-08 Published:2020-08-07

摘要: 针对色彩丰富的图像之间的颜色传递问题,利用K均值聚类对图像进行分析,并提出最近区域匹配算法,该算法可以避免多个区域匹配到同一个区域的问题,从而更好的实现两幅图像的颜色迁移。将两幅图像从RGB颜色空间转换到颜色空间中;用K均值模型分别对颜色图像和亮度重映射后的形状图像进行同类数的聚类分析;利用欧式距离和最近区域匹配算法确定两幅图像的区域匹配关系;完成颜色迁移。实验结果表明:该算法能较好地实现色彩丰富图像之间的色彩迁移。

关键词: K均值聚类, 区域匹配, 颜色迁移, 色彩丰富图像

Abstract: For color transfer between colorful images, we used K-means clustering to classify image pixels and we also proposed nearest region matching algorithm. This algorithm can avoid the problem that multiple regions matched to the same region, and it can get the best match results between the two images. Translate the color space from RGB to for the two images. Divide color image and luminance mapped shape image using K-means models into the same number of classes. Determine the relationship between regions of the two images using Euclidean distance and the nearest region matching algorithm. Complete color transfer from color image to the shape image. Experimental results show that the algorithm can achieve the color transfer better for colorful images.

Key words: K-means clustering, region matching, color transfer, colorful image

中图分类号: