Journal of Textile Research ›› 2021, Vol. 42 ›› Issue (11): 97-102.doi: 10.13475/j.fzxb.20201103806

• Dyeing and Finishing & Chemicals • Previous Articles     Next Articles

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 Online:2021-11-15 Published:2021-11-29

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

CLC Number: 

  • TS194.1

Fig.1

Examples of printed fabric image (a) and smoothed image(b)"

Fig.2

Separated image of printed fabric"

Fig.3

Separated color replacement of printed fabric"

Fig.4

Separated color replacement comparison"

Fig.5

Smoothing parameter λ adjustment"

Fig.6

Smoothing parameter σ adjustment"

Fig.7

Bandwidth parameter h adjustment"

Fig.8

Color replacement test results. (a)Single separated color replacement; (b) Multiple separated colors replacement"

Fig.9

Segmentation algorithm comparison"

[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] REN Weijia, DU Yuhong, ZUO Hengli, YUAN Ruwang. Research progress in image segmentation and edge detection methods for alien fibers detection in cotton [J]. Journal of Textile Research, 2021, 42(12): 196-204.
[2] QIU Kebin, CHEN Weiguo, ZHOU Hua, YING Shuangshuang. Research and development of textile color measurement based on imaging technologies [J]. Journal of Textile Research, 2020, 41(09): 155-161.
[3] . Segmentation of fabric defect images based on improved frequency-tuned salient algorithm [J]. JOURNAL OF TEXTILE RESEARCH, 2018, 39(05): 125-131.
[4] . Graphic contour extraction for printed fabric based on Ttxture smoothing [J]. JOURNAL OF TEXTILE RESEARCH, 2017, 38(11): 162-167.
[5] . Intelligent inspection of dominant colors for Chinese traditional folk Yunjian [J]. JOURNAL OF TEXTILE RESEARCH, 2017, 38(11): 110-115.
[6] . Concave points matching and segmentation algorithm for overlapped fiber image [J]. JOURNAL OF TEXTILE RESEARCH, 2017, 38(11): 143-149.
[7] . Detection method for machine-harvested cotton impurities based on region color segmentation [J]. JOURNAL OF TEXTILE RESEARCH, 2017, 38(07): 135-141.
[8] . Warp knit fabric defect detection method based on optimal Gabor filters [J]. JOURNAL OF TEXTILE RESEARCH, 2016, 37(11): 48-54.
[9] . Fabric image segmentation based on multi-feature fusion [J]. JOURNAL OF TEXTILE RESEARCH, 2016, 37(08): 149-153.
[10] . Determination on design cycle of printed fabrics based on distance matching function [J]. Journal of Textile Research, 2015, 36(12): 98-103.
[11] . Backed weave image segmentation based on smoothing filter and watershed algorithm [J]. JOURNAL OF TEXTILE RESEARCH, 2015, 36(08): 38-42.
[12] Yu-zheng LU. Color separation algorithm for mixed dyed textiles based on image segmentation [J]. JOURNAL OF TEXTILE RESEARCH, 2012, 33(9): 55-60.
[13] JING Jun-Feng, MENG Tai, LI Peng-Fei. Textile printing image segmentation based on FCM [J]. JOURNAL OF TEXTILE RESEARCH, 2012, 33(6): 97-100.
[14] . Segmentation of jacquard warp-knitted fabric image based on hierarchical Markov random field model [J]. JOURNAL OF TEXTILE RESEARCH, 2012, 33(12): 102-106.
[15] LI Pengfei;WANG Gang;JING Junfeng;JIAO Ke. Segmenting color region of textile printing pattern image based on the algorithem of JSEG [J]. JOURNAL OF TEXTILE RESEARCH, 2010, 31(5): 137-140.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
[1] . [J]. JOURNAL OF TEXTILE RESEARCH, 2003, 24(06): 33 -34 .
[2] . [J]. JOURNAL OF TEXTILE RESEARCH, 2003, 24(06): 35 -36 .
[3] . [J]. JOURNAL OF TEXTILE RESEARCH, 2003, 24(06): 107 .
[4] . [J]. JOURNAL OF TEXTILE RESEARCH, 2003, 24(06): 109 -620 .
[5] . [J]. JOURNAL OF TEXTILE RESEARCH, 2004, 25(01): 1 -9 .
[6] . [J]. JOURNAL OF TEXTILE RESEARCH, 2004, 25(02): 103 -104 .
[7] . [J]. JOURNAL OF TEXTILE RESEARCH, 2004, 25(02): 105 -107 .
[8] . [J]. JOURNAL OF TEXTILE RESEARCH, 2004, 25(02): 108 -110 .
[9] . [J]. JOURNAL OF TEXTILE RESEARCH, 2004, 25(02): 111 -113 .
[10] . [J]. JOURNAL OF TEXTILE RESEARCH, 2004, 25(02): 116 -118 .