系统仿真学报 ›› 2018, Vol. 30 ›› Issue (6): 2117-2124.doi: 10.16182/j.issn1004731x.joss.201806015

• 仿真系统与技术 • 上一篇    下一篇

基于扩散的蜡染染色模拟

喻扬涛1, 2, 俞振璐3, 钱文华2, 张可师2, 徐丹2, *   

  1. 1. 云南民族大学人民武装学院,云南 昆明 650118;
    2. 云南大学信息学院,云南 昆明 650031;
    3. 电子科技大学资源与环境学院,四川 成都 611731
  • 收稿日期:2016-04-14 修回日期:2016-08-04 出版日期:2018-06-08 发布日期:2018-06-14
  • 作者简介:喻扬涛(1973-),男,云南宣威,博士,副教授,研究方向为非真实感图形绘制。
  • 基金资助:
    国家自然科学基金(61163019,61271361,61462093), 云南省教育厅(2015Y225,2015Z012), 云南省应用基础研究计划项目(2014FB113)

Batik Dying Simulation Based on Diffusion

Yu Yangtao1, 2, Yu Zhenlu3, Qian Wenhua2, Zhang Keshi2, Xu Dan2, *   

  1. 1. College of People's Armed Forces Education, Yunnan University of Nationalities, Kunming 650118, China;;
    2. School of Information Science and Engineering, Yunnan University, Kunming 650031, China;
    3. School of Resource and Environment, University of Electronic Science and Technology of China, Chengdu 611731, China
  • Received:2016-04-14 Revised:2016-08-04 Online:2018-06-08 Published:2018-06-14

摘要: 建立由封蜡层、经线层、纬线层构成的三层布料模型。三层布料模型中,封蜡层包裹经线层、纬线层构成封蜡布,经线层与纬线层相互交叉、重叠,构成布料层。根据菲克第二定律建立微分方程表示染料扩散过程,并对该微分方程离散化。扩散方程中考虑的主要因素有染料扩散、供给、吸收,扩散方程中使用孔隙度、弯曲程度、相邻关系等参数。使用椭圆距离模型模拟矩形织纹,并对其在HSV颜色空间中进行模糊处理。实验表明,文中方法可以得到接近实际蜡染布料的视觉效果。算法具有较好的时间复杂度。

关键词: 三层布料模型, 菲克第二定律, 微分方程, 扩散, HSV颜色空间

Abstract: This paper presents a three-layer model which is composed of wax layer, warp layer and weft layer. The wax layer wraps warp and weft layer which overlap together. According to Fick's second law and considering dye's diffusion, absorption and supply, a differential equation is built to describe diffusion process and this equation is discretized. Porosity, tortuosity and neighboring coefficient are used in the equation. Rectangular weave is simulated by using ellipse-distance model and blurred in HSV color space. Simulation shows that the satisfactory visual effect which closes to real batik cloth is acquired by the method and the algorithm needs less computation.

Key words: three-layer model, Fick's second law;, differential equation, diffusion, HSV color space

中图分类号: