纺织学报 ›› 2021, Vol. 42 ›› Issue (05): 103-108.doi: 10.13475/j.fzxb.20200808506

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

基于聚类算法和色彩网络的蝴蝶色彩分析及应用

任艳博1, 蒋超1(), 王教庆1, 俞琳1,2, 王园园1   

  1. 1.西安工程大学 服装与艺术设计学院, 陕西 西安 710048
    2.西北工业大学 现代设计与集成制造技术教育部重点实验室, 陕西 西安 710072
  • 收稿日期:2020-08-21 修回日期:2020-12-31 出版日期:2021-05-15 发布日期:2021-05-20
  • 通讯作者: 蒋超
  • 作者简介:任艳博(1998—),女,硕士。主要研究方向为计算机辅助色彩设计。
  • 基金资助:
    陕西省社会科学基金项目(2019k036);陕西省社科界重大理论与现实问题研究项目(2017C013)

Butterfly color analysis and application based on clustering algorithm and color network

REN Yanbo1, JIANG Chao1(), WANG Jiaoqing1, YU Lin1,2, WANG Yuanyuan1   

  1. 1. Apparel and Art Design College, Xi'an Polytechnic University, Xi'an, Shaanxi 710048, China
    2. Key Laboratory of Modern Design and Integrated Manufacturing Technology, Ministry of Education, Northwestern Polytechnical University,Xi'an, Shaanxi 710072, China
  • Received:2020-08-21 Revised:2020-12-31 Online:2021-05-15 Published:2021-05-20
  • Contact: JIANG Chao

摘要:

蝴蝶蕴含着独特的自然美,是设计师重要的设计灵感来源。为厘清蝴蝶色彩及其搭配规律,更好地进行蝴蝶色彩重用,基于聚类算法和色彩网络对蝴蝶色彩进行分析和应用研究。首先,利用K-means聚类算法对单只蝴蝶8种不同角度的图像进行2次色彩聚类和主色提取,构建110只蝴蝶的6色标准色卡。其次,对蝴蝶标准色卡再次聚类,结合蝴蝶色彩实际搭配关系,构建了包含20个网络节点的蝴蝶色彩网络模型,并通过4个蝴蝶样本对色彩网络模型的可靠性进行验证。最后,以丝巾纹样配色设计作为应用案例,验证标准色卡和色彩网络模型作为配色辅助工具的可操作性和应用价值。案例表明,蝴蝶标准色卡和色彩网络模型可以为设计师在色彩设计过程中提供有效的辅助和支持。

关键词: K-means聚类算法, 色彩提取, 色彩网络模型, 蝴蝶色彩, 色彩设计

Abstract:

The colorful butterfly with unique natural beauty is not only a common design theme, but also an important source of design inspiration. In order to clarify the color of butterfly as well as its matching rules and help designers better reuse the color of butterfly, the color of butterfly was studied and analyzed by clustering algorithm and color network. The color images of eight different angles of a single butterfly were firstly clustered twice using the K-means clustering algorithm, the main colors of butterfly were extracted, and the standard color cards of 110 butterflies were constructed. Then, the butterfly standard color cards were clustered for the third time, and the butterfly color network model including 20 network nodes was established, combined with the actual matching relationship of butterfly color. The reliability of the color network model was verified by six butterfly samples. Finally, the feasibility and application value of standard color card and color network model as color matching assistant tools were verified by the example of silk scarf pattern color matching design. Research and application cases show that butterfly standard color card and color network model can provide effective assistance and support for designers in the process of color design.

Key words: K-means clustering algorithm, color extraction, color network model, butterfly color, color design

中图分类号: 

  • TS941.26

图1

玉带凤蝴蝶图像预处理前后对比"

图2

单幅玉带凤蝴蝶图像主色提取结果及主色占比"

图3

玉带凤蝴蝶色彩库(48色)"

图4

玉带凤蝴蝶标准色卡"

图5

部分蝴蝶标准色卡"

表1

色彩节点RGB值及其归一化后的占比"

色彩
编号
色值 占比 色彩
编号
色值 占比
R G B R G B
C1 186 138 18 1.00 C11 161 155 161 0.48
C2 232 134 14 0.60 C12 233 238 245 0.49
C3 214 167 107 0.62 C13 130 146 186 0.37
C4 166 154 114 0.63 C14 84 86 168 0.46
C5 82 79 29 0.84 C15 104 160 176 0.34
C6 125 96 29 0.78 C16 89 130 55 0.25
C7 181 13 11 0.58 C17 151 194 156 0.51
C8 227 20 27 0.54 C18 241 229 177 0.60
C9 250 85 121 0.37 C19 219 210 48 0.44
C10 2 2 8 0.87 C20 217 195 113 0.83

图6

蝴蝶色彩网络模型"

图7

4个蝴蝶图像样本"

图8

4幅蝴蝶图像的验证结果"

图9

丝巾纹样线稿及色彩分析"

图10

部分设计方案"

图11

D20丝巾纹样配色设计方案"

[1] 马云芳, 宋明黎, 卜佳俊. 床上用品色彩风格辅助设计[J]. 纺织学报, 2015,36(6):84-91.
MA Yunfang, SONG Mingli, BU Jiajun. Aided design of harmony color style of bed clothes[J]. Journal of Textile Research, 2015,36(6):84-91.
[2] 李文柱, 崔俊芝. 浅谈色彩在昆虫绘画中的应用[J]. 昆虫知识, 2007,44(6):931-933.
LI Wenzhu, CUI Junzhi. Application of colour in insect illustrations[J]. Chinese Bulletin of Entomology, 2007,44(6):931-933.
[3] 罗炳金. 棉织锦3种色彩组织模型设计与应用[J]. 纺织学报, 2012,33(7):37-42.
LUO Bingjin. Design and application of three models of color figured patterns for woven cotton brocade[J]. Journal of Textile Research, 2012,33(7):37-42.
[4] 何皙健. 景观文化中的色彩提取与塑造[J]. 价值工程, 2012,31(6):53.
HE Xijian. Color extraction and shape in landscape culture[J]. Value Engineering, 2012,31(6):53.
[5] 王晓昕. 仿生色彩设计初探[J]. 艺术与设计(理论), 2007(7):35-37.
WANG Xiaoxin. The initial exploration of the bionic color design[J]. Art And Design, 2007(7):35-37.
[6] 张旻爽, 祝成炎, 李启正, 等. 基于蜂鸟羽毛的色彩提取及应用[J]. 丝绸, 2017,54(12):59-66.
ZHANG Minshuang, ZHU Chengyan, LI Qizheng, et al. Color extraction and application based on hummingbirds'feathers[J]. Journal of Silk, 2017,54(12):59-66.
[7] 刘肖健, 曹愉静, 赵露唏. 传统纹样的色彩网络模型及配色设计辅助技术[J]. 计算机集成制造系统, 2016,22(4):899-907.
LIU Xiaojian, CAO Yujing, ZHAO Luxi. Color networks of traditional cultural patterns and color design aiding technology[J]. Computer Integrated Manufacturing Systems, 2016,22(4):899-907.
[8] 陈登凯, 王瑶. 基于MCCQ的民间布老虎色彩特征提取及设计实践[J]. 包装工程, 2019,40(24):45-49.
CHEN Dengkai, WANG Yao. Color feature extraction of folk cloth tigers and design practice based on MCCQ algorithm[J]. Packaging Engineering, 2019,40(24):45-49.
[9] 王艳敏. 农民画色彩特征在地域农产品包装设计中的应用[J]. 包装工程, 2020,41(10):267-273.
WANG Yanmin. Application of color features of peasant paintings to the packaging design of regional agricultural products[J]. Packaging Engineering, 2020,41(10):267-273.
[10] 赵叶峰, 胡桃成, 彭韧, 等. 利用色彩和谐模式辅助提取油画主题色[J]. 计算机辅助设计与图形学学报, 2014,26(10):1576-1582.
ZHAO Yefeng, HU Taocheng, PENG Ren, et al. Extraction of theme colors from oil paintings aided by color harmony modules[J]. Journal of Computer-Aided Design & Computer Graphics, 2014,26(10):1576-1582.
[11] CYR D, HEAD M, LARIOS H. Colour appeal in website design within and across cultures: a multi-method evaluation[J]. Human-Computer Studies, 2010,68(1):1-z1.
doi: 10.1016/j.ijhcs.2009.08.005
[12] O'DONOVAN P, AGARWALA A, HERTZMANN A. Color compatibility from large datasets[C]// Computer Graphics Proceedings,Annual Conference Series,ACM SIGGRAPH. New York: ACM Press, 2011: 63.
[13] DAVID P, HOFMEYR. Degrees of freedom and model selection for k-means clustering[J]. Computational Statistics and Data Analysis, 2020,149. DOI: 10.1016/j.csda.2020.106974.
doi: 10.1016/j.csda.2020.106974
[14] 孙红艳. 用遗传算法优化初始聚类中心的K-means算法研究[J]. 电声技术, 2019,43(11):32-33,47.
SUN Hongyan. K-means algorithm for optimizing initial clustering centers by genetic algorithm[J]. Audio Engineering, 2019,43(11):32-33,47.
[15] 杨俊闯, 赵超. K-Means聚类算法研究综述[J]. 计算机工程与应用, 2019,55(23):7-14,63.
YANG Junchuang, ZHAO Chao. Survey on K-means clustering algorithm[J]. Computer Engineering and Applications, 2019,55(23):7-14,63.
[16] ZHANG Yong, WU Wenjian. Camouflage color selection based on improved K-means clustering[J]. Computer Engineering & Applications, 2006,45(6):210-212.
[1] 张益洁, 李涛, 吕叶馨, 杜磊, 邹奉元. 服装松量设计及表征模型构建研究进展[J]. 纺织学报, 2021, 42(04): 184-190.
[2] 张卓, 丛洪莲, 蒋高明, 董智佳. 基于交互式遗传算法的Polo衫快速款式推荐系统[J]. 纺织学报, 2021, 42(01): 138-144.
[3] 冀艳波, 王玲丽, 刘凯旋. 基于数字化三维人体模型的旗袍定制设计[J]. 纺织学报, 2021, 42(01): 133-137.
[4] 沈津竹, 赵晓露, 张帆, 俞青, 苏军强. 柔性康复手套设计与工效性评价[J]. 纺织学报, 2020, 41(09): 119-127.
[5] 周文明, 周建, 潘如如. 应用上下文视觉显著性的色织物疵点检测[J]. 纺织学报, 2020, 41(08): 39-44.
[6] 李雨虹, 李杨, 吴晶. 斜向分割线在现代旗袍结构中的应用[J]. 纺织学报, 2020, 41(05): 129-133.
[7] 张爱丹, 周赳. 聚集态网点结构提花织物的灰度仿真特性[J]. 纺织学报, 2020, 41(03): 62-67.
[8] 周赳, 陆爽怿. 数码提花织物分层组合设计原理及其实践[J]. 纺织学报, 2020, 41(02): 58-63.
[9] 余晓红, 刘洋飞, 郑小飞. 多经多纬纹织CAD简洁设计模式的实现与应用[J]. 纺织学报, 2020, 41(01): 63-68.
[10] 张爱丹, 周赳. 基于图像色网点化设计的织物结构呈色特征[J]. 纺织学报, 2019, 40(09): 56-61.
[11] 顾冰菲, 闫彦红, 苏军强, 刘国联. 女西装特征部位松量分布规则[J]. 纺织学报, 2019, 40(05): 107-112.
[12] 张爱丹, 周赳. 组合全显色提花织物的纹理设计原理与方法[J]. 纺织学报, 2019, 40(05): 36-40.
[13] 吴欢, 丁笑君, 李秦曼, 杜磊, 邹奉元. 采用卷积神经网络 CaffeNet 模型的女裤廓形分类[J]. 纺织学报, 2019, 40(04): 117-121.
[14] 鲍陈, 缪永伟, 孙瑜亮, 张旭东. 基于散乱点云的三维人体自动测量[J]. 纺织学报, 2019, 40(01): 120-129.
[15] 周赳 赵庆会. 基于分层组合设计模式的纹样设计原理与方法[J]. 纺织学报, 2015, 36(06): 37-41.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!