CN114285955A - Color gamut mapping method based on dynamic deviation map neural network - Google Patents
Color gamut mapping method based on dynamic deviation map neural network Download PDFInfo
- Publication number
- CN114285955A CN114285955A CN202111620261.XA CN202111620261A CN114285955A CN 114285955 A CN114285955 A CN 114285955A CN 202111620261 A CN202111620261 A CN 202111620261A CN 114285955 A CN114285955 A CN 114285955A
- Authority
- CN
- China
- Prior art keywords
- color
- mapping
- mask
- xyz
- network
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000013507 mapping Methods 0.000 title claims abstract description 119
- 238000013528 artificial neural network Methods 0.000 title claims abstract description 38
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000007639 printing Methods 0.000 claims abstract description 35
- 238000004043 dyeing Methods 0.000 claims abstract description 34
- 238000012549 training Methods 0.000 claims abstract description 12
- 238000005457 optimization Methods 0.000 claims abstract description 11
- 230000001537 neural effect Effects 0.000 claims abstract description 7
- 239000011159 matrix material Substances 0.000 claims description 25
- 238000005070 sampling Methods 0.000 claims description 6
- 230000000873 masking effect Effects 0.000 claims description 4
- 230000002787 reinforcement Effects 0.000 claims description 4
- 230000004913 activation Effects 0.000 claims description 3
- 230000002457 bidirectional effect Effects 0.000 claims description 3
- 230000036039 immunity Effects 0.000 claims 1
- 239000003086 colorant Substances 0.000 abstract description 7
- 238000010276 construction Methods 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 11
- 238000006243 chemical reaction Methods 0.000 description 10
- 230000000717 retained effect Effects 0.000 description 4
- 239000004753 textile Substances 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000013135 deep learning Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000013139 quantization Methods 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 230000001419 dependent effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000007641 inkjet printing Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Landscapes
- Facsimile Image Signal Circuits (AREA)
- Image Processing (AREA)
- Color Image Communication Systems (AREA)
Abstract
基于动态偏差图神经网络的颜色色域映射方法,包括下列步骤:1)印染打印机颜色样本采集;2)从XYZ到CMKY颜色空间偏差映射图神经网络构建与训练;3)基于掩码的粗粒度局部映射强化;4)针对特定机器的图神经映射网络调整优化;5)基于掩码的特定机器局部映射强化;6)从CMYK到XYZ颜色空间的映射;7)基于局部范围匹配的颜色色域映射。通过上述步骤建立的基于动态偏差图神经网络的颜色色域映射方法,通过将动态偏差引入神经网络,从大量采集的印染样本中学习出印染打印机颜色空间到标准颜色空间间颜色映射的同时,实现印染打印机颜色空间到标准颜色空间间颜色的精准映射。
The color gamut mapping method based on dynamic deviation map neural network includes the following steps: 1) color sample collection of printing and dyeing printers; 2) construction and training of deviation map neural network from XYZ to CMKY color space; 3) coarse-grained mask-based Local mapping enhancement; 4) Machine-specific graph neural mapping network tuning optimization; 5) Mask-based machine-specific local mapping enhancement; 6) Mapping from CMYK to XYZ color space; 7) Color gamut based on local range matching map. The color gamut mapping method based on the dynamic deviation graph neural network established by the above steps, by introducing the dynamic deviation into the neural network, learns the color mapping between the printing and dyeing printer color space to the standard color space from a large number of collected printing and dyeing samples, and realizes Accurate mapping of colors from dye printer color space to standard color space.
Description
技术领域technical field
本发明属于颜色映射领域,针对当前颜色空间不均匀、印染打印机与标准颜色空间CIE XYZ中颜色映射不精准的问题,提出了基于动态偏差图神经网络的颜色色域映射方法,利用深度模型的能够从大量样本中学习非线性转换的能力,通过采集大量打印机颜色空间颜色样本,并通过不同打印机打印,颜色测量仪器测量,获得大量颜色映射样本对的基础上,结合不同印染打印机的差异性以及不同时间同一印染打印机的差异性,构建动态偏差图神经网络,完成了标准颜色空间颜色与不同印染打印机颜色间的精准映射。The invention belongs to the field of color mapping. Aiming at the problems of current uneven color space and inaccurate color mapping between printing and dyeing printers and standard color space CIE XYZ, a color gamut mapping method based on a dynamic deviation graph neural network is proposed. The ability to learn nonlinear transformation from a large number of samples, by collecting a large number of printer color space color samples, and printing through different printers, color measuring instruments, and obtaining a large number of color mapping sample pairs. The difference between the same printing and dyeing printers at the same time, the dynamic deviation graph neural network is constructed, and the accurate mapping between the standard color space color and the color of different printing and dyeing printers is completed.
背景技术Background technique
随着深度学习技术的快速发展,深度模型在计算机以及交叉领域取得了一系列突破性的进展。在深度学习领域,图神经网络在空间映射方面取得了一些进展:诸如文献1(Xin Gao,Zhenjiang Liu,Zunlei Feng,Chengji Shen,Kairi Ou,Haihong Tang,MingliSong,Shape Controllable Virtual Try-on for Underwear Models,ACM Multimedia2021)中采用图神经网络实现了服饰关键点在平铺服饰与人体穿衣服饰间的映射;文献2(Wang N,Zhang Y,Li Z,et al.Pixel2Mesh:Generating 3D Mesh Models from SingleRGB Images[C]//European Conference on Computer Vision.Springer,Cham,2018)中通过图神经网络解决图像到3D mesh顶点间的映射,实现了单张图片到三维网格的重建。当前的图神经网络已经在诸多领域验证实现不同空间的映射是有效可行的,然后基于图神经网络的颜色色域映射工作较少,主要原因在于不同印染打印机、同一打印机不同时间段印染颜色呈现具有偏差性。With the rapid development of deep learning technology, deep models have made a series of breakthroughs in computer and cross-cutting fields. In the field of deep learning, graph neural networks have made some progress in spatial mapping: such as literature 1 (Xin Gao, Zhenjiang Liu, Zunlei Feng, Chengji Shen, Kairi Ou, Haihong Tang, MingliSong, Shape Controllable Virtual Try-on for Underwear Models , ACM Multimedia2021) using graph neural network to realize the mapping of clothing key points between tiled clothing and human clothing; Literature 2 (Wang N, Zhang Y, Li Z, et al. Pixel2Mesh: Generating 3D Mesh Models from SingleRGB Images[C]//European Conference on Computer Vision. Springer, Cham, 2018) solves the mapping between images and 3D mesh vertices through a graph neural network, and realizes the reconstruction of a single image to a 3D mesh. The current graph neural network has been verified in many fields that it is effective and feasible to realize the mapping of different spaces, and then the color gamut mapping based on the graph neural network is less work. Bias.
在颜色色域映射方面,现有的颜色色域映射方法主要包含两大类:图像相关的动态颜色色域映射方法、固定的颜色色域映射方法。图像相关的动态颜色色域映射方法主要考虑图像中颜色值的特性,实现针对该图像颜色转换的误差化最小,该类方法需要结合图像颜色特点,动态调整颜色空间间颜色点的映射关系,能够获得较好的颜色呈现效果,但处理时间较慢,不适用于大规模推广。固定的颜色色域映射方法主要包含三类:物理转换模型、数值量化转换模型、3D LUT法。物理转换模型一般会假定颜色通道相互独立、色度恒定、颜色空间均匀等条件,但人眼在观察真实颜色时,色差并不是均匀的;数值量化转换模型通过数值模型学习设备相关颜色空间与设备无关颜色空间的转换关系,数值模型主要有多项式回归法、神经网络法、连续线性插值法、径向基函数法等几种,例如,文献3(宋明黎,盛楠,冯尊磊,等.基于图像色块用于纺织品喷墨印染的颜色一致性映射方法:,CN110418030A[P].2019)采用RBF神经网络实现了印染机CMYK到显示器RGB颜色空间间的映射,然而RBF有限的学习能力限制着颜色映射的精准度,同时该工作并未考虑不同机器、不同时间颜色的偏差性。3D LUT法将设备无关颜色空间和设备相关颜色空间之间的转换关系建立在表中,3D LUT法的精确性主要依赖于测量的颜色数量与颜色转换时选择的插值方法。此外,部分欧洲公司实现了颜色空间中多点间的颜色映射,获得了较好的精准度,然而因商业隐私,所采用技术并未公开,技术路线不详。In terms of color gamut mapping, the existing color gamut mapping methods mainly include two categories: image-related dynamic color gamut mapping methods and fixed color gamut mapping methods. The image-related dynamic color gamut mapping method mainly considers the characteristics of the color values in the image, and minimizes the error of color conversion for the image. A better color rendering effect is obtained, but the processing time is slow, which is not suitable for large-scale promotion. The fixed color gamut mapping method mainly includes three categories: physical conversion model, numerical quantization conversion model, and 3D LUT method. The physical conversion model generally assumes that the color channels are independent of each other, the chromaticity is constant, and the color space is uniform. However, when the human eye observes the real color, the color difference is not uniform; the numerical quantization conversion model learns the device-related color space and device through the numerical model. Regardless of the conversion relationship of color space, the numerical models mainly include polynomial regression method, neural network method, continuous linear interpolation method, radial basis function method, etc. For example, literature 3 (Song Mingli, Sheng Nan, Feng Zunlei, etc.. Color consistency mapping method for inkjet printing and dyeing of textiles: CN110418030A[P].2019) Using RBF neural network to realize the mapping between printing and dyeing machine CMYK to display RGB color space, however, the limited learning ability of RBF limits color mapping At the same time, the work does not consider the deviation of color between different machines and different times. The 3D LUT method establishes the conversion relationship between the device-independent color space and the device-dependent color space in the table. The accuracy of the 3D LUT method mainly depends on the number of colors measured and the interpolation method selected during color conversion. In addition, some European companies have achieved color mapping between multiple points in the color space and achieved better accuracy. However, due to commercial privacy, the technology used has not been disclosed, and the technical route is unknown.
发明内容SUMMARY OF THE INVENTION
本发明要解决不同打印机、同一打印机不同时间印染颜色呈现偏差的问题,实现印染打印机颜色空间到标准颜色空间间颜色的精准映射。The invention solves the problem of color deviation in printing and dyeing of different printers and the same printer at different times, and realizes accurate color mapping between the color space of the printing and dyeing printer to the standard color space.
纺织印染打印机一直存在颜色印染不稳定与原始颜色空间差异性较大的挑战,主要的问题在于颜色空间不是均匀分布、打印机颜色呈现有偏差。本发明提出了一种基于动态偏差图神经网络的颜色色域映射方法,通过将动态偏差引入神经网络,从大量采集的印染样本中学习出印染打印机颜色空间到标准颜色空间间颜色映射的同时,实现印染打印机颜色空间到标准颜色空间间颜色的精准映射。Textile printing and dyeing printers have always been challenged by unstable color printing and large differences in the original color space. The main problem is that the color space is not uniformly distributed, and the color rendering of the printer is biased. The invention proposes a color gamut mapping method based on the dynamic deviation graph neural network. By introducing the dynamic deviation into the neural network, the color mapping between the color space of the printing and dyeing printer and the standard color space is learned from a large number of collected printing and dyeing samples. Accurate color mapping between printing and dyeing printer color space to standard color space.
基于动态偏差图神经网络的颜色色域映射方法,包括如下步骤:The color gamut mapping method based on dynamic deviation graph neural network includes the following steps:
1)印染打印机颜色样本采集;1) Collection of color samples for printing and dyeing printers;
印染打印机颜色样本的采集主要包含不同打印机颜色样本采集与同一个打印机不同颜色采集,本发明采集了P个打印机的样本,每个印染打印机采集Q次;对于每台印染打印机的C、M、Y、K四个颜色通道,每个通道单次采集T个颜色点,分别以 墨量为中心点,以(-d%,d%)为扰动采样区间,四个通道通过组合获得T4个颜色样本点;对于P个打印机,通过每个打印采集Q次,共获得P*Q*T4个颜色样本点;对于印染的样本,通过颜色测量仪i1Pro2测得所有样本点CIE XYZ颜色空间对应颜色点;The collection of color samples of printing and dyeing printers mainly includes the collection of color samples of different printers and the collection of different colors of the same printer. The present invention collects samples of P printers, and each printing and dyeing printer collects Q times; for C, M, Y of each printing and dyeing printer , K four color channels, each channel collects T color points at a time, respectively The ink volume is the center point, and (-d%, d%) is the disturbance sampling interval, and the four channels are combined to obtain T 4 color sample points; for P printers, each print is collected Q times, and a total of P* Q*T 4 color sample points; for the dyed samples, the corresponding color points in the CIE XYZ color space of all sample points are measured by the color measuring instrument i1Pro2;
2)从XYZ到CMYK颜色空间偏差映射图神经网络构建与训练;2) Construction and training of neural network of deviation map from XYZ to CMYK color space;
针对每台印染机的Q次颜色点采样,依据C、M、Y、K的顺序,按照每个通道里墨量的大小排列,获得T4*4的颜色值矩阵D,与其对应的CIE XYZ颜色空间的颜色值矩阵为S,并依据C、M、Y、K四色空间中的邻接关系,构建T4个特征点的邻接矩阵A;利用图卷积网络Hl+1=σ(AHlWl)对输入颜色值矩阵S进行三层卷积操作获得预测输入O=H3,其中H0=S,σ为ReLU激活函数;利用如下偏差映射损失函数L1,获得针对所有样本的有偏差映射关系:For the Q color point sampling of each printing and dyeing machine, according to the order of C, M, Y, K, according to the size of the ink volume in each channel, a color value matrix D of T 4 * 4 is obtained, and its corresponding CIE XYZ The color value matrix of the color space is S, and according to the adjacency relationship in the C, M, Y, K four color spaces, the adjacency matrix A of T 4 feature points is constructed; using the graph convolution network H l+1 = σ(AH l W l ) Perform a three-layer convolution operation on the input color value matrix S to obtain the predicted input O=H 3 , where H 0 =S, σ is the ReLU activation function; using the following deviation mapping loss function L 1 , obtain the prediction input for all samples Biased mapping:
其中e为颜色偏差的阈值,Oi与Di为第i行样本颜色值;对所有样本通过R次迭代获得初步的颜色映射网络;where e is the threshold of color deviation, O i and D i are the color values of the samples in the ith row; the preliminary color mapping network is obtained through R iterations for all samples;
3)基于掩码的粗粒度局部映射强化;3) Coarse-grained local mapping enhancement based on masks;
对于构建的T4节点的图神经网络,通过在R次迭代中逐步随机掩码掉10%,20%,30%,40%,50%,60%,70%,80%,90%,95%的样本点,利用图卷积网络Hl+1=σ(A'HlWl)对M掩码后输入颜色值矩阵S进行三层卷积操作获得预测输入O'=H3,其中A'为掩码后的邻接矩阵,H0=mS,m为随着迭代次数增加的随机掩码,随机掩码的逐步增加比例在R次迭代次数中平均逐步分布,对于获得掩码输入O',利用掩码后粗粒度局部映射强化损失函数L2进行训练:For the constructed graph neural network of T4 nodes, by stepwise random masking off 10 %, 20%, 30%, 40%, 50%, 60%, 70%, 80%, 90%, 95 in R iterations % sample points, use the graph convolution network H l+1 =σ(A'H l W l ) to perform a three-layer convolution operation on the input color value matrix S after the M mask to obtain the predicted input O'=H 3 , where A' is the masked adjacency matrix, H 0 =mS, m is the random mask with the increase of the number of iterations, the stepwise increase ratio of the random mask is evenly distributed in the number of R iterations, and for obtaining the mask input O ', using the post-mask coarse - grained local mapping to strengthen the loss function L2 for training:
其中|m|为掩码后保留的颜色样本点;Where |m| is the color sample point retained after the mask;
4)针对特定机器的图神经映射网络调整优化;4) Adjust and optimize the graph neural mapping network for a specific machine;
对于步骤3)获得的初步颜色映射网络,对于特定的机器,利用采集的Q个样本,通过随机对输入颜色值增加[-u,u]的微量扰动,来增加网络的抗噪能力,利用如下特定精准映射损失函数L3:For the preliminary color mapping network obtained in step 3), for a specific machine, use the collected Q samples to increase the anti-noise ability of the network by randomly adding [-u, u] to the input color value. Specific accurate mapping loss function L 3 :
在前R'次迭代优化中,利用增加噪声扰动的颜色样本进行网络的训练,接着在后续R'次迭代优化中,利用未加噪声扰动的颜色样本进行网络的训练,获得针对特定机器的XYZ->CMYK精准颜色映射网络;In the first R' iterations of optimization, the color samples with noise perturbation are used to train the network, and then in the subsequent R' iterations of optimization, the network is trained with color samples without noise perturbations to obtain XYZ for a specific machine. ->CMYK accurate color mapping network;
5)基于掩码的特定机器局部映射强化;5) Machine-specific local mapping enhancement based on masks;
对于步骤4)中获取的精细化颜色映射网络,通过在前R'/2次与后R'/2次迭代中分别随机掩码掉90%、95%的样本点,利用图卷积网络Hl+1=σ(A'HlWl)对M掩码后输入颜色值矩阵S进行三层卷积操作获得预测输入O”=H3,其中A'为掩码后的邻接矩阵,H0=mS,m为随着迭代次数增加的随机掩码,对于获得掩码输入O',利用掩码特定机器局部精细映射强化损失函数L4进行训练:For the refined color mapping network obtained in step 4), by randomly masking 90% and 95% of the sample points in the first R'/2 and last R'/2 iterations, respectively, using the graph convolution network H l+1 =σ(A'H l W l ) Perform three-layer convolution operation on the input color value matrix S after the M mask to obtain the predicted input O''=H 3 , where A' is the masked adjacency matrix, H 0 = mS, where m is a random mask that increases with the number of iterations. For obtaining the mask input O', use the mask-specific machine local fine-map enhancement loss function L 4 for training:
其中|m|为掩码后保留的颜色样本点;Where |m| is the color sample point retained after the mask;
6)从CMYK到XYZ颜色空间的映射;6) Mapping from CMYK to XYZ color space;
通过步骤2)、3)、4)、5)实现XYZ到CMYK颜色空间的映射,通过将CMYK为颜色输入样本点,XYZ为输出颜色样本点,构建CMYK到XYZ映射的颜色空间偏差映射图神经网络,通过步骤2)相似的偏差粗粒度映射、步骤3)基于掩码的粗粒度局部映射强化、步骤4)针对特定机器的图神经映射网络调整优化、步骤5)基于掩码的特定机器局部映射强化等四个步骤,实现CMYK到XYZ颜色空间的映射;Through steps 2), 3), 4), and 5), the mapping of XYZ to CMYK color space is realized. By using CMYK as the color input sample point and XYZ as the output color sample point, construct the color space deviation map of CMYK to XYZ mapping neural network, via step 2) similar biased coarse-grained mapping, step 3) mask-based coarse-grained local mapping reinforcement, step 4) machine-specific graph neural mapping network tuning optimization, step 5) mask-based machine-specific local Four steps such as mapping enhancement to realize the mapping from CMYK to XYZ color space;
7)基于局部范围匹配的颜色色域映射;7) Color gamut mapping based on local range matching;
在实际的应用中,实现颜色值的映射需要对输入颜色域进行粗粒度的匹配,对于输入的CMYK颜色值,需要匹配到T4个图节点中墨量以内的图节点,对于输入的XYZ颜色值,需要匹配到T4个图节点中以内色差值的图节点,对于不需要映射的颜色值点,设置掩码为0,通过以上方式实现CMYK到XYZ的颜色双向映射。In practical applications, the realization of color value mapping requires coarse-grained matching of the input color gamut. For the input CMYK color value, it needs to be matched to T 4 graph nodes. The graph nodes within the ink volume, for the input XYZ color value, need to be matched to T 4 graph nodes For the graph nodes of the inner color difference value, for the color value points that do not need to be mapped, set the mask to 0, and realize the bidirectional color mapping from CMYK to XYZ through the above method.
优选地,步骤2)的颜色偏差的阈值e设定为3。Preferably, the threshold value e of the color deviation in step 2) is set to 3.
优选地,步骤1)所述的打印机个数P区100,每个打印采集次数Q取100,颜色点个数T取10。Preferably, the number P of printers in step 1) is 100, the number of each print collection Q is 100, and the number T of color dots is 10.
本发明的方法是基于动态偏差图神经网络的颜色色域映射方法,用于纺织品印染打印机CMYK颜色空间与标准CIE XYZ颜色空间之间颜色值的映射转换。The method of the invention is a color gamut mapping method based on the dynamic deviation graph neural network, which is used for the mapping conversion of color values between the CMYK color space of the textile printing and dyeing printer and the standard CIE XYZ color space.
通过上述步骤建立的基于动态偏差图神经网络的颜色色域映射方法,通过将动态偏差引入神经网络,从大量采集的印染样本中学习出印染打印机颜色空间到标准颜色空间间颜色映射的同时,实现印染打印机颜色空间到标准颜色空间间颜色的精准映射。The color gamut mapping method based on the dynamic deviation graph neural network established by the above steps, by introducing the dynamic deviation into the neural network, learns the color mapping between the printing and dyeing printer color space to the standard color space from a large number of collected printing and dyeing samples, and realizes Accurate mapping of colors from dye printer color space to standard color space.
本发明具有的有益效果是:基于图神经网络的强大学习能力,在采集大量样本的基础上,通过将不同印染打印机、同一打印机不同时间的颜色偏差性建模到图神经网络颜色映射模型,实现了颜色的动态精准映射。The invention has the beneficial effects that: based on the powerful learning ability of the graph neural network, on the basis of collecting a large number of samples, by modeling the color deviation of different printing and dyeing printers and the same printer at different times into the graph neural network color mapping model, the realization of Dynamic accurate mapping of colors.
附图说明Description of drawings
图1是本发明方法的流程图。Figure 1 is a flow chart of the method of the present invention.
具体实施方式Detailed ways
下面结合附图,进一步说明本发明的技术方案。The technical solutions of the present invention are further described below with reference to the accompanying drawings.
本发明基于动态偏差图神经网络的颜色色域映射方法,包括如下步骤:The color gamut mapping method based on the dynamic deviation graph neural network of the present invention comprises the following steps:
1)印染打印机颜色样本采集;1) Collection of color samples for printing and dyeing printers;
印染打印机颜色样本的采集主要包含不同打印机颜色样本采集与同一个打印机不同颜色采集,本发明采集了100个打印机的样本,每个印染打印机采集100次;对于每台印染打印机的C、M、Y、K四个颜色通道,每个通道分别以{5%,15%,25%,35%,45%,55%,65%,75%,85%,95%}墨量为中心点,以(-5%,5%)为扰动采样区间,每个通道单次采集10个颜色点,四个通道通过组合获得10000个颜色样本点;对于100个打印机,通过每个打印采集100次,共获得100*100*10000个颜色样本点;对于印染的样本,通过颜色测量仪i1Pro2测得所有样本点CIE XYZ颜色空间对应颜色点;The collection of color samples of printing and dyeing printers mainly includes the collection of color samples of different printers and the collection of different colors of the same printer. The present invention collects samples of 100 printers, and each printing and dyeing printer collects 100 times; for the C, M, Y of each printing and dyeing printer , K four color channels, each channel takes {5%, 15%, 25%, 35%, 45%, 55%, 65%, 75%, 85%, 95%} ink volume as the center point, with (-5%, 5%) is the disturbance sampling interval, each channel collects 10 color points at a time, and the four channels are combined to obtain 10,000 color sample points; for 100 printers, each print is collected 100 times, a total of Obtain 100*100*10000 color sample points; for the printed and dyed samples, the corresponding color points in the CIE XYZ color space of all sample points are measured by the color measuring instrument i1Pro2;
2)从XYZ到CMYK颜色空间偏差映射图神经网络构建与训练;2) Construction and training of neural network of deviation map from XYZ to CMYK color space;
针对每台印染机的100次颜色点采样,依据C、M、Y、K的顺序,按照每个通道里墨量的大小排列,获得10000*4的颜色值矩阵D,与其对应的CIE XYZ颜色空间的颜色值矩阵为S,并依据C、M、Y、K四色空间中的邻接关系,构建10000个特征点的邻接矩阵A;利用图卷积网络Hl+1=σ(AHlWl)对输入颜色值矩阵S进行三层卷积操作获得预测输入O=H3,其中H0=S,σ为ReLU激活函数;利用如下偏差映射损失函数L1,获得针对所有样本的有偏差映射关系:For the 100 color point sampling of each printing and dyeing machine, according to the order of C, M, Y, K, according to the size of the ink volume in each channel, a 10000*4 color value matrix D is obtained, and the corresponding CIE XYZ color The color value matrix of the space is S, and according to the adjacency relationship in the C, M, Y, and K four color spaces, an adjacency matrix A of 10,000 feature points is constructed; using the graph convolution network H l+1 = σ(AH l W l ) Perform a three-layer convolution operation on the input color value matrix S to obtain the predicted input O=H 3 , where H 0 =S, σ is the ReLU activation function; use the following deviation mapping loss function L 1 to obtain the biased bias for all samples Mapping relations:
其中e为颜色偏差的阈值(本发明中设定为3),Oi与Di为第i行样本颜色值;对所有样本通过50次迭代获得初步的颜色映射网络;Wherein e is the threshold value of the color deviation (set to 3 in the present invention), O i and D i are the sample color values of the i-th row; obtain a preliminary color mapping network through 50 iterations for all samples;
3)基于掩码的粗粒度局部映射强化;3) Coarse-grained local mapping enhancement based on masks;
对于构建的10000节点的图神经网络,通过在50次迭代中逐步随机掩码掉10%,20%,30%,40%,50%,60%,70%,80%,90%,95%的样本点,利用图卷积网络Hl+1=σ(A'HlWl)对M掩码后输入颜色值矩阵S进行三层卷积操作获得预测输入O'=H3,其中A'为掩码后的邻接矩阵,H0=mS,m为随着迭代次数增加的随机掩码,随机掩码的逐步增加比例在50次迭代次数中平均逐步分布,对于获得掩码输入O',利用掩码后粗粒度局部映射强化损失函数L2进行训练:For the constructed graph neural network of 10000 nodes, mask off 10%, 20%, 30%, 40%, 50%, 60%, 70%, 80%, 90%, 95% by stepwise randomization in 50 iterations The sample points of , use the graph convolution network H l+1 =σ(A'H l W l ) to perform a three-layer convolution operation on the input color value matrix S after the M mask to obtain the predicted input O'=H 3 , where A ' is the masked adjacency matrix, H 0 =mS, m is the random mask with the increase of the number of iterations, the stepwise increase ratio of the random mask is evenly distributed in 50 iterations, and for obtaining the mask input O' , using the post-mask coarse - grained local mapping to strengthen the loss function L2 for training:
其中|m|为掩码后保留的颜色样本点;Where |m| is the color sample point retained after the mask;
4)针对特定机器的图神经映射网络调整优化;4) Adjust and optimize the graph neural mapping network for a specific machine;
对于步骤3)获得的初步颜色映射网络,对于特定的机器,利用采集的100个样本,通过随机对输入颜色值增加[-0.1,0.1]的微量扰动,来增加网络的抗噪能力,利用如下特定精准映射损失函数L3:For the preliminary color mapping network obtained in step 3), for a specific machine, use the 100 samples collected to increase the anti-noise ability of the network by randomly adding [-0.1, 0.1] to the input color value, using the following Specific accurate mapping loss function L 3 :
在前10次迭代优化中,利用增加噪声扰动的颜色样本进行网络的训练,接着在后续10次迭代优化中,利用未加噪声扰动的颜色样本进行网络的训练,获得针对特定机器的XYZ->CMYK精准颜色映射网络;In the first 10 iterations of optimization, the network is trained with the color samples with noise perturbation, and then in the subsequent 10 iterations of optimization, the network is trained with the color samples without noise perturbation, and the XYZ-> CMYK accurate color mapping network;
5)基于掩码的特定机器局部映射强化;5) Mask-based machine-specific local mapping enhancement;
对于步骤4)中获取的精细化颜色映射网络,通过在前5次与后5次迭代中分别随机掩码掉90%、95%的样本点,利用图卷积网络Hl+1=σ(A'HlWl)对M掩码后输入颜色值矩阵S进行三层卷积操作获得预测输入O”=H3,其中A'为掩码后的邻接矩阵,H0=MS,M为随着迭代次数增加的随机掩码,对于获得掩码输入O',利用掩码特定机器局部精细映射强化损失函数L4进行训练:For the refined color mapping network obtained in step 4), the graph convolution network H l+1 =σ( A'H l W l ) perform three-layer convolution operation on the input color value matrix S after the M mask to obtain the predicted input O'=H 3 , where A' is the masked adjacency matrix, H 0 =MS, M is With random masks with increasing number of iterations, for obtaining mask input O', training is performed with mask-specific machine local fine - map reinforcement loss function L4:
其中|M|为掩码后保留的颜色样本点;Where |M| is the color sample point retained after the mask;
6)从CMYK到XYZ颜色空间的映射;6) Mapping from CMYK to XYZ color space;
通过步骤2)、3)、4)、5)实现XYZ到CMYK颜色空间的映射,通过将CMYK为颜色输入样本点,XYZ为输出颜色样本点,构建CMYK到XYZ映射的颜色空间偏差映射图神经网络,通过步骤2)相似的偏差粗粒度映射、步骤3)基于掩码的粗粒度局部映射强化、步骤4)针对特定机器的图神经映射网络调整优化、步骤5)基于掩码的特定机器局部映射强化等四个步骤,实现CMYK到XYZ颜色空间的映射;Through steps 2), 3), 4), and 5), the mapping from XYZ to CMYK color space is realized. By using CMYK as the color input sample point and XYZ as the output color sample point, construct the color space deviation map of CMYK to XYZ mapping neural network, via step 2) similar biased coarse-grained mapping, step 3) mask-based coarse-grained local mapping reinforcement, step 4) machine-specific graph neural mapping network tuning optimization, step 5) mask-based machine-specific local Four steps such as mapping enhancement to realize the mapping from CMYK to XYZ color space;
7)基于局部范围匹配的颜色色域映射;7) Color gamut mapping based on local range matching;
在实际的应用中,实现颜色值的映射需要对输入颜色域进行粗粒度的匹配,对于输入的CMYK颜色值,需要匹配到10000个图节点中5%墨量以内的图节点,对于输入的XYZ颜色值,需要匹配到10000个图节点中20以内色差值的图节点,对于不需要映射的颜色值点,设置掩码为0,通过以上方式实现CMYK到XYZ的颜色双向映射。In practical applications, the realization of color value mapping requires coarse-grained matching of the input color gamut. For the input CMYK color value, it needs to match the graph nodes within 5% of the ink volume of the 10,000 graph nodes. For the input XYZ The color value needs to be matched to the graph nodes with color difference values within 20 among the 10,000 graph nodes. For the color value points that do not need to be mapped, set the mask to 0, and realize the bidirectional color mapping from CMYK to XYZ through the above method.
本发明的方法是基于动态偏差图神经网络的颜色色域映射方法,用于纺织品印染打印机CMYK颜色空间与标准CIE XYZ颜色空间之间颜色值的映射转换。The method of the invention is a color gamut mapping method based on the dynamic deviation graph neural network, which is used for the mapping conversion of color values between the CMYK color space of the textile printing and dyeing printer and the standard CIE XYZ color space.
本发明具有的有益效果是:基于图神经网络的强大学习能力,在采集大量样本的基础上,通过将不同印染打印机、同一打印机不同时间的颜色偏差性建模到图神经网络颜色映射模型,实现了颜色的动态精准映射。The invention has the beneficial effects that: based on the powerful learning ability of the graph neural network, on the basis of collecting a large number of samples, by modeling the color deviation of different printing and dyeing printers and the same printer at different times into the graph neural network color mapping model, the realization of Dynamic accurate mapping of colors.
本说明书实施例所述的内容仅仅是对发明构思的实现形式的列举,本发明的保护范围的不应当被视为仅限于实施例所陈述的具体形式,本发明的保护范围也及于本领域技术人员根据本发明构思所能够想到的等同技术手段。The content described in the embodiments of the present specification is only an enumeration of the realization forms of the inventive concept, and the protection scope of the present invention should not be regarded as limited to the specific forms stated in the embodiments, and the protection scope of the present invention also extends to the field Equivalent technical means that can be conceived by a skilled person according to the inventive concept.
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111620261.XA CN114285955B (en) | 2021-12-28 | 2021-12-28 | Color gamut mapping method based on dynamic deviation map neural network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111620261.XA CN114285955B (en) | 2021-12-28 | 2021-12-28 | Color gamut mapping method based on dynamic deviation map neural network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114285955A true CN114285955A (en) | 2022-04-05 |
CN114285955B CN114285955B (en) | 2022-12-09 |
Family
ID=80876699
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111620261.XA Active CN114285955B (en) | 2021-12-28 | 2021-12-28 | Color gamut mapping method based on dynamic deviation map neural network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114285955B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6480299B1 (en) * | 1997-11-25 | 2002-11-12 | University Technology Corporation | Color printer characterization using optimization theory and neural networks |
CN102110428A (en) * | 2009-12-23 | 2011-06-29 | 新奥特(北京)视频技术有限公司 | Method and device for converting color space from CMYK to RGB |
CN106937018A (en) * | 2017-01-12 | 2017-07-07 | 浙江大学 | It is used for the color mapping method of textile inkjet printing and dyeing based on RBF neural |
US20190355155A1 (en) * | 2018-05-18 | 2019-11-21 | The Governing Council Of The University Of Toronto | Method and system for color representation generation |
US20200027269A1 (en) * | 2018-07-23 | 2020-01-23 | Fudan University | Network, System and Method for 3D Shape Generation |
WO2020050830A1 (en) * | 2018-09-05 | 2020-03-12 | Hewlett-Packard Development Company, L.P. | Modeling a printed halftone image |
CN112085668A (en) * | 2020-08-14 | 2020-12-15 | 深圳大学 | A method for image tone mapping based on region adaptive self-supervised learning |
-
2021
- 2021-12-28 CN CN202111620261.XA patent/CN114285955B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6480299B1 (en) * | 1997-11-25 | 2002-11-12 | University Technology Corporation | Color printer characterization using optimization theory and neural networks |
CN102110428A (en) * | 2009-12-23 | 2011-06-29 | 新奥特(北京)视频技术有限公司 | Method and device for converting color space from CMYK to RGB |
CN106937018A (en) * | 2017-01-12 | 2017-07-07 | 浙江大学 | It is used for the color mapping method of textile inkjet printing and dyeing based on RBF neural |
US20190355155A1 (en) * | 2018-05-18 | 2019-11-21 | The Governing Council Of The University Of Toronto | Method and system for color representation generation |
US20200027269A1 (en) * | 2018-07-23 | 2020-01-23 | Fudan University | Network, System and Method for 3D Shape Generation |
WO2020050830A1 (en) * | 2018-09-05 | 2020-03-12 | Hewlett-Packard Development Company, L.P. | Modeling a printed halftone image |
CN112085668A (en) * | 2020-08-14 | 2020-12-15 | 深圳大学 | A method for image tone mapping based on region adaptive self-supervised learning |
Non-Patent Citations (3)
Title |
---|
FENG, ZL等: "GRAPH-BASED COLOR GAMUT MAPPING USING NEIGHBOR METRIC", 《IEEE INTERNATIONAL CONFERENCE ON MULTIMEDIA AND EXPO》 * |
YIFAN HU等: "A Coloring Algorithm for Disambiguating Graph and Map Drawings", 《 IEEE TRANSACTIONS ON VISUALIZATION AND COMPUTER GRAPHICS》 * |
刘颖等: "基于概率模型的高动态范围图像色调映射", 《电视技术》 * |
Also Published As
Publication number | Publication date |
---|---|
CN114285955B (en) | 2022-12-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110418030B (en) | Color consistency mapping method for textile inkjet printing and dyeing based on image color blocks | |
CN100589521C (en) | A method for printing out L*a*b* images with high fidelity | |
CN102799895B (en) | Based on the offset ink color matching method of least square method supporting vector machine | |
CN106937018B (en) | The color mapping method of textile inkjet printing and dyeing is used for based on RBF neural | |
CN107079077A (en) | It is configured like system | |
CN102945556B (en) | Seven look algorithm of color separations of Neugebauer equation are divided based on cell element | |
Li et al. | Research on the detection of fabric color difference based on T‐S fuzzy neural network | |
CN106408619A (en) | Method of realizing cross-media color reproduction based on spectral domain | |
CN102975502B (en) | Printer calibration steps and device for color management | |
Repetti et al. | Dual forward-backward unfolded network for flexible plug-and-play | |
CN102075667B (en) | Method for reversely converting color space based on table lookup method | |
CN114285955B (en) | Color gamut mapping method based on dynamic deviation map neural network | |
CN102529388B (en) | Total ink amount measuring method and device for ink jet printing equipment | |
CN102238297B (en) | Method and system for generating international color consortium profile file | |
CN117973433A (en) | Intelligent color matching artificial neural network for textile printing and dyeing | |
CN112270397A (en) | Color space conversion method based on deep neural network | |
Su et al. | Colour space conversion model from CMYK to CIELab based on CS‐WNN | |
CN113409206A (en) | High-precision digital printing color space conversion method | |
Liu | A colour transfer method of interior design based on machine learning | |
CN101442602B (en) | A Color Space Conversion Method Based on Fuzzy Theory | |
CN104918030A (en) | Color space conversion method based on ELM extreme learning machine | |
WO2021092807A1 (en) | Self-adaptive pre-coding model training method, self-adaptive pre-coding method and base station | |
JP2018082312A (en) | Image control device, patch chart, image forming method, and program | |
CN114579790B (en) | Method for determining laser color marking parameters | |
Yu et al. | Optimal power control for over-the-air federated edge learning using statistical channel knowledge |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |