Current Issue Cover
自动采集样本的图像颜色传递算法

张引1, 饶娜1, 张三元1, 叶修梓1(浙江大学计算机科学与技术学院,杭州 310027)

摘 要
图像的颜色传递是将一幅图像的颜色特征传递给另一幅图像,使目标图像具有与源图像相似的色彩。提出了一种自动采集样本的图像颜色传递方法,利用无监督学习聚类把目标图像和源图像分别分成一定数量的色彩相近的子块,通过计算各子块的纹理特征和亮度统计值,建立样本块之间的对应关系。从各子块中取出数据点密度较大的像素组成样本块。进而利用最佳匹配算法,查找目标样本块的像素在源图像对应样本块中的最佳匹配像素,将其颜色值传给目标像素。以目标图像中已完成颜色传递的样本块作为参考样本,使用纹理对比方式完成样本块以外其它像素的颜色传递。该自动采集样本算法既可用于彩色图像间颜色传递,也适用于灰度图像与彩色图像间颜色传递。在目标图像和源图像的各子块有明显纹理和亮度特征时,该算法可方便地用于批处理和视频中。
关键词
Color Transfer between Images with Auto Selecting Swatches

()

Abstract
Transferring color between images is a method that borrows one image's color characteristics from another.This paper introduces a technique for transferring color with auto selecting swatches.It uses unsupervised clustering to partition the target and the source image data into a certain number of subsets with similar color,then selects certain larger density pixels in each subset to construct corresponding swatch.It creates optimized correspondence by matching texture character and luminance between subsets.The color information is transferred from the matched pixel in source swatch to the target one.When color transmission is done between the source and the target swatches,the final colors are assigned to each pixel of the target image by matching pixel to pixel in the target swatches in the way of comparing texture characteristics.The proposed auto selecting swatches algorithm can be used to transfer color not only between two color images but also between a grey image and a color image.Because this technique can automatically perform color transfer process without user selecting swatches,it can be conveniently applied to batch process and video,provided that composition,texture and luminance are sufficiently distinct.
Keywords

订阅号|日报