传统的多源色彩迁移算法常常利用欧氏色彩距离来分割目标图像,由于色彩序列的模糊性与不确定性,使得这种分割极易出现色彩扭曲现象.针对这个问题,提出一种基于主动轮廓探索的多源色彩迁移算法.首先,为将目标图像的主体与背景分离开,利用一种主动进化的方法生成虚拟轮廓线,并采用能量函数评价机制迫使虚拟轮廓线逐渐逼近实际轮廓线.其次,合理利用源图像与目标图像在RGB、Gray和LMS等不同色彩空间的表示、分割、转换,实现其在2dp空间的多源色彩迁移.最后,将在20口空间迁移得到的目标图像逆向操作后恢复为RGB显示.单源与多源色彩迁移的对比、灰度化色彩通道的选择以及各色彩空间不同色彩通道间的干涉性对比等实验验证了所提算法的合理性与有效性.
Traditional multi-source color transfer algorithms often use Euclidean color distance to split the target image. However, the vagueness and uncertainty of the color sequence easily make the image segmentation prone to color distortion. In order to solve this problem, a multi-source color transfer based on active contours exploration algorithm is proposed. Firstly, for the purpose of splitting the object and background of the target image, an active evolutionary method is used to generate a virtual contour and an energy function evaluation mechanism is used to force the virtual contour gradually to approach the real contour. Secondly, representation, segmentation and transformation of the source and target images in different color spaces, i.e., RGB, Gray and LMS, are exploited to transfer color style from source images to the target image in the la/3 color space. Finally, the processed image in lαβ color space is operated backwards and is displayed in the RGB space. Simulation studies involving comparison of single-source and multi-source color transfers, selection for optimal color channel in Gray space, and analysis of mutual interference between color channels in different color spaces have verified the rationality and effectiveness of the proposed algorithm.