CN114285955B - 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
- CN114285955B CN114285955B CN202111620261.XA CN202111620261A CN114285955B CN 114285955 B CN114285955 B CN 114285955B CN 202111620261 A CN202111620261 A CN 202111620261A CN 114285955 B CN114285955 B CN 114285955B
- Authority
- CN
- China
- Prior art keywords
- color
- mapping
- printing
- dyeing
- mask
- 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.)
- Active
Links
Images
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明属于颜色映射领域,针对当前颜色空间不均匀、印染打印机与标准颜色空间CIE XYZ中颜色映射不精准的问题,提出了基于动态偏差图神经网络的颜色色域映射方法,利用深度模型的能够从大量样本中学习非线性转换的能力,通过采集大量打印机颜色空间颜色样本,并通过不同打印机打印,颜色测量仪器测量,获得大量颜色映射样本对的基础上,结合不同印染打印机的差异性以及不同时间同一印染打印机的差异性,构建动态偏差图神经网络,完成了标准颜色空间颜色与不同印染打印机颜色间的精准映射。The invention belongs to the field of color mapping. Aiming at the problems of uneven color space and inaccurate color mapping between printing and dyeing printers and the 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 conversion from a large number of samples, by collecting a large number of printer color space color samples, printing through different printers, and measuring with color measuring instruments, on the basis of obtaining a large number of color mapping sample pairs, combining the differences of different printing and dyeing printers and different The difference between printing and dyeing printers at the same time, constructing a dynamic deviation map neural network, and completing the accurate mapping between the color of the standard color space and the color of different printing and dyeing printers.
背景技术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 interdisciplinary 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) uses a graph neural network to realize the mapping of clothing key points between tiled clothing and human body clothing; Document 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 the graph neural network, and realizes the reconstruction of a single image to a three-dimensional mesh. The current graph neural network has been verified in many fields to realize the mapping of different spaces is effective and feasible, and the color gamut mapping based on the graph neural network is less, the main reason is that different printing and dyeing printers and the printing and dyeing color rendering of the same printer in different time periods have different characteristics. Bias.
在颜色色域映射方面,现有的颜色色域映射方法主要包含两大类:图像相关的动态颜色色域映射方法、固定的颜色色域映射方法。图像相关的动态颜色色域映射方法主要考虑图像中颜色值的特性,实现针对该图像颜色转换的误差化最小,该类方法需要结合图像颜色特点,动态调整颜色空间间颜色点的映射关系,能够获得较好的颜色呈现效果,但处理时间较慢,不适用于大规模推广。固定的颜色色域映射方法主要包含三类:物理转换模型、数值量化转换模型、3D LUT法。物理转换模型一般会假定颜色通道相互独立、色度恒定、颜色空间均匀等条件,但人眼在观察真实颜色时,色差并不是均匀的;数值量化转换模型通过数值模型学习设备相关颜色空间与设备无关颜色空间的转换关系,数值模型主要有多项式回归法、神经网络法、连续线性插值法、径向基函数法等几种,例如,文献3(宋明黎,盛楠,冯尊磊,等.基于图像色块用于纺织品喷墨印染的颜色一致性映射方法:,CN110418030A[P].2019)采用RBF神经网络实现了印染机CMYK到显示器RGB颜色空间间的映射,然而RBF有限的学习能力限制着颜色映射的精准度,同时该工作并未考虑不同机器、不同时间颜色的偏差性。3D LUT法将设备无关颜色空间和设备相关颜色空间之间的转换关系建立在表中,3D LUT法的精确性主要依赖于测量的颜色数量与颜色转换时选择的插值方法。此外,部分欧洲公司实现了颜色空间中多点间的颜色映射,获得了较好的精准度,然而因商业隐私,所采用技术并未公开,技术路线不详。In terms of color gamut mapping, 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 to minimize the error in the color conversion of the image. This type of method needs to combine the characteristics of the image color and dynamically adjust the mapping relationship between color points in the color space. A better color rendering effect is obtained, but the processing time is slower and it is not suitable for large-scale promotion. Fixed color gamut mapping methods mainly include 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 the color space, the numerical models mainly include polynomial regression method, neural network method, continuous linear interpolation method, radial basis function method, etc., for example, Document 3 (Song Mingli, Sheng Nan, Feng Zunlei, etc. Color Consistency Mapping Method for Inkjet Printing and Dyeing of Textiles: CN110418030A[P].2019) The RBF neural network is used to realize the mapping between the CMYK color space of the printing and dyeing machine and the RGB color space of the display, but the limited learning ability of RBF limits the color mapping At the same time, this work did not consider the color deviation of 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 a 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 made public, and the technical route is unknown.
发明内容Contents of the invention
本发明要解决不同打印机、同一打印机不同时间印染颜色呈现偏差的问题,实现印染打印机颜色空间到标准颜色空间间颜色的精准映射。The present invention solves the problem of printing and dyeing color deviation between different printers and the same printer at different times, and realizes accurate mapping of colors from the color space of the printing and dyeing printer to the standard color space.
纺织印染打印机一直存在颜色印染不稳定与原始颜色空间差异性较大的挑战,主要的问题在于颜色空间不是均匀分布、打印机颜色呈现有偏差。本发明提出了一种基于动态偏差图神经网络的颜色色域映射方法,通过将动态偏差引入神经网络,从大量采集的印染样本中学习出印染打印机颜色空间到标准颜色空间间颜色映射的同时,实现印染打印机颜色空间到标准颜色空间间颜色的精准映射。Textile printing and dyeing printers have always faced the challenge of unstable color printing and dyeing and the large difference between 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 present invention proposes a color gamut mapping method based on a dynamic deviation map neural network. By introducing the dynamic deviation into the neural network, the color mapping between the printing and dyeing printer color space and the standard color space is learned from a large number of collected printing and dyeing samples. Realize the accurate mapping of colors from printing and dyeing printer color space to standard color space.
基于动态偏差图神经网络的颜色色域映射方法,包括如下步骤:A color gamut mapping method based on a dynamic deviation map neural network, comprising 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 each printing and dyeing printer C, M, Y , K four color channels, each channel collects T color points at a time, respectively with Ink volume as the center point, with (-d%, d%) as the disturbance sampling interval, the four channels are combined to obtain T 4 color sample points; for P printers, each printing is collected Q times, and a total of P* Q*T 4 color sample points; for printing and dyeing samples, the corresponding color points of all sample points in CIE XYZ color space are measured by the color measuring instrument i1Pro2;
2)从XYZ到CMYK颜色空间偏差映射图神经网络构建与训练;2) Neural network construction and training from XYZ to CMYK color space deviation map;
针对每台印染机的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-time 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, the color value matrix D of T 4 * 4 is obtained, and the 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 convolutional 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 prediction input for all samples There is a 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 i-th row of samples; for all samples, a preliminary color mapping network is obtained through R iterations;
3)基于掩码的粗粒度局部映射强化;3) Mask-based coarse-grained local mapping enhancement;
对于构建的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 with T 4 nodes, 10%, 20%, 30%, 40%, 50%, 60%, 70%, 80%, 90%, 95 % sample points, use the graph convolution network H l+1 = σ(A'H l W l ) to 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 adjacency matrix after the mask, H 0 =mS, m is the random mask that increases with the number of iterations, the gradual increase ratio of the random mask is evenly distributed in the R times of iterations, and for obtaining the mask input O ', trained with a coarse - grained local map reinforcement loss function L2 after the mask:
其中|m|为掩码后保留的颜色样本点;Where |m| is the color sample point retained after the mask;
4)针对特定机器的图神经映射网络调整优化;4) Adjust and optimize the graph neural mapping network for specific machines;
对于步骤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] micro-perturbation to the input color value, using the following Specific precise mapping loss function L 3 :
在前R'次迭代优化中,利用增加噪声扰动的颜色样本进行网络的训练,接着在后续R'次迭代优化中,利用未加噪声扰动的颜色样本进行网络的训练,获得针对特定机器的XYZ->CMYK精准颜色映射网络;In the first R' iterative optimization, the network is trained using color samples with added noise disturbance, and then in the subsequent R' iterative optimization, the network is trained using color samples without noise perturbation to obtain XYZ for a specific machine ->CMYK accurate color mapping network;
5)基于掩码的特定机器局部映射强化;5) Mask-based machine-specific local mapping enhancement;
对于步骤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 out 90% and 95% of the sample points in the first R'/2 iterations and the last R'/2 iterations respectively, using the graph convolutional 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 adjacency matrix after the mask, H 0 = mS, m is a random mask that increases with the number of iterations. For the mask input O', use the mask-specific machine local fine mapping to strengthen the 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 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 a color space deviation map neural network from CMYK to XYZ mapping. Network, through step 2) similar bias coarse-grained mapping, step 3) mask-based coarse-grained local map reinforcement, step 4) machine-specific graph neural map network tuning optimization, step 5) mask-based machine-specific local Mapping enhancement and other four steps 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 domain. For the input CMYK color value, it needs to be matched to T 4 graph nodes For the graph nodes within the ink volume, for the input XYZ color value, it needs 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 two-way color mapping from CMYK to XYZ through the above method.
优选地,步骤2)的颜色偏差的阈值e设定为3。Preferably, the threshold e of color deviation in step 2) is set to 3.
优选地,步骤1)所述的打印机个数P区100,每个打印采集次数Q取100,颜色点个数T取10。Preferably, the number of printers P in step 1) is 100, the number of printing acquisitions Q is 100, and the number of color points T is 10.
本发明的方法是基于动态偏差图神经网络的颜色色域映射方法,用于纺织品印染打印机CMYK颜色空间与标准CIE XYZ颜色空间之间颜色值的映射转换。The method of the invention is a color gamut mapping method based on a dynamic deviation graph neural network, and is used for the mapping conversion of color values between the CMYK color space of a textile printing and dyeing printer and the standard CIE XYZ color space.
通过上述步骤建立的基于动态偏差图神经网络的颜色色域映射方法,通过将动态偏差引入神经网络,从大量采集的印染样本中学习出印染打印机颜色空间到标准颜色空间间颜色映射的同时,实现印染打印机颜色空间到标准颜色空间间颜色的精准映射。The color gamut mapping method based on the dynamic deviation map neural network established through the above steps, by introducing the dynamic deviation into the neural network, learns the color mapping between the printing and dyeing printer color space and the standard color space from a large number of collected printing and dyeing samples, and realizes Accurate mapping of colors from printing and dyeing printer color space to standard color space.
本发明具有的有益效果是:基于图神经网络的强大学习能力,在采集大量样本的基础上,通过将不同印染打印机、同一打印机不同时间的颜色偏差性建模到图神经网络颜色映射模型,实现了颜色的动态精准映射。The beneficial effects of the present invention are: 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, realizing Dynamic and accurate mapping of colors.
附图说明Description of drawings
图1是本发明方法的流程图。Figure 1 is a flow chart of the method of the present invention.
具体实施方式detailed description
下面结合附图,进一步说明本发明的技术方案。The technical solution of the present invention will be further described below in conjunction with the accompanying drawings.
本发明基于动态偏差图神经网络的颜色色域映射方法,包括如下步骤:The present invention is based on the color gamut mapping method of dynamic deviation graph neural network, 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 each printing and dyeing printer's C, M, Y , 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 printing and dyeing samples, measure the corresponding color points of all sample points in CIE XYZ color space through the color measuring instrument i1Pro2;
2)从XYZ到CMYK颜色空间偏差映射图神经网络构建与训练;2) Neural network construction and training from XYZ to CMYK color space deviation map;
针对每台印染机的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 100 color point samples 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 the adjacency matrix A of 10,000 feature points is constructed according to the adjacency relationship in the C, M, Y, and K four-color spaces; using the graph convolutional 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 bias mapping loss function L 1 to obtain biased values for all samples Mapping relations:
其中e为颜色偏差的阈值(本发明中设定为3),Oi与Di为第i行样本颜色值;对所有样本通过50次迭代获得初步的颜色映射网络;Wherein e is the threshold value of color deviation (set to 3 in the present invention), and O i and D i are i-th row sample color values; Obtain preliminary color mapping network by 50 iterations for all samples;
3)基于掩码的粗粒度局部映射强化;3) Mask-based coarse-grained local mapping enhancement;
对于构建的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, by gradually random masking out 10%, 20%, 30%, 40%, 50%, 60%, 70%, 80%, 90%, 95% in 50 iterations For the sample points of , use the graph convolutional network H l+1 = σ(A'H l W l ) to 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 adjacency matrix after the mask, H 0 =mS, m is the random mask that increases with the number of iterations, the gradual increase ratio of the random mask is distributed on average in 50 iterations, and for obtaining the mask input O' , using the coarse - grained local mapping reinforcement loss function L2 after the mask 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 specific machines;
对于步骤3)获得的初步颜色映射网络,对于特定的机器,利用采集的100个样本,通过随机对输入颜色值增加[-0.1,0.1]的微量扰动,来增加网络的抗噪能力,利用如下特定精准映射损失函数L3:For the preliminary color mapping network obtained in step 3), for a specific machine, use 100 samples collected to increase the anti-noise ability of the network by randomly adding [-0.1,0.1] micro-perturbation to the input color value, using the following Specific precise mapping loss function L 3 :
在前10次迭代优化中,利用增加噪声扰动的颜色样本进行网络的训练,接着在后续10次迭代优化中,利用未加噪声扰动的颜色样本进行网络的训练,获得针对特定机器的XYZ->CMYK精准颜色映射网络;In the first 10 iterative optimizations, the network is trained using color samples with added noise perturbation, and then in the next 10 iterative optimizations, the network is trained using color samples without noise perturbation to obtain XYZ-> for a specific machine 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), by randomly masking out 90% and 95% of the sample points in the first 5 iterations and the last 5 iterations respectively, using the graph convolutional 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 adjacency matrix after the mask, H 0 =MS, and M is With random masks increasing in number of iterations, for obtaining masked input O', train with mask-specific machine-local fine - map augmentation 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 a color space deviation map neural network from CMYK to XYZ mapping. Network, through step 2) similar bias coarse-grained mapping, step 3) mask-based coarse-grained local map reinforcement, step 4) machine-specific graph neural map network tuning optimization, step 5) mask-based machine-specific local Mapping enhancement and other four steps 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 domain. For the input CMYK color value, it needs to be matched to the graph nodes within 5% of the 10,000 graph nodes. For the input XYZ The color value needs to match the graph nodes with a color difference value 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 two-way 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 a dynamic deviation graph neural network, and is used for the mapping conversion of color values between the CMYK color space of a textile printing and dyeing printer and the standard CIE XYZ color space.
本发明具有的有益效果是:基于图神经网络的强大学习能力,在采集大量样本的基础上,通过将不同印染打印机、同一打印机不同时间的颜色偏差性建模到图神经网络颜色映射模型,实现了颜色的动态精准映射。The beneficial effects of the present invention are: 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, realizing Dynamic and accurate mapping of colors.
本说明书实施例所述的内容仅仅是对发明构思的实现形式的列举,本发明的保护范围的不应当被视为仅限于实施例所陈述的具体形式,本发明的保护范围也及于本领域技术人员根据本发明构思所能够想到的等同技术手段。The content described in the embodiments of this specification is only an enumeration of the implementation forms of the inventive concept. The protection scope of the present invention should not be regarded as limited to the specific forms stated in the embodiments. The protection scope of the present invention also extends to the field Equivalent technical means that the skilled person can think of based on the concept of the present invention.
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 CN114285955A (en) | 2022-04-05 |
CN114285955B true 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 (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (6)
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 |
CN102110428B (en) * | 2009-12-23 | 2015-05-27 | 新奥特(北京)视频技术有限公司 | Method and device for converting color space from CMYK to RGB |
CA3043621C (en) * | 2018-05-18 | 2020-03-24 | The Governing Council Of The University Of Toronto | Method and system for color representation generation |
CN109147048B (en) * | 2018-07-23 | 2021-02-26 | 复旦大学 | Three-dimensional mesh reconstruction method by utilizing single-sheet colorful image |
US20210227095A1 (en) * | 2018-09-05 | 2021-07-22 | Hewlett-Packard Development Company, L.P. | Modeling a printed halftone image |
CN112085668B (en) * | 2020-08-14 | 2023-10-10 | 深圳大学 | A method of image tone mapping based on region-adaptive self-supervised learning |
-
2021
- 2021-12-28 CN CN202111620261.XA patent/CN114285955B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN114285955A (en) | 2022-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109582994B (en) | Intelligent color selection and matching method for colored spun yarn | |
Comte et al. | Adaptive Laguerre density estimation for mixed Poisson models | |
CN101325648B (en) | Color processing apparatus, color processing method | |
CN106937018B (en) | The color mapping method of textile inkjet printing and dyeing is used for based on RBF neural | |
Li et al. | Anycostfl: Efficient on-demand federated learning over heterogeneous edge devices | |
WO2023029111A1 (en) | Bidirectional unsupervised domain adaptation and merger-based cross-satellite remotely sensed image semantic segmentation method | |
CN114285955B (en) | Color gamut mapping method based on dynamic deviation map neural network | |
CN106408619A (en) | Method of realizing cross-media color reproduction based on spectral domain | |
CN102945556A (en) | Seven color separation algorithm based on cellular element partition neugebauer equation | |
CN102075667B (en) | Method for reversely converting color space based on table lookup method | |
Qiao et al. | Prototype helps federated learning: Towards faster convergence | |
Su et al. | Colour space conversion model from CMYK to CIELab based on CS‐WNN | |
CN104918030A (en) | Color space conversion method based on ELM extreme learning machine | |
Wright et al. | Contextuality in composite systems: the role of entanglement in the Kochen-Specker theorem | |
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 | |
CN110635833B (en) | A power distribution method and distribution device based on deep learning | |
WO2021092807A1 (en) | Self-adaptive pre-coding model training method, self-adaptive pre-coding method and base station | |
Yu et al. | Optimal power control for over-the-air federated edge learning using statistical channel knowledge | |
JP2018082312A (en) | Image control device, patch chart, image forming method, and program | |
CN117456293A (en) | Fabric dyeing formula prediction method and system based on printing and dyeing big data | |
CN116580824A (en) | Cross-region medical cooperation prediction method based on federal graph machine learning | |
Zhang et al. | A pruning neural network for automatic modulation classification | |
Shams-Nateri | Estimation of fabric color by camera based neuro-fuzzy technique |
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 |