[go: up one dir, main page]

CN118799501A - Three-dimensional color printing model establishment method and interactive operation method - Google Patents

Three-dimensional color printing model establishment method and interactive operation method Download PDF

Info

Publication number
CN118799501A
CN118799501A CN202411282300.3A CN202411282300A CN118799501A CN 118799501 A CN118799501 A CN 118799501A CN 202411282300 A CN202411282300 A CN 202411282300A CN 118799501 A CN118799501 A CN 118799501A
Authority
CN
China
Prior art keywords
color
printing
model
data
dimensional
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
Application number
CN202411282300.3A
Other languages
Chinese (zh)
Other versions
CN118799501B (en
Inventor
王志宏
陶安迪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Huanyu Technology Co ltd
Original Assignee
Zhejiang Huanyu Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhejiang Huanyu Technology Co ltd filed Critical Zhejiang Huanyu Technology Co ltd
Priority to CN202411282300.3A priority Critical patent/CN118799501B/en
Publication of CN118799501A publication Critical patent/CN118799501A/en
Application granted granted Critical
Publication of CN118799501B publication Critical patent/CN118799501B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Spectrometry And Color Measurement (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

The application provides a three-dimensional color printing model establishment method and an interaction method, wherein the three-dimensional color printing model establishment method comprises the following steps: establishing a three-dimensional color model; the three-dimensional color model takes a hue circle as a reference plane, establishes a brightness axis perpendicular to the reference plane, represents the position along the brightness axis direction by brightness values, and represents the radial space distance value from the center of the hue circle to any point by chroma values; acquiring first color data, and mapping the first color data to corresponding positions in the three-dimensional color model; acquiring second color data, wherein the second color data is obtained by converting the first color data through a device color configuration file of the target printing device and a display color configuration file of the current display device; generating a visual color sample based on the first color data and the mapping position of the first color data in the three-dimensional color model; characterizing a display color of the visual color sample by the second color data; and constructing a color printing model by arranging a plurality of visual color samples.

Description

三维色彩打印模型建立方法及交互操作方法Three-dimensional color printing model establishment method and interactive operation method

技术领域Technical Field

本申请涉及数码喷印技术领域,特别涉及一种三维色彩打印模型建立方法及交互操作方法。The present application relates to the field of digital printing technology, and in particular to a three-dimensional color printing model establishment method and an interactive operation method.

背景技术Background Art

传统的色彩打印中,打印设备打印出的受到所见颜色的限制,在不同的打印设备之间会存在色彩偏差,从而导致重复返工以及材料浪费。在不同设备上打印同一种颜色时,会存在颜色的不一致性,由于色彩的差异,导致用户不能准确地寻找色彩,最终影响打印效果和打印效率。In traditional color printing, the printing device is limited by the color it sees, and there will be color deviations between different printing devices, resulting in repeated rework and material waste. When printing the same color on different devices, there will be color inconsistencies. Due to the color difference, users cannot find the color accurately, which ultimately affects the printing effect and printing efficiency.

发明内容Summary of the invention

本申请实施例的目的在于提供一种三维色彩打印模型建立方法及交互操作方法,通过构建三维色彩模型,并结合可视化色样和色彩模型,提供直观的色彩关系展示效果,并实现打印输入与输出的色彩一致性。The purpose of the embodiments of the present application is to provide a three-dimensional color printing model establishment method and an interactive operation method, which provides an intuitive color relationship display effect and achieves color consistency between print input and output by constructing a three-dimensional color model and combining visual color samples and color models.

第一方面,本申请提供一种三维色彩打印模型建立方法,所述方法包括:建立三维色彩模型;其中,所述的三维色彩模型以色相环为基准平面,建立一条垂直于所述的基准平面的明度轴,以明度值表示沿所述明度轴方向的位置,以彩度值表示从所述色相环的中心向外到任一点的径向空间距离值;获取第一颜色数据,将所述第一颜色数据映射至所述三维色彩模型中的相应位置;获取第二颜色数据,所述的第二颜色数据通过目标打印设备的设备色彩配置文件和当前显示设备的显示色彩配置文件,由所述的第一颜色数据转换得到;基于所述的第一颜色数据和所述第一颜色数据在所述三维色彩模型中的映射位置,生成可视化色样;通过所述的第二颜色数据表征所述的可视化色样的显示颜色;若干所述的可视化色样排布构建色彩打印模型。In a first aspect, the present application provides a method for establishing a three-dimensional color printing model, the method comprising: establishing a three-dimensional color model; wherein the three-dimensional color model uses a hue circle as a reference plane, establishes a lightness axis perpendicular to the reference plane, uses lightness values to represent positions along the lightness axis, and uses chroma values to represent radial spatial distance values from the center of the hue circle to any point; obtains first color data, and maps the first color data to a corresponding position in the three-dimensional color model; obtains second color data, the second color data is converted from the first color data through a device color profile of a target printing device and a display color profile of a current display device; generates a visual color sample based on the first color data and the mapping position of the first color data in the three-dimensional color model; represents the display color of the visual color sample through the second color data; and constructs a color printing model by arranging several of the visual color samples.

在一些实施例中,所述的建立三维色彩模型之后,包括如下步骤:获取所述色相环的第一阈值范围以界定色相范围;获取所述明度值的第二阈值范围以界定高度范围;获取所述彩度值的第三阈值范围以界定径向距离范围;根据所述第一阈值范围、所述第二阈值范围和所述第三阈值单位使所述三维色彩模型呈现为规则的球体。In some embodiments, after the three-dimensional color model is established, the following steps are included: obtaining a first threshold range of the hue ring to define a hue range; obtaining a second threshold range of the lightness value to define a height range; obtaining a third threshold range of the chroma value to define a radial distance range; and presenting the three-dimensional color model as a regular sphere based on the first threshold range, the second threshold range and the third threshold unit.

在一些实施例中,所述获取第一颜色数据,包括如下步骤:获取离散颜色数据,所述离散颜色数据基于预设的数据筛选策略对预设的基础色彩模型进行离散得到;获取所述的基础色彩模型和所述的三维色彩模型的转换关系,并将所述的离散颜色数据转换为所述的三维色彩模型中的对应的第一颜色数据,其中,所述三维色彩模型与所述基础色彩模型不同。In some embodiments, the obtaining of the first color data includes the following steps: obtaining discrete color data, wherein the discrete color data is discretized from a preset basic color model based on a preset data screening strategy; obtaining a conversion relationship between the basic color model and the three-dimensional color model, and converting the discrete color data into corresponding first color data in the three-dimensional color model, wherein the three-dimensional color model is different from the basic color model.

在一些实施例中,所述的所述离散颜色数据基于预设的数据筛选策略对预设的基础色彩模型进行离散得到,包括如下步骤:所述的所述离散颜色数据基于利用预设的选用色差值,将所述基础色彩模型中的颜色按照等距离原则进行离散化处理,以生成一系列具有均匀色差的离散颜色数据,得到所述的离散颜色数据。In some embodiments, the discrete color data is obtained by discretizing a preset basic color model based on a preset data screening strategy, including the following steps: the discrete color data is based on using a preset selected color difference value, discretizing the colors in the basic color model according to the equidistance principle to generate a series of discrete color data with uniform color difference, thereby obtaining the discrete color data.

在一些实施例中,所述的将所述基础色彩模型中的颜色按照等距离原则进行离散化处理,包括如下步骤:所述的基础色彩模型包括明度值、红绿度值、黄蓝度值三个维度,将所述基础色彩模型中的颜色按照明度值、红绿度值、黄蓝度值三个维度的等距离原则进行离散化处理。In some embodiments, the discretization of the colors in the basic color model according to the equidistant principle includes the following steps: the basic color model includes three dimensions: lightness value, redness-greenness value, and yellowness-blueness value; the colors in the basic color model are discretized according to the equidistant principle of the three dimensions: lightness value, redness-greenness value, and yellowness-blueness value.

在一些实施例中,所述的所述离散颜色数据基于利用预设的选用色差值,将所述基础色彩模型中的颜色按照等距离原则进行离散化处理,以生成一系列具有均匀色差的离散颜色数据,得到所述的离散颜色数据,包括如下步骤:基于利用预设的选用色差值作为正多面体的边长,并通过空间密铺方式构建正多面体阵列,用以划分预设的基础色彩模型;确定所述的基础色彩模型的基准颜色点数据;所述的基准颜色点数据与所述正多面体阵列中的某个正多面体的顶点或中心点重合,得到每个所述的正多面体的顶点在所述基础色彩模型中的等距离的色差离散点数据,得到所述离散颜色数据。In some embodiments, the discrete color data is based on using a preset selected color difference value to discretize the colors in the basic color model according to the equidistant principle to generate a series of discrete color data with uniform color difference, and the discrete color data is obtained, including the following steps: based on using the preset selected color difference value as the side length of a regular polyhedron, and constructing a regular polyhedron array by a spatial paving method to divide the preset basic color model; determining the reference color point data of the basic color model; the reference color point data coincides with the vertex or center point of a regular polyhedron in the regular polyhedron array, and obtaining the equidistant color difference discrete point data of each vertex of the regular polyhedron in the basic color model, to obtain the discrete color data.

在一些实施例中,所述基于所述的基础色彩模型的所述明度值、所述红绿度值、所述黄蓝度值,还包括如下步骤:获取所述明度值的第四阈值范围以界定亮度范围;获取所述红绿度值的第五阈值范围以界定红绿度范围;获取所述黄蓝度值的第六阈值范围以界定黄蓝度范围。In some embodiments, the lightness value, the redness-greenness value, and the yellowness-blueness value based on the basic color model further include the following steps: obtaining a fourth threshold range of the lightness value to define a brightness range; obtaining a fifth threshold range of the redness-greenness value to define a redness-greenness range; and obtaining a sixth threshold range of the yellowness-blueness value to define a yellowness-blueness range.

在一些实施例中,所述获取第二颜色数据,所述的第二颜色数据通过目标打印设备的设备色彩配置文件和当前显示设备的显示色彩配置文件,由所述的第一颜色数据转换得到,还包括如下步骤:基于全部或部分的第一颜色数据,生成打印指令并发送至指定的目标打印设备;获得打印实测颜色数据,基于所述的第一颜色数据通过目标打印设备的设备配置文件转换打印输出测量得到;将所述的打印实测颜色数据通过当前显示设备的显示色彩配置文件转换,得到与全部或部分的所述的第一颜色数据对应的所述的第二颜色数据。In some embodiments, the obtaining of the second color data, wherein the second color data is converted from the first color data through a device color profile of a target printing device and a display color profile of a current display device, further comprises the following steps: generating a print instruction based on all or part of the first color data and sending the instruction to a designated target printing device; obtaining the measured print color data, which is measured by converting the print output through a device profile of the target printing device based on the first color data; and converting the measured print color data through a display color profile of the current display device to obtain the second color data corresponding to all or part of the first color data.

在一些实施例中,所述的第二颜色数据通过目标打印设备的设备色彩配置文件和当前显示设备的显示色彩配置文件,由所述的第一颜色数据转换得到,还包括如下步骤:获取部分已知的所述的第二颜色数据及其对应的所述的第一颜色数据,使用色彩优化算法调整目标打印设备的设备色彩配置文件,更新设备色彩配置文件;对于任意给定的第一颜色数据,通过所述的设备色彩配置文件和所述的显示色彩配置文件进行转换,得到对应的第二颜色数据。In some embodiments, the second color data is converted from the first color data through a device color profile of a target printing device and a display color profile of a current display device, and further includes the following steps: obtaining part of the known second color data and its corresponding first color data, adjusting the device color profile of the target printing device using a color optimization algorithm, and updating the device color profile; for any given first color data, converting through the device color profile and the display color profile to obtain corresponding second color data.

在一些实施例中,所述获取第二颜色数据,所述的第二颜色数据通过目标打印设备的设备色彩配置文件和当前显示设备的显示色彩配置文件,由所述的第一颜色数据转换得到,还包括如下步骤:获取全部或部分的所述的第二颜色数据,将所述第二颜色数据输入当前显示器显示;获取所述的第二颜色数据对应的显示测量颜色数据,所述显示实测颜色数据为显示器实际显示的颜色数据;根据所述第二颜色数据和所述显示实测颜色数据,使用色彩优化算法调整当前显示器的显示色彩配置文件,更新显示色彩配置文件;对于任意给定的第一颜色数据,通过所述的设备色彩配置文件和所述的显示色彩配置文件进行转换,得到对应的第二颜色数据。In some embodiments, the obtaining of the second color data, wherein the second color data is obtained by converting the first color data through a device color profile of a target printing device and a display color profile of a current display device, further comprises the following steps: obtaining all or part of the second color data, and inputting the second color data into a current display for display; obtaining display measured color data corresponding to the second color data, wherein the display measured color data is color data actually displayed by the display; adjusting the display color profile of the current display using a color optimization algorithm according to the second color data and the display measured color data, and updating the display color profile; for any given first color data, converting the data through the device color profile and the display color profile to obtain corresponding second color data.

第二方面,本申请提供一种三维色彩打印模型交互操作方法,确定如本申请第一方面任一项所述的方法建立的三维色彩打印模型;所述的三维色彩打印模型基于第一颜色数据和第一颜色数据在所述三维色彩模型中的映射位置,生成可视化色样;通过第二颜色数据表征所述的可视化色样的显示颜色;由所述的可视化色样排布构建而成;其中,所述的第二颜色数据与目标打印设备和当前显示设备相关,通过目标打印设备的设备色彩配置文件和当前显示设备的显示色彩配置文件,由所述的第一颜色数据转换得到;响应于针对所述的三维色彩打印模型的交互操作,确定所述可视化色样为打印目标色;基于所述的打印目标色对应的第一颜色数据,生成打印指令并发送至指定的目标打印设备。In a second aspect, the present application provides a three-dimensional color printing model interactive operation method, which determines a three-dimensional color printing model established by the method described in any one of the first aspects of the present application; the three-dimensional color printing model generates a visual color sample based on first color data and the mapping position of the first color data in the three-dimensional color model; the display color of the visual color sample is characterized by second color data; and is constructed by the arrangement of the visual color samples; wherein the second color data is related to a target printing device and a current display device, and is converted from the first color data through a device color profile of the target printing device and a display color profile of the current display device; in response to an interactive operation on the three-dimensional color printing model, the visual color sample is determined to be a printing target color; based on the first color data corresponding to the printing target color, a printing instruction is generated and sent to a specified target printing device.

在一些实施例中,包括如下步骤:响应于针对所述的三维色彩打印模型的交互操作,按预设等差的色相值分布将所述的打印目标色划分为多个打印目标色子集,所述的打印目标色子集对应于一个所述的色相值,且打印目标色子集中包含多个具有不同的彩度值和/或明度值的打印目标色;每个打印目标色子集构成一个打印目标文件;或,响应于针对所述的三维色彩打印模型的交互操作,按预设等差的彩度值分布将所述的打印目标色划分为多个打印目标色子集,所述的打印目标色子集对应于一个所述的色相值,且打印目标色子集中包含多个具有不同的色相值和/或明度值的打印目标色;每个打印目标色子集构成一个打印目标文件;或,响应于针对所述的三维色彩打印模型的交互操作,按预设等差的明度值分布将所述的打印目标色划分为多个打印目标色子集,所述的打印目标色子集对应于一个所述的色相值,且打印目标色子集中包含多个具有不同的色相值和/或彩度值的打印目标色;每个打印目标色子集构成一个打印目标文件;基于所述的打印目标文件中包含的第一颜色数据,生成打印指令并发送至指定的目标打印设备。In some embodiments, the steps include: in response to the interactive operation on the three-dimensional color printing model, the printing target color is divided into a plurality of printing target color subsets according to a preset equidistant hue value distribution, the printing target color subset corresponds to one hue value, and the printing target color subset contains a plurality of printing target colors with different chroma values and/or lightness values; each printing target color subset constitutes a printing target file; or, in response to the interactive operation on the three-dimensional color printing model, the printing target color is divided into a plurality of printing target color subsets according to a preset equidistant chroma value distribution, the printing target color subset corresponds to one hue value, and the printing target color subset contains a plurality of printing target colors with different chroma values and/or lightness values. The printing target color subset includes multiple printing target colors with different hue values and/or lightness values; each printing target color subset constitutes a printing target file; or, in response to interactive operations on the three-dimensional color printing model, the printing target color is divided into multiple printing target color subsets according to a preset equidistant lightness value distribution, the printing target color subset corresponds to one of the hue values, and the printing target color subset includes multiple printing target colors with different hue values and/or chroma values; each printing target color subset constitutes a printing target file; based on the first color data contained in the printing target file, a printing instruction is generated and sent to a specified target printing device.

在一些实施例中,还包括如下步骤:响应于用户针对所述的三维色彩打印模型的色样选用操作,确定所述的可视化色样中的一个或多个在所述的三维色彩打印模型中突出显示。In some embodiments, the method further includes the following step: in response to a user's color sample selection operation for the three-dimensional color printing model, determining that one or more of the visualized color samples are highlighted in the three-dimensional color printing model.

在一些实施例中,还包括如下步骤:响应于用户针对所述的三维色彩打印模型的色样拖动操作,确定所述的色样拖动操作对应的移动距离和移动方向,基于所述的移动距离和所述的移动方向确定所述可视化色样的被拖动距离,并控制所述可视化色样向所述移动方向移动所述被拖动距离。In some embodiments, the following steps are also included: in response to a user's color sample dragging operation on the three-dimensional color printing model, determining a moving distance and a moving direction corresponding to the color sample dragging operation, determining a dragged distance of the visualized color sample based on the moving distance and the moving direction, and controlling the visualized color sample to move the dragged distance in the moving direction.

在一些实施例中,还包括如下步骤:响应于用户针对所述的三维色彩打印模型的旋转操作,根据所述旋转操作旋转所述的三维色彩打印模型。In some embodiments, the method further includes the following steps: in response to a user's rotation operation on the three-dimensional color printing model, rotating the three-dimensional color printing model according to the rotation operation.

在一些实施例中,还包括如下步骤:响应于用户针对所述的三维色彩打印模型的透视操作,根据所述透视操作调整所述的三维色彩打印模型的模拟视野深度,以在用户界面上基于所述的模拟视野深度显示位于所述的三维色彩打印模型的内部的可视化色样。In some embodiments, the following steps are also included: in response to a user's perspective operation on the three-dimensional color printing model, a simulated depth of field of view of the three-dimensional color printing model is adjusted according to the perspective operation, so as to display a visual color sample located inside the three-dimensional color printing model on a user interface based on the simulated depth of field.

第三方面,本申请提供一种电子设备,所述电子设备包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为执行本申请第一方面任意一项所述的三维色彩打印模型建立方法,或者,执行本申请第二方面任意一项所述的三维色彩打印模型交互操作方法。In a third aspect, the present application provides an electronic device, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to execute the three-dimensional color printing model establishment method described in any one of the first aspects of the present application, or to execute the three-dimensional color printing model interactive operation method described in any one of the second aspects of the present application.

第四方面,本申请提供一种计算机程序产品,所述计算机程序产品包括计算机程序,所述计算机程序被处理器执行时实现本申请第一方面任意一项所述的三维色彩打印模型建立方法,或者,执行本申请第二方面任意一项所述的三维色彩打印模型交互操作方法。In a fourth aspect, the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the three-dimensional color printing model establishment method described in any one of the first aspects of the present application, or executes the three-dimensional color printing model interactive operation method described in any one of the second aspects of the present application.

第五方面,本申请提供一种计算机可读存储介质,所述存储介质存储有计算机程序,所述计算机程序被处理器运行时,用以执行本申请第一方面任意一项所述的三维色彩打印模型建立方法,或者,执行本申请第二方面任意一项所述的三维色彩打印模型交互操作方法。In a fifth aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it is used to execute the three-dimensional color printing model establishment method described in any one of the first aspects of the present application, or to execute the three-dimensional color printing model interactive operation method described in any one of the second aspects of the present application.

本申请通过构建三维色彩模型,并结合可视化色样和色彩模型,提供直观的色彩关系展示效果,并实现打印输入与输出的色彩一致性。通过巧妙地分离打印色彩和显示色彩,并利用设备色彩配置文件进行转换,实现了在显示设备上更准确地预览效果,可以准确模拟在不同打印设备和打印基材上的色彩表现,减少了因色彩偏差导致的打印错误,提高打印效率。This application provides an intuitive color relationship display effect and achieves color consistency between print input and output by constructing a three-dimensional color model and combining visual color samples and color models. By cleverly separating print colors and display colors and converting them using device color profiles, a more accurate preview effect on the display device is achieved, and the color performance on different printing devices and printing substrates can be accurately simulated, reducing printing errors caused by color deviation and improving printing efficiency.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

图1为本申请一实施例提供的三维色彩打印模型建立方法的流程示意图;FIG1 is a schematic diagram of a flow chart of a method for establishing a three-dimensional color printing model provided in an embodiment of the present application;

图2为本申请一实施例提供的三维色彩模型的示意图;FIG2 is a schematic diagram of a three-dimensional color model provided in an embodiment of the present application;

图3为本申请一实施例提供的三维色彩模型的剖视图;FIG3 is a cross-sectional view of a three-dimensional color model provided by an embodiment of the present application;

图4为本申请一实施例提供的第一颜色数据映射至三维色彩模型中的示意图;FIG4 is a schematic diagram of mapping first color data to a three-dimensional color model provided by an embodiment of the present application;

图5为本申请一实施例提供的可视化色样的示意图;FIG5 is a schematic diagram of a visualized color sample provided by an embodiment of the present application;

图6为本申请一实施例提供的三维色彩打印模型的空间坐标示意图;FIG6 is a schematic diagram of spatial coordinates of a three-dimensional color printing model provided by an embodiment of the present application;

图7为本申请一实施例提供的三维色彩打印模型交互操作方法的流程示意图;FIG7 is a schematic diagram of a flow chart of a three-dimensional color printing model interactive operation method provided in an embodiment of the present application;

图8为本申请一实施例提供的三维色彩打印模型建立装置的结构示意图;FIG8 is a schematic diagram of the structure of a three-dimensional color printing model building device provided in an embodiment of the present application;

图9为本申请一实施例提供的电子设备的结构示意图。FIG. 9 is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。Similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

下面将结合附图对本申请的技术方案进行描述。The technical solution of the present application will be described below in conjunction with the accompanying drawings.

请参照图1所示,其为本申请一实施例提供的三维色彩打印模型建立方法的流程示意图。本申请的三维色彩打印模型建立方法,通过构建三维色彩模型,并结合可视化色样和色彩模型,提供直观的色彩关系展示效果,并实现打印输入与输出的色彩一致性。通过巧妙地分离打印色彩和显示色彩,并利用设备色彩配置文件进行转换,实现了在显示设备上更准确地预览效果,可以准确模拟在不同打印设备和打印基材上的色彩表现,减少了因色彩偏差导致的打印错误,提高打印效率。Please refer to Figure 1, which is a flow chart of a method for establishing a three-dimensional color printing model provided in an embodiment of the present application. The method for establishing a three-dimensional color printing model of the present application provides an intuitive color relationship display effect and achieves color consistency between print input and output by constructing a three-dimensional color model and combining visual color samples and color models. By cleverly separating the print color and the display color and converting them using the device color profile, a more accurate preview effect on the display device is achieved, and the color performance on different printing devices and printing substrates can be accurately simulated, reducing printing errors caused by color deviation and improving printing efficiency.

本申请的三维色彩打印模型建立方法,包括步骤S110-步骤S140:The three-dimensional color printing model establishment method of the present application includes steps S110 to S140:

步骤S110:建立三维色彩模型;其中,三维色彩模型以色相环为基准平面,建立一条垂直于所述的基准平面的明度轴,以明度值表示沿明度轴方向的位置,以彩度值表示从色相环的中心向外到任一点的径向空间距离值。Step S110: Establishing a three-dimensional color model; wherein the three-dimensional color model uses the hue ring as a reference plane, establishes a lightness axis perpendicular to the reference plane, uses lightness values to represent the position along the lightness axis, and uses chroma values to represent the radial spatial distance value from the center of the hue ring to any point outward.

在色彩学中,LCH色彩模型是一种基于人类视觉感知的色彩空间,它由三个分量组成,分别为:明度(Lightness,简称L)、彩度(Chroma,简称C)和色相(Hue,简称H)。作为示例,本步骤中所述的三维色彩模型可以作为一种LCH色彩模型。In color science, the LCH color model is a color space based on human visual perception, which consists of three components: lightness (L), chroma (C), and hue (H). As an example, the three-dimensional color model described in this step can be used as an LCH color model.

请参照图2所示,其中,色相是LCH色彩模型中的H分量,它描述了颜色的种类,例如红色、绿色、蓝色等。色相通常用角度来表示,范围从0°~360°,表示颜色在色轮上的位置。本步骤在建立三维色彩模型时,以色相环作为基准平面 ,色相环被划分为24色相区,每个色区分为8个子色区,每个色区的范围为1.875度,共划分为192分色区,请参照图3所示。Please refer to Figure 2, where hue is the H component in the LCH color model, which describes the type of color, such as red, green, blue, etc. Hue is usually expressed as an angle, ranging from 0° to 360°, indicating the position of the color on the color wheel. In this step, when establishing a three-dimensional color model, the hue circle is used as the reference plane. The hue circle is divided into 24 hue areas, each of which is divided into 8 sub-color areas. The range of each color area is 1.875 degrees, and it is divided into 192 color areas in total, as shown in Figure 3.

明度是LCH色彩模型的L分量,它描述了颜色的明暗程度,即颜色的亮度水平。以明度值表示沿明度轴方向的位置,它可以表示为垂直于色相环基准平面 的方向上的向量参数,明度值越高,颜色看起来越亮,相反,明度值越低,颜色看起来越暗。Lightness is the L component of the LCH color model, which describes the lightness of the color, that is, the brightness level of the color. The lightness value represents the position along the lightness axis, which can be expressed as a vector parameter in the direction perpendicular to the reference plane of the hue circle. The higher the lightness value, the brighter the color looks. On the contrary, the lower the lightness value, the darker the color looks.

彩度是LCH色彩模型中的C分量,它描述了颜色的纯度或饱和度,即颜色的强度或鲜艳程度。以彩度值表示从色相环中心向外到任一点的径向空间距离值。彩度值越高,颜色看起来越鲜艳,彩度值越低,颜色看起来越柔和或接近灰色。Chroma is the C component in the LCH color model, which describes the purity or saturation of a color, that is, the intensity or vividness of the color. The chroma value represents the radial distance from the center of the hue circle to any point. The higher the chroma value, the more vivid the color looks, and the lower the chroma value, the softer the color looks or closer to gray.

可以理解的是,步骤S110的目的是为了建立一个三维色彩模型的空间的坐标系,其中的色相环基准平面、彩度值、明度值分别表征三维色彩模型的空间坐标系的X、Y、Z轴,请参照图2所示。It is understandable that the purpose of step S110 is to establish a spatial coordinate system of a three-dimensional color model, in which the hue circle reference plane, chroma value, and lightness value respectively represent the X, Y, and Z axes of the spatial coordinate system of the three-dimensional color model, as shown in Figure 2.

上述实施例中,在三维色彩模型中,使用垂直于色相环的颜色来表示明度,与人类对明度线性变化的感知一致,使用户可以直观地调整颜色的明暗程度。利用从色相环中心向外的间隙距离来表示彩度,符合人类对彩度放射状变化的感知,使用户可以通过观察来调整颜色的鲜艳程度。采用圆形色相环来表示色相,完美契合了人类对色相的习得,使得相邻颜色之间的关系更加清晰,也更容易理解互补色的概念。因此,用户能够更为方便地比较不同颜色的差异,进行色彩搭配,准确快速寻找色彩。In the above embodiment, in the three-dimensional color model, the color perpendicular to the hue ring is used to represent the brightness, which is consistent with the human perception of linear changes in brightness, so that the user can intuitively adjust the brightness of the color. The gap distance from the center of the hue ring to the outside is used to represent the chroma, which is consistent with the human perception of radial changes in chroma, so that the user can adjust the vividness of the color by observation. The circular hue ring is used to represent the hue, which perfectly matches the human learning of hue, making the relationship between adjacent colors clearer and easier to understand the concept of complementary colors. Therefore, users can more conveniently compare the differences between different colors, match colors, and find colors accurately and quickly.

步骤S120:获取第一颜色数据,将第一颜色数据映射至三维色彩模型中的相应位置。Step S120: Acquire first color data, and map the first color data to a corresponding position in the three-dimensional color model.

第一颜色数据可以是用户自行定义所需要的颜色,第一颜色数据包括:用户自定义的颜色的色相参数、彩度值参数和明度值参数。The first color data may be a color required and defined by a user. The first color data includes: a hue parameter, a chroma value parameter, and a brightness value parameter of the color defined by the user.

例如,用户需要建立蓝色的颜色数据,基于前文对明度、彩度、色相三个分量的描述可知,当用户确定了蓝色颜色的色相参数、彩度值参数、明度值参数后,表明该蓝色颜色在三维色彩模型中的空间坐标系确定,根据蓝色颜色的色相参数数据、彩度值数据、明度值数据,可以在三维色彩模型中确定该蓝色颜色所在位置。因此,用户可以基于设定的蓝色的色相参数、彩度值参数、明度值参数的颜色数据,在三维色彩模型中找到该蓝色对应在三维色彩模型坐标系中的唯一位置,请参照图4所示。For example, the user needs to establish the color data of blue. Based on the description of the three components of lightness, chroma and hue in the previous text, it can be known that when the user determines the hue parameter, chroma value parameter and lightness value parameter of the blue color, it indicates that the spatial coordinate system of the blue color in the three-dimensional color model is determined. According to the hue parameter data, chroma value data and lightness value data of the blue color, the location of the blue color can be determined in the three-dimensional color model. Therefore, the user can find the unique position of the blue color in the three-dimensional color model coordinate system in the three-dimensional color model based on the color data of the set hue parameter, chroma value parameter and lightness value parameter of the blue, as shown in Figure 4.

在另一些实施例中,第一颜色数据可以为RGB颜色模式中的红绿度值数据。例如,第一颜色数据为RGB颜色模式中的红绿度值,指红色、绿色和蓝色(Red、Green、Blue,简称RGB)的数值比例。In some other embodiments, the first color data may be red-green value data in an RGB color mode. For example, the first color data is a red-green value in an RGB color mode, which refers to the numerical ratio of red, green, and blue (Red, Green, Blue, RGB for short).

在其他一些实施例中,第一颜色数据还可以是CIELab色彩空间中的黄蓝度值,其中,L代表明度,即颜色的深浅;a代表红绿值;b代表黄蓝值。In some other embodiments, the first color data may also be the yellow-blue value in the CIELab color space, wherein L represents lightness, that is, the depth of the color; a represents the red-green value; and b represents the yellow-blue value.

步骤S130:获取第二颜色数据,第二颜色数据通过目标打印设备的设备色彩配置文件和当前显示设备的显示色彩配置文件,由第一颜色数据转换得到。Step S130: acquiring second color data, where the second color data is converted from the first color data through a device color profile of a target printing device and a display color profile of a current display device.

本步骤中,第一颜色数据需要经过数据转换,转换为目标打印设备所能够理解的色彩模式,即第二颜色数据。通过分离目标打印设备能够打印的打印色彩和显示设备所呈现的显示色彩,并利用目标打印设备的设备色彩配置文件进行转换,实现在显示设备上更准确地预览打印效果。In this step, the first color data needs to be converted into a color mode that can be understood by the target printing device, that is, the second color data. By separating the print colors that can be printed by the target printing device and the display colors presented by the display device, and converting them using the device color profile of the target printing device, a more accurate preview of the print effect on the display device can be achieved.

在一些实施例中,目标打印设备包括但不限于是往复式扫描打印机、一次性扫描打印机、多喷头并排扫描式打印机中的一种。当前显示设备可以为终端设备的显示器,包括但不限于是计算机、笔记本电脑、智能手机、平板电脑的显示器中的一种。In some embodiments, the target printing device includes but is not limited to a reciprocating scanning printer, a one-shot scanning printer, and a multi-nozzle side-by-side scanning printer. The current display device may be a display of a terminal device, including but not limited to a display of a computer, a laptop, a smart phone, or a tablet computer.

步骤S140:基于第一颜色数据和第一颜色数据在三维色彩模型中的映射位置,生成可视化色样;通过第二颜色数据表征可视化色样的显示颜色;若干可视化色样排布构建色彩打印模型。Step S140: Generate a visualized color sample based on the first color data and the mapping position of the first color data in the three-dimensional color model; characterize the display color of the visualized color sample by the second color data; and construct a color printing model by arranging a plurality of visualized color samples.

当用户根据需要对蓝色颜色的彩度值进行调整,或者对蓝色颜色的明度值进行调整时,在三维色彩模型中就会呈现出蓝色颜色的不同彩度或不同明度的颜色变化效果。如果用户需要调整颜色,可以通过对色相进行调整,再对彩度值和明度值进行调整,从而在三维色彩模型中呈现出不同于蓝色颜色以外的其他颜色的色彩变化效果,以满足对不同场景下对色彩的需求,请参照图5所示。When the user adjusts the chroma value of the blue color or adjusts the lightness value of the blue color as needed, a color change effect of different chromas or lightness of the blue color will be presented in the three-dimensional color model. If the user needs to adjust the color, the hue can be adjusted, and then the chroma value and lightness value can be adjusted, so that the color change effect of other colors other than the blue color can be presented in the three-dimensional color model to meet the color requirements in different scenes, as shown in Figure 5.

因此,用户可以根据第一颜色数据(如蓝色)以及第一颜色数据在三维色彩模型中的位置,生成第一颜色数据(蓝色)的可视化色样。按照同样的方法,可以获得其他种类颜色的可视化色样。根据前文所述的被划分成24色相区,192个分色区的色相环,用户可得到一系列用于表征黄色、绿色、红色等24种颜色的可视化色样。Therefore, the user can generate a visualized color sample of the first color data (blue) according to the first color data (such as blue) and the position of the first color data in the three-dimensional color model. In the same way, visualized color samples of other types of colors can be obtained. According to the hue ring divided into 24 hue areas and 192 color separation areas as described above, the user can obtain a series of visualized color samples for representing 24 colors such as yellow, green, and red.

第二颜色数据是为了得到与打印设备实测颜色数据一致的颜色数据。因为打印设备只能理解和识别第二颜色数据,因此,需要将第一颜色数据转换成打印设备所能理解的第二颜色数据,由第二颜色数据来表征可视化色样在显示设备上的显示颜色。The second color data is used to obtain color data consistent with the color data actually measured by the printing device. Because the printing device can only understand and recognize the second color data, it is necessary to convert the first color data into the second color data that the printing device can understand, and the second color data is used to represent the display color of the visualized color sample on the display device.

最后,所有24种颜色的可视化色样排布构建形成色彩打印模型。Finally, the visual color swatches of all 24 colors are arranged to form a color printing model.

在一些实施例中,在步骤S110之后,所述方法还包括步骤S111-步骤S114:In some embodiments, after step S110, the method further includes steps S111 to S114:

步骤S111:获取色相环的第一阈值范围以界定色相范围。Step S111: obtaining a first threshold range of the hue circle to define a hue range.

如前所述,色相通常用角度来表示,范围从0°~360°,表示颜色在色轮上的位置。因此,取0°~360°为色相环的第一阈值范围,以界定色相范围。As mentioned above, hue is usually expressed as an angle, ranging from 0° to 360°, indicating the position of the color on the color wheel. Therefore, 0° to 360° is taken as the first threshold range of the hue circle to define the hue range.

步骤S112:获取明度值的第二阈值范围以界定高度范围。Step S112: Obtain a second threshold range of brightness values to define a height range.

明度的范围通常是从0(黑色)到100(白色),表示颜色的明暗程度。因此,取0%~100%为明度值的第二阈值范围,以界定高度范围。The range of brightness is usually from 0 (black) to 100 (white), indicating the lightness or darkness of the color. Therefore, 0%~100% is taken as the second threshold range of the brightness value to define the height range.

步骤S113:获取彩度值的第三阈值范围以界定径向距离范围。Step S113: Obtain a third threshold range of chroma values to define a radial distance range.

彩度的范围通常是从0(灰色,没有色彩)~无限大,然而彩度的最大值受限于具体的打印设备或显示设备的色域,在实际取色中,彩度最大值通常会根据打印设备的能力和条件来确定。因此,取0%~100%为彩度值的第三阈值范围,以界定径向距离范围。The range of chroma is usually from 0 (gray, no color) to infinity, but the maximum value of chroma is limited by the color gamut of the specific printing device or display device. In actual color selection, the maximum value of chroma is usually determined according to the capabilities and conditions of the printing device. Therefore, 0%~100% is taken as the third threshold range of chroma value to define the radial distance range.

步骤S114:根据第一阈值范围、第二阈值范围、第三阈值范围使三维色彩模型呈现为规则的球体。Step S114: making the three-dimensional color model appear as a regular sphere according to the first threshold range, the second threshold range, and the third threshold range.

通过步骤S111-步骤S113,分别界定了色相范围、明度范围、彩度范围,相当于确定了三维色彩模型的空间坐标系中的X轴、Y轴、Z轴的坐标范围,由此构建一个呈现规则的球体形状的三维色彩模型,如图6所示。Through steps S111 to S113, the hue range, lightness range, and chroma range are defined respectively, which is equivalent to determining the coordinate ranges of the X-axis, Y-axis, and Z-axis in the spatial coordinate system of the three-dimensional color model, thereby constructing a three-dimensional color model with a regular spherical shape, as shown in Figure 6.

可以理解的是,在这个球状的三维色彩模型中,每一种颜色数据在这个球状的三维色彩模型中都拥有唯一的坐标参数。It can be understood that, in this spherical three-dimensional color model, each color data has a unique coordinate parameter in this spherical three-dimensional color model.

用球形表示的三维色彩模型允许在色相、明度和彩度三个维度上进行更灵活的色彩选择和调整,满足不同场景下的色彩需求。通过球形表示的三维色彩模型,能够生成并呈现的色彩样本,为数据可视化提供更为丰富的表现形式。The three-dimensional color model represented by a sphere allows for more flexible color selection and adjustment in the three dimensions of hue, lightness, and chroma to meet the color requirements of different scenes. The three-dimensional color model represented by a sphere can generate and present color samples, providing a richer form of expression for data visualization.

由于在建立三维色彩模型时,同一个色相区内的颜色的彩度值和明度值之间的变化范围较小时,使同一个色相区内的颜色所呈现出来的色差较小,通过人眼很难区别,当通过打印设备按照可视化空间色域模型中的颜色进行色彩打印时,更难以区分每个色彩之间的差异。Because when establishing a three-dimensional color model, the range of variation between the chroma value and the lightness value of colors in the same hue area is small, the color difference of the colors in the same hue area is small, and it is difficult to distinguish them with the human eye. When the colors are printed according to the colors in the visual space color gamut model through a printing device, it is even more difficult to distinguish the differences between each color.

为了解决这一问题,在一些实施例中,步骤S111可包括步骤S1111-步骤S1112:To solve this problem, in some embodiments, step S111 may include steps S1111-S1112:

步骤S1111:获取离散颜色数据,离散颜色数据基于预设的数据筛选策略对预设的基础色彩模型进行离散得到。Step S1111: obtaining discrete color data, where the discrete color data is obtained by discretizing a preset basic color model based on a preset data screening strategy.

步骤S1112:获取基础色彩模型和三维色彩模型的转换关系,并将离散颜色数据转换为三维色彩模型中的对应的第一颜色数据,其中,三维色彩模型与基础色彩模型不同。Step S1112: obtaining a conversion relationship between a basic color model and a three-dimensional color model, and converting discrete color data into corresponding first color data in a three-dimensional color model, wherein the three-dimensional color model is different from the basic color model.

基础色彩模型是指用户设定需要打印的颜色所表示的颜色数据,应当具有色相值、明度值、彩度值。对基础色彩模型进行离散化处理的目的是为了得到一些列颜色差异较明显的离散颜色数据。而获取的离散颜色数据若想要在打印设备上呈现出打印设备呈现出色彩的色差效果,则需要将离散颜色数据按照预设的空间转换关系转换到三维色彩模型的坐标系中,因为只要在三维色彩模型中能够呈现出明显的色彩效果,那么当打印设备按照可视化空间色域模型中对应的颜色执行打印操作时,能够呈现出色彩更为明显的打印效果。The basic color model refers to the color data represented by the color that the user sets to be printed, which should have hue value, lightness value, and chroma value. The purpose of discretizing the basic color model is to obtain a series of discrete color data with obvious color differences. If the obtained discrete color data is to be presented on a printing device to show the color difference effect of the color presented by the printing device, the discrete color data needs to be converted into the coordinate system of the three-dimensional color model according to the preset space conversion relationship. Because as long as the obvious color effect can be presented in the three-dimensional color model, then when the printing device performs the printing operation according to the corresponding color in the visualization space color gamut model, it can present a more obvious color printing effect.

上述步骤中,通过用户自定义设定的某种颜色的基础色彩模型进行离散化处理,以使该种类颜色中,相邻的颜色的之间的色差更明显,再将经过离散处理后的离散颜色数据转换到三维色彩模型中,从而构建可视化空间色域模型。In the above steps, a basic color model of a certain color customized by the user is discretized to make the color difference between adjacent colors in this type of color more obvious, and then the discrete color data after discretization is converted into a three-dimensional color model to construct a visual spatial color gamut model.

作为示例,以用户自定义设定的蓝色颜色为例,将蓝色的基础色彩模型进行离散化处理,使得所有的蓝色颜色中,相邻的蓝色颜色之间的色差差异更大,再将经过离散处理后的蓝色离散颜色数据转换到三维色彩模型中对应的蓝色颜色数据。As an example, taking the blue color customized by the user as an example, the basic color model of blue is discretized so that the color difference between adjacent blue colors among all blue colors is larger, and then the blue discrete color data after discretization is converted to the corresponding blue color data in the three-dimensional color model.

在一些实施例中,步骤S1111可包括步骤S11110:离散颜色数据基于利用预设的选用色差值,将基础色彩模型中的颜色按照等距离原则进行离散化处理,以生成一系列具有均匀色差的离散颜色数据,得到离散颜色数据。In some embodiments, step S1111 may include step S11110: discrete color data is based on using a preset selected color difference value, discretizing the colors in the basic color model according to the equidistance principle to generate a series of discrete color data with uniform color difference to obtain discrete color data.

色差,是指两种颜色之间的可感知差异。色差值可以表示为相邻的两个色彩之间的明度差异度。色差值可以用多种计算公式进行计算,如CIE76、CIR94、CIEDE2000、CMC等。本实施例中,色差计算公式可采用CMC公式进行计算。Color difference refers to the perceptible difference between two colors. The color difference value can be expressed as the brightness difference between two adjacent colors. The color difference value can be calculated using a variety of calculation formulas, such as CIE76, CIR94, CIEDE2000, CMC, etc. In this embodiment, the color difference calculation formula can be calculated using the CMC formula.

在服务端的存储器内可预先设置CMC(l:c)色差计算公式,如式(1)所示。根据色差计算公式,可以计算出预设的选用色差值。CMC(l:c)色差公式是1984年,英国染色家协会的颜色测量委员会(color measurement committee, CMC)推荐了CMC(l:c)色差公式,引入了明度权重因子“l”和彩度权重因子“c”。The CMC ( l :c) color difference calculation formula can be pre-set in the memory of the server, as shown in formula ( 1 ). According to the color difference calculation formula, the preset selected color difference value can be calculated. The CMC ( l :c) color difference formula was recommended by the Color Measurement Committee (CMC) of the British Dyers Association in 1984, and introduced the lightness weight factor " l " and the chroma weight factor "c".

式(1) Formula (1)

已知两个颜色A1、A2,其在Lab色空间的色度坐标分别为:Given two colors A1 and A2, their chromaticity coordinates in the Lab color space are:

式(2) Formula (2)

其中:in:

表示颜色A1的明度坐标值; Indicates the lightness coordinate value of color A1;

表示颜色A1的红/绿坐标值; Indicates the red/green coordinate value of color A1;

表示颜色A1的黄/蓝坐标值; Indicates the yellow/blue coordinate value of color A1;

表示颜色A2的明度坐标值; Indicates the lightness coordinate value of color A2;

表示颜色A2的红/绿坐标值; Indicates the red/green coordinate value of color A2;

表示颜色A2的黄/蓝坐标值; Indicates the yellow/blue coordinate value of color A2;

l、c是因数;l表示明度权重因子,调节明度的相对宽容量;c表示彩度权重因子,调节彩度的相对宽容量; l and c are factors; l represents the lightness weight factor, which adjusts the relative width of lightness; c represents the chroma weight factor, which adjusts the relative width of chroma;

式(3) Formula (3)

其中:in:

表示颜色A1与颜色A2的明度差值; Indicates the brightness difference between color A1 and color A2;

均表示颜色A1与颜色A2的色度差; , Both represent the chromaticity difference between color A1 and color A2;

为总色差,使用三维空间中两种颜色(如颜色A1、颜色A2)坐标之间的欧几里得距离表示; is the total color difference, expressed as the Euclidean distance between the coordinates of two colors (e.g., color A1 and color A2) in three-dimensional space;

式(4) Formula (4)

式(5) Formula (5)

其中:in:

表示颜色A1的彩度值; Indicates the chroma value of color A1;

表示颜色A2的彩度值; Indicates the chroma value of color A2;

表示颜色A1与颜色A2的彩度差值; Indicates the chroma difference between color A1 and color A2;

表示颜色A1与颜色A2的色相差值。 Indicates the hue difference between color A1 and color A2.

在CIELab颜色空间中,CMC(l:c)公式把标准色周围的视觉容量定义为椭圆。椭圆内部的颜色在视觉上与标准色是一样的,而在椭圆外部的颜色与标准色就不一样了。在整个CIELab颜色空间中,椭圆的大小与离心率就不一样。以一个给定的标准色为中心的椭圆的特征,由相对于标准色在方向上的两半轴长度决定。用椭圆方程定义色差公式CMC(l:c)如下式(6)所示:In CIELab color space, the CMC ( l :c) formula defines the visual volume around a standard color as an ellipse. The colors inside the ellipse are visually the same as the standard color, while the colors outside the ellipse are different from the standard color. The size and eccentricity of the ellipse vary throughout the CIELab color space. The characteristics of the ellipse centered on a given standard color are determined by the relative position of the standard color. , , The chromatic aberration formula CMC ( l :c) is defined by the ellipse equation as shown in the following formula (6):

式(6) Formula (6)

式(7) Formula (7)

式(8) Formula (8)

式(9) Formula (9)

式(10) Formula (10)

式(11) Formula (11)

其中:in:

SL、Sc与SH就是椭圆的半轴,椭圆半轴分别对应为色相SH、饱和度Sc、明度SLS L , S c and S H are the semi-axes of the ellipse, and the semi-axes of the ellipse correspond to hue S H , saturation S c , and lightness S L ;

均为标准色样的色度参数,其中,表示标准色样的明度参数,表示标准色样的彩度参数,表示标准色样的色相参数; , , are the chromaticity parameters of standard color samples, among which, Indicates the brightness parameter of the standard color sample, Indicates the chroma parameter of the standard color sample, Indicates the hue parameters of the standard color sample;

F和T是与色相角()相关的修正项,用于更精确地反映人眼对颜色差异的感知;其中,F是一个与色相角()相关的修正项;T是另一个与色相角()相关的修正项;F and T are related to the hue angle ( ) is used to more accurately reflect the human eye's perception of color differences; where F is a correction term related to the hue angle ( ) and T is another correction term related to the hue angle ( ) related amendments;

表示色相角差值; Indicates the hue angle difference;

表示红/绿坐标值; Indicates the red/green coordinate value;

表示黄/蓝坐标值。 Indicates the yellow/blue coordinate value.

明度权重因子l和彩度权重因子c用来调整明度和彩度对总色差的影响程度,所以在不同的应用场合,应取其不同的比值。大量试验表明,在对色差的可接受性评价时,推荐采用l:c=2:1,如在纺织印染行业对产品的质量控制大多采用CMC(2:1)公式;而评价色差的可察觉性时,推荐采用l:c=1:1,如对数字系统的色度校正,以及涂料或塑料等行业一般采用CMC(1:1)公式。The lightness weight factor l and the chroma weight factor c are used to adjust the influence of lightness and chroma on the total color difference, so different ratios should be used in different applications. A large number of tests have shown that when evaluating the acceptability of color difference, it is recommended to use l :c=2:1, such as the CMC (2:1) formula is mostly used for product quality control in the textile printing and dyeing industry; and when evaluating the perceptibility of color difference, it is recommended to use l :c=1:1, such as the color correction of digital systems, and the CMC (1:1) formula is generally used in industries such as coatings or plastics.

基于上述色差计算公式的推导计算过程,计算出选用色差值后,将基础色彩模型中的颜色按照选用色差值进行离散化处理,以生成一系列具有均匀色差的离散颜色数据,得到离散颜色数据。Based on the derivation and calculation process of the above color difference calculation formula, after calculating the selected color difference value, the colors in the basic color model are discretized according to the selected color difference value to generate a series of discrete color data with uniform color difference, thereby obtaining discrete color data.

作为示例,可以选用计算出的色差值5作为离散化处理的色差值,每个颜色在三维色彩模型的空间坐标系中位置距离相邻的颜色在基础色彩模型的空间坐标系中的位置之间的色差值为5。因此,按照等距离原则,将基础色彩模型中的颜色按照等距离色差值为5进行离散化处理。As an example, the calculated color difference value of 5 can be selected as the color difference value for discretization processing, and the color difference value between the position of each color in the spatial coordinate system of the three-dimensional color model and the position of the adjacent color in the spatial coordinate system of the basic color model is 5. Therefore, according to the equidistance principle, the colors in the basic color model are discretized according to the equidistance color difference value of 5.

在另一些实施例中,步骤S11110还可以包括:将基础色彩模型中的颜色按照明度值、红绿度值、黄蓝度值三个维度的等距离原则进行离散化处理;基础色彩模型包括明度值、红绿度值、黄蓝度值三个维度。In other embodiments, step S11110 may also include: discretizing the colors in the basic color model according to the equidistance principle of the three dimensions of lightness value, redness-greenness value, and yellowness-blueness value; the basic color model includes three dimensions of lightness value, redness-greenness value, and yellowness-blueness value.

基础色彩模型包括明度值、红绿度值、黄蓝度值三个维度。本步骤中,可以将基础色彩模型按照明度值、红绿度值、黄蓝度值的范围标准作为等距离原则来进行离散化处理。The basic color model includes three dimensions: lightness value, redness greenness value, and yellowness blueness value. In this step, the basic color model can be discretized according to the range standard of lightness value, redness greenness value, and yellowness blueness value as the equidistance principle.

作为一种实施方式,获取明度值的第四阈值范围以界定亮度范围;获取红绿度值的第五阈值范围以界定红绿度范围;获取黄蓝度值的第六阈值范围以界定黄蓝度范围。As an implementation method, a fourth threshold range of lightness values is obtained to define a brightness range; a fifth threshold range of redness and greenness values is obtained to define a redness and greenness range; and a sixth threshold range of yellowness and blueness values is obtained to define a yellowness and blueness range.

本实施例中,作为示例,明度值范围取0%~100%为第四阈值范围,以界定亮度范围。In this embodiment, as an example, the brightness value range is taken as 0%~100% as the fourth threshold range to define the brightness range.

请参照图3所示,Lab色彩模型由三个要素组成:明度L和两个颜色通道a、b。其中a通道代表颜色从红色到绿色的变化范围,b通道代表颜色从蓝色到黄色的变化范围。a通道值决定了颜色在红色和绿色之间的偏移程度。b通道值决定了颜色在黄色和蓝色之间的偏移程度。可以理解的是,Lab色彩模型中的亮度通道的变化范围即为本实施例中所述的明度值的第四阈值范围中0%~100%。As shown in FIG. 3 , the Lab color model consists of three elements: lightness L and two color channels a and b. The a channel represents the range of color variation from red to green, and the b channel represents the range of color variation from blue to yellow. The a channel value determines the degree of color deviation between red and green. The b channel value determines the degree of color deviation between yellow and blue. It can be understood that the range of variation of the brightness channel in the Lab color model is 0% to 100% in the fourth threshold range of the brightness value described in this embodiment.

Lab色彩模型中的a通道值的变化范围可以是-120~+120,其中,+120a表示红色,-120a表示绿色。可以界定-120~+120为红绿度值的第五阈值范围。通过调整a通道的值来控制红色或绿色成分,以实现对颜色的精确调整和描述。The a channel value in the Lab color model can vary from -120 to +120, where +120a represents red and -120a represents green. -120 to +120 can be defined as the fifth threshold range of the red-green value. By adjusting the a channel value to control the red or green component, accurate adjustment and description of the color can be achieved.

Lab色彩模型中的b通道值的变化范围可以是-120~+120,其中,+120表示黄色,-120表示蓝色。可以界定-120~+120为黄蓝度值的第六阈值范围。通过调整b通道的值来控制黄色或蓝色成分,以实现对颜色的精确调整和描述。The b channel value in the Lab color model can vary from -120 to +120, where +120 represents yellow and -120 represents blue. -120 to +120 can be defined as the sixth threshold range of the yellow-blue value. By adjusting the b channel value to control the yellow or blue component, accurate adjustment and description of the color can be achieved.

上述的实施例中,多量级数据的等距离原则进行离散化处理方法能够在三维色彩模型中实现多个数据量级的等距色彩选择,确保数据表示的一致性和可比性。In the above-mentioned embodiment, the discretization processing method based on the equidistant principle of multi-level data can realize equidistant color selection of multiple data levels in the three-dimensional color model, ensuring the consistency and comparability of data representation.

在另一些实施例中,步骤S11110还包括:步骤S11111-步骤S11113:In some other embodiments, step S11110 further includes: steps S11111-S11113:

步骤S11111:基于利用预设的选用色差值作为正多面体的边长,并通过空间密铺方式构建正多面体阵列,用以划分预设的基础色彩模型;Step S11111: using the preset selected color difference value as the side length of the regular polyhedron and constructing a regular polyhedron array by a spatial tessellation method to divide the preset basic color model;

步骤S11112:确定基础色彩模型的基准颜色点数据;Step S11112: determining the reference color point data of the basic color model;

步骤S11113:基准颜色点数据与正多面体阵列中的某个正多面体的顶点或中心点重合,得到每个正多面体的顶点在基础色彩模型中的等距离的色差离散点数据,得到离散颜色数据。Step S11113: The reference color point data coincides with the vertex or center point of a regular polyhedron in the regular polyhedron array, and the color difference discrete point data of the equidistant vertex of each regular polyhedron in the basic color model are obtained to obtain discrete color data.

在步骤S11110中,通过色差计算公式计算出预设的色差值为5,以色差值5作为正多面体的边长,重新构建边长为5的正多面体阵列,该正多面体阵列可用来对基础色彩模型进行数据划分。In step S11110, the preset color difference value of 5 is calculated by the color difference calculation formula, and the color difference value 5 is used as the side length of the regular polyhedron to reconstruct a regular polyhedron array with a side length of 5. The regular polyhedron array can be used to divide data for the basic color model.

基础色彩模型中的基准颜色点数据可选择正多面体阵列中的某个正多面体的顶点或中心点重合的点来确定,由于正多面体的边长是确定的固定值,因此,每个正多面体的顶点在基础色彩模型中形成的等距离的色彩离散点数据就可以作为预设颜色的离散颜色数据。The reference color point data in the basic color model can be determined by selecting a point where the vertex or center point of a regular polyhedron in the regular polyhedron array coincides. Since the side length of the regular polyhedron is a fixed value, the equidistant color discrete point data formed by the vertices of each regular polyhedron in the basic color model can be used as discrete color data of the preset color.

进一步的,在一些实施例中,步骤S130可包括步骤S131-步骤S133:Further, in some embodiments, step S130 may include steps S131 to S133:

步骤S131:基于全部或部分的第一颜色数据,生成打印指令并发送至指定的目标打印设备;Step S131: generating a printing instruction based on all or part of the first color data and sending the instruction to a designated target printing device;

步骤S132:获得打印实测颜色数据,基于第一颜色数据通过目标打印设备的设备配置文件转换打印输出测量得到;Step S132: obtaining the measured color data of the printout, which is obtained by converting the printout measurement through the device profile of the target printing device based on the first color data;

步骤S133:将打印实测颜色数据通过当前显示设备的显示色彩配置文件转换,得到与全部或部分的第一颜色数据对应的第二颜色数据。Step S133: converting the printed measured color data through a display color configuration file of the current display device to obtain second color data corresponding to all or part of the first color data.

在数字图像处理中,RGB模型是一种加色模型,通过红、绿、蓝三种颜色光的不同强度组合来生成各种颜色。如前所述,本申请的第一颜色数据可以是RGB模型对应的颜色数据,RGB模式适用于发光的显示设备。相对地,目标打印设备使用的是CMYK色彩模型,是一种减色模型,通过青、品红、黄、黑四种颜色的墨水来复制颜色。In digital image processing, the RGB model is an additive color model that generates various colors by combining different intensities of red, green, and blue light. As mentioned above, the first color data of the present application can be color data corresponding to the RGB model, and the RGB model is suitable for luminous display devices. In contrast, the target printing device uses the CMYK color model, which is a subtractive color model that reproduces colors through four colors of ink: cyan, magenta, yellow, and black.

上述步骤中,将全部或部分第一颜色数据(例如Lab色彩空间的红绿度值数据或Lab色彩空间黄蓝度值数据)转换为打印设备能够理解的色彩模式(例如CMYK模式)。In the above steps, all or part of the first color data (eg, red-green value data in the Lab color space or yellow-blue value data in the Lab color space) is converted into a color mode (eg, CMYK mode) that can be understood by the printing device.

目标打印设备的色彩管理服务器将第一颜色数据转换后的符合CMYK模型的打印实测颜色数据,根据目标打印设备的分辨率、打印基材(如面料)尺寸等打印参数,生成打印指令,并通过网络或数据线将转换后的打印实测颜色数据发送给目标打印设备。The color management server of the target printing device converts the first color data into the printing measured color data that conforms to the CMYK model, generates a printing instruction according to the printing parameters such as the resolution of the target printing device and the size of the printing substrate (such as fabric), and sends the converted printing measured color data to the target printing device via a network or a data cable.

目标打印设备接收来自色彩管理服务器的打印指令,对打印指令进行解析,获取每个像素或打印区域对应的CMYK模型的颜色值数据、分辨率信息。目标打印设备根据解析的指令,控制目标打印设备的墨水或墨粉的喷射用量。The target printing device receives the printing instruction from the color management server, parses the printing instruction, and obtains the color value data and resolution information of the CMYK model corresponding to each pixel or printing area. The target printing device controls the amount of ink or toner sprayed by the target printing device according to the parsed instruction.

目标打印设备执行打印指令后,在打印基材上打印颜色。为了对打印的实测颜色进行测量,可通过在标准光源环境下,使用分光光度计对打印输出的色块进行逐次测量,获取其在CIE实验室等标准色彩空间下的光谱数据。在其他的实施例中,也可以收集色度计、光谱成像仪等设备的标准色彩空间下的光谱数据。After the target printing device executes the printing instruction, the color is printed on the printing substrate. In order to measure the measured color of the print, the color blocks of the printout can be measured one by one using a spectrophotometer under a standard light source environment to obtain its spectral data in a standard color space such as the CIE laboratory. In other embodiments, the spectral data in the standard color space of a colorimeter, a spectral imager, etc. can also be collected.

最后,将打印实测颜色数据通过当前显示设备的显示色彩配置文件(ICC)进行转换,将转换后的数据映射到显示设备所能显示的色彩模式中,得到与原始设计文件中的第一颜色数据相对应的第二颜色数据。Finally, the printed measured color data is converted through the display color profile (ICC) of the current display device, and the converted data is mapped to the color mode that the display device can display, thereby obtaining the second color data corresponding to the first color data in the original design file.

进一步的,步骤S130还可包括步骤S134-步骤S135:Furthermore, step S130 may further include steps S134 and S135:

步骤S134:获取部分已知的第二颜色数据及其对应的第一颜色数据,使用色彩优化算法调整目标打印设备的设备色彩配置文件,更新设备色彩配置文件;Step S134: obtaining part of the known second color data and its corresponding first color data, adjusting the device color profile of the target printing device using a color optimization algorithm, and updating the device color profile;

步骤S135:对于任意给定的第一颜色数据,通过设备色彩配置文件和显示色彩配置文件进行转换,得到对应的第二颜色数据。Step S135: For any given first color data, convert it through the device color profile and the display color profile to obtain corresponding second color data.

上述步骤主要是对没有实际测量的颜色数据进行计算模拟替换,从而得到与打印实测颜色数据相接近的第二颜色数据。The above steps are mainly to perform calculation simulation replacement on the color data that has not been actually measured, so as to obtain the second color data close to the printed measured color data.

通过使用分光光度计对打印输出的色块进行逐次测量,获取其在CIE实验室等标准色彩空间下的光谱数据,以得到第二颜色数据及其对应的第一颜色数据。可以理解的是,第二颜色数据为打印实测颜色数据,第一颜色数据为设计打印颜色数据。By using a spectrophotometer to measure the color blocks of the printout one by one, the spectral data in the standard color space such as CIE laboratory is obtained to obtain the second color data and the corresponding first color data. It can be understood that the second color data is the measured color data of the printout, and the first color data is the designed print color data.

运用色彩优化算法,对目标打印设备的设备色彩配置文件进行调整。调整设备色彩配置文件中的色调对应曲线、色域映射等参数。可以选择迭代式恢复分析或神经网络等进行调整。Use color optimization algorithms to adjust the device color profile of the target printing device. Adjust the tone correspondence curve, color gamut mapping and other parameters in the device color profile. You can choose iterative recovery analysis or neural network for adjustment.

经过对色调对应曲线、色域映射等参数的调整,可以实现色差最小化,即使得目标打印设备输出的颜色与目标颜色更接近,减少视觉上的差异。其中,可以优化颜色域的利用率,充分利用目标打印设备的色彩空间还原更多颜色的种类。再者,还能够平衡色彩还原效果,在不同颜色区域保持一致的色彩还原效果,改善出现色彩偏差或色彩不均匀的情况。By adjusting parameters such as the tone correspondence curve and color gamut mapping, the color difference can be minimized, that is, the color output by the target printing device is closer to the target color, reducing the visual difference. Among them, the utilization of the color gamut can be optimized, and the color space of the target printing device can be fully utilized to restore more types of colors. Furthermore, the color reproduction effect can be balanced, and the color reproduction effect can be maintained consistently in different color areas, improving the situation of color deviation or color unevenness.

在一些实施例中,步骤S130还可包括步骤S136-步骤S139:In some embodiments, step S130 may further include steps S136-S139:

步骤S136:获取全部或部分的第二颜色数据,将第二颜色数据输入当前显示器显示;Step S136: Acquire all or part of the second color data, and input the second color data into the current display for display;

步骤S137:获取第二颜色数据对应的显示测量颜色数据,显示实测颜色数据为显示器实际显示的颜色数据;Step S137: acquiring display measured color data corresponding to the second color data, wherein the display measured color data is color data actually displayed by the display;

步骤S138:根据第二颜色数据和显示实测颜色数据,使用色彩优化算法调整当前显示器的显示色彩配置文件,更新显示色彩配置文件;Step S138: adjusting the display color profile of the current display using a color optimization algorithm according to the second color data and the display measured color data, and updating the display color profile;

步骤S139:对于任意给定的第一颜色数据,通过设备色彩配置文件和显示色彩配置文件进行转换,得到对应的第二颜色数据。Step S139: For any given first color data, convert it through the device color profile and the display color profile to obtain corresponding second color data.

上述步骤主要是得到与第二颜色数据更接近的显示实测颜色数据。而获取显示实测颜色数据需要通过色彩优化算法对当前显示设备的显示色彩配置文件进行调整,例如调整显示设备的设备色彩配置文件中的色调对应曲线、色域映射参数,仍可以采用迭代式恢复分析或神经网络等进行调整。The above steps are mainly to obtain the measured display color data that is closer to the second color data. To obtain the measured display color data, it is necessary to adjust the display color profile of the current display device through a color optimization algorithm, such as adjusting the tone correspondence curve and color gamut mapping parameters in the device color profile of the display device, and iterative recovery analysis or neural network can still be used for adjustment.

请参照图7,本申请提供一种三维色彩打印模型交互操作方法,包括步骤S210-步骤S230:Referring to FIG. 7 , the present application provides a three-dimensional color printing model interactive operation method, including steps S210 to S230:

步骤S210:确定三维色彩打印模型。Step S210: Determine a three-dimensional color printing model.

三维色彩打印模型基于第一颜色数据和第一颜色数据在三维色彩模型中的映射位置,生成可视化色样;通过第二颜色数据表征可视化色样的显示颜色;由可视化色样排布构建而成;其中,第二颜色数据与目标打印设备和当前显示设备相关,通过目标打印设备的设备色彩配置文件和当前显示设备的显示色彩配置文件,由第一颜色数据转换得到。The three-dimensional color printing model generates a visual color sample based on the first color data and the mapping position of the first color data in the three-dimensional color model; represents the display color of the visual color sample through the second color data; and is constructed by arranging the visual color samples; wherein the second color data is related to the target printing device and the current display device, and is converted from the first color data through the device color profile of the target printing device and the display color profile of the current display device.

确定三维色彩打印模型的详细步骤可参照步骤S110所述,在此不再赘述。The detailed steps of determining the three-dimensional color printing model may refer to step S110 , which will not be described in detail here.

步骤S220:响应于针对三维色彩打印模型的交互操作,确定可视化色样为打印目标色。Step S220: In response to the interactive operation on the three-dimensional color printing model, determine the visualized color sample as the printing target color.

当用户需要调用三维色彩打印模型时,服务器或终端响应用户对三维色彩打印模型的选用操作指令,调取用户从三维色彩打印模型中确定的可视化色样的打印目标色。When the user needs to call the 3D color printing model, the server or terminal responds to the user's selection operation instruction for the 3D color printing model and retrieves the printing target color of the visualized color sample determined by the user from the 3D color printing model.

步骤S230:基于打印目标色对应的第一颜色数据,生成打印指令并发送至指定的目标打印设备。Step S230: generating a printing instruction based on the first color data corresponding to the printing target color and sending the printing instruction to the designated target printing device.

如前所述,目标打印设备的色彩管理服务器将转换后的符合CMYK模式的打印实测颜色数据,结合打印设备的分辨率、打印基材(例如面料)尺寸等打印参数,生成打印指令,并通过网络或数据线将转换后的打印实测颜色数据发送给目标打印设备。As mentioned above, the color management server of the target printing device converts the measured printing color data that conforms to the CMYK mode, combines it with printing parameters such as the resolution of the printing device and the size of the printing substrate (such as fabric), generates a printing instruction, and sends the converted measured printing color data to the target printing device via a network or data cable.

目标打印设备接收来自色彩管理服务器的打印指令,对打印指令进行解析,获取每个像素或打印区域对应的CMYK模型的颜色值数据、分辨率信息。目标打印设备根据解析的指令,控制目标打印设备的墨水或墨粉的喷射用量。The target printing device receives the printing instruction from the color management server, parses the printing instruction, and obtains the color value data and resolution information of the CMYK model corresponding to each pixel or printing area. The target printing device controls the amount of ink or toner sprayed by the target printing device according to the parsed instruction.

在一些实施例中,包括如下步骤S240:响应于针对三维色彩打印模型的交互操作,按预设等差的色相值分布将打印目标色划分为多个打印目标色子集,打印目标色子集对应于一个色相值,且打印目标色子集中包含多个具有不同的彩度值和/或明度值的打印目标色;每个打印目标色子集构成一个打印目标文件。In some embodiments, the following step S240 is included: in response to an interactive operation on a three-dimensional color printing model, the printing target color is divided into multiple printing target color subsets according to a preset equidistant hue value distribution, the printing target color subset corresponds to a hue value, and the printing target color subset contains multiple printing target colors with different chroma values and/or brightness values; each printing target color subset constitutes a printing target file.

用户调取三维色彩打印模型后,可以预先设定要打印的目标色的打印目标色子集。本实施例中,按照色相值对打印目标色进行划分。After the user retrieves the three-dimensional color printing model, the user can pre-set a print target color subset of the target color to be printed. In this embodiment, the print target colors are divided according to the hue value.

如前述对色相值的描述可知,色相描述了颜色的种类,可以划分为24种色相。每种颜色的色相区可以划分为8个子色区,因此,24色相区总共可划分为192个分色区,在球体的三维色彩模型中,每个色区的范围为1.875°。因此预设等差的色相值可以8为例,将其中某一种颜色例如蓝色再划分成8个打印目标色子集。As can be seen from the above description of hue value, hue describes the type of color and can be divided into 24 hues. The hue area of each color can be divided into 8 sub-color areas. Therefore, the 24 hue areas can be divided into 192 color separation areas in total. In the three-dimensional color model of the sphere, the range of each color area is 1.875°. Therefore, the preset equidistant hue value can be 8 as an example, and one of the colors, such as blue, can be further divided into 8 printing target color subsets.

8个打印目标色子集均对应于同一种颜色(如蓝色)的色相值,同一色相值可以包含不同的明度值和彩度值。同理,按照上述同样的划分方式,获取24种颜色的打印目标色子集,所有24种颜色的打印目标色子集构成一个打印目标文件。The eight print target color subsets all correspond to the hue value of the same color (such as blue), and the same hue value can contain different lightness values and chroma values. Similarly, according to the same division method as above, 24 color print target color subsets are obtained, and all 24 color print target color subsets constitute a print target file.

或者,再另一些实施例中,还包括步骤S250:响应于针对三维色彩打印模型的交互操作,按预设等差的彩度值分布将所述的打印目标色划分为多个打印目标色子集,打印目标色子集对应于一个色相值,且打印目标色子集中包含多个具有不同的色相值和/或明度值的打印目标色;每个打印目标色子集构成一个打印目标文件。Alternatively, in some other embodiments, step S250 is also included: in response to interactive operations on the three-dimensional color printing model, the printing target color is divided into multiple printing target color subsets according to a preset equidistant chromaticity value distribution, the printing target color subset corresponds to a hue value, and the printing target color subset contains multiple printing target colors with different hue values and/or lightness values; each printing target color subset constitutes a printing target file.

用户调取三维色彩打印模型后,可以预先设定要打印的目标色的打印目标色子集。本实施例中,可以按照彩度值对打印目标色进行划分。After the user retrieves the three-dimensional color printing model, the user can pre-set a print target color subset of the target color to be printed. In this embodiment, the print target colors can be divided according to the chroma value.

如前述对彩度相值的描述可知,彩度描述了颜色的纯度或饱和度,彩度值的范围为0%~100%,以10%作为等差值对彩度值进行等差划分。因此预设等差的彩度值分布可以为10%,将彩度值分为10个打印目标色子集。As described above, chroma describes the purity or saturation of a color, and the range of chroma values is 0% to 100%, with 10% being used as the arithmetic difference value to divide the chroma values into 10 print target color subsets. Therefore, the preset arithmetic difference chroma value distribution can be 10%, and the chroma values can be divided into 10 print target color subsets.

10个打印目标色子集均对应于同一种颜色(如蓝色)的色相值,打印目标色子集中的打印色可包含不同的色相值和/或明度值。同理,按照上述同样的划分方式,获取24种颜色的打印目标色子集,所有24种颜色的打印目标色子集构成一个打印目标文件。The 10 printing target color subsets all correspond to the hue value of the same color (such as blue), and the printing colors in the printing target color subsets may contain different hue values and/or lightness values. Similarly, according to the same division method as above, 24 printing target color subsets are obtained, and all 24 printing target color subsets constitute a printing target file.

或者,在其他的一些实施例中,还包括步骤S260:响应于针对三维色彩打印模型的交互操作,按预设等差的明度值分布将打印目标色划分为多个打印目标色子集,打印目标色子集对应于一个所述的色相值,且打印目标色子集中包含多个具有不同的色相值和/或彩度值的打印目标色;每个打印目标色子集构成一个打印目标文件。Alternatively, in some other embodiments, step S260 is also included: in response to interactive operations on the three-dimensional color printing model, the printing target color is divided into multiple printing target color subsets according to a preset equidistant brightness value distribution, the printing target color subset corresponds to one of the hue values, and the printing target color subset contains multiple printing target colors with different hue values and/or chroma values; each printing target color subset constitutes a printing target file.

用户调取三维色彩打印模型后,可以预先设定要打印的目标色的打印目标色子集。本实施例中,可以按照明度值对打印目标色进行划分。After the user retrieves the three-dimensional color printing model, the user can pre-set a print target color subset of the target color to be printed. In this embodiment, the print target colors can be divided according to the brightness value.

如前述对明度相值的描述可知,明度描述了颜色的明暗程度,明度值的范围为0%~100%,以10%作为等差值对明度值进行等差划分。因此预设等差的明度值分布可以为10%,将明度值分为10个打印目标色子集。As can be seen from the above description of the brightness value, brightness describes the degree of lightness of a color, and the range of brightness values is 0%~100%, and 10% is used as an arithmetic difference value to divide the brightness value into 10 print target color subsets. Therefore, the preset arithmetic difference brightness value distribution can be 10%, and the brightness value is divided into 10 print target color subsets.

10个打印目标色子集均对应于同一种颜色(如蓝色)的色相值,打印目标色子集中的打印色可包含不同的色相值和/或明度值。同理,按照上述同样的划分方式,获取24种颜色的打印目标色子集,所有24种颜色的打印目标色子集构成一个打印目标文件。The 10 printing target color subsets all correspond to the hue value of the same color (such as blue), and the printing colors in the printing target color subsets may contain different hue values and/or lightness values. Similarly, according to the same division method as above, 24 printing target color subsets are obtained, and all 24 printing target color subsets constitute a printing target file.

在一些实施例中,所述方法还包括步骤S270:响应于用户针对三维色彩打印模型的色样选用操作,确定可视化色样中的一个或多个在三维色彩打印模型中突出显示。In some embodiments, the method further includes step S270: in response to a user's color sample selection operation for the three-dimensional color printing model, determining that one or more of the visualized color samples are highlighted in the three-dimensional color printing model.

本实施例中,用户在选中三维色彩打印模型的色样选用操作后,可以对选中三维色彩打印模型的色样进行突出显示。突出显示可以包括:用户通过选择特定的颜色来高亮显示、放大或缩小显示等。In this embodiment, after the user selects the color sample selection operation of the 3D color printing model, the color sample of the selected 3D color printing model can be highlighted. The highlighting can include: the user highlights, enlarges or reduces the display by selecting a specific color.

在一些实施例中,所述方法还包括步骤S280:响应于用户针对三维色彩打印模型的色样拖动操作,确定色样拖动操作对应的移动距离和移动方向,基于移动距离和移动方向确定可视化色样的被拖动距离,并控制可视化色样向移动方向移动被拖动距离。In some embodiments, the method also includes step S280: in response to a user's color sample dragging operation on a three-dimensional color printing model, determining a moving distance and a moving direction corresponding to the color sample dragging operation, determining a dragged distance of the visualized color sample based on the moving distance and the moving direction, and controlling the visualized color sample to move the dragged distance in the moving direction.

本实施例中,通过接收用户操作鼠标拖动的输入信号,根据操作鼠标拖动的输入信号,对三维色彩打印模型的色样进行拖动操作,按照拖动鼠标移动产生的距离和移动方向信息指令,控制三维色彩打印模型的色样向移动方向移动被拖动距离。In this embodiment, by receiving the input signal of the user operating the mouse to drag, the color sample of the three-dimensional color printing model is dragged according to the input signal of the mouse drag, and the color sample of the three-dimensional color printing model is controlled to move in the moving direction by the dragged distance according to the distance and moving direction information instructions generated by dragging the mouse.

在一些实施例中,所述方法还包括步骤S290:响应于用户针对三维色彩打印模型的旋转操作,根据旋转操作旋转三维色彩打印模型。In some embodiments, the method further includes step S290: in response to a rotation operation of the user on the three-dimensional color printing model, rotating the three-dimensional color printing model according to the rotation operation.

本步骤中,通过接收用户操作鼠标进行拖动旋转的输入信号,根据操作鼠标拖动旋转的输入信号,对三维色彩打印模型进行旋转操作。In this step, by receiving an input signal of the user operating the mouse to drag and rotate, the three-dimensional color printing model is rotated according to the input signal of the user operating the mouse to drag and rotate.

在一些实施例中,所述方法还包括步骤S2100:响应于用户针对三维色彩打印模型的透视操作,根据透视操作调整三维色彩打印模型的模拟视野深度,以在用户界面上基于模拟视野深度显示位于三维色彩打印模型的内部的可视化色样。In some embodiments, the method also includes step S2100: in response to a user's perspective operation on the three-dimensional color printing model, adjusting the simulated field of view depth of the three-dimensional color printing model according to the perspective operation, so as to display a visual color sample located inside the three-dimensional color printing model on the user interface based on the simulated field of view depth.

本步骤中,透视操作可以是一种用于在二维平面上表现出三维空间效果的操作方式。基于透视操作的原理,根据透视操作调整三维色彩打印模型的模拟视野深度,根据模拟视野深度,在用户界面上显示位于三维色彩打印模型内部的可视化色样。In this step, the perspective operation can be an operation method for showing a three-dimensional space effect on a two-dimensional plane. Based on the principle of the perspective operation, the simulated field of view depth of the three-dimensional color printing model is adjusted according to the perspective operation, and the visualized color sample inside the three-dimensional color printing model is displayed on the user interface according to the simulated field of view depth.

因此,上述步骤S270、步骤S280、步骤S290、步骤S2100中给出了多种用户可实现三维色彩打印模型的色样交互方法,使用户操作方式更为多样性。Therefore, the above steps S270, S280, S290 and S2100 provide a variety of color sample interaction methods for users to realize three-dimensional color printing models, making the user operation mode more diverse.

综上所述,本申请通过构建三维色彩模型,并结合可视化色样和色彩模型,提供直观的色彩关系展示效果,并实现打印输入与输出的色彩一致性。通过巧妙地分离打印色彩和显示色彩,并利用设备色彩配置文件进行转换,实现了在显示设备上更准确地预览效果,可以准确模拟在不同打印设备和打印基材上的色彩表现,减少了因色彩偏差导致的打印错误,提高打印效率。In summary, this application provides an intuitive color relationship display effect and achieves color consistency between print input and output by constructing a three-dimensional color model and combining visual color samples and color models. By cleverly separating print colors and display colors and converting them using device color profiles, a more accurate preview effect on the display device is achieved, and the color performance on different printing devices and printing substrates can be accurately simulated, reducing printing errors caused by color deviation and improving printing efficiency.

请参照同8所示,本申请提供一种三维色彩打印模型建立装置,包括:建立模块810、第一获取模块820、第二获取模块830、生成模块840。Please refer to FIG. 8 , the present application provides a three-dimensional color printing model establishment device, including: an establishment module 810 , a first acquisition module 820 , a second acquisition module 830 , and a generation module 840 .

建立模块810,用于建立三维色彩模型;其中,所述的三维色彩模型以色相环为基准平面,建立一条垂直于所述的基准平面的明度轴,以明度值表示沿所述明度轴方向的位置,以彩度值表示从所述色相环的中心向外到任一点的径向空间距离值。Establishing module 810, for establishing a three-dimensional color model; wherein the three-dimensional color model uses the hue ring as a reference plane, establishes a lightness axis perpendicular to the reference plane, uses lightness values to represent the position along the lightness axis, and uses chroma values to represent the radial spatial distance value from the center of the hue ring to any point outward.

第一获取模块820,用于获取第一颜色数据,将所述第一颜色数据映射至所述三维色彩模型中的相应位置。The first acquisition module 820 is used to acquire first color data and map the first color data to a corresponding position in the three-dimensional color model.

第二获取模块830,用于获取第二颜色数据,所述的第二颜色数据通过目标打印设备的设备色彩配置文件和当前显示设备的显示色彩配置文件,由所述的第一颜色数据转换得到。The second acquisition module 830 is used to acquire second color data, where the second color data is converted from the first color data through a device color profile of a target printing device and a display color profile of a current display device.

生成模块840,用于基于所述的第一颜色数据和所述第一颜色数据在所述三维色彩模型中的映射位置,生成可视化色样;通过所述的第二颜色数据表征所述的可视化色样的显示颜色;若干所述的可视化色样排布构建色彩打印模型。The generation module 840 is used to generate a visual color sample based on the first color data and the mapping position of the first color data in the three-dimensional color model; characterize the display color of the visual color sample by the second color data; and construct a color printing model by arranging several of the visual color samples.

上述装置中各个模块的功能和作用的实现过程具体详见上述中对应步骤的实现过程,在此不再赘述。The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps above, and will not be repeated here.

请参照图9,其为本申请一实施例提供的电子设备1的结构示意图。如图9所示,电子设备1包括:至少一个处理器11和存储器12,图9中以一个处理器11为例。处理器11和存储器12通过总线10连接并完成相互间的通信,存储器12存储有可被处理器11执行的指令,指令被处理器11执行,以使电子设备1可执行上述的实施例中三维色彩模型建立方法的全部或部分流程,或者,执行上述的实施例中三维色彩打印模型交互操作方法的全部或部分流程。Please refer to Figure 9, which is a schematic diagram of the structure of an electronic device 1 provided in an embodiment of the present application. As shown in Figure 9, the electronic device 1 includes: at least one processor 11 and a memory 12, and Figure 9 takes one processor 11 as an example. The processor 11 and the memory 12 are connected through a bus 10 and communicate with each other. The memory 12 stores instructions that can be executed by the processor 11, and the instructions are executed by the processor 11 so that the electronic device 1 can execute all or part of the process of the three-dimensional color model establishment method in the above-mentioned embodiment, or execute all or part of the process of the three-dimensional color printing model interactive operation method in the above-mentioned embodiment.

总线10可包括加速图形端口(AGP)或其他图形总线、增强工业标准架构(EISA)总线、前端总线(FSB)、超传输(HT)互连、工业标准架构(ISA)总线、无限带宽互连、低引脚数(LPC)总线、存储器总线、微信道架构(MCA)总线、外围组件互连(PCI)总线、PCI-Express(PCI-X)总线、串行高级技术附件(SATA)总线、视频电子标准协会局部(VLB)总线或其他合适的总线或者两个或更多个以上这些的组合。在合适的情况下,总线10可包括一个或多个总线。The bus 10 may include an accelerated graphics port (AGP) or other graphics bus, an enhanced industry standard architecture (EISA) bus, a front side bus (FSB), a HyperTransport (HT) interconnect, an industry standard architecture (ISA) bus, an InfiniBand interconnect, a low pin count (LPC) bus, a memory bus, a microchannel architecture (MCA) bus, a peripheral component interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a serial advanced technology attachment (SATA) bus, a video electronics standard association local (VLB) bus, or other suitable busses or a combination of two or more of the above. Where appropriate, the bus 10 may include one or more buses.

处理器11通过读取并执行存储器12中存储的计算机程序指令,以实现上述的实施例中三维色彩打印模型建立方法的全部或部分流程,或者,执行上述的三维色彩打印模型交互操作方法的全部或部分流程。The processor 11 reads and executes computer program instructions stored in the memory 12 to implement all or part of the process of the three-dimensional color printing model establishment method in the above-mentioned embodiment, or executes all or part of the process of the above-mentioned three-dimensional color printing model interactive operation method.

存储器12可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(Static Random Access Memory,简称SRAM),电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,简称EEPROM),可擦除可编程只读存储器(Erasable Programmable Read Only Memory,简称EPROM),可编程只读存储器(Programmable Red-Only Memory,简称PROM),只读存储器(Read-Only Memory,简称ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 12 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable red-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

示例性的,在执行三维色彩打印模型建立方法,或者执行三维色彩打印模型交互操作方法中的电子设备1均可以为服务器。Exemplarily, the electronic device 1 in executing the three-dimensional color printing model establishment method or the three-dimensional color printing model interactive operation method can be a server.

本申请还提供了一种计算机可读存储介质,存储介质存储有计算机程序,计算机程序可由处理器执行以完成本申请提供的三维色彩打印模型建立方法,或者,执行以完成三维色彩打印模型交互操作方法。The present application also provides a computer-readable storage medium, which stores a computer program. The computer program can be executed by a processor to complete the three-dimensional color printing model establishment method provided in the present application, or executed to complete the three-dimensional color printing model interactive operation method.

本申请还提供了一种计算机程序产品,计算机程序产品包括计算机程序,计算机程序被处理器执行时实现本申请提供的三维色彩打印模型建立方法,或者,执行以完成三维色彩打印模型交互操作方法。The present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the three-dimensional color printing model establishment method provided in the present application, or is executed to complete the three-dimensional color printing model interactive operation method.

在本申请所提供的几个实施例中,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本申请的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In several embodiments provided in the present application, the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and a part of a module, a program segment or a code contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and/or the flowchart, and the combination of boxes in the block diagram and/or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

另外,在本申请各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of each embodiment of the present application.

Claims (19)

1.一种三维色彩打印模型建立方法,其特征在于,所述方法包括:1. A method for establishing a three-dimensional color printing model, characterized in that the method comprises: 建立三维色彩模型;其中,所述的三维色彩模型以色相环为基准平面,建立一条垂直于所述的基准平面的明度轴,以明度值表示沿所述明度轴方向的位置,以彩度值表示从所述色相环的中心向外到任一点的径向空间距离值;Establishing a three-dimensional color model; wherein the three-dimensional color model uses a hue ring as a reference plane, establishes a lightness axis perpendicular to the reference plane, uses lightness values to represent positions along the lightness axis, and uses chroma values to represent radial spatial distance values from the center of the hue ring to any point outward; 获取第一颜色数据,将所述第一颜色数据映射至所述三维色彩模型中的相应位置;Acquire first color data, and map the first color data to a corresponding position in the three-dimensional color model; 获取第二颜色数据,所述的第二颜色数据通过目标打印设备的设备色彩配置文件和当前显示设备的显示色彩配置文件,由所述的第一颜色数据转换得到;Acquire second color data, wherein the second color data is converted from the first color data through a device color profile of a target printing device and a display color profile of a current display device; 基于所述的第一颜色数据和所述第一颜色数据在所述三维色彩模型中的映射位置,生成可视化色样;通过所述的第二颜色数据表征所述的可视化色样的显示颜色;若干所述的可视化色样排布构建色彩打印模型。Based on the first color data and the mapping position of the first color data in the three-dimensional color model, a visual color sample is generated; the display color of the visual color sample is represented by the second color data; and a color printing model is constructed by arranging several of the visual color samples. 2.根据权利要求1所述的三维色彩打印模型建立方法,其特征在于,所述的建立三维色彩模型之后,包括如下步骤:2. The method for establishing a three-dimensional color printing model according to claim 1, characterized in that after establishing the three-dimensional color model, the method comprises the following steps: 获取所述色相环的第一阈值范围以界定色相范围;Obtaining a first threshold range of the hue circle to define a hue range; 获取所述明度值的第二阈值范围以界定高度范围;Obtaining a second threshold range of the brightness value to define a height range; 获取所述彩度值的第三阈值范围以界定径向距离范围;Obtaining a third threshold range of the chroma value to define a radial distance range; 根据所述第一阈值范围、所述第二阈值范围和所述第三阈值单位使所述三维色彩模型呈现为规则的球体。The three-dimensional color model is rendered as a regular sphere according to the first threshold range, the second threshold range, and the third threshold unit. 3.根据权利要求1所述的三维色彩打印模型建立方法,其特征在于,所述获取第一颜色数据,包括如下步骤:3. The method for establishing a three-dimensional color printing model according to claim 1, wherein the step of obtaining the first color data comprises the following steps: 获取离散颜色数据,所述离散颜色数据基于预设的数据筛选策略对预设的基础色彩模型进行离散得到;Acquire discrete color data, wherein the discrete color data is obtained by discretizing a preset basic color model based on a preset data screening strategy; 获取所述的基础色彩模型和所述的三维色彩模型的转换关系,并将所述的离散颜色数据转换为所述的三维色彩模型中的对应的第一颜色数据,其中,所述三维色彩模型与所述基础色彩模型不同。A conversion relationship between the basic color model and the three-dimensional color model is obtained, and the discrete color data is converted into corresponding first color data in the three-dimensional color model, wherein the three-dimensional color model is different from the basic color model. 4.根据权利要求3所述的三维色彩打印模型建立方法,其特征在于,所述的所述离散颜色数据基于预设的数据筛选策略对预设的基础色彩模型进行离散得到,包括如下步骤:4. The method for establishing a three-dimensional color printing model according to claim 3, wherein the discrete color data is obtained by discretizing a preset basic color model based on a preset data screening strategy, comprising the following steps: 所述的所述离散颜色数据基于利用预设的选用色差值,将所述基础色彩模型中的颜色按照等距离原则进行离散化处理,以生成一系列具有均匀色差的离散颜色数据,得到所述的离散颜色数据。The discrete color data is obtained by discretizing the colors in the basic color model according to the equidistance principle based on the preset selected color difference values to generate a series of discrete color data with uniform color difference. 5.根据权利要求4所述的三维色彩打印模型建立方法,其特征在于,所述的将所述基础色彩模型中的颜色按照等距离原则进行离散化处理,包括如下步骤:5. The method for establishing a three-dimensional color printing model according to claim 4, wherein the discretization of the colors in the basic color model according to the equidistance principle comprises the following steps: 所述的基础色彩模型包括明度值、红绿度值、黄蓝度值三个维度,将所述基础色彩模型中的颜色按照明度值、红绿度值、黄蓝度值三个维度的等距离原则进行离散化处理。The basic color model includes three dimensions: lightness value, redness-greenness value, and yellowness-blueness value. The colors in the basic color model are discretized according to the equidistance principle of the three dimensions: lightness value, redness-greenness value, and yellowness-blueness value. 6.根据权利要求4所述的三维色彩打印模型建立方法,其特征在于,所述的所述离散颜色数据基于利用预设的选用色差值,将所述基础色彩模型中的颜色按照等距离原则进行离散化处理,以生成一系列具有均匀色差的离散颜色数据,得到所述的离散颜色数据,包括如下步骤:6. The method for establishing a three-dimensional color printing model according to claim 4, characterized in that the discrete color data is based on using a preset selected color difference value, discretizing the colors in the basic color model according to the equidistance principle to generate a series of discrete color data with uniform color difference, and obtaining the discrete color data comprises the following steps: 基于利用预设的选用色差值作为正多面体的边长,并通过空间密铺方式构建正多面体阵列,用以划分预设的基础色彩模型;Based on using the preset selected color difference value as the side length of the regular polyhedron, a regular polyhedron array is constructed by a spatial tessellation method to divide the preset basic color model; 确定所述的基础色彩模型的基准颜色点数据;Determining reference color point data of the basic color model; 所述的基准颜色点数据与所述正多面体阵列中的某个正多面体的顶点或中心点重合,得到每个所述的正多面体的顶点在所述基础色彩模型中的等距离的色差离散点数据,得到所述离散颜色数据。The reference color point data coincides with a vertex or a center point of a regular polyhedron in the regular polyhedron array, and the equidistant color difference discrete point data of each vertex of the regular polyhedron in the basic color model are obtained to obtain the discrete color data. 7.根据权利要求5所述的三维色彩打印模型建立方法,其特征在于,所述基于所述的基础色彩模型的所述明度值、所述红绿度值、所述黄蓝度值,还包括如下步骤:7. The method for establishing a three-dimensional color printing model according to claim 5, characterized in that the lightness value, the red-green value, and the yellow-blue value based on the basic color model further include the following steps: 获取所述明度值的第四阈值范围以界定亮度范围;Obtaining a fourth threshold range of the brightness value to define a brightness range; 获取所述红绿度值的第五阈值范围以界定红绿度范围;Obtaining a fifth threshold range of the redness and greenness values to define a redness and greenness range; 获取所述黄蓝度值的第六阈值范围以界定黄蓝度范围。A sixth threshold range of the yellow-blue value is obtained to define a yellow-blue range. 8.根据权利要求1所述的三维色彩打印模型建立方法,其特征在于,所述获取第二颜色数据,所述的第二颜色数据通过目标打印设备的设备色彩配置文件和当前显示设备的显示色彩配置文件,由所述的第一颜色数据转换得到,还包括如下步骤:8. The method for establishing a three-dimensional color printing model according to claim 1, characterized in that the second color data is obtained by converting the first color data through a device color profile of a target printing device and a display color profile of a current display device, and further comprises the following steps: 基于全部或部分的第一颜色数据,生成打印指令并发送至指定的目标打印设备;Based on all or part of the first color data, a printing instruction is generated and sent to a designated target printing device; 获得打印实测颜色数据,基于所述的第一颜色数据通过目标打印设备的设备配置文件转换打印输出测量得到;Obtaining printed measured color data, which is obtained by converting the printed output measurement through a device profile of a target printing device based on the first color data; 将所述的打印实测颜色数据通过当前显示设备的显示色彩配置文件转换,得到与全部或部分的所述的第一颜色数据对应的所述的第二颜色数据。The printed measured color data is converted through a display color configuration file of a current display device to obtain the second color data corresponding to all or part of the first color data. 9.根据权利要求8所述的三维色彩打印模型建立方法,其特征在于,所述的第二颜色数据通过目标打印设备的设备色彩配置文件和当前显示设备的显示色彩配置文件,由所述的第一颜色数据转换得到,还包括如下步骤:9. The method for establishing a three-dimensional color printing model according to claim 8, wherein the second color data is converted from the first color data through a device color profile of a target printing device and a display color profile of a current display device, and further comprises the following steps: 获取部分已知的所述的第二颜色数据及其对应的所述的第一颜色数据,使用色彩优化算法调整目标打印设备的设备色彩配置文件,更新设备色彩配置文件;Acquire part of the known second color data and the corresponding first color data, use a color optimization algorithm to adjust a device color profile of a target printing device, and update the device color profile; 对于任意给定的第一颜色数据,通过所述的设备色彩配置文件和所述的显示色彩配置文件进行转换,得到对应的第二颜色数据。For any given first color data, the corresponding second color data is obtained by converting it through the device color configuration file and the display color configuration file. 10.根据权利要求1所述的三维色彩打印模型建立方法,其特征在于,所述获取第二颜色数据,所述的第二颜色数据通过目标打印设备的设备色彩配置文件和当前显示设备的显示色彩配置文件,由所述的第一颜色数据转换得到,还包括如下步骤:10. The method for establishing a three-dimensional color printing model according to claim 1, characterized in that the second color data is obtained by converting the first color data through a device color profile of a target printing device and a display color profile of a current display device, and further comprises the following steps: 获取全部或部分的所述的第二颜色数据,将所述第二颜色数据输入当前显示器显示;Acquire all or part of the second color data, and input the second color data into the current display for display; 获取所述的第二颜色数据对应的显示测量颜色数据,所述显示实测颜色数据为显示器实际显示的颜色数据;Acquire display measured color data corresponding to the second color data, wherein the display measured color data is color data actually displayed by the display; 根据所述第二颜色数据和所述显示实测颜色数据,使用色彩优化算法调整当前显示器的显示色彩配置文件,更新显示色彩配置文件;According to the second color data and the displayed measured color data, using a color optimization algorithm to adjust a display color profile of the current display, and update the display color profile; 对于任意给定的第一颜色数据,通过所述的设备色彩配置文件和所述的显示色彩配置文件进行转换,得到对应的第二颜色数据。For any given first color data, the corresponding second color data is obtained by converting it through the device color configuration file and the display color configuration file. 11.一种三维色彩打印模型交互操作方法,其特征在于,11. A three-dimensional color printing model interactive operation method, characterized in that: 确定如权利要求1-10中任一项所述的方法建立的三维色彩打印模型;所述的三维色彩打印模型基于第一颜色数据和第一颜色数据在所述三维色彩模型中的映射位置,生成可视化色样;通过第二颜色数据表征所述的可视化色样的显示颜色;由所述的可视化色样排布构建而成;其中,所述的第二颜色数据与目标打印设备和当前显示设备相关,通过目标打印设备的设备色彩配置文件和当前显示设备的显示色彩配置文件,由所述的第一颜色数据转换得到;Determine a three-dimensional color printing model established by the method according to any one of claims 1 to 10; the three-dimensional color printing model generates a visual color sample based on first color data and a mapping position of the first color data in the three-dimensional color model; represents the display color of the visual color sample by second color data; and is constructed by arranging the visual color samples; wherein the second color data is related to a target printing device and a current display device, and is converted from the first color data through a device color profile of the target printing device and a display color profile of the current display device; 响应于针对所述的三维色彩打印模型的交互操作,确定所述可视化色样为打印目标色;In response to an interactive operation on the three-dimensional color printing model, determining the visualized color sample as a printing target color; 基于所述的打印目标色对应的第一颜色数据,生成打印指令并发送至指定的目标打印设备。Based on the first color data corresponding to the printing target color, a printing instruction is generated and sent to a designated target printing device. 12.根据权利要求11所述的三维色彩打印模型交互操作方法,其特征在于,包括如下步骤:12. The interactive operation method of a three-dimensional color printing model according to claim 11, characterized in that it comprises the following steps: 响应于针对所述的三维色彩打印模型的交互操作,按预设等差的色相值分布将所述的打印目标色划分为多个打印目标色子集,所述的打印目标色子集对应于一个所述的色相值,且打印目标色子集中包含多个具有不同的彩度值和/或明度值的打印目标色;每个打印目标色子集构成一个打印目标文件;In response to the interactive operation on the three-dimensional color printing model, the printing target color is divided into a plurality of printing target color subsets according to a preset equidistant hue value distribution, wherein the printing target color subset corresponds to one hue value, and the printing target color subset includes a plurality of printing target colors having different chroma values and/or lightness values; each printing target color subset constitutes a printing target file; 或,响应于针对所述的三维色彩打印模型的交互操作,按预设等差的彩度值分布将所述的打印目标色划分为多个打印目标色子集,所述的打印目标色子集对应于一个所述的色相值,且打印目标色子集中包含多个具有不同的色相值和/或明度值的打印目标色;每个打印目标色子集构成一个打印目标文件;Or, in response to an interactive operation on the three-dimensional color printing model, the printing target color is divided into a plurality of printing target color subsets according to a preset equidistant chromaticity value distribution, the printing target color subset corresponds to one of the hue values, and the printing target color subset contains a plurality of printing target colors with different hue values and/or lightness values; each printing target color subset constitutes a printing target file; 或,响应于针对所述的三维色彩打印模型的交互操作,按预设等差的明度值分布将所述的打印目标色划分为多个打印目标色子集,所述的打印目标色子集对应于一个所述的色相值,且打印目标色子集中包含多个具有不同的色相值和/或彩度值的打印目标色;每个打印目标色子集构成一个打印目标文件;Or, in response to an interactive operation on the three-dimensional color printing model, the printing target color is divided into a plurality of printing target color subsets according to a preset equidistant lightness value distribution, the printing target color subset corresponds to one of the hue values, and the printing target color subset contains a plurality of printing target colors with different hue values and/or chroma values; each printing target color subset constitutes a printing target file; 基于所述的打印目标文件中包含的第一颜色数据,生成打印指令并发送至指定的目标打印设备。Based on the first color data contained in the printing target file, a printing instruction is generated and sent to a designated target printing device. 13.根据权利要求11所述的三维色彩打印模型交互操作方法,其特征在于,还包括如下步骤:13. The interactive operation method of a three-dimensional color printing model according to claim 11, characterized in that it also includes the following steps: 响应于用户针对所述的三维色彩打印模型的色样选用操作,确定所述的可视化色样中的一个或多个在所述的三维色彩打印模型中突出显示。In response to a color sample selection operation by a user for the three-dimensional color printing model, one or more of the visualized color samples are determined to be highlighted in the three-dimensional color printing model. 14.根据权利要求11所述的三维色彩打印模型交互操作方法,其特征在于,还包括如下步骤:14. The interactive operation method of a three-dimensional color printing model according to claim 11, further comprising the following steps: 响应于用户针对所述的三维色彩打印模型的色样拖动操作,确定所述的色样拖动操作对应的移动距离和移动方向,基于所述的移动距离和所述的移动方向确定所述可视化色样的被拖动距离,并控制所述可视化色样向所述移动方向移动所述被拖动距离。In response to a user's color sample dragging operation on the three-dimensional color printing model, a moving distance and a moving direction corresponding to the color sample dragging operation are determined, a dragged distance of the visualized color sample is determined based on the moving distance and the moving direction, and the visualized color sample is controlled to move the dragged distance in the moving direction. 15.根据权利要求11所述的三维色彩打印模型交互操作方法,其特征在于,还包括如下步骤:15. The three-dimensional color printing model interactive operation method according to claim 11, characterized in that it also includes the following steps: 响应于用户针对所述的三维色彩打印模型的旋转操作,根据所述旋转操作旋转所述的三维色彩打印模型。In response to a rotation operation of the user on the three-dimensional color printing model, the three-dimensional color printing model is rotated according to the rotation operation. 16.根据权利要求11所述的三维色彩打印模型交互操作方法,其特征在于,还包括如下步骤:16. The three-dimensional color printing model interactive operation method according to claim 11, characterized in that it also includes the following steps: 响应于用户针对所述的三维色彩打印模型的透视操作,根据所述透视操作调整所述的三维色彩打印模型的模拟视野深度,以在用户界面上基于所述的模拟视野深度显示位于所述的三维色彩打印模型的内部的可视化色样。In response to a user's perspective operation on the three-dimensional color printing model, a simulated depth of field of view of the three-dimensional color printing model is adjusted according to the perspective operation to display a visualized color sample located inside the three-dimensional color printing model on a user interface based on the simulated depth of field of view. 17.一种电子设备,其特征在于,所述电子设备包括:17. An electronic device, characterized in that the electronic device comprises: 处理器;processor; 用于存储处理器可执行指令的存储器;a memory for storing processor-executable instructions; 其中,所述处理器被配置为执行权利要求1至10任意一项所述的三维色彩打印模型建立方法,或者,执行权利要求11至16任意一项所述的三维色彩打印模型交互操作方法。The processor is configured to execute the three-dimensional color printing model establishment method described in any one of claims 1 to 10, or to execute the three-dimensional color printing model interactive operation method described in any one of claims 11 to 16. 18.一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机程序,所述计算机程序被处理器执行时实现权利要求1至10任意一项所述的三维色彩打印模型建立方法,或者,执行权利要求11至16任意一项所述的三维色彩打印模型交互操作方法。18. A computer program product, characterized in that the computer program product comprises a computer program, and when the computer program is executed by a processor, it implements the three-dimensional color printing model establishment method described in any one of claims 1 to 10, or executes the three-dimensional color printing model interactive operation method described in any one of claims 11 to 16. 19.一种计算机可读存储介质,其特征在于,所述存储介质存储有计算机程序,所述计算机程序被处理器运行时,用以执行权利要求1至10任意一项所述的三维色彩打印模型建立方法,或者,执行权利要求11至16任意一项所述的三维色彩打印模型交互操作方法。19. A computer-readable storage medium, characterized in that the storage medium stores a computer program, and when the computer program is executed by a processor, it is used to execute the three-dimensional color printing model establishment method described in any one of claims 1 to 10, or to execute the three-dimensional color printing model interactive operation method described in any one of claims 11 to 16.
CN202411282300.3A 2024-09-13 2024-09-13 Three-dimensional color printing model building method and interactive operation method Active CN118799501B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411282300.3A CN118799501B (en) 2024-09-13 2024-09-13 Three-dimensional color printing model building method and interactive operation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411282300.3A CN118799501B (en) 2024-09-13 2024-09-13 Three-dimensional color printing model building method and interactive operation method

Publications (2)

Publication Number Publication Date
CN118799501A true CN118799501A (en) 2024-10-18
CN118799501B CN118799501B (en) 2025-06-27

Family

ID=93025598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411282300.3A Active CN118799501B (en) 2024-09-13 2024-09-13 Three-dimensional color printing model building method and interactive operation method

Country Status (1)

Country Link
CN (1) CN118799501B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119273878A (en) * 2024-12-06 2025-01-07 深圳市俱进纸品包装有限公司 3D digital printing graphics verification method and system

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6426802B1 (en) * 1999-01-19 2002-07-30 Xerox Corporation Complementary halftone screens for highlight printing
JP2003037744A (en) * 2001-07-23 2003-02-07 Ricoh Co Ltd Gamut visualization method for printing equipment
CN1928805A (en) * 2005-09-06 2007-03-14 三星电子株式会社 Image processing method and apparatus to print displayed image
JP2009253665A (en) * 2008-04-07 2009-10-29 Seiko Epson Corp Color adjustment system for print output, color adjustment method and printer driver
JP2015100020A (en) * 2013-11-19 2015-05-28 ブラザー工業株式会社 Display device, and computer program
CN108437440A (en) * 2018-03-21 2018-08-24 北京印刷学院 3D printing color rendering method, apparatus and system based on color management
CN113538692A (en) * 2021-06-16 2021-10-22 江南大学 Lab gridding model construction and method for visualizing isocandela hue chromatograms of isocandela lightness and isocandela saturation
CN115412641A (en) * 2021-05-26 2022-11-29 深圳市汉森软件有限公司 Color printing method, device and color printing device based on color matching
CN118259841A (en) * 2022-12-20 2024-06-28 深圳市汉森软件股份有限公司 A color value acquisition method, a color reproduction method and related equipment
WO2024179065A1 (en) * 2023-02-28 2024-09-06 珠海赛纳三维科技有限公司 Three-dimensional printing method and apparatus, device, and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6426802B1 (en) * 1999-01-19 2002-07-30 Xerox Corporation Complementary halftone screens for highlight printing
JP2003037744A (en) * 2001-07-23 2003-02-07 Ricoh Co Ltd Gamut visualization method for printing equipment
CN1928805A (en) * 2005-09-06 2007-03-14 三星电子株式会社 Image processing method and apparatus to print displayed image
JP2009253665A (en) * 2008-04-07 2009-10-29 Seiko Epson Corp Color adjustment system for print output, color adjustment method and printer driver
JP2015100020A (en) * 2013-11-19 2015-05-28 ブラザー工業株式会社 Display device, and computer program
CN108437440A (en) * 2018-03-21 2018-08-24 北京印刷学院 3D printing color rendering method, apparatus and system based on color management
CN115412641A (en) * 2021-05-26 2022-11-29 深圳市汉森软件有限公司 Color printing method, device and color printing device based on color matching
CN113538692A (en) * 2021-06-16 2021-10-22 江南大学 Lab gridding model construction and method for visualizing isocandela hue chromatograms of isocandela lightness and isocandela saturation
CN118259841A (en) * 2022-12-20 2024-06-28 深圳市汉森软件股份有限公司 A color value acquisition method, a color reproduction method and related equipment
WO2024179065A1 (en) * 2023-02-28 2024-09-06 珠海赛纳三维科技有限公司 Three-dimensional printing method and apparatus, device, and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
修晓杰, 王小华, 朱文华: "打印机颜色管理模型方法研究", 宁波大学学报(理工版), no. 02, 30 June 2004 (2004-06-30), pages 207 - 210 *
叶翊隆著: "《Photoshop 6.0网页活点子 ImageReady 3.0》", vol. 1, 31 October 2001, 北京:清华大学出版社, pages: 204 - 205 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119273878A (en) * 2024-12-06 2025-01-07 深圳市俱进纸品包装有限公司 3D digital printing graphics verification method and system

Also Published As

Publication number Publication date
CN118799501B (en) 2025-06-27

Similar Documents

Publication Publication Date Title
US10171706B2 (en) Configuring an imaging system
JP5973780B2 (en) Color processing apparatus and method
JP6926818B2 (en) Profile adjustment system, profile adjustment device, profile adjustment method, and profile adjustment program
JP5188082B2 (en) Method, apparatus and program for creating color conversion definition for image output device
JP6349707B2 (en) Color conversion apparatus, lookup table generation method, and lookup table generation apparatus
JP2013239971A (en) Color processing device and color adjustment method
CN102173221A (en) Print control apparatus, print data generating apparatus and print system
CN118799501A (en) Three-dimensional color printing model establishment method and interactive operation method
CN104702941A (en) White-dot area indicating and judging method
CN111866303B (en) Color conversion information generation method and color conversion information generation device
JP5941041B2 (en) A method for normalizing a value indicating an equivalent lightness of a given color and a value indicating a vividness, a tone type determining method, a Munsell value calculating method, an image forming method, and an interface screen display device
CN108698417A (en) Color selection colour chart, color selection colour chart generation method and color selection colour chart generate program
Muratbekova et al. Color models in image processing: A review and experimental comparison
JP2015115738A (en) Lookup table generation method, lookup table generation device, and color conversion device
CN118799502B (en) Visualization space color gamut model establishment method and interactive method
EP3049777B1 (en) Process for preparing a colour chart
US20200404123A1 (en) Updating a lookup table for an imaging system
CN102572209B (en) For optimizing the preferred hue system of selection of color image reproduction
JP2014204172A (en) Image processing apparatus and image processing method
Derhak et al. Color appearance processing using iccMAX
US20210344813A1 (en) Mapping color gamuts
JP5296268B1 (en) Tone type discrimination method
JP4529910B2 (en) Color conversion device
JP2004153686A (en) Image processing device
JP2001352457A (en) Information color system and printing method for the information color system

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