Current Issue Cover
偏度和峰度的图像色彩和谐变化

马云芳1,2, 宋明黎1, 卜佳俊1(1.浙江大学计算机学院, 杭州 310027;2.台州职业技术学院电气信息学院, 台州 318000)

摘 要
目的 当图像颜色较多时,使用Cohen-Or方法进行和谐变化之后的图像颜色丢失严重,和原图像相差较远,并且该方法在计算图像最优和谐模版类型时时间开销大。方法 鉴于此,本文引入用于描述变量所有取值分布形态偏向和陡缓程度的偏度和峰度来计算图像的和谐模版灰色区域H值范围,将七种和谐模版分类合并到X、T两大类,按照灰色区域损失最少为最优模版的原则,调整计算出来的和谐模版灰色区域H值到X或者T和谐模版的灰色区域中,采用标准高斯函数将颜色正态迁移到调整后的色彩和谐模版灰色区域中,最终实现图像色彩和谐变化。结果 实验结果表明,本文的图像和谐变化结果能和原图像保持较高的相似度,颜色损失较少,并大大降低了和谐变化所需的时间,一幅450×423图像和谐处理的时间开销由原来的2 549.78 s降低为13.869 3 s。结论 使用本文方法和谐变化之后的图像最大限度地保持了原有图像的颜色风格,可以为灰度图像着色、图像之间的色彩迁移、工业产品风格转移等应用提供帮助。
关键词
Image color harmonization algorithm using skewness and kurtosis

Ma Yunfang1,2, Song Mingli1, Bu Jiajun1(1.College of Computer Science and Technology, Zhejiang University, Hangzhou 310027, China;2.College of Electrical Information, Taizhou Vocational Technical College, Taizhou 318000, China)

Abstract
Objective Using Cohen-Or method to harmonize a color-rich image leads to severe alterations in the original colors of an image and thus creates a processed image that is different from the original one. Furthermore, deciding on the type of optimal color harmonization template is time consuming. Method This study introduces skewness and kurtosis, which are used to describe all variant values in the form of deviation and steep degree, to calculate the scope of the value H of a harmonization template gray area and categorize seven harmonization templates into X and T types. According to the gray area loss of at least the principle of the optimal template, the result of value H is applied to the gray area in the X or T harmonization template. Normalized Gaussian function is commonly used to migrate color into the gray area of the adjusted color harmonization template. Harmonization of the original image is then achieved.Result Experimental results show that the harmonized image using the proposed method exhibits great similarity to the original one, retains the original colors, and considerably reduces the time needed in the process of harmonization. The harmonious processing time of a 450×423 image is reduced from 2 549.78 s to 13.869 3 s. Conclusion The harmonized image using the proposed method retains its color style similarity to the original image. The proposed method facilitates grayscale image colorization, image color transfer, and industrial product style transfer.
Keywords

订阅号|日报