纺织学报 ›› 2021, Vol. 42 ›› Issue (11): 97-102.doi: 10.13475/j.fzxb.20201103806

• 染整与化学品 • 上一篇    下一篇

应用均值漂移的印花面料交互式换色方法

胡群, 张宁, 潘如如   

  1. 生态纺织教育部重点实验室(江南大学), 江苏 无锡 214122
  • 收稿日期:2020-11-17 修回日期:2021-06-09 出版日期:2021-11-15 发布日期:2021-11-29
  • 作者简介:胡群(1997—),女,硕士生。主要研究方向为风格迁移和面料换色。
  • 基金资助:
    国家自然科学基金项目(61976105);中国纺织工业联合会应用基础研究项目(J202006)

Interactive color replacement method for printed fabrics based on Mean-shift

HU Qun, ZHANG Ning, PAN Ruru   

  1. Key Laboratory of Eco-Textiles(Jiangnan University), Ministry of Education, Wuxi, Jiangsu 214122, China
  • Received:2020-11-17 Revised:2021-06-09 Published:2021-11-15 Online:2021-11-29

摘要:

针对印花面料设计专业性要求高、面料打样耗时费力、对面料进行换色生产系列产品困难的问题,提出了一种基于纹理平滑与均值漂移(Mean-shift)的面料分色换色方法。采集并剪裁获得印花面料图像,采用相对总变差模型对面料图像进行纹理平滑,将平滑后的图像转换到CIE1976L*a*b*色彩空间,然后利用Mean-shift聚类算法对面料图像进行分割,提取面料图像分色。通过交互式的方法调节分色,建立目标颜色与图像原始分色的映射关系,实现面料的分色换色,并采集不同的印花面料图像进行换色实验。结果表明:换色图像自然真实,面料纹理细节保留完整,可辅助印花面料设计,模拟印花面料的打样效果。

关键词: 印花面料, 图像平滑, 图像分割, Mean-shift聚类, 分色换色

Abstract:

In order to enhance the professional design skills, increase the efficiency in pattern proofing and facilitate color replacement for product series in designing and producing printed fabrics, a color separation and color replacement method was proposed for the printed fabric based on texture smoothing and Mean-shift image segmentation.The printed fabrics were captured and cut to obtain the images before the fabric image was smoothed using the relative total variation model. After transferring into CIE1976L*a*b*color space, the image was segmented using Mean-shift clustering to extract the separated colors. The mapping relationship between new color and original color was built for color replacement. Finally, color replacement was achieved by interactively adjusting values of the separated colors. Different printed fabrics were captured for the color replacement experiments, and the results show that fabric images after color replacement are natural and practical, and texture details of the fabrics are reserved completely. This method can assist the design of printed fabrics as well as effects simulation of fabric proofing.

Key words: printed fabric, image smoothing, image segmentation, Mean-shift clustering, separated color replacement

中图分类号: 

  • TS194.1

图1

印花面料及平滑图像示例"

图2

印花面料分色图"

图3

印花面料分色换色"

图4

分色换色对比图"

图5

平滑参数λ调节"

图6

平滑参数σ调节"

图7

带宽参数h调节"

图8

换色实验结果"

图9

分割算法比较"

[1] REINHARD E, ASHIKHMIN M, GOOCH B, et al. Color transfer between images[J]. IEEE Computer Graphics and Applications, 2002, 21(5):34-41.
[2] LEVIN A, LISCHINSKI D, WEISS Y. Colorization using optimization[J]. ACM Transactions on Graphics, 2004, 23(3):689-694.
doi: 10.1145/1015706.1015780
[3] HAN Y, XU C, BACIU G, et al. Cartoon and texture decomposition-based color transfer for fabric images[J]. IEEE Transactions on Multimedia, 2017, 19(1):80-92.
doi: 10.1109/TMM.2016.2608000
[4] 张建海, 张森林. 交互式彩色图像分色换色算法及实现[J]. 纺织学报, 2005, 26(2):108-120.
ZHANG Jianhai, ZHANG Senlin. Interactive color separation and replacement for color image[J]. Journal of Textile Research, 2005, 26(2):108-120.
doi: 10.1177/004051755602600202
[5] CHANG H, FRIED O, LIU Y, et al. Palette-based photo recoloring[J]. ACM Transaction on Graphics, 2015, 34(4):1-11.
[6] ZHANG Q, XIAO C, SUN H, et al. Palette-based image recoloring using color decomposition optimization[J]. IEEE Transactions on Image Processing, 2017(4):1952-1963.
[7] 谢斌, 徐晨, 韩雨, 等. 显著颜色提取的织物图像色彩转移改进方法[J]. 信号处理, 2019(4):593-599.
XIE Bin, XU Chen, HAN Yu, et al. Improved fabric image color transfer method combined with significant color extraction[J]. Journal of Signal Processing, 2019(4):593-599.
[8] LI J, XIAO H, TAN D, et al. Image colorization based on texture by using of CNN [C]//2019 IEEE 4th International Conference on Image, Vision and Computing.Xiamen:IEEE, 2020: 167-171.
[9] XU L, YAN Q, XIA Y, et al. Structure extraction from texture via relative total variation[J]. ACM Transactions on Graphics, 2012, 31(6):139.
[10] 邢乐, 张杰, 梁惠娥, 等. 传统服饰云肩实物图像主色的智能检测[J]. 纺织学报, 2017, 38(11):110-115.
XING Le, ZHANG Jie, LIANG Hui'e, et al. Intelligent inspection of dominant color for Chinese traditional folk Yunjian[J]. Journal of Textile Research, 2017, 38(11):110-115.
[11] LONG J W, FENG X, ZHU X F, et al. Efficient superpixel-guided interactive image segmentation based on graph theory[J]. Symmetry, 2018, 10(5):169.
doi: 10.3390/sym10050169
[12] ZHANG N, XIANG J, WANG L, et al. Image retrieval of wool fabric: part II: based on low-level color features[J]. Textile Research Journal, 2019, 89(19-20):7-8.
[13] 刘哲, 黄文准, 王利平. 基于改进K-means聚类算法的大田麦穗自动计数[J]. 农业工程学报, 2019, 35(3):174-181.
LIU Zhe, HUANG Wenzhun, WANG Liping. Field wheat ear counting automatically based on improved K-means clustering algorithm[J]. Transactions of the Chinese Society of Agricultural Engineering, 2019, 35(3):174-181.
[1] 任维佳, 杜玉红, 左恒力, 袁汝旺. 棉花中异性纤维检测图像分割和边缘检测方法研究进展[J]. 纺织学报, 2021, 42(12): 196-204.
[2] 裘柯槟, 陈维国, 周华, 应双双. 成像技术在纺织品颜色测量中的应用进展[J]. 纺织学报, 2020, 41(09): 155-161.
[3] 徐启永 胡峰 王传桐 吴雨川. 改进频率调谐显著算法在疵点图像分割中的应用[J]. 纺织学报, 2018, 39(05): 125-131.
[4] 向军 张杰 潘如如 韩要宾 张继东 高卫东 . 采用纹理平滑的印花织物图案轮廓提取[J]. 纺织学报, 2017, 38(11): 162-167.
[5] 陈晓春 张彦彬 彭虎 陈翔 褚乃清. 重叠纤类图像的凹点匹配和分割算法[J]. 纺织学报, 2017, 38(11): 143-149.
[6] 张成梁 李蕾 董全成 葛荣雨. 应用区域颜色分割的机采棉杂质检测方法[J]. 纺织学报, 2017, 38(07): 135-141.
[7] 尉苗苗 李岳阳 蒋高明 丛洪莲. 应用最优Gabor滤波器的经编织物疵点检测[J]. 纺织学报, 2016, 37(11): 48-54.
[8] 曹丽 胡旭东. 基于多特征融合的织物印花图像分割[J]. 纺织学报, 2016, 37(08): 149-153.
[9] 周慧 张华熊 胡洁 康锋. 基于平滑滤波和分水岭算法的重组织织物图像分割[J]. 纺织学报, 2015, 36(08): 38-42.
[10] 卢雨正 高卫东. 基于图像分割的拼色纺织品分色算法[J]. 纺织学报, 2012, 33(9): 55-60.
[11] 景军锋, 孟泰, 李鹏飞. 基于模糊C均值聚类的纺织品印花图像分割[J]. 纺织学报, 2012, 33(6): 97-100.
[12] 张扬 蒋高明 姚君洲 童有成. 基于MRF层次模型的贾卡经编针织物图像分割技术[J]. 纺织学报, 2012, 33(12): 102-106.
[13] 李鹏飞;王刚;景军锋;焦珂. 基于JSEG算法的纺织品印花图像分割[J]. 纺织学报, 2010, 31(5): 137-140.
[14] 包晓敏;彭霄;汪亚明;曹作宝. 基于贝叶斯决策及半监督聚类的织物图像分割[J]. 纺织学报, 2010, 31(2): 125-128.
[15] 万永菁;万光逵. 图像分割算法在花型自动识别中的应用[J]. 纺织学报, 2007, 28(5): 63-65.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
[1] 赵良臣;闻涛. 旋转组织设计的数学原理[J]. 纺织学报, 2003, 24(06): 33 -34 .
[2] 曹建达;顾小军;殷联甫. 用BP神经网络预测棉织物的手感[J]. 纺织学报, 2003, 24(06): 35 -36 .
[3] 【作者单位】:中国纺织工程学会秘书处【分类号】:+【DOI】:cnki:ISSN:0-.0.00-0-0【正文快照】:  香港桑麻基金会设立的“桑麻纺织科技奖” 0 0 年提名推荐工作;在纺织方面院士;专家和有关单位的大力支持下;收到了 个单位 (人 )推荐的 位候选人的. 2003年桑麻纺织科技奖获奖名单[J]. 纺织学报, 2003, 24(06): 107 .
[4] 【分类号】:Z【DOI】:cnki:ISSN:0-.0.00-0-0【正文快照】:  一;纺 纱模糊控制纺纱张力的研究周光茜等 ( - )………………原棉含杂与除杂效果评价方法的研究于永玲 ( - )……网络长丝纱免浆免捻功能的结构表征方法李栋高等 ( - )……………. 2003年纺织学报第二十四卷总目次[J]. 纺织学报, 2003, 24(06): 109 -620 .
[5] 朱敏;周翔. 准分子激光对聚合物材料的表面改性处理[J]. 纺织学报, 2004, 25(01): 1 -9 .
[6] 邓炳耀;晏雄. 热压对芳纶非织造布机械性能的影响[J]. 纺织学报, 2004, 25(02): 103 -104 .
[7] 张治国;尹红;陈志荣. 纤维前处理用精练助剂研究进展[J]. 纺织学报, 2004, 25(02): 105 -107 .
[8] 秦元春. 纺织工业发展方向初探[J]. 纺织学报, 2004, 25(02): 108 -110 .
[9] 高伟江;魏文斌. 纺织业发展的战略取向——从比较优势到竞争优势[J]. 纺织学报, 2004, 25(02): 111 -113 .
[10] 刘从九. 我国纺织品绿色国际竞争力[J]. 纺织学报, 2004, 25(02): 116 -118 .