CN112511717B - Mapping method and device of RGB image data, storage medium and electronic equipment - Google Patents
Mapping method and device of RGB image data, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN112511717B CN112511717B CN202011330608.2A CN202011330608A CN112511717B CN 112511717 B CN112511717 B CN 112511717B CN 202011330608 A CN202011330608 A CN 202011330608A CN 112511717 B CN112511717 B CN 112511717B
- Authority
- CN
- China
- Prior art keywords
- image
- cielab
- data
- rgb
- predetermined image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 238000013507 mapping Methods 0.000 title claims abstract description 43
- 238000013506 data mapping Methods 0.000 claims abstract description 74
- 238000004590 computer program Methods 0.000 claims description 17
- 230000000052 comparative effect Effects 0.000 claims 1
- 238000007639 printing Methods 0.000 abstract description 62
- 230000008569 process Effects 0.000 abstract description 26
- 230000000694 effects Effects 0.000 abstract description 20
- 238000006243 chemical reaction Methods 0.000 abstract description 14
- 206010063385 Intellectualisation Diseases 0.000 abstract 2
- 230000010354 integration Effects 0.000 abstract 1
- 239000003086 colorant Substances 0.000 description 20
- 238000010586 diagram Methods 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 10
- 230000003287 optical effect Effects 0.000 description 8
- 238000011156 evaluation Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 238000012545 processing Methods 0.000 description 7
- 230000006835 compression Effects 0.000 description 6
- 238000007906 compression Methods 0.000 description 6
- 238000005286 illumination Methods 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 4
- 238000007726 management method Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 230000007935 neutral effect Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000001737 promoting effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000004886 process control Methods 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/46—Colour picture communication systems
- H04N1/56—Processing of colour picture signals
- H04N1/60—Colour correction or control
- H04N1/6058—Reduction of colour to a range of reproducible colours, e.g. to ink- reproducible colour gamut
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
Abstract
Description
技术领域technical field
本公开实施例涉及图像转换的技术领域,特别涉及一种RGB图像数据 的映射方法、装置、存储介质以及电子设备。Embodiments of the present disclosure relate to the technical field of image conversion, and in particular to a mapping method, device, storage medium and electronic equipment for RGB image data.
背景技术Background technique
在计算机接口设备中,在图像输入端和输出端的产品很多,譬如扫描 仪、数字相机、显示器、喷墨打印机、彩色激光打印机、数码印刷机等等, 不同的输出、输入设备涉及不同显色的运作原理,例如有些是RGB数据的 显示方式,有些是CMYK数据的显示方式。In computer interface equipment, there are many products at the image input and output terminals, such as scanners, digital cameras, monitors, inkjet printers, color laser printers, digital printing machines, etc., and different output and input devices involve different colors. The principle of operation, for example, some are the display methods of RGB data, and some are the display methods of CMYK data.
以输入端采用扫描仪且输出端采用显示器为例,由于因为制造显示器 及扫描仪的灯管的厂家众多,品质、能力不一导致表现出来的色彩无法统 一,加上经过用户的自行调校后,更是没有一致的色彩标准;此外,印刷 油墨、彩色碳粉,墨水也是厂牌众多,以致于同样的档案,用不同的耗材, 就有不同的作品产生,即使用相同耗材,若在不同的设备上打印,也会有 所差异,为了减少色彩在不同设备、系统上所造成的差异,完善的色彩管理 是必需的。即使同一类型的电子设备例如彩色喷墨打印机,亦会因设计厂 商的不同而对色彩的描述定义产生差异。因此,当用户使用不同的设备进 行图像输入或输出时,便会呈现出失真现象或是产生误差。Taking the scanner as the input and the monitor as the output as an example, because there are many manufacturers of lamps for monitors and scanners with different quality and capabilities, the displayed colors cannot be unified, and after the user's self-adjustment , there is no consistent color standard; in addition, printing ink, color toner, and ink are also produced by many brands, so that the same file can produce different works with different consumables. Printing on different devices will also be different. In order to reduce the difference in color caused by different devices and systems, perfect color management is necessary. Even for the same type of electronic equipment such as color inkjet printers, the description and definition of color will be different due to different design manufacturers. Therefore, when users use different devices for image input or output, distortion or errors will appear.
以数码相机等电子设备获取的数码照片为原稿的印刷图像复制工作比 比皆是,相对以胶卷或者胶片为原稿的印刷图像复制工作而言,数码照片 仅表现为数据,不像照片或者其他实物原稿,客户和印刷技术人员可以根 据实物进行交流,从而调整图像复制工艺,并可以预判印刷效果并完成图 像的复制。数码照片仅能通过显示设备展现效果,由于无法或者很难再现 拍摄时的场景,对摄影者和印刷技术人员评判图像的再现效果失去了依据, 在印刷复制工艺上达成共识存在一定的困难。现有对于数码照片等图像的 复制工作,往往是由专业的技术人员使用专业的设备、软件,经过反复的 调整工艺才能与客户达成一致意见。Printed image duplication works that use digital photos captured by electronic devices such as digital cameras as originals abound. Compared with the printed image duplication work that uses film or film as originals, digital photos only represent data, unlike photos or other physical originals. , customers and printing technicians can communicate according to the real object, so as to adjust the image reproduction process, and can predict the printing effect and complete the image reproduction. Digital photos can only be displayed through display devices. Since it is impossible or difficult to reproduce the scene when shooting, there is no basis for photographers and printing technicians to judge the reproduction effect of images, and it is difficult to reach a consensus on the printing and reproduction process. Existing for the duplication work of images such as digital photos, often use professional equipment, software by professional technical personnel, just can reach consensus with the client through repeatedly adjusting process.
现有的基于RGB颜色模式的印刷图像复制工艺,以ICC色彩管理技术 为基础,通过在一台经过色彩校正的显示器上显示RGB图像,在标准的观 察环境中,由经验丰富的印刷技术人员,参照相关的印刷条件在专业图像 处理软件中对图像进行调整。现有技术中对RGB模式下的图像复制,主要 完成的工作包括:1)设定工作环境,符合ISO 3664的要求;2)使用专业 显示器,显示器软硬件满足ISO12646的要求,完成显示器的校准与特征化, 满足ISO 1486规定的软打样的要求;3)使用支持ICC色彩管理技术的图 像调整软件,显示图像;4)由熟练的印前技术人员调整图像的高光点和暗 调点、灰平衡、阶调和颜色等,以达到预期的印刷复制效果;5)进行软打 样或者数码打样,邀客户依据ISO 12647-8或者ISO12647-7的要求签样; 6)如与客户达成一致意见,交付印刷;7)如未与客户达成一致意见,重 复4)到6)的过程。现用基于RGB数字图像数据的印刷技术工作,由熟练 的印刷技术人员依据相应的标准或者技术规范可以达成客户满意的效果复 制。该工艺技术是基于ICC色彩管理的经典的印刷复制技术,近年来各大 行业协会开发有配套有相应过程控制规范,如PSO、G7、C9等适应于平版 印刷达成ISO 12747-2要求的过程控制规范,此过程校正与控制等对操作 人员专业化的要求程度高,往往由行业专家完成,印前、印刷操作人员日 常工作是依据既定的条件完成图像复制工作。The existing printing image reproduction process based on RGB color mode is based on ICC color management technology. By displaying RGB images on a color-corrected monitor, in a standard observation environment, experienced printing technicians, Adjust the image in professional image processing software with reference to relevant printing conditions. In the prior art, the main tasks for image duplication in RGB mode include: 1) setting the working environment to meet the requirements of ISO 3664; Characterized to meet the requirements of soft proofing specified in ISO 1486; 3) Use image adjustment software that supports ICC color management technology to display images; 4) Adjust the highlights and dark points of the image, gray balance by skilled prepress technicians , tone and color, etc., to achieve the expected printing and reproduction effect; 5) Conduct soft proofing or digital proofing, and invite customers to sign samples according to the requirements of ISO 12647-8 or ISO12647-7; 6) If an agreement is reached with the customer, delivery for printing ; 7) If no agreement is reached with the customer, repeat the process from 4) to 6). Currently using printing technology based on RGB digital image data, skilled printing technicians can achieve customer-satisfied copying effects according to corresponding standards or technical specifications. This process technology is a classic printing reproduction technology based on ICC color management. In recent years, major industry associations have developed corresponding process control specifications, such as PSO, G7, C9, etc., which are suitable for lithographic printing to meet the requirements of ISO 12747-2. Standards, process correction and control, etc. require a high degree of professionalism of operators, which are often completed by industry experts. The daily work of prepress and printing operators is to complete the image reproduction work according to the established conditions.
人工智能技术正在推动着各行各业的变革,在图像输出至印刷或者打 印的自动化工作流程一直推动着印刷技术工作流程的变革,尤其是短版印 刷,要求以快捷、个性化设计等满足大众消费者的需要,现有技术还不存 在能够满足大众消费者立等可取的要求,通过“傻瓜式”平台或者系统使 得用户上传图像至系统或者平台,依据平台的自动提示,自助完成图像效 果的调整,达成印刷效果的预览,无需专业技术人员参与,立刻签样,交 付印刷的工作模式。Artificial intelligence technology is promoting changes in all walks of life. The automated workflow from image output to printing or printing has been promoting the transformation of printing technology workflow, especially short-run printing, which requires fast and personalized design to meet mass consumption. According to the needs of consumers, the existing technology does not exist to meet the requirements of mass consumers. Through the "fool" platform or system, users can upload images to the system or platform, and complete the adjustment of the image effect by themselves according to the automatic prompt of the platform. , to achieve a preview of the printing effect, without the participation of professional and technical personnel, sign the sample immediately, and deliver the working mode of printing.
发明内容Contents of the invention
为了改善上述的问题,从而能够本公开实施例的目的在于提供一种RGB 图像数据的映射方法、装置、存储介质以及电子设备,以解决现有技术中 存在上述问题。In order to improve the above problems, the purpose of the embodiments of the present disclosure is to provide a RGB image data mapping method, device, storage medium and electronic equipment, so as to solve the above problems in the prior art.
为了解决上述技术问题,本公开的实施例采用了如下技术方案:一种RGB图像数据的映射方法,其包括以下步骤:基于预定图像的RGB数据, 获取图像直方图;基于所述图像直方图和输出参数值,确定CIELab数据映 射关系;基于所述CIELab数据映射关系,获取所述预定图像转换至输出图 像的RGB数据映射关系。In order to solve the above technical problems, embodiments of the present disclosure adopt the following technical solutions: a mapping method of RGB image data, which includes the following steps: based on the RGB data of a predetermined image, obtaining an image histogram; based on the image histogram and Output parameter values to determine the CIELab data mapping relationship; based on the CIELab data mapping relationship, obtain the RGB data mapping relationship from the predetermined image to the output image.
在一些实施例中,所述基于预定图像的RGB数据,获取图像直方图, 包括以下步骤:获取预定图像;基于所述预定图像的RGB数据,获取CIELab 数据;基于所述CIELab数据,绘制图像直方图。In some embodiments, the acquisition of an image histogram based on the RGB data of the predetermined image includes the following steps: obtaining a predetermined image; obtaining CIELab data based on the RGB data of the predetermined image; drawing an image histogram based on the CIELab data picture.
在一些实施例中,所述基于所述预定图像的RGB数据,获取CIELab数 据是通过所述预定图像中嵌入的色彩特性文件实现。In some embodiments, the acquisition of CIELab data based on the RGB data of the predetermined image is realized through a color characteristic file embedded in the predetermined image.
在一些实施例中,所述基于所述图像直方图和输出参数值,确定CIELab 数据映射关系,包括以下步骤:基于所述图像直方图获取所述预定图像的 第一阶调范围;基于输出参数值获取输出图像的第二阶调范围;基于所述 第一阶调范围和所述第二阶调范围,确定CIELab数据映射关系。In some embodiments, the determining the CIELab data mapping relationship based on the image histogram and the output parameter value includes the following steps: obtaining the first tone range of the predetermined image based on the image histogram; based on the output parameter obtain the second tone range of the output image; determine the CIELab data mapping relationship based on the first tone range and the second tone range.
在一些实施例中,所述基于所述图像直方图获取所述预定图像的第一 阶调范围通过以下方式实现:从所述图像直方图中提取最亮和最暗的像素 点的CIELab值;遍历所述预定图像的数据,在所述图像直方图中标记出最 亮和最暗的像素点的所在区域;基于最亮和最暗的像素点的所在区域,分 别确定图像白场或者图像黑场,从而计算每个区域的平均亮度值;基于所 述平均亮度值,确定所述预定图像的第一阶调范围。In some embodiments, the acquisition of the first tone range of the predetermined image based on the image histogram is achieved by extracting the CIELab values of the brightest and darkest pixels from the image histogram; Traversing the data of the predetermined image, marking the areas where the brightest and darkest pixels are located in the image histogram; based on the areas where the brightest and darkest pixels are located, respectively determine the image white point or image black Field, so as to calculate the average brightness value of each area; based on the average brightness value, determine the first tone range of the predetermined image.
在一些实施例中,还包括:基于输出图像与所述预定图像的色差,调 整所述RGB数据映射关系。In some embodiments, the method further includes: adjusting the RGB data mapping relationship based on the color difference between the output image and the predetermined image.
在一些实施例中,所述基于输出图像与所述预定图像的色差,调整所 述RGB数据映射关系,包括:基于所述预定图像和所述RGB数据映射关系 获取输出图像;基于所述输出参数值在预定色块中确定阶调样本点的样本 CIELAB值;基于所述样本CIELab值在所述输出图像中确定比较样本点; 基于所述样本CIELab值和所述比较样本点的比较CIELab值获取色差;基 于所述色差调整所述RGB数据映射关系。In some embodiments, the adjusting the RGB data mapping relationship based on the color difference between the output image and the predetermined image includes: obtaining an output image based on the predetermined image and the RGB data mapping relationship; based on the output parameters Determine the sample CIELab value of the tone sample point in the predetermined color block; determine the comparison sample point in the output image based on the sample CIELab value; obtain based on the sample CIELab value and the comparison CIELab value of the comparison sample point Color difference: adjusting the RGB data mapping relationship based on the color difference.
本公开还提供一种RGB图像数据的映射装置,其包括以下部分:The present disclosure also provides a mapping device for RGB image data, which includes the following parts:
第一获取模块,其用于基于预定图像的RGB数据,获取图像直方图; 确定模块,其用于基于所述图像直方图和输出参数值,确定CIELab数据映 射关系;第二获取模块,其用于基于所述CIELab数据映射关系,获取所述 预定图像转换至输出图像的RGB数据映射关系。The first acquisition module is used to obtain the image histogram based on the RGB data of the predetermined image; the determination module is used to determine the CIELab data mapping relationship based on the image histogram and output parameter values; the second acquisition module is used to Based on the CIELab data mapping relationship, the RGB data mapping relationship converted from the predetermined image to the output image is obtained.
本公开还提供一种存储介质,存储有计算机程序,其特征在于,所述 计算机程序被处理器执行时实现上述任一项所述方法的步骤。The present disclosure also provides a storage medium storing a computer program, wherein when the computer program is executed by a processor, the steps of any one of the methods described above are implemented.
本公开还提供一种电子设备,至少包括存储器、处理器,所述存储器 上存储有计算机程序,其特征在于,所述处理器在执行所述存储器上的计 算机程序时实现上述任一项所述方法的步骤。The present disclosure also provides an electronic device, including at least a memory and a processor, the memory stores a computer program, and it is characterized in that, when the processor executes the computer program on the memory, any one of the above-mentioned method steps.
本公开实施例的着力点放在“RGB数字图像数据映射为印刷标准参考 数据的转换”的转换阶段,不同于现有技术的是本技术方案提供一种智能 化的映射系统,简化现有技术实现中三个难点:一者,现有技术中RGB数 字图像数据的调整需依赖于专业技术人员使用专业化程度高的工具才能完 成;二者,该调整过程中与客户达成一致的耗费高;三者,现有技术工作 的模块零散,需要多人协同才能完成该工作。The embodiment of the present disclosure focuses on the conversion stage of "conversion of RGB digital image data mapping into printing standard reference data". What is different from the prior art is that this technical solution provides an intelligent mapping system, which simplifies the prior art There are three difficulties in the implementation: first, the adjustment of RGB digital image data in the prior art needs to be completed by professional technicians using highly specialized tools; second, the cost of reaching an agreement with the customer during the adjustment process is high; Three, the modules of existing technical work are fragmented, requiring the cooperation of multiple people to complete the work.
本公开实施例的有益效果在于:本公开实施例提供一种采用自动化映 射框架的用于RGB图像数据转化印刷图像标准数据的RGB图像数据的映射 方法,依据该映射框架,能够推动印刷数字化工作流程、自动化和智能化。 本公开实施例对用户操作的要求门槛低,操作流程简单,其中,智能化体 现在:1)一键式完成,系统自动提供推荐的结果,由用户选择中意的结果; 2)向导式操作,系统提示引导操作者逐步完成预期印刷的效果预览,体现个性化调整;3)工序集成度高,输入RGB图像,输出满足预印刷条件要求 的结果图。The beneficial effect of the embodiment of the present disclosure is that the embodiment of the present disclosure provides a mapping method for converting RGB image data into RGB image data of printing image standard data using an automatic mapping framework. According to the mapping framework, the printing digital workflow can be promoted , automation and intelligence. The embodiments of the present disclosure have low requirements for user operations, and the operation process is simple. Among them, intelligence is reflected in: 1) One-click completion, the system automatically provides recommended results, and the user selects the desired result; 2) Guided operation, The system prompts and guides the operator to complete the expected printing effect preview step by step, reflecting personalized adjustments; 3) The process is highly integrated, input RGB images, and output results that meet the requirements of pre-printing conditions.
附图说明Description of drawings
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对 实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地, 下面描述中的附图仅仅是本公开中记载的一些实施例,对于本领域普通技 术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得 其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments described in the present disclosure. Those skilled in the art can also obtain other drawings based on these drawings without any creative effort.
图1为本公开实施例的RGB图像数据的映射方法的流程示意图;FIG. 1 is a schematic flow diagram of a mapping method of RGB image data in an embodiment of the present disclosure;
图2为本公开实施例的RGB图像数据的映射装置的结构示意图;2 is a schematic structural diagram of a mapping device for RGB image data according to an embodiment of the present disclosure;
图3为本公开实施例的电子设备的结构示意图。FIG. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
此处参考附图描述本公开的各种方案以及特征。Various aspects and features of the present disclosure are described herein with reference to the accompanying drawings.
应理解的是,可以对此处申请的实施例做出各种修改。因此,上述说 明书不应该视为限制,而仅是作为实施例的范例。本领域的技术人员将想 到在本公开的范围和精神内的其他修改。It should be understood that various modifications may be made to the embodiments applied for herein. Accordingly, the above description should not be viewed as limiting, but only as exemplifications of embodiments. Those skilled in the art will envision other modifications within the scope and spirit of the disclosure.
包含在说明书中并构成说明书的一部分的附图示出了本公开的实施例, 并且与上面给出的对本公开的大致描述以及下面给出的对实施例的详细描 述一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and, together with the general description of the disclosure given above and the detailed description of the embodiments given below, serve to explain the principles of the disclosure. principle.
通过下面参照附图对给定为非限制性实例的实施例的优选形式的描述, 本公开的这些和其它特性将会变得显而易见。These and other characteristics of the present disclosure will become apparent from the following description of preferred forms of embodiment given as non-limiting examples with reference to the accompanying drawings.
还应当理解,尽管已经参照一些具体实例对本公开进行了描述,但本 领域技术人员能够确定地实现本公开的很多其它等效形式,它们具有如权 利要求所述的特征并因此都位于借此所限定的保护范围内。It should also be understood that, while the disclosure has been described with reference to a few specific examples, those skilled in the art will surely be able to implement many other equivalents of the disclosure which have the features of the claims and which are therefore situated within the scope of the claims. within the limited scope of protection.
当结合附图时,鉴于以下详细说明,本公开的上述和其他方面、特征 和优势将变得更为显而易见。The above and other aspects, features and advantages of the present disclosure will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
此后参照附图描述本公开的具体实施例;然而,应当理解,所申请的 实施例仅仅是本公开的实例,其可采用多种方式实施。熟知和/或重复的功 能和结构并未详细描述以避免不必要或多余的细节使得本公开模糊不清。 因此,本文所申请的具体的结构性和功能性细节并非意在限定,而是仅仅 作为权利要求的基础和代表性基础用于教导本领域技术人员以实质上任意 合适的详细结构多样地使用本公开。Specific embodiments of the present disclosure are hereinafter described with reference to the accompanying drawings; however, it is to be understood that the applied embodiments are merely examples of the disclosure, which may be embodied in various ways. Well-known and/or repetitive functions and constructions are not described in detail to avoid obscuring the disclosure with unnecessary or redundant detail. Therefore, specific structural and functional details disclosed herein are not intended to be limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present invention in virtually any suitable detailed structure. public.
本说明书可使用词组“在一种实施例中”、“在另一个实施例中”、“在 又一实施例中”或“在其他实施例中”,其均可指代根据本公开的相同或不 同实施例中的一个或多个。This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may refer to the same or one or more of the different embodiments.
本公开的第一实施例涉及一种RGB图像数据的映射方法,通过本公开 实施例的所述映射方法能够实现在输入具有RGB数据的预定图像的情况下, 输出符合预定条件或者标准的用于打印或者印刷的图像,以保证输出图像 的色差在预定范围内,如图1所示,所述映射方法具体包括以下步骤:The first embodiment of the present disclosure relates to a mapping method of RGB image data. Through the mapping method of the embodiment of the present disclosure, it can be realized that in the case of inputting a predetermined image with RGB data, the output conforms to predetermined conditions or standards for Printed or printed images, to ensure that the color difference of the output image is within a predetermined range, as shown in Figure 1, the mapping method specifically includes the following steps:
S101,基于预定图像的RGB数据,获取图像直方图。S101. Acquire an image histogram based on RGB data of a predetermined image.
在本步骤中,基于输入的预定图像获取所述预定图像的RGB数据,基 于所述预定图像的RGB数据,获取图像直方图。In this step, the RGB data of the predetermined image is obtained based on the input predetermined image, and an image histogram is obtained based on the RGB data of the predetermined image.
这里的所述预定图像的RGB数据是指所述预定图像中每个元素点的颜 色信息,所述颜色信息通过RGB数据的形式表示。这里的所述图像直方图 (Image Histogram)广泛运用于计算机的视觉处理中,一般通过标记显著 的边缘和颜色的统计变化获取颜色变化信息,简单来说,所述图像直方图 是用以表示数字图像中亮度分布的数据分布的统计图,统计图像中每个亮 度值的像素数,因此,这里的所述图像直方图就是对颜色数据进行统计的方式,将统计值赋予到一系列实现定义的bin当中,这里的bin在图像直 方图中被认为是“直条”或“组距”,其数值是从数据中计算出的特征 统计量,这些数据可以是诸如梯度、方向、色彩或任何其他特征。进一步 地,所述基于预定图像的RGB数据,获取图像直方图,包括以下步骤:The RGB data of the predetermined image here refers to the color information of each element point in the predetermined image, and the color information is expressed in the form of RGB data. The image histogram (Image Histogram) here is widely used in the visual processing of computers, and generally obtains color change information by marking significant edges and statistical changes of colors. In simple terms, the image histogram is used to represent numbers The statistical diagram of the data distribution of the brightness distribution in the image counts the number of pixels of each brightness value in the image. Therefore, the image histogram here is the way to count the color data, and the statistical value is assigned to a series of implementation-defined Among the bins, the bins here are considered as "bars" or "group distances" in the image histogram, and their values are characteristic statistics calculated from the data. These data can be such as gradient, direction, color or any other feature. Further, said RGB data based on predetermined image, obtains image histogram, comprises the following steps:
S201,获取预定图像。S201. Acquire a predetermined image.
在本步骤中,首先需要获取输入的预定图像,这里的所述预定图像是 通过用户输入需要进行打印、印刷等后续处理的预定图像,这里的所述预 定图像可以是通过移动终端、数码相机、扫描仪等电子设备获取并通过RGB 数据的形式进行存储和展示的图像。In this step, it is first necessary to obtain the input predetermined image, where the predetermined image is a predetermined image that needs to be printed, printed and other subsequent processing through user input, and the predetermined image here can be obtained through a mobile terminal, a digital camera, An image acquired by electronic devices such as a scanner and stored and displayed in the form of RGB data.
S202,基于所述预定图像的RGB数据,获取CIELab数据;S202. Acquire CIELab data based on the RGB data of the predetermined image;
通过在上述步骤S201获取的预定图像,所述预定图像中的RGB数据可 以基于所述预定图像解析获取,在本步骤中可以基于所述预定图像的RGB 数据,获取CIELab数据。需要说明的是,CIELab是国际照明委员会(CIE) 的一个颜色系统,属于表色体系,Lab模式或者Lab颜色空间是由国际照 明委员会于1976年公布的一种色彩模式,是国际照明委员会确定的理论上 包括人眼可见的所有色彩的色彩模式,Lab模式弥补了RGB与CMYK两种彩 色模式的不足。Lab模式是由三个通道组成,第一个通道是明度,即“L”, 此外,a通道的颜色是从红色到深绿,b通道则是从蓝色到黄色。在现有的 色彩模式中,在表达色彩范围上,最全的是Lab模式,其次是RGB模式, 最窄的是CMYK模式。也就是说Lab模式所定义的色彩最多,Lab模式用作 传递中介,以保持所有颜色的外观一致,并且在不同设备之间传输颜色时, 颜色不会更改且与光线及设备无关,并且处理速度与RGB模式同样快,比 CMYK模式快数倍。Through the predetermined image obtained in the above step S201, the RGB data in the predetermined image can be analyzed and obtained based on the predetermined image. In this step, the CIELab data can be obtained based on the RGB data of the predetermined image. It should be noted that CIELab is a color system of the International Commission on Illumination (CIE), which belongs to the color expression system. The Lab mode or Lab color space is a color model announced by the International Commission on Illumination in 1976, which is determined by the International Commission on Illumination. Theoretically, the color mode includes all colors visible to the human eye, and the Lab mode makes up for the shortcomings of the RGB and CMYK color modes. The Lab mode is composed of three channels, the first channel is the lightness, which is "L", in addition, the color of the a channel is from red to dark green, and the b channel is from blue to yellow. Among the existing color modes, in terms of expressing the color range, the Lab mode is the most complete, followed by the RGB mode, and the CMYK mode is the narrowest. That is to say, the Lab mode defines the most colors, and the Lab mode is used as a transfer medium to keep the appearance of all colors consistent, and when transferring colors between different devices, the colors will not change and have nothing to do with light and devices, and the processing speed As fast as RGB mode, several times faster than CMYK mode.
在本步骤中,因为不同印刷前电子设备的制造商,对于RGB或CMYK色 彩的定义不同,使得相同的RGB或CMYK图像数据,在不同的系统、电子设 备上呈现不一样的色彩,因此,使用ICC文件,作为不同设备之间色彩转 换的依据、标准,使得色彩能一致地表现在不同的电子设备上。在一个实 施方式中,在将所述预定图像从RGB数据转换为CIELab数据的过程中,例 如可以通过色彩特性文件ICC实现,色彩特性ICC文件将所有与设备有关 的颜色数据(例如RGB和CMYK数据)映射到与设备无关的Lab色彩模式中。In this step, because different manufacturers of pre-printing electronic equipment have different definitions of RGB or CMYK colors, the same RGB or CMYK image data will appear in different colors on different systems and electronic equipment. Therefore, use ICC files, as the basis and standard for color conversion between different devices, enable colors to be displayed consistently on different electronic devices. In one embodiment, in the process of converting the predetermined image from RGB data to CIELab data, for example, it can be realized through the color characteristic file ICC, and the color characteristic ICC file combines all the color data related to the device (such as RGB and CMYK data ) is mapped to the device-independent Lab color model.
具体地,考虑到一般电子设备都会预先安装色彩特性ICC文件,通过 读取输入的所述预定图像的数据,可以通过获取所述预定图像的头文件信 息以判断所述预定图像是否嵌入色彩特性ICC文件;如果所述预定图像的 头文件信息中嵌入色彩特性ICC文件,则可以执行色彩特性ICC文件中“RGB -CIELAB”的转换以获取所述预定图像的所述RGB数据在Lab模式下的数据 即CIELab数据;如果所述预定图像的头文件信息中没有嵌入ICC文件,则可以在通过安装色彩特性ICC文件的形式实现转换。Specifically, considering that general electronic devices will pre-install the color characteristic ICC file, by reading the input data of the predetermined image, it is possible to determine whether the predetermined image is embedded with the color characteristic ICC by obtaining the header file information of the predetermined image. file; if the color characteristic ICC file is embedded in the header file information of the predetermined image, the conversion of "RGB-CIELAB" in the color characteristic ICC file can be performed to obtain the data of the RGB data of the predetermined image in Lab mode That is, CIELab data; if there is no ICC file embedded in the header file information of the predetermined image, the conversion can be realized in the form of installing a color characteristic ICC file.
S203,基于所述CIELAB数据,绘制图像直方图S203, draw an image histogram based on the CIELAB data
在通过上述步骤S202获取所述预定图像的CIELab数据后,在本步骤 中,通过所述预定图像的RGB数据和通过上述步骤S202获取的CIELAB数 据,绘制图像直方图。这里,基于Lab模式下的CIELab数据绘制图像直方 图的方式可以采用现有的任意方式,本公开在此不再赘述。After obtaining the CIELab data of the predetermined image by the above step S202, in this step, draw an image histogram by the RGB data of the predetermined image and the CIELab data obtained by the above step S202. Here, the method of drawing the image histogram based on the CIELab data in the Lab mode can adopt any existing method, and the present disclosure will not repeat them here.
S102,基于所述图像直方图和输出参数值,确定CIELab数据映射关系。S102. Determine a CIELab data mapping relationship based on the image histogram and output parameter values.
通过上述步骤S101基于所述预定图像的RGB数据获取图像直方图后, 在本步骤中,基于所述图像直方图和输出参数值,确定CIELab数值的映射 关系。在本步骤中,所述图像直方图代表输入图像即预定图像的CIELAB数 据的情况,通过输出参数值代表输出图像的CIELab值,基于这两个CIELab 值确定输入图像和输出图像之间的CIELab数值的映射关系。所述基于所述 图像直方图和输出参数值,确定CIELAB映射关系,具体包括以下步骤:After obtaining the image histogram based on the RGB data of the predetermined image through the above step S101, in this step, based on the image histogram and the output parameter value, determine the mapping relationship of the CIELab value. In this step, the image histogram represents the CIELab data of the input image, that is, the predetermined image, and the CIELab value of the output image is represented by the output parameter value, and the CIELab value between the input image and the output image is determined based on these two CIELab values mapping relationship. Described based on described image histogram and output parameter value, determine CIELAB mapping relation, specifically comprise the following steps:
S301,基于所述图像直方图获取所述预定图像的第一阶调范围。S301. Acquire a first tone range of the predetermined image based on the image histogram.
基于上述步骤S101获取所述图像直方图后,在本步骤中,从所述图像 直方图中提取所述图像直方图中最亮和最暗的像素点的CIELab值,同时存 储最亮的像素点的RGB数值和对应的CIELAB值。After obtaining the image histogram based on the above step S101, in this step, extract the CIELab values of the brightest and darkest pixels in the image histogram from the image histogram, and store the brightest pixel at the same time The RGB value and the corresponding CIELAB value.
进一步地,依据最亮和最暗的像素点的RGB数据和CIELab值,遍历所 述预定图像的数据,在所述图像直方图中标记出最亮和最暗的像素点的所 在区域,通过智能识别图像黑白场的方式,例如将3×3或者5×5的连续 区域分别确定为图像白场或者图像黑场,从而计算每个区域的平均亮度值, 这里的亮度值以CIELab值的格式记录,从而确定所述预定图像的第一阶调 范围,阶调范围中的阶调是在图像信息还原中,一个亮度均匀的面积的光学表现,阶调值是阶调的量度,在印刷技术中通常用光的透射或反射的程 度来表示。Further, according to the RGB data and CIELab values of the brightest and darkest pixels, traverse the data of the predetermined image, mark the areas where the brightest and darkest pixels are located in the image histogram, and use intelligent The way to identify the black and white field of the image, for example, determine the continuous area of 3×3 or 5×5 as the image white field or the image black field respectively, so as to calculate the average brightness value of each area, where the brightness value is recorded in the format of CIELab value , so as to determine the first tone range of the predetermined image, the tone in the tone range is the optical performance of an area with uniform brightness in image information restoration, and the tone value is the measure of tone, in printing technology It is usually expressed by the degree of transmission or reflection of light.
S302,基于输出参数值,获取输出图像的第二阶调范围。S302. Acquire the second tone range of the output image based on the output parameter value.
在通过上述步骤S301获取所述预定图像的第一阶调范围,在本步骤中, 还需要基于确定和设置用于打印或者印刷的图像数据的输出参数值以获取 输出图像的第二阶调范围,这里的输出参数值可以基于用户对于输出图像 的目的确定,例如:用于办公打印/用于印刷/用于网络传输等,通过输出 目的确定和设置输出参数值,这里的输出参数值例如记录在色彩特性ICC 文件中。基于例如色彩特性ICC文件的输出参数值,提取并获取输出图像的第二阶调范围,以CIELab值的格式记录。After obtaining the first tone range of the predetermined image through the above step S301, in this step, it is also necessary to obtain the second tone range of the output image based on determining and setting the output parameter value of the image data used for printing or printing , the output parameter value here can be determined based on the purpose of the user for outputting the image, for example: for office printing/for printing/for network transmission, etc., the output parameter value is determined and set by the output purpose, the output parameter value here is for example record In the color profile ICC file. Based on, for example, the output parameter value of the color characteristic ICC file, the second tone range of the output image is extracted and obtained, and recorded in the format of CIELab value.
S303,基于所述第一阶调范围和所述第二阶调范围,确定CIELab数据 映射关系。S303. Based on the first tone range and the second tone range, determine a CIELab data mapping relationship.
通过上述步骤S301获取所述预定图像的第一阶调范围以及通过步骤 S302所述输出图像的第二阶调范围后,在本步骤中,基于所述第一阶调范 围和所述第二阶调范围确定从所述预定图像到输出图像的阶调压缩比,基 于所述阶调压缩比确定CIELab数据映射关系。After obtaining the first tone range of the predetermined image through the above step S301 and the second tone range of the output image through step S302, in this step, based on the first tone range and the second tone range The tone range determines the tone compression ratio from the predetermined image to the output image, and determines the CIELab data mapping relationship based on the tone compression ratio.
S103,基于所述CIELAB数据映射关系,获取所述预定图像转换至输出 图像的RGB数据映射关系。S103. Based on the CIELAB data mapping relationship, obtain the RGB data mapping relationship for converting the predetermined image to an output image.
通过上述步骤S102确定CIELab数据映射关系后,在本步骤中,基于 所述CIELAB数据映射关系,获取所述预定图像转换至输出图像的RGB数据 映射关系,例如可以通过色彩特性文件ICC实现,调用嵌入到所述预定图 像中的色彩特性ICC文件中CIELab至RGB的图像数据逆运算,完成所述 CIELab数据映射关系到所述RGB数据映射关系的映射。After the CIELab data mapping relationship is determined through the above step S102, in this step, based on the CIELAB data mapping relationship, the RGB data mapping relationship from the predetermined image to the output image is obtained, for example, it can be realized through the color characteristic file ICC, calling the embedded The image data from CIELab to RGB in the color characteristic ICC file in the predetermined image is inversely calculated to complete the mapping from the CIELab data mapping relationship to the RGB data mapping relationship.
本公开实施例能够推动印刷数字化工作流程、自动化和智能化。本公 开实施例对用户操作的要求门槛低,操作流程简单,智能化体现在:1)一 键式完成,系统自动提供推荐的结果,由用户选择中意的结果;2)向导式 操作,系统提示引导操作者逐步完成预期印刷的效果预览,体现个性化调 整;3)工序集成度高,输入RGB图像,输出满足预印刷条件要求的结果图。Embodiments of the present disclosure can promote printing digital workflow, automation and intelligence. The embodiment of the present disclosure has a low threshold for user operation, simple operation process, and intelligence is reflected in: 1) One-click completion, the system automatically provides recommended results, and the user selects the desired result; 2) Guided operation, system prompts Guide the operator to complete the expected printing effect preview step by step, reflecting personalized adjustments; 3) The process is highly integrated, input RGB images, and output results that meet the requirements of pre-printing conditions.
本公开的第二实施例提供一种RGB图像数据的映射方法,其包括上述 第一实施例中的上述步骤S101-S103,具体地,还包括以下步骤:The second embodiment of the present disclosure provides a method for mapping RGB image data, which includes the above-mentioned steps S101-S103 in the above-mentioned first embodiment, and specifically, further includes the following steps:
S104,基于输出图像与所述预定图像的色差,调整所述RGB数据映射 关系。S104. Adjust the RGB data mapping relationship based on the color difference between the output image and the predetermined image.
在所述预定图像的基础上,通过上述步骤S103确定的所述RGB数据 映射关系能够获取输出图像,在本步骤中,进一步地在所述预定图像和所 述输出图像之间进行比较以相应地调整所述RGB数据映射关系,以使得所 述输出图像满足预定的输出参数值的要求以及色差等条件的要求。具体地, 所述基于输出图像与所述预定图像的色差,调整所述RGB数据映射关系包 括以下步骤:On the basis of the predetermined image, the RGB data mapping relationship determined by the above step S103 can obtain an output image, and in this step, further compare between the predetermined image and the output image to correspondingly The RGB data mapping relationship is adjusted so that the output image meets the requirements of predetermined output parameter values and conditions such as color difference. Specifically, the adjustment of the RGB data mapping relationship based on the color difference between the output image and the predetermined image includes the following steps:
S401,基于所述预定图像和所述RGB映射关系获取输出图像。S401. Acquire an output image based on the predetermined image and the RGB mapping relationship.
在本步骤中,首先基于所述预定图像和所述RGB数据映射关系,获取 所述输出图像,所述输出图像是符合输出参数值的图像;优选地,在获取 输出图像之后,可以在系统用户界面中并列显示输入图像以及所属输入图 像的映射结果即输出图像,以便于用户比较,同时输出图像转换后的阶调 压缩比。In this step, first, based on the predetermined image and the RGB data mapping relationship, the output image is obtained, and the output image is an image conforming to the output parameter value; preferably, after the output image is obtained, the system user can The input image and the mapping result of the corresponding input image, that is, the output image, are displayed side by side in the interface, so as to facilitate user comparison, and the tone compression ratio after image conversion is output at the same time.
S402,基于输出参数值在预定色块中确定阶调样本点的样本CIELAB值。S402. Determine a sample CIELAB value of a tone sample point in a predetermined color block based on the output parameter value.
在通过上述步骤S301获取输出图像后,在本步骤中,基于输出参数值 在预定色块中确定阶调样本点的样本CIELAB值,具体地,After obtaining the output image through the above step S301, in this step, determine the sample CIELAB value of the tone sample point in the predetermined color block based on the output parameter value, specifically,
首先需要确定预定色块,例如可以依据ISO 16760,可从嵌入所述预 定图像的色彩特性文件ICC中提取由0/255、52/255、94/255、143/255、 197/255、255/255所有组合的RGB色块作为预定色块。进一步地,例如可 以依据色彩特性文件ICC在所述输出图像中提取高光样本点、中间调样本 点以及亮暗点样本点的CIELab值,这里的高光样本点可以是CMYK值为(5%, 3%,3%,0)的样本点,中间调样本点可以是CMYK值为(50%,41%, 39%,0)的样本点,亮暗调样本点可以是CMYK值为(65%,53%,51%, 95%)的样本点。First of all, it is necessary to determine the predetermined color block. For example, according to ISO 16760, it can be extracted from the color characteristic file ICC embedded in the predetermined image. 255 all combined RGB color blocks are used as predetermined color blocks. Further, for example, the CIELab values of highlight sample points, midtone sample points, and bright and dark sample points can be extracted from the output image according to the color characteristic file ICC, where the highlight sample points can have a CMYK value of (5%, 3 %, 3%, 0), the middle tone sample point can be a sample point with a CMYK value of (50%, 41%, 39%, 0), and the light and dark tone sample point can be a CMYK value of (65%, 53%, 51%, 95%) sample points.
S403,基于所述样本CIELab值在所述输出图像中确定比较样本点。S403. Determine a comparison sample point in the output image based on the sample CIELab value.
在通过上述步骤确定阶调样本点的样本CIELab值后,在本步骤中,以 上述阶调样本点的样本CIELab值为目标值,提取所述输出图像的中性灰曲 线,并标记所述中性灰曲线上与上述三个目标值最接近的点作为比较样本 点。After the sample CIELab value of the tone sample point is determined through the above steps, in this step, the neutral gray curve of the output image is extracted with the target value of the sample CIELab value of the tone sample point, and the center is marked The point on the gray curve that is closest to the above three target values is used as a comparison sample point.
S404,基于所述样本CIELab值和所述比较样本点的比较CIELab值获 取色差。S404. Acquire color difference based on the sample CIELab value and the comparison CIELab value of the comparison sample point.
在本步骤中,在获取所述样本CIELab值和所述比较样本点后,基于所 述样本CIELab值和所述比较样本点的比较CIELab值计算色差,以判断所 述输出图像的灰平衡调整的效果。在这里,所谓的色差以最大色差或平均 色差等作为评价指标,以评价图像转换前后的效果。In this step, after obtaining the sample CIELab value and the comparison sample point, the color difference is calculated based on the sample CIELab value and the comparison CIELab value of the comparison sample point to determine the adjustment of the gray balance of the output image Effect. Here, the so-called color difference takes the maximum color difference or average color difference as the evaluation index to evaluate the effect before and after image conversion.
S405,基于所述色差调整所述RGB数据映射关系。S405. Adjust the RGB data mapping relationship based on the color difference.
在步骤S304获取色差后,在本步骤中通过判断和评价色差以判断所述 RGB数据映射关系是否合适,例如当平均色差满足ΔE00≤4或者最大色差 满足ΔEab≤6的情况下,可认为达到满意的效果,则确定不需要调整所述 RGB数据映射关系,当然,当平均色差或者最大色差不满足上述情况下, 则确定需要调整所述RGB数据映射关系。After obtaining the color difference in step S304, judge and evaluate the color difference in this step to judge whether the RGB data mapping relationship is appropriate, for example, when the average color difference satisfies ΔE00≤4 or the maximum color difference satisfies ΔEab≤6, it can be considered satisfactory effect, it is determined that the RGB data mapping relationship does not need to be adjusted. Of course, when the average color difference or the maximum color difference does not meet the above conditions, it is determined that the RGB data mapping relationship needs to be adjusted.
本公开实施例能够推动印刷数字化工作流程、自动化和智能化。本公 开实施例对用户操作的要求门槛低,操作流程简单,智能化体现在:1)一 键式完成,系统自动提供推荐的结果,由用户选择中意的结果;2)向导式 操作,系统提示引导操作者逐步完成预期印刷的效果预览,体现个性化调 整;3)工序集成度高,输入RGB图像,输出满足预印刷条件要求的结果图。Embodiments of the present disclosure can promote printing digital workflow, automation and intelligence. The embodiment of the present disclosure has a low threshold for user operation, simple operation process, and intelligence is reflected in: 1) One-click completion, the system automatically provides recommended results, and the user selects the desired result; 2) Guided operation, system prompts Guide the operator to complete the expected printing effect preview step by step, reflecting personalized adjustments; 3) The process is highly integrated, input RGB images, and output results that meet the requirements of pre-printing conditions.
本公开的第三实施例提供一种RGB图像数据的映射装置,通过本公开 实施例的所述映射装置能够实现在输入具有RGB数据的预定图像的情况下, 输出符合预定条件或者标准的用于打印或者印刷的图像,以保证输出图像 的色差在预定范围内,如图2所示,所述映射装置包括第一获取模块10、 确定模块20以及第二获取模块30,上述模块之间相互耦合,具体地:The third embodiment of the present disclosure provides a mapping device for RGB image data. Through the mapping device of the embodiment of the present disclosure, when a predetermined image with RGB data is input, the output image for Printed or printed images, to ensure that the color difference of the output image is within a predetermined range, as shown in Figure 2, the mapping device includes a first acquisition module 10, a determination module 20 and a second acquisition module 30, which are coupled to each other ,specifically:
所述第一获取模块10,其用于基于预定图像的RGB数据,获取图像直 方图。The first acquiring module 10 is configured to acquire an image histogram based on RGB data of a predetermined image.
通过所述第一获取模块10,基于输入的预定图像获取所述预定图像的 RGB数据,基于所述预定图像的RGB数据,获取图像直方图。Through the first obtaining module 10, the RGB data of the predetermined image is obtained based on the input predetermined image, and the image histogram is obtained based on the RGB data of the predetermined image.
这里的所述预定图像的RGB数据是指所述预定图像中每个元素点的颜 色信息,所述颜色信息通过RGB数据的形式表示。这里的所述图像直方图 (Image Histogram)广泛运用于计算机的视觉处理中,一般通过标记显著 的边缘和颜色的统计变化获取颜色变化信息,简单来说,所述图像直方图 是用以表示数字图像中亮度分布的数据分布的统计图,统计图像中每个亮 度值的像素数,因此,这里的所述图像直方图就是对颜色数据进行统计的方式,将统计值赋予到一系列实现定义的bin当中,这里的bin在图像直 方图中被认为是“直条”或“组距”,其数值是从数据中计算出的特征 统计量,这些数据可以是诸如梯度、方向、色彩或任何其他特征。进一步 地,所述基于预定图像的RGB数据,获取图像直方图,所述第一获取模块 10包括以下部分:The RGB data of the predetermined image here refers to the color information of each element point in the predetermined image, and the color information is expressed in the form of RGB data. The image histogram (Image Histogram) here is widely used in the visual processing of computers, and generally obtains color change information by marking significant edges and statistical changes of colors. In simple terms, the image histogram is used to represent numbers The statistical diagram of the data distribution of the brightness distribution in the image counts the number of pixels of each brightness value in the image. Therefore, the image histogram here is the way to count the color data, and the statistical value is assigned to a series of implementation-defined Among the bins, the bins here are considered as "bars" or "group distances" in the image histogram, and their values are characteristic statistics calculated from the data. These data can be such as gradient, direction, color or any other feature. Further, the RGB data based on the predetermined image obtains an image histogram, and the first acquisition module 10 includes the following parts:
第一获取单元,其用于获取预定图像。The first acquisition unit is used to acquire a predetermined image.
通过所述第一获取单元,首先需要获取输入的预定图像,这里的所述 预定图像是通过用户输入需要进行打印、印刷等后续处理的预定图像,这 里的所述预定图像可以是通过移动终端、数码相机、扫描仪等电子设备获 取并通过RGB数据的形式进行存储和展示的图像。Through the first acquisition unit, it is first necessary to acquire the input predetermined image, where the predetermined image is a predetermined image that needs to be printed, printed and other subsequent processing through user input, and the predetermined image here can be obtained through a mobile terminal, Digital cameras, scanners and other electronic devices acquire and store and display images in the form of RGB data.
第二获取单元,其用于基于所述预定图像的RGB数据,获取CIELab数 据;A second acquisition unit, which is used to acquire CIELab data based on the RGB data of the predetermined image;
通过所述第一获取单元获取的预定图像,所述预定图像中的RGB数据 可以基于所述预定图像解析获取,通过所述第二获取单元可以基于所述预 定图像的RGB数据,获取CIELab数据。需要说明的是,CIELab是国际照 明委员会(CIE)的一个颜色系统,属于表色体系,Lab模式或者Lab颜色 空间是由国际照明委员会于1976年公布的一种色彩模式,是国际照明委员 会确定的理论上包括人眼可见的所有色彩的色彩模式,Lab模式弥补了RGB 与CMYK两种彩色模式的不足。Lab模式是由三个通道组成,第一个通道是 明度,即“L”,此外,a通道的颜色是从红色到深绿,b通道则是从蓝色 到黄色。在现有的色彩模式中,在表达色彩范围上,最全的是Lab模式, 其次是RGB模式,最窄的是CMYK模式。也就是说Lab模式所定义的色彩最 多,Lab模式用作传递中介,以保持所有颜色的外观一致,并且在不同设 备之间传输颜色时,颜色不会更改且与光线及设备无关,并且处理速度与 RGB模式同样快,比CMYK模式快数倍。Through the predetermined image acquired by the first acquisition unit, the RGB data in the predetermined image can be analyzed and obtained based on the predetermined image, and the CIELab data can be obtained based on the RGB data of the predetermined image by the second acquisition unit. It should be noted that CIELab is a color system of the International Commission on Illumination (CIE), which belongs to the color expression system. The Lab mode or Lab color space is a color model announced by the International Commission on Illumination in 1976 and is determined by the International Commission on Illumination. Theoretically, the color mode includes all colors visible to the human eye, and the Lab mode makes up for the shortcomings of the RGB and CMYK color modes. Lab mode is composed of three channels, the first channel is lightness, which is "L", in addition, the color of channel a is from red to dark green, and channel b is from blue to yellow. Among the existing color modes, the Lab mode is the most complete in expressing the color range, followed by the RGB mode, and the narrowest is the CMYK mode. That is to say, the Lab mode defines the most colors, and the Lab mode is used as a transfer medium to keep the appearance of all colors consistent, and when transferring colors between different devices, the colors will not change and have nothing to do with light and devices, and the processing speed As fast as RGB mode, several times faster than CMYK mode.
通过所述第二获取单元,因为不同印刷前电子设备的制造商,对于RGB 或CMYK色彩的定义不同,使得相同的RGB或CMYK图像数据,在不同的系 统、电子设备上呈现不一样的色彩,因此,使用ICC文件,作为不同设备 之间色彩转换的依据、标准,使得色彩能一致地表现在不同的电子设备上。 在一个实施方式中,在将所述预定图像从RGB数据转换为CIELab数据的过 程中,例如可以通过色彩特性文件ICC实现,色彩特性ICC文件将所有与 设备有关的颜色数据(例如RGB和CMYK数据)映射到与设备无关的Lab色 彩模式中。Through the second acquisition unit, because different manufacturers of pre-printing electronic equipment have different definitions of RGB or CMYK colors, the same RGB or CMYK image data will present different colors on different systems and electronic equipment, Therefore, ICC files are used as the basis and standard for color conversion between different devices, so that colors can be consistently displayed on different electronic devices. In one embodiment, in the process of converting the predetermined image from RGB data to CIELab data, for example, it can be realized through the color characteristic file ICC, and the color characteristic ICC file combines all the color data related to the device (such as RGB and CMYK data ) is mapped to the device-independent Lab color model.
具体地,考虑到一般电子设备都会预先安装色彩特性ICC文件,通过 读取输入的所述预定图像的数据,可以通过获取所述预定图像的头文件信 息以判断所述预定图像是否嵌入色彩特性ICC文件;如果所述预定图像的 头文件信息中嵌入色彩特性ICC文件,则可以执行色彩特性ICC文件中“RGB -CIELAB”的转换以获取所述预定图像的所述RGB数据在Lab模式下的数据 即CIELab数据;如果所述预定图像的头文件信息中没有嵌入ICC文件,则可以在通过安装色彩特性ICC文件的形式实现转换。Specifically, considering that general electronic devices will pre-install the color characteristic ICC file, by reading the input data of the predetermined image, it is possible to determine whether the predetermined image is embedded with the color characteristic ICC by obtaining the header file information of the predetermined image. file; if the color characteristic ICC file is embedded in the header file information of the predetermined image, the conversion of "RGB-CIELAB" in the color characteristic ICC file can be performed to obtain the data of the RGB data of the predetermined image in Lab mode That is, CIELab data; if there is no ICC file embedded in the header file information of the predetermined image, the conversion can be realized in the form of installing a color characteristic ICC file.
绘制单元,其用于基于所述CIELAB数据,绘制图像直方图A drawing unit for drawing an image histogram based on the CIELAB data
在通过所述第二获取单元获取所述预定图像的CIELab数据后,通过所 述绘制单元,通过所述预定图像的RGB数据和通过所述第二获取单元获取 的CIELAB数据,绘制图像直方图。这里,基于Lab模式下的CIELab数据 绘制图像直方图的方式可以采用现有的任意方式,本公开在此不再赘述。After obtaining the CIELab data of the predetermined image by the second obtaining unit, draw an image histogram by the RGB data of the predetermined image and the CIELab data obtained by the second obtaining unit by the drawing unit. Here, the method of drawing the image histogram based on the CIELab data in the Lab mode can adopt any existing method, and the present disclosure will not repeat them here.
确定模块20,其用于基于所述图像直方图和输出参数值,确定CIELab 数据映射关系。A determining module 20, configured to determine the CIELab data mapping relationship based on the image histogram and output parameter values.
通过所述第一获取模块10基于所述预定图像的RGB数据获取图像直方 图后,通过确定模块20基于所述图像直方图和输出参数值,确定CIELab 数值的映射关系。通过确定模块20,所述图像直方图代表输入图像即预定 图像的CIELAB数据的情况,通过输出参数值代表输出图像的CIELab值, 基于这两个CIELab值确定输入图像和输出图像之间的CIELab数值的映射 关系。所述基于所述图像直方图和输出参数值,确定CIELAB映射关系,所 述确定模块20具体包括以下部分:After the image histogram is obtained based on the RGB data of the predetermined image by the first acquisition module 10, the mapping relationship of the CIELab value is determined by the determination module 20 based on the image histogram and the output parameter value. Through the determination module 20, the image histogram represents the situation of the CIELab data of the input image, that is, the predetermined image, and the CIELab value of the output image is represented by the output parameter value, and the CIELab value between the input image and the output image is determined based on these two CIELab values mapping relationship. Described based on described image histogram and output parameter value, determine CIELAB mapping relationship, described determination module 20 specifically comprises the following parts:
第三获取单元,其用于基于所述图像直方图获取所述预定图像的第一 阶调范围。A third acquiring unit, configured to acquire the first tone range of the predetermined image based on the image histogram.
基于所述第一获取模块10获取所述图像直方图后,通过第三获取单元, 从所述图像直方图中提取所述图像直方图中最亮和最暗的像素点的CIELab 值,同时存储最亮的像素点的RGB数值和对应的CIELAB值。After the image histogram is obtained based on the first acquisition module 10, the CIELab values of the brightest and darkest pixels in the image histogram are extracted from the image histogram by the third acquisition unit, and stored simultaneously The RGB value of the brightest pixel and the corresponding CIELAB value.
进一步地,依据最亮和最暗的像素点的RGB数据和CIELab值,遍历所 述预定图像的数据,在所述图像直方图中标记出最亮和最暗的像素点的所 在区域,通过智能识别图像黑白场的方式,例如将3×3或者5×5的连续 区域分别确定为图像白场或者图像黑场,从而计算每个区域的平均亮度值, 这里的亮度值以CIELab值的格式记录,从而确定所述预定图像的第一阶调 范围,阶调范围中的阶调是在图像信息还原中,一个亮度均匀的面积的光学表现,阶调值是阶调的量度,在印刷技术中通常用光的透射或反射的程 度来表示。Further, according to the RGB data and CIELab values of the brightest and darkest pixels, traverse the data of the predetermined image, mark the areas where the brightest and darkest pixels are located in the image histogram, and use intelligent The way to identify the black and white field of the image, for example, determine the continuous area of 3×3 or 5×5 as the image white field or the image black field respectively, so as to calculate the average brightness value of each area, where the brightness value is recorded in the format of CIELab value , so as to determine the first tone range of the predetermined image, the tone in the tone range is the optical performance of an area with uniform brightness in image information restoration, and the tone value is the measure of tone, in printing technology It is usually expressed by the degree of transmission or reflection of light.
第四获取单元,其用于基于输出参数值,获取输出图像的第二阶调范 围。A fourth acquiring unit, configured to acquire the second tone range of the output image based on the output parameter value.
在通过所述第三获取单元获取所述预定图像的第一阶调范围,通过所 述第四获取单元还需要基于确定和设置用于打印或者印刷的图像数据的输 出参数值以获取输出图像的第二阶调范围,这里的输出参数值可以基于用 户对于输出图像的目的确定,例如:用于办公打印/用于印刷/用于网络传 输等,通过输出目的确定和设置输出参数值,这里的输出参数值例如记录 在色彩特性ICC文件中。基于例如色彩特性ICC文件的输出参数值,提取并获取输出图像的第二阶调范围,以CIELab值的格式记录。When the first tone range of the predetermined image is acquired by the third acquisition unit, the fourth acquisition unit also needs to obtain the output image based on the determination and setting of the output parameter value of the image data for printing or printing. In the second tone range, the output parameter value here can be determined based on the purpose of the user for outputting the image, for example: for office printing/for printing/for network transmission, etc., determine and set the output parameter value through the output purpose, here Output parameter values are recorded, for example, in a color characteristic ICC file. Based on, for example, the output parameter value of the color characteristic ICC file, the second tone range of the output image is extracted and obtained, and recorded in the format of CIELab value.
第一确定单元,其用于基于所述第一阶调范围和所述第二阶调范围, 确定CIELab数据映射关系。A first determining unit, configured to determine a CIELab data mapping relationship based on the first tone range and the second tone range.
通过所述第三获取单元获取所述预定图像的第一阶调范围以及通过所 述第四获取单元获取所述输出图像的第二阶调范围后,通过第一确定单元 基于所述第一阶调范围和所述第二阶调范围确定从所述预定图像到输出图 像的阶调压缩比,基于所述阶调压缩比确定CIELab数据映射关系。After the first tone range of the predetermined image is acquired by the third acquisition unit and the second tone range of the output image is acquired by the fourth acquisition unit, the first determination unit based on the first tone The tone range and the second tone range determine a tone compression ratio from the predetermined image to an output image, and a CIELab data mapping relationship is determined based on the tone compression ratio.
第二获取模块30,其用于基于所述CIELAB数据映射关系,获取所述 预定图像转换至输出图像的RGB数据映射关系。The second acquiring module 30 is used for obtaining the RGB data mapping relationship of converting the predetermined image to an output image based on the CIELAB data mapping relationship.
通过所述确定模块20确定CIELab数据映射关系后,通过第二获取模 块30基于所述CIELAB数据映射关系,获取所述预定图像转换至输出图像 的RGB数据映射关系,例如可以通过色彩特性文件ICC实现,调用嵌入到 所述预定图像中的色彩特性ICC文件中CIELab至RGB的图像数据逆运算, 完成所述CIELab数据映射关系到所述RGB数据映射关系的映射。After the CIELab data mapping relationship is determined by the determining module 20, the RGB data mapping relationship of converting the predetermined image to the output image is obtained by the second acquisition module 30 based on the CIELAB data mapping relationship, for example, it can be realized by a color characteristic file ICC Invoking the image data inverse operation from CIELab to RGB in the color characteristic ICC file embedded in the predetermined image to complete the mapping from the CIELab data mapping relationship to the RGB data mapping relationship.
本公开实施例能够推动印刷数字化工作流程、自动化和智能化。本公 开实施例对用户操作的要求门槛低,操作流程简单,智能化体现在:1)一 键式完成,系统自动提供推荐的结果,由用户选择中意的结果;2)向导式 操作,系统提示引导操作者逐步完成预期印刷的效果预览,体现个性化调 整;3)工序集成度高,输入RGB图像,输出满足预印刷条件要求的结果图。Embodiments of the present disclosure can promote printing digital workflow, automation and intelligence. The embodiment of the present disclosure has a low threshold for user operation, simple operation process, and intelligence is reflected in: 1) One-click completion, the system automatically provides recommended results, and the user selects the desired result; 2) Guided operation, system prompts Guide the operator to complete the expected printing effect preview step by step, reflecting personalized adjustments; 3) The process is highly integrated, input RGB images, and output results that meet the requirements of pre-printing conditions.
本公开的第四实施例提供一种RGB图像数据的映射装置,其包括上述 第三实施例中的所述第一获取模块10、确定模块20以及第二获取模块30, 具体地,还包括以下部分:The fourth embodiment of the present disclosure provides a mapping device for RGB image data, which includes the first acquisition module 10, the determination module 20, and the second acquisition module 30 in the above third embodiment, specifically, it also includes the following part:
调整模块,其用于基于输出图像与所述预定图像的色差,调整所述RGB 数据映射关系。An adjustment module, configured to adjust the RGB data mapping relationship based on the color difference between the output image and the predetermined image.
在所述预定图像的基础上,通过所述第二获取模块30获取的所述RGB 数据映射关系能够获取输出图像,通过调整模块可以进一步地在所述预定 图像和所述输出图像之间进行比较以相应地调整所述RGB数据映射关系, 以使得所述输出图像满足预定的输出参数值的要求以及色差等条件的要 求。具体地,所述基于输出图像与所述预定图像的色差,所述调整模块包 括以下部分:On the basis of the predetermined image, the RGB data mapping relationship obtained by the second obtaining module 30 can obtain an output image, and the adjustment module can further compare between the predetermined image and the output image The RGB data mapping relationship is adjusted accordingly, so that the output image meets the requirements of predetermined output parameter values, color difference and other conditions. Specifically, based on the color difference between the output image and the predetermined image, the adjustment module includes the following parts:
第五获取单元,其用于基于所述预定图像和所述RGB映射关系获取输 出图像。A fifth acquiring unit, configured to acquire an output image based on the predetermined image and the RGB mapping relationship.
通过所述第五获取单元首先基于所述预定图像和所述RGB数据映射关 系,获取所述输出图像,所述输出图像是符合输出参数值的图像;优选地, 在获取输出图像之后,可以在系统用户界面中并列显示输入图像以及所属 输入图像的映射结果即输出图像,以便于用户比较,同时输出图像转换后 的阶调压缩比。The fifth acquisition unit first acquires the output image based on the predetermined image and the RGB data mapping relationship, and the output image is an image conforming to the output parameter value; preferably, after the output image is acquired, it can be In the user interface of the system, the input image and the mapping result of the corresponding input image, that is, the output image, are displayed side by side to facilitate user comparison, and the tone compression ratio after image conversion is output at the same time.
第二确定单元,其用于基于输出参数值在预定色块中确定阶调样本点 的样本CIELAB值。The second determination unit is used to determine the sample CIELAB value of the tone sample point in the predetermined color block based on the output parameter value.
在通过所述第五获取单元获取输出图像后,通过第二确定单元基于输 出参数值在预定色块中确定阶调样本点的样本CIELAB值,具体地,After the output image is acquired by the fifth acquisition unit, the sample CIELAB value of the tone sample point is determined in the predetermined color block by the second determination unit based on the output parameter value, specifically,
首先需要确定预定色块,例如可以依据ISO 16760,可从嵌入所述预 定图像的色彩特性文件ICC中提取由0/255、52/255、94/255、143/255、 197/255、255/255所有组合的RGB色块作为预定色块。进一步地,例如可 以依据色彩特性文件ICC在所述输出图像中提取高光样本点、中间调样本 点以及亮暗点样本点的CIELab值,这里的高光样本点可以是CMYK值为(5%, 3%,3%,0)的样本点,中间调样本点可以是CMYK值为(50%,41%, 39%,0)的样本点,亮暗调样本点可以是CMYK值为(65%,53%,51%, 95%)的样本点。First of all, it is necessary to determine the predetermined color block. For example, according to ISO 16760, it can be extracted from the color characteristic file ICC embedded in the predetermined image. 255 all combined RGB color blocks are used as predetermined color blocks. Further, for example, the CIELab values of highlight sample points, midtone sample points, and bright and dark sample points can be extracted from the output image according to the color characteristic file ICC, where the highlight sample points can have a CMYK value of (5%, 3 %, 3%, 0), the middle tone sample point can be a sample point with a CMYK value of (50%, 41%, 39%, 0), and the light and dark tone sample point can be a CMYK value of (65%, 53%, 51%, 95%) sample points.
第三确定单元,其用于基于所述样本CIELab值在所述输出图像中确定 比较样本点。A third determining unit, configured to determine a comparison sample point in the output image based on the sample CIELab value.
在通过所述第二确定单元确定阶调样本点的样本CIELab值后,通过第 三确定单元,以上述阶调样本点的样本CIELab值为目标值,提取所述输出 图像的中性灰曲线,并标记所述中性灰曲线上与上述三个目标值最接近的 点作为比较样本点。After the sample CIELab value of the tone sample point is determined by the second determination unit, the neutral gray curve of the output image is extracted by the third determination unit with the target value of the sample CIELab value of the tone sample point, And mark the points closest to the above three target values on the neutral gray curve as comparison sample points.
第六获取单元,其用于基于所述样本CIELab值和所述比较样本点的比 较CIELab值获取色差。A sixth acquisition unit, configured to acquire a color difference based on the sample CIELab value and the comparison CIELab value of the comparison sample point.
通过第六获取单元,在获取所述样本CIELab值和所述比较样本点后, 基于所述样本CIELab值和所述比较样本点的比较CIELab值计算色差,以 判断所述输出图像的灰平衡调整的效果。在这里,所谓的色差以最大色差 或平均色差等作为评价指标,以评价图像转换前后的效果。Through the sixth acquisition unit, after acquiring the sample CIELab value and the comparison sample point, calculate the color difference based on the sample CIELab value and the comparison CIELab value of the comparison sample point, to determine the gray balance adjustment of the output image Effect. Here, the so-called color difference takes the maximum color difference or average color difference as the evaluation index to evaluate the effect before and after image conversion.
调整单元,其用于基于所述色差调整所述RGB数据映射关系。An adjustment unit, configured to adjust the RGB data mapping relationship based on the color difference.
在通过所述第六获取单元获取色差后,通过调整单元通过判断和评价 色差以判断所述RGB数据映射关系是否合适,例如当平均色差满足ΔE00 ≤4或者最大色差满足ΔEab≤6的情况下,可认为达到满意的效果,则确 定不需要调整所述RGB数据映射关系,当然,当平均色差或者最大色差不 满足上述情况下,则确定需要调整所述RGB数据映射关系。After the color difference is obtained by the sixth acquisition unit, the adjustment unit judges and evaluates the color difference to determine whether the RGB data mapping relationship is appropriate, for example, when the average color difference satisfies ΔE00≤4 or the maximum color difference satisfies ΔEab≤6, It can be considered that a satisfactory effect is achieved, and it is determined that the RGB data mapping relationship does not need to be adjusted. Of course, when the average color difference or the maximum color difference does not meet the above conditions, it is determined that the RGB data mapping relationship needs to be adjusted.
本公开实施例能够推动印刷数字化工作流程、自动化和智能化。本公 开实施例对用户操作的要求门槛低,操作流程简单,智能化体现在:1)一 键式完成,系统自动提供推荐的结果,由用户选择中意的结果;2)向导式 操作,系统提示引导操作者逐步完成预期印刷的效果预览,体现个性化调 整;3)工序集成度高,输入RGB图像,输出满足预印刷条件要求的结果图。Embodiments of the present disclosure can promote printing digital workflow, automation and intelligence. The embodiment of the present disclosure has a low threshold for user operation, simple operation process, and intelligence is reflected in: 1) One-click completion, the system automatically provides recommended results, and the user selects the desired result; 2) Guided operation, system prompts Guide the operator to complete the expected printing effect preview step by step, reflecting personalized adjustments; 3) The process is highly integrated, input RGB images, and output results that meet the requirements of pre-printing conditions.
本公开的第五实施例提供了一种存储介质,该存储介质为计算机可读 介质,存储有计算机程序,该计算机程序被处理器执行时实现本公开第一 实施例和第三实施例提供的方法,包括如下步骤S11至S13:The fifth embodiment of the present disclosure provides a storage medium, which is a computer-readable medium and stores a computer program, and when the computer program is executed by a processor, it realizes the functions provided by the first embodiment and the third embodiment of the present disclosure. The method comprises the following steps S11 to S13:
S11,基于预定图像的RGB数据,获取图像直方图;S11. Obtain an image histogram based on the RGB data of the predetermined image;
S12,基于所述图像直方图和输出参数值,确定CIELab数据映射关系;S12, based on the image histogram and the output parameter value, determine the CIELab data mapping relationship;
S13,基于所述CIELab数据映射关系,获取所述预定图像转换至输出 图像的RGB数据映射关系。S13. Based on the CIELab data mapping relationship, obtain the RGB data mapping relationship for converting the predetermined image to an output image.
进一步地,该计算机程序被处理器执行时实现本公开第一实施例和第 三实施例提供的其他方法Further, when the computer program is executed by the processor, other methods provided by the first embodiment and the third embodiment of the present disclosure are realized
本公开实施例能够推动印刷数字化工作流程、自动化和智能化。本公 开实施例对用户操作的要求门槛低,操作流程简单,智能化体现在:1)一 键式完成,系统自动提供推荐的结果,由用户选择中意的结果;2)向导式 操作,系统提示引导操作者逐步完成预期印刷的效果预览,体现个性化调 整;3)工序集成度高,输入RGB图像,输出满足预印刷条件要求的结果图。Embodiments of the present disclosure can promote printing digital workflow, automation and intelligence. The embodiment of the present disclosure has a low threshold for user operation, simple operation process, and intelligence is reflected in: 1) One-click completion, the system automatically provides recommended results, and the user selects the desired result; 2) Guided operation, system prompts Guide the operator to complete the expected printing effect preview step by step, reflecting personalized adjustments; 3) The process is highly integrated, input RGB images, and output results that meet the requirements of pre-printing conditions.
本公开的第六实施例提供了一种电子设备,该电子设备的结构示意图 可以如图3所示,至少包括存储器901和处理器902,存储器901上存储 有计算机程序,处理器902在执行存储器901上的计算机程序时实现本公 开任意实施例提供的方法。示例性的,电子设备计算机程序步骤如下S21 至S23:The sixth embodiment of the present disclosure provides an electronic device. The schematic structural diagram of the electronic device can be shown in FIG. The computer program on 901 implements the method provided by any embodiment of the present disclosure. Exemplarily, the computer program steps of the electronic device are as follows S21 to S23:
S21,基于预定图像的RGB数据,获取图像直方图;S21. Obtain an image histogram based on the RGB data of the predetermined image;
S22,基于所述图像直方图和输出参数值,确定CIELab数据映射关系;S22, based on the image histogram and the output parameter value, determine the CIELab data mapping relationship;
S23,基于所述CIELab数据映射关系,获取所述预定图像转换至输出 图像的RGB数据映射关系。S23. Based on the CIELab data mapping relationship, obtain the RGB data mapping relationship for converting the predetermined image to an output image.
进一步地,处理器902还执行上述第一实施例和第二实施例中的计算 机程序Further, the
本公开实施例能够推动印刷数字化工作流程、自动化和智能化。本公 开实施例对用户操作的要求门槛低,操作流程简单,智能化体现在:1)一 键式完成,系统自动提供推荐的结果,由用户选择中意的结果;2)向导式 操作,系统提示引导操作者逐步完成预期印刷的效果预览,体现个性化调 整;3)工序集成度高,输入RGB图像,输出满足预印刷条件要求的结果图。Embodiments of the present disclosure can promote printing digital workflow, automation and intelligence. The embodiment of the present disclosure has a low threshold for user operation, simple operation process, and intelligence is reflected in: 1) One-click completion, the system automatically provides recommended results, and the user selects the desired result; 2) Guided operation, system prompts Guide the operator to complete the expected printing effect preview step by step, reflecting personalized adjustments; 3) The process is highly integrated, input RGB images, and output results that meet the requirements of pre-printing conditions.
上述存储介质可以是上述电子设备中所包含的;也可以是单独存在, 而未装配入该电子设备中。The above-mentioned storage medium may be included in the above-mentioned electronic device, or may exist independently without being assembled into the electronic device.
上述存储介质承载有一个或者多个程序,当上述一个或者多个程序被 该电子设备执行时,使得该电子设备:获取至少两个网际协议地址;向节 点评价设备发送包括至少两个网际协议地址的节点评价请求,其中,节点 评价设备从至少两个网际协议地址中,选取网际协议地址并返回;接收节 点评价设备返回的网际协议地址;其中,所获取的网际协议地址指示内容 分发网络中的边缘节点。The above-mentioned storage medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: acquires at least two Internet Protocol addresses; sends a message including at least two Internet Protocol addresses to the node evaluation device The node evaluation request, wherein, the node evaluation device selects an IP address from at least two IP addresses and returns it; receives the IP address returned by the node evaluation device; wherein, the obtained IP address indicates the IP address in the content distribution network edge nodes.
或者,上述存储介质承载有一个或者多个程序,当上述一个或者多个 程序被该电子设备执行时,使得该电子设备:接收包括至少两个网际协议 地址的节点评价请求;从至少两个网际协议地址中,选取网际协议地址; 返回选取出的网际协议地址;其中,接收到的网际协议地址指示内容分发 网络中的边缘节点。Alternatively, the above-mentioned storage medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: receives a node evaluation request including at least two Internet protocol addresses; In the protocol address, select an IP address; and return the selected IP address; wherein, the received IP address indicates an edge node in the content distribution network.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操 作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设 计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言— 诸如“C”语言或类似的程序设计语言。程序代码可以完全地在乘客计算机上 执行、部分地在乘客计算机上执行、作为一个独立的软件包执行、部分在 乘客计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器 上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到乘客计算机,或者,可以 连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, or combinations thereof, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages - such as "C" or similar programming languages. The program code may execute entirely on the passenger computer, partly on the passenger computer, as a stand-alone software package, partly on the passenger computer and partly on a remote computer, or entirely on the remote computer or server. Where a remote computer is involved, the remote computer may be connected to the passenger computer via any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via an Internet Service Provider). Internet connection).
需要说明的是,本公开上述的存储介质可以是计算机可读信号介质或 者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质 例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系 统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的 例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁 盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程 只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器 (CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在 本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质, 该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传 播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号 可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的 组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何存储 介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系 统、装置或者器件使用或者与其结合使用的程序。存储介质上包含的程序 代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频) 等等,或者上述的任意合适的组合。It should be noted that the storage medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, however, a computer-readable signal medium may include a data signal in baseband or propagated as part of a carrier wave carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any storage medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code contained on a storage medium may be transmitted by any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法 和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程 图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该 模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能 的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的 功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的 方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这 依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以 及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用 的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实 现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也 可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对 该单元本身的限定。The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. Among them, the name of the unit does not constitute a limitation on the unit itself under certain circumstances.
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来 执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现 场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、 片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), System on Chips (SOCs), Complex Programmable Logical device (CPLD) and so on.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含 或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设 备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读 储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电 磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组 合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、 可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘 只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何 合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, Random Access Memory (RAM), Read Only Memory (ROM), Erasable Programmable Read Only Memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本 领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术 特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的 情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方 案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特 征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present disclosure and an illustration of the applied technical principles. Those skilled in the art should understand that the disclosure scope involved in this disclosure is not limited to the technical solution formed by the specific combination of the above-mentioned technical features, but also covers the technical solutions formed by the above-mentioned technical features or Other technical solutions formed by any combination of equivalent features. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这 些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多 任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具 体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的 实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相 反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。In addition, while operations are depicted in a particular order, this should not be understood as requiring that these operations be performed in the particular order shown or performed in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while the above discussion contains several specific implementation details, these should not be construed as limitations on the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主 题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的 特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要 求书的示例形式。Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
以上对本公开多个实施例进行了详细说明,但本公开不限于这些具体 的实施例,本领域技术人员在本公开构思的基础上,能够做出多种变型和 修改实施例,这些变型和修改都应落入本公开所要求保护的范围。Multiple embodiments of the present disclosure have been described in detail above, but the present disclosure is not limited to these specific embodiments. Those skilled in the art can make various variations and modifications on the basis of the concept of the disclosure. These variations and modifications All should fall within the scope of protection claimed by the present disclosure.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011330608.2A CN112511717B (en) | 2020-11-24 | 2020-11-24 | Mapping method and device of RGB image data, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011330608.2A CN112511717B (en) | 2020-11-24 | 2020-11-24 | Mapping method and device of RGB image data, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112511717A CN112511717A (en) | 2021-03-16 |
CN112511717B true CN112511717B (en) | 2023-03-28 |
Family
ID=74958354
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011330608.2A Active CN112511717B (en) | 2020-11-24 | 2020-11-24 | Mapping method and device of RGB image data, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112511717B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004221635A (en) * | 2003-01-09 | 2004-08-05 | Seiko Epson Corp | Color conversion device, color conversion method, color conversion program, and print control device |
CN1928805A (en) * | 2005-09-06 | 2007-03-14 | 三星电子株式会社 | Image processing method and apparatus to print displayed image |
CN101093439A (en) * | 2006-06-21 | 2007-12-26 | 三星电子株式会社 | System and method of adjusting print data |
CN101252635A (en) * | 2007-02-22 | 2008-08-27 | 富士施乐株式会社 | Image processing apparatus and image processing method |
CN103353982A (en) * | 2013-05-15 | 2013-10-16 | 中山大学 | Method for tone mapping based on histogram equalization |
CN107395919A (en) * | 2017-07-06 | 2017-11-24 | 杭州电子科技大学 | A kind of method for realizing digital printing color correction by changing characteristic file |
-
2020
- 2020-11-24 CN CN202011330608.2A patent/CN112511717B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004221635A (en) * | 2003-01-09 | 2004-08-05 | Seiko Epson Corp | Color conversion device, color conversion method, color conversion program, and print control device |
CN1928805A (en) * | 2005-09-06 | 2007-03-14 | 三星电子株式会社 | Image processing method and apparatus to print displayed image |
CN101093439A (en) * | 2006-06-21 | 2007-12-26 | 三星电子株式会社 | System and method of adjusting print data |
CN101252635A (en) * | 2007-02-22 | 2008-08-27 | 富士施乐株式会社 | Image processing apparatus and image processing method |
CN103353982A (en) * | 2013-05-15 | 2013-10-16 | 中山大学 | Method for tone mapping based on histogram equalization |
CN107395919A (en) * | 2017-07-06 | 2017-11-24 | 杭州电子科技大学 | A kind of method for realizing digital printing color correction by changing characteristic file |
Non-Patent Citations (2)
Title |
---|
印刷色彩管理的色域映射技术;王海文等;《浙江科技学院学报》;20080315(第01期);全文 * |
彩色图像复制中的阶调调整;周海燕;《印刷工业》;20080925(第06期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN112511717A (en) | 2021-03-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7697167B2 (en) | Color processing method and apparatus | |
US8238689B2 (en) | Development server, development client, development system, and development method | |
EP2227898B1 (en) | Image sensor apparatus and method for scene illuminant estimation | |
JP2018007123A (en) | Image processing device, image processing method, and program | |
US20030184812A1 (en) | Image processing apparatus and method | |
JP2008271556A (en) | Image correction system and method | |
Giorgianni et al. | Color management for digital imaging systems | |
JP4677699B2 (en) | Image processing method, image processing device, photographing device evaluation method, image information storage method, and image processing system | |
US6507667B1 (en) | Color digital imaging apparatus having a rule-based hue-shift processor | |
JP2005354372A (en) | Apparatus and method for image recording device, method and system for image processing | |
EP1394741A2 (en) | Transformation of an image frequency characteristic depending on an image capturing device characteristic | |
JP2014515574A (en) | Method and apparatus for correcting color distortion in image forming system or image output system | |
US8655059B2 (en) | Method for image classification for copy path billing | |
CN112511717B (en) | Mapping method and device of RGB image data, storage medium and electronic equipment | |
KR100886339B1 (en) | Method and apparatus for classifying images based on attributes of images | |
CN1980400A (en) | Image capture apparatus and method, recording medium for memorizing program executing the method | |
JP2013225802A (en) | Digital camera, color conversion information generating program, color conversion program, and recording control program | |
US10038825B2 (en) | Image process apparatus for correcting a document based on correction parameter of another document and computer program therefor | |
US20040042025A1 (en) | Image processing method, image processing apparatus, image recording apparatus, program and recording medium | |
JP2005203865A (en) | Image processing system | |
US20020060798A1 (en) | Image processing apparatus, method and program enabling high-precision color conversion | |
JP3912196B2 (en) | Color conversion table creation device, color conversion table creation method, recording medium recording a color conversion table creation program, and profile creation device for creating a profile based on the color conversion table created by the above device or method | |
US8363267B2 (en) | Image forming apparatus and color converting method thereof | |
CN117176933B (en) | Image signal processing method and device, electronic equipment and storage medium | |
JP2015005835A (en) | Image processing device, image forming device, and recording medium |
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 |