Color gamut compression method and device based on partition mechanism and storage medium

By dividing a large color gamut image into four areas and using artificial neural network optimization, the problem of long color gamut compression processing time in the existing technology is solved, efficient color gamut compression is achieved, and memory requirements and visual loss are reduced.

CN118714237APending Publication Date: 2024-09-27HIGHWAY IND INTELLIGENCE TECH (WUXI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410874787.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The existing technology cannot shorten the processing time while ensuring the quality of the color gamut compression image. In particular, the pixel-to-pixel color gamut compression algorithm takes a short time but has low image quality, while the spatial color gamut compression algorithm takes too long.

Method used

Using a color gamut compression method based on a partitioning mechanism, the large color gamut image is converted into a LAB image and divided into four different areas. The iCID iterative color gamut compression optimization algorithm and artificial neural network are used for optimization. Artificial input is input through partition coding and composite coding. The neural network is trained to generate embeddable parameters for color gamut compression.

Benefits of technology

It greatly shortens the optimization time of color gamut compression, reduces visual loss and color distortion, reduces memory space requirements, and only needs to store the neural network parameters embedded in the original image for print image processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118714237A
    Figure CN118714237A
Patent Text Reader

Abstract

The invention relates to the technical field of image display, in particular to a color gamut compression method and device based on a partition mechanism and a storage medium. After an original image is converted into an LAB image, the LAB image is segmented into four different areas according to color gamut and brightness by using a partition encoder, condition vectors of the four different areas, pixel space coordinates of an initial CMYK image and CMYK color values are input into an artificial neural network after being subjected to composite encoding, training parameter adjustment is performed on the artificial neural network, and a CMYK color value is obtained. And taking the parameters of the trained artificial neural network as annotations and embedding the annotations into the original image. In the actual printing process, the original image can be subjected to color gamut compression by using the artificial neural network only by reading the parameters embedded in the original image, so that the optimization time of the color gamut compression is greatly shortened, and the visual loss and color distortion of the image in the optimization process are less.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image display technology, and in particular to a color gamut compression method, device and storage medium based on a partitioning mechanism. Background Art

[0002] With the rapid development of science and technology, digital printing combined with advanced color management technology is leading the printing industry into a new era. Color gamut compression has become a key technology in digital printing, which can ensure that visual loss and color distortion are minimized from the design stage of the display to the final printed output. Displays generally operate under a wider color gamut, such as sRGB, to display colorful images. However, when these images are ready to be printed, they must be converted and cropped to fit the smaller color gamut of the printer, such as CMYK. This conversion from a wide color gamut to a narrow color gamut is extremely challenging, especially in maintaining the original visual effects of the image. For this reason, color gamut mapping technology has become a constant pursuit in order to better adapt to the color expression capabilities of various output devices and ensure the authenticity and consistency of the color of printed products. The continuous improvement and development of this technology is a continuous pursuit of accurate color reproduction, marking a leap in printing technology to a higher level.

[0003] Traditional color gamut compression methods can be divided into pixel-to-pixel color gamut compression algorithms and spatial color gamut compression algorithms.

[0004] Pixel-to-pixel color gamut compression algorithms mainly include clipping and compression methods. Color gamut clipping refers to the process of remapping colors outside the color gamut to colors on the color gamut boundary of the target device. Although color gamut clipping can keep most colors unchanged, it introduces unwanted visible color discontinuities at the boundary. In order to avoid discontinuities at the boundary, color gamut compression takes into account the relationship between adjacent colors, which causes all colors to be remapped to some extent. The color gamut clipping and color gamut compression algorithms recommended by the International Commission on Illumination in the color gamut mapping evaluation guide are HPminDE and SGCK. Xu et al. improved the SGCK algorithm by introducing two novel algorithms, VP (vividity preservation) and DP (depth preservation), which significantly enhanced the visual quality of image reproduction. In 2022, Han et al. confirmed through psychophysical research that the indicators of vividness and depth are more consistent with the actual experience of the human eye. Recognizing the eye's keen sensitivity to dark tones, Li et al. developed a polyline brightness compression method that can alleviate the problem of detail loss in shadow areas. Despite the continuous introduction of innovative algorithms for pixel-to-pixel color gamut compression, their inherent characteristics still cannot solve the fundamental problems such as detail loss, artifacts, and halo effects.

[0005] The spatial color gamut mapping algorithm takes into account the spatial characteristics of color images to achieve relatively good mapping effects. It is mainly divided into compensation algorithms and iterative algorithms. The traditional compensation algorithm separates high and low frequencies, compresses the color gamut of the low-frequency image, then merges it with the high-frequency image, and performs secondary mapping on the merged image. However, this method of directly adding high-frequency and low-frequency images will cause halos and excessive artificial textures in the compression results. The iterative algorithm defines the color gamut mapping as a constrained optimization problem and fits various indicators to the objective function designed to optimize the quality of color images. Images with minimal perceptual differences are produced by iteratively minimizing these objective functions. Nakauchi et al. proposed an image perception difference model based on the human contrast sensitivity function, using a metric similar to S-CIELAB for iterative optimization. However, the visual data obtained from the experiment was poor. Kimmel et al. attempted to combine spectral data and spatial perception metrics to propose an effective numerical solution in the form of quadratic programming, but the color gamut mapping image is not completely free of halo artifacts. Alsam and Farup considered the optimal chromaticity gamut clipping algorithm and the idealized space gamut mapping algorithm and proposed a compromise solution. The iterative process based on the anisotropic diffusion related method produced an ideal gamut mapping result, which avoided the common image halo problem to a certain extent. Preiss et al. introduced the image quality assessment index iCID for gamut mapping distortion and used iCID as the target optimization function to iteratively optimize the initial gamut mapping image, so that the image is more in line with human perception. For gamut mapping distortion, the iCID index is currently the most correlated with human judgment.

[0006] Spatial gamut compression algorithms, while superior in rendering fidelity, are hampered by their time-consuming processing workflows, making them impractical for print applications, while pixel-by-pixel gamut compression algorithms, while less time-consuming, produce lower quality images. Summary of the invention

[0007] Therefore, the technical problem to be solved by the present invention is to overcome the problem in the prior art that the processing time cannot be shortened while ensuring the quality of the color gamut compressed image.

[0008] In order to solve the above technical problems, the present invention provides a color gamut compression method based on a partition mechanism, comprising:

[0009] After converting the large color gamut image to be processed into a LAB image, the LAB image is segmented into four different regions using a partition encoder to obtain condition vectors of the four different regions; the four different regions include a bright part within the color gamut, a dark part within the color gamut, a bright part outside the color gamut, and a dark part outside the color gamut;

[0010] Convert the LAB image to CMYK color space to obtain an initial CMYK image;

[0011] Uniformly sampling pixels of a preset ratio from the four different regions into which the LAB image is segmented, optimizing the sampled pixels using the iCID iterative color gamut compression optimization algorithm, and obtaining a CMYK image optimized by the iCID iterative color gamut compression optimization algorithm;

[0012] The one-hot encoding of the conditional vectors of the four different regions, the spatial coordinates of each pixel of the initial CMYK image, and the CMYK color value are combined into a ten-dimensional vector, and the ten-dimensional vector is input into an artificial neural network after composite encoding, and the CMYK image optimized by the iCID iterative color gamut compression optimization algorithm is used as a label to train and adjust the parameters of the artificial neural network; the artificial neural network parameters obtained after training are embedded as annotation fields into the large color gamut image to be processed;

[0013] When a print job is started, the artificial neural network parameters embedded in the large color gamut image to be processed are extracted and loaded into the artificial neural network. The large color gamut image to be processed is converted into the CMYK color space and then input into the artificial neural network to output the target CMYK image.

[0014] Preferably, converting the large color gamut image to be processed into a LAB image comprises:

[0015] The large color gamut image to be processed is an sRGB image, and the large color gamut image to be processed is linearized using a gamma correction function;

[0016] The linearized large color gamut image to be processed is mapped from the sRGB color space to the CIE-XYZ color space using a 3×3 matrix;

[0017] Convert the image to be processed from the CIE-XYZ color space to the perceptually uniform and device-independent LAB color space.

[0018] Preferably, the condition vectors of the four different regions after LAB image segmentation are formulated as follows:

[0019]

[0020] Among them, C represents the conditional vectors of four different regions after LAB image segmentation.

[0021] Preferably, converting the LAB image into the CMYK color space comprises: using a B2A0 color lookup table in an ICC profile to perform pre-gamut compression to convert the LAB image into the CMYK color space.

[0022] Preferably, preset proportions of pixels are uniformly sampled from the four different areas divided from the LAB image, including: the preset proportions uniformly sampled from the bright part within the color gamut, the dark part within the color gamut, the bright part outside the color gamut, and the dark part outside the color gamut are 10%, 5%, 15% and 10%, respectively.

[0023] Preferably, the ten-dimensional vector is compound-encoded, the steps comprising:

[0024] One-hot encoding of the conditional vectors encoding four different regions using the identity mapping;

[0025] The pixel space coordinates and CMYK color values ​​in the original CMYK image are encoded using a triangle wave function.

[0026] Preferably, the artificial neural network comprises a multi-layer perceptron.

[0027] Preferably, before training and adjusting parameters of the artificial neural network, a meta-learning strategy is used to pre-train the artificial neural network.

[0028] The present invention also provides a color gamut compression device based on a partition mechanism, comprising:

[0029] A partitioning module is used to convert the large color gamut image to be processed into a LAB image, and then use a partition encoder to divide the LAB image into four different regions to obtain condition vectors of the four different regions; the four different regions include a bright part within the color gamut, a dark part within the color gamut, a bright part outside the color gamut, and a dark part outside the color gamut;

[0030] A CMYK conversion module, used for converting the LAB image into a CMYK color space to obtain an initial CMYK image;

[0031] The label acquisition module is used to uniformly sample pixels of a preset ratio from the four different areas divided into the LAB image, optimize the sampled pixels using the iCID iterative color gamut compression optimization algorithm, and obtain a CMYK image optimized by the iCID iterative color gamut compression optimization algorithm;

[0032] A parameter adjustment module is used to form a ten-dimensional vector by combining the one-hot encoding of the conditional vectors of the four different regions, the spatial coordinates of each pixel of the initial CMYK image, and the CMYK color value, and input the ten-dimensional vector into an artificial neural network after compound encoding, and train and adjust the parameters of the artificial neural network using the CMYK image optimized by the iCID iterative color gamut compression optimization algorithm as a label; and embed the artificial neural network parameters obtained after training as annotation fields into the large color gamut image to be processed;

[0033] The printing module is used to extract the artificial neural network parameters embedded in the large color gamut image to be processed, load them into the artificial neural network, convert the large color gamut image to be processed into the CMYK color space, and input it into the artificial neural network to output the target CMYK image when the printing job is started.

[0034] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned color gamut compression method based on the partition mechanism are implemented.

[0035] The above technical solution of the present invention has the following beneficial effects compared with the prior art:

[0036] The color gamut compression method based on the partition mechanism described in the present invention converts the original image into a LAB image, and then uses a partition encoder to divide the LAB image into four different regions according to the color gamut and brightness, and then inputs the conditional vectors of the four different regions, the pixel space coordinates of the initial CMYK image, and the CMYK color values ​​into an artificial neural network after composite encoding, trains and adjusts the parameters of the artificial neural network, and embeds the parameters of the trained artificial neural network into the original image as annotations. In the actual printing process, only the parameters embedded in the original image need to be read to perform color gamut compression on the original image using the artificial neural network, which greatly shortens the optimization time of color gamut compression, and because the present invention uses the conditional vectors of the four different regions as the input of the artificial neural network, the visual loss and color distortion of the image during the optimization process are reduced. Based on the significant reduction in color gamut compression time, when printing an image, it is not necessary to store the entire CMYK image after color gamut compression, but only the artificial neural network parameters embedded in the original image need to be stored, which greatly reduces the memory space required for color gamut compression.

[0037] In addition, the color gamut compression method based on the partitioning mechanism described in the present invention, when training the artificial neural network, uniformly samples a preset proportion of pixels from the four different areas into which the LAB image is divided, and uses the pixels as the label image after optimization by the iCID iterative color gamut compression optimization algorithm, instead of iCID optimization of the entire image, and adopts a meta-learning strategy to pre-train the artificial neural network, thereby reducing the time required for artificial neural network training and further shortening the optimization time of color gamut compression. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to make the content of the present invention more clearly understood, the present invention is further described in detail below according to specific embodiments of the present invention in conjunction with the accompanying drawings, wherein:

[0039] Figure 1 It is a flow chart of a color gamut compression method based on a partition mechanism of the present invention;

[0040] Figure 2 It is a schematic diagram of the process of printing of a color gamut compression method based on a partition mechanism of the present invention;

[0041] Figure 3 It is a graph showing the relationship between the pixel sampling ratio and PSNR of the four different regions into which the LAB image is segmented;

[0042] Figure 4 It is a schematic diagram of composite coding and artificial neural network processing data;

[0043] Figure 5 is a schematic diagram of the meta-learning strategy;

[0044] Figure 6 It is the optimization process diagram of iCID iterative color gamut compression optimization algorithm;

[0045] Figure 7 The result point cloud diagram of the color gamut compression method based on the partition mechanism of the present invention and the existing method, wherein Figure 7 (a) is a point cloud diagram of the PSNR index results of the color gamut compression method proposed by the present invention and the existing method. Figure 7 (b) is a point cloud diagram of the iCID index results of the color gamut compression method proposed by the present invention and the existing method. Figure 7 (c) is a point cloud diagram of the SSIM index results of the color gamut compression method proposed in the present invention and the existing method. DETAILED DESCRIPTION

[0046] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.

[0047] The existing color gamut compression method cannot take into account both image quality and image processing efficiency. Therefore, this application proposes a color gamut compression method based on a partition mechanism. Figure 1 As shown, the following steps are included:

[0048] S10, after converting the large color gamut image to be processed into a LAB image, using a partition encoder to divide the LAB image into four different regions, and obtain condition vectors of the four different regions; the four different regions include a bright part within the color gamut, a dark part within the color gamut, a bright part outside the color gamut, and a dark part outside the color gamut;

[0049] S20, converting the LAB image into the CMYK color space to obtain an initial CMYK image;

[0050] S30, uniformly sampling pixels of a preset ratio from the four different regions into which the LAB image is segmented, optimizing the sampled pixels using an iCID iterative color gamut compression optimization algorithm, and obtaining a CMYK image optimized by the iCID iterative color gamut compression optimization algorithm;

[0051] S40, forming a ten-dimensional vector by one-hot encoding the conditional vectors of the four different regions, the spatial coordinates of each pixel of the initial CMYK image, and the CMYK color value, and inputting the ten-dimensional vector into an artificial neural network after compound encoding, using the CMYK image optimized by the iCID iterative color gamut compression optimization algorithm as a label, and training and adjusting the parameters of the artificial neural network; embedding the artificial neural network parameters obtained after training as annotation fields into the large color gamut image to be processed;

[0052] S50, reference Figure 2 As shown, when the printing job is started, the artificial neural network parameters embedded in the large color gamut image to be processed are extracted and loaded into the artificial neural network, and the large color gamut image to be processed is converted into the CMYK color space and then input into the artificial neural network to output the target CMYK image.

[0053] Specifically, the step of converting the large color gamut image to be processed into a LAB image in S10, and dividing the LAB image into four different regions using a partition encoder includes:

[0054] S101, the large color gamut image to be processed is an sRGB image, denoted as Where N represents the total number of pixels in the image; the large color gamut image to be processed is linearized using the gamma correction function g;

[0055] S102, using a 3×3 matrix M to map the linearized large color gamut image to be processed from the sRGB color space to the CIE-XYZ color space;

[0056] S103: Convert the image to be processed from the CIE-XYZ color space to a LAB color space that is perceptually uniform and device-independent.

[0057] Therefore, the formula for converting the large color gamut image to be processed into a LAB image is:

[0058] I LAB =Norm(f(M(g(I sRGB )))), L∈[0,100],AB∈[-128,127]

[0059] Among them, I sRGBis the large color gamut image to be processed, g represents the gamma correction function, M represents the mapping matrix from sRGB color space to CIE-XYZ color space, f represents the conversion function from CIE-XYZ color space to LAB color space, Norm represents the normalization operation to control the LAB value to fall within the specified range, I LAB Represents LAB image; L represents brightness, and AB represents color information.

[0060] S104, using a partition encoder to divide the LAB image into four different regions, the formula is:

[0061] C=m⊙I LAB

[0062] Wherein, m represents a partition encoder. In this embodiment, the brightness threshold of the partition encoder is set to 80; ⊙ represents a pixel-by-pixel masking operation; C represents the conditional vectors of the four different regions after LAB image segmentation, which is specifically expressed as:

[0063]

[0064] The partitioning mechanism is used to divide the LAB image into four regions, which can achieve targeted color conversion, thereby enabling the artificial neural network to adaptively compress colors in subsequent processing, thereby enhancing color visual perception.

[0065] Preferably, in S20, the B2A0 color lookup table in the ICC profile (snap2007) is used to perform pre-gamut compression, and the LAB image is converted into the CMYK color space to obtain the initial CMYK image and pixel feature information, and the formula is:

[0066] I Pre-CMYK =ICC B2A0 (I LAB )

[0067] Among them, ICC B2A0 Indicates the B2A0 color lookup table in the ICC profile. LAB represents LAB image, I Pre-CMYK Represents the original CMYK image.

[0068] Generally speaking, colors outside the gamut (0G) will experience relatively large shifts, while colors inside the gamut (IG) will also experience smaller shifts to maintain uniformity of visual perception. It is worth noting that bright areas are prone to artifacts and halos during gamut compression optimization. Therefore, this embodiment further refines the representation of the initial CMYK image to model more complex relationships involved in image gamut changes. The specific operations are:

[0069] The convex hull method is used to describe the color gamut boundary of CMYK, and the formula is expressed as gamut = Conv({p 1 , p 2 ,…,p n}); where gamut represents the color gamut boundary of CMYK, Conv represents the convex hull operation, and p n Indicates the nth pixel used to describe the color gamut boundary.

[0070] After S10 and S20, the present application performs a chromaticity-correct conversion on the large color gamut image to be processed, so the subsequent artificial neural network focuses on estimating the saturation of each pixel rather than its target color.

[0071] Preferably, in S30, preset proportions of pixels are uniformly sampled from the four different areas divided from the LAB image. In this embodiment, the preset proportions uniformly sampled from the bright part within the color gamut, the dark part within the color gamut, the bright part outside the color gamut, and the dark part outside the color gamut are 10%, 5%, 15%, and 10%, respectively. This proportion can avoid iterative optimization of the entire image while ensuring image quality, thereby significantly reducing the optimization time required for iCID algorithm optimization. Figure 3 The relationship between the pixel sampling ratio and PSNR of the four different regions divided into the LAB image.

[0072] Furthermore, in S40, the one-hot encoding of the conditional vectors of the four different regions, the spatial coordinates of each pixel of the initial CMYK image, and the CMYK color value are combined into a ten-dimensional vector. After the ten-dimensional vector is compound-encoded, the input ten-dimensional vector becomes a 100-dimensional feature vector, which can enhance the optimization process of the artificial neural network. For the specific process, refer to Figure 4 As shown, including:

[0073] One-hot encoding of the conditional vectors encoding four different regions using the identity mapping;

[0074] The pixel space coordinates and CMYK color values ​​in the initial CMYK image are encoded using a triangle wave function to provide more continuous space and color information. The formula is:

[0075] γ(x)=(Δ(2 0 πx), Δ(2 1 πx),…,Δ(2 K πx))

[0076]

[0077] Wherein, Δ represents a triangular wave function, which is used to periodically map a linear function to the interval [-1, 1], γ(x) represents a triangular wave encoding, x represents the spatial coordinates of a pixel and a CMYK color value, K represents the encoding dimension, and in this embodiment, the value is 16; y represents the input of the triangular wave function, Represents the floor function for rounding down.

[0078] Preferably, the artificial neural network used in S40 is a multi-layer perceptron. After the 100-dimensional feature vector is mapped by the multi-layer perceptron, the CMYK color value of each pixel of the predicted image is output.

[0079] The multi-layer perceptron uses the CMYK image optimized by the iCID iterative color gamut compression optimization algorithm as a label for training and parameter adjustment. The loss function LOSS is the mean square error between the predicted image and the label image, and the formula is:

[0080]

[0081] in, represents the predicted image, I Opt-CMYK (i) represents the label image.

[0082] Preferably, before the conditional vectors of the four different regions and the initial CMYK image are input into the artificial neural network, the CMYK image optimized by the iCID iterative color gamut compression optimization algorithm is used as a label, and before the artificial neural network is trained and adjusted, a meta-learning strategy is used to pre-train the artificial neural network. Figure 5 As shown, this embodiment uses the iCID iterative color gamut compression optimization algorithm to generate a pre-training data set, and the pre-training data set includes an image with a size of 512×512. The pre-training data is used to learn the initial weights of the artificial neural network.

[0083] After pre-training the artificial neural network using the meta-learning strategy, the initial weights can be quickly fine-tuned to the new image. Therefore, when training and adjusting the parameters of the artificial neural network, it is not necessary to use all the pixels of the new image as input. Instead, only part of the sampled pixels need to be input into the artificial neural network for training and parameter adjustment, which significantly reduces the time for optimizing the parameters of the artificial neural network.

[0084] In summary, the color gamut compression method based on the partition mechanism described in the present invention converts the original image into a LAB image, and then uses a partition encoder to divide the LAB image into four different regions according to the color gamut and brightness, and the conditional vectors of the four different regions, the pixel space coordinates of the initial CMYK image, and the CMYK color values ​​are input into the artificial neural network after composite encoding, and the artificial neural network is trained and adjusted, and the parameters of the trained artificial neural network are embedded in the original image as annotations. In the actual printing process, only the parameters embedded in the original image need to be read to perform color gamut compression on the original image using the artificial neural network, which greatly shortens the optimization time of color gamut compression, and because the present invention uses the conditional vectors of four different regions as the input of the artificial neural network, the visual loss and color distortion of the image during the optimization process are reduced. Based on the significant reduction in color gamut compression time, when printing an image, it is not necessary to store the entire CMYK image after color gamut compression, but only the artificial neural network parameters embedded in the original image need to be stored, which greatly reduces the memory space required for color gamut compression.

[0085] In addition, the color gamut compression method based on the partitioning mechanism described in the present invention, when training the artificial neural network, uniformly samples a preset proportion of pixels from the four different areas into which the LAB image is divided, and uses the pixels as the label image after optimization by the iCID iterative color gamut compression optimization algorithm, instead of iCID optimization of the entire image, and adopts a meta-learning strategy to pre-train the artificial neural network, thereby reducing the time required for artificial neural network training and further shortening the optimization time of color gamut compression.

[0086] Embodiment 2

[0087] In order to verify the effectiveness of the color gamut compression method based on the partition mechanism proposed in the present application, this embodiment evaluates the differences between the method proposed in the present application and other color gamut compression algorithms in terms of non-color and color distortion of the image.

[0088] The datasets selected in this embodiment include RAW images of MIT-Adobe FiveK, RAISE, Cube+, and NUS public datasets. These four datasets have a wide range of scene contents. From these RAW images, this embodiment randomly selects 2000 images, renders the 2000 RAW images into 8-bit sRGB images, and then uses the iCID iterative color gamut compression optimization algorithm to compress the sRGB images into CMYK images as labels. The compression process is referred to Figure 6 As shown in Figure 2, there are 2000 image pairs consisting of sRGB images and CMYK images, of which 1800 image pairs are training sets and 200 image pairs are test sets.

[0089] This embodiment will soft-proof the CMYK image and compare it with the original image in the sRGB color space using the SSIM indicator. The higher the SSIM value, the smaller the structural deformation. For color information, after soft-proofing, this embodiment uses PSNR, RMSE, and iCID indicators to compare with the original image. Among them, PSNR and RMSE focus on pixel-level color distortion. Higher PSNR and lower RMSE mean that the processed image is closer to the original image. The iCID indicator evaluates the color quality of the image from the perspective of visual features. The lower the iCID, the more consistent the processed image is with human perception.

[0090] The color gamut compression method proposed in this application represents the first application of deep learning in color gamut compression, and aims to verify its superiority over traditional methods. To this end, this embodiment selects several mainstream algorithms and the color gamut compression method proposed in this application for objective and subjective evaluation, and analyzes the execution time and memory efficiency of each method. Specifically, for pixel-to-pixel color gamut compression, this embodiment selects the color gamut clipping and color gamut compression algorithms recommended by the International Commission on Illumination in the color gamut mapping evaluation guide: HPminDE and SGCK. In addition, this embodiment compares the color gamut compression method proposed in this application with the saturation enhancement algorithm SE proposed by Choi, aiming to make full use of the color gamut of the printer. In the field of spatial color gamut compression, this embodiment selects the adaptive image detail compensation algorithm AIDC for comparison, and uses the most effective iCID iterative color gamut compression optimization algorithm as the benchmark for the color gamut compression method proposed in this application, and is also compared with the perceptual and relative chromaticity color conversion utilities of Adobe Photoshop. The comparison results are shown in Table 1.

[0091] Table 1. Comparison results between the method proposed in this application and the prior art

[0092]

[0093] As can be seen from Table 1, the HPminDE algorithm retains most of the colors, but it is insufficient in both objective indicators and subjective perception. The SGCK algorithm slightly outperforms HPminDE by mapping all colors, taking into account the relationship between adjacent colors. The SE algorithm takes into account the high-saturation color gamut of the printer that exceeds the display range, making full use of this part for better visual effects. Its results are close to those of SGCK. Photoshop conversion outperforms all pixel-to-pixel color gamut compression algorithms, but due to the proprietary nature of the software, it is impractical to calculate its running time. The adaptive image detail compensation algorithm and the iterative color gamut compression optimization algorithm show better performance, but they are all very time-consuming. In addition, all of these algorithms require additional memory space to store printed images. The color gamut compression method proposed in this application outperforms the industry standard SGCK algorithm, reducing iCID by 22.58% and increasing SSIM by 12.30%. Its color gamut compression performance is close to that of the iCID iterative color gamut compression optimization algorithm, while reducing the time by 96.15%. In the printing field, it is usually necessary to retain the original sRGB and corresponding CMYK images for viewing and printing. The color gamut compression method proposed in this application only requires 31KB of storage space to embed the original image, eliminating the need for additional storage space to store the printed image. When reprinting, it only takes 0.008 seconds to convert the sRGB image to CMYK format, which is significantly better than the traditional algorithm. Figure 7 This is the result point cloud of the color gamut compression method proposed in this application and the existing method, where Figure 7 (a) is a point cloud diagram of the PSNR index results of the color gamut compression method proposed in this application and the existing method. Figure 7 (b) is the iCID indicator result point cloud diagram of the color gamut compression method proposed in this application and the existing method. Figure 7 (c) is a point cloud diagram of the SSIM index results of the color gamut compression method proposed in this application and the existing method. It can be seen that the color gamut compression method proposed in this application has a denser point cloud, a higher mean, and better and more stable compression results.

[0094] This embodiment also experimentally verifies the partition mechanism in the color gamut compression method proposed in this application. The color gamut compression method proposed in this application converts the large color gamut image to be processed into a LAB image, and then uses a partition encoder to divide the LAB image into four different regions, aiming to solve the difference in color gamut compression between the in-gamut and out-gamut regions, and performs detailed processing on the highlight region during the conversion process to improve the effectiveness of color gamut compression. Compared with the non-partitioning processing of various inputs, the partitioning strategy of this application achieves significant optimization in the out-of-gamut and highlight regions, and successfully eliminates noise in the highlight region. Table 2 lists different input methods for artificial neural networks, where xy represents spatial coordinates, CMYK represents color intensity values, and h represents color intensity values. 1 h2 Only distinguish between the in-gamut and out-gamut areas, h 1 h 2 h 3 h 4 The image is divided into four regions according to pixel features, and all inputs are encoded using the conformal encoding method.

[0095] Table 2. Comparison results of different input methods for artificial neural networks

[0096] method RMSE↓ PSNR↑ RMSEOG↓ PSNROG↑ RMSEHL↓ PSNRHL↑ xy 0.0244 33.0245 0.0285 31.5959 0.0241 33.2865 CMYK 0.0151 37.7176 0.0168 36.3405 0.0169 36.4181 xyCMYK 0.0134 40.0119 0.0124 38.5794 0.0128 38.9044 <![CDATA[h 1 h 2 xyCMYK]]> 0.0104 40.1426 0.0119 38.8623 0.0115 39.7730 <![CDATA[h 1 h 2 h 3 h 4 xyCMYK+enc.]]> 0.0079 42.2266 0.0087 41.3886 0.0077 42.4512

[0097] It can be seen from Table 2 that the four-region partitioning mechanism adopted by the color gamut compression method proposed in this application has achieved the best results in all indicators.

[0098] This embodiment also experimentally verifies the effect of pre-training the artificial neural network using the meta-learning strategy in Embodiment 1. The purpose of the color gamut compression method is to optimize speed while ensuring quality. This embodiment analyzes multi-layer perceptrons with 64, 32, and 16 hidden layer neurons, and the corresponding model sizes are 69KB, 31KB, and 18KB, respectively. The results are shown in Table 3.

[0099] Table 3. Meta-learning strategy experimental comparison results

[0100]

[0101]

[0102] From Table 3, it can be seen that the multilayer perceptron with 32 neurons meets the criteria, and the initial weights of the meta-learning strategy can bring faster convergence and better performance in the parameter tuning device of the artificial neural network.

[0103] In summary, the partition encoder designed for the color gamut compression method based on the partition mechanism proposed in this application divides the LAB image into four different regions according to the color gamut and brightness characteristics to meet the unique mapping characteristics of each region. The parameters of the artificial neural network only require 31KB of storage space to save them as annotation fields in the original image, eliminating the need for additional memory space to store the processed image. For printing tasks, the model can be directly extracted from the original image for color gamut compression. Comparative experiments show that the color gamut compression method based on the partition mechanism proposed in this application is superior to the industry standard SGCK algorithm, with iCID reduced by 22.58% and SSIM increased by 12.30%, achieving near-optimal performance in only 1 / 26 of the time.

[0104] Based on the color gamut compression method based on the partition mechanism proposed in the first embodiment, this embodiment further provides a color gamut compression device based on the partition mechanism, including:

[0105] A partitioning module is used to convert the large color gamut image to be processed into a LAB image, and then use a partition encoder to divide the LAB image into four different regions to obtain condition vectors of the four different regions; the four different regions include a bright part within the color gamut, a dark part within the color gamut, a bright part outside the color gamut, and a dark part outside the color gamut;

[0106] A CMYK conversion module, used for converting the LAB image into a CMYK color space to obtain an initial CMYK image;

[0107] The label acquisition module is used to uniformly sample pixels of a preset ratio from the four different areas divided into the LAB image, optimize the sampled pixels using the iCID iterative color gamut compression optimization algorithm, and obtain a CMYK image optimized by the iCID iterative color gamut compression optimization algorithm;

[0108] A parameter adjustment module is used to form a ten-dimensional vector by combining the one-hot encoding of the conditional vectors of the four different regions, the spatial coordinates of each pixel of the initial CMYK image, and the CMYK color value, and input the ten-dimensional vector into an artificial neural network after compound encoding, and train and adjust the parameters of the artificial neural network using the CMYK image optimized by the iCID iterative color gamut compression optimization algorithm as a label; and embed the artificial neural network parameters obtained after training as annotation fields into the large color gamut image to be processed;

[0109] The printing module is used to extract the artificial neural network parameters embedded in the large color gamut image to be processed, load them into the artificial neural network, convert the large color gamut image to be processed into the CMYK color space, and input it into the artificial neural network to output the target CMYK image when the printing job is started.

[0110] This embodiment further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the color gamut compression method based on the partition mechanism described in the first embodiment are implemented.

[0111] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0112] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0113] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0114] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0115] Obviously, the above embodiments are merely examples for the purpose of clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.

Claims

1. A color gamut compression method based on a partitioning mechanism, characterized in that: include: After converting the large color gamut image to be processed into a LAB image, the LAB image is segmented into four different regions using a partition encoder to obtain condition vectors of the four different regions; the four different regions include a bright part within the color gamut, a dark part within the color gamut, a bright part outside the color gamut, and a dark part outside the color gamut; Convert the LAB image to CMYK color space to obtain an initial CMYK image; Uniformly sampling pixels of a preset ratio from the four different regions into which the LAB image is segmented, optimizing the sampled pixels using the iCID iterative color gamut compression optimization algorithm, and obtaining a CMYK image optimized by the iCID iterative color gamut compression optimization algorithm; The one-hot encoding of the conditional vectors of the four different regions, the spatial coordinates of each pixel of the initial CMYK image, and the CMYK color value are combined into a ten-dimensional vector, and the ten-dimensional vector is input into an artificial neural network after composite encoding, and the CMYK image optimized by the iCID iterative color gamut compression optimization algorithm is used as a label to train and adjust the parameters of the artificial neural network; the artificial neural network parameters obtained after training are embedded as annotation fields into the large color gamut image to be processed; When a print job is started, the artificial neural network parameters embedded in the large color gamut image to be processed are extracted and loaded into the artificial neural network. The large color gamut image to be processed is converted into the CMYK color space and then input into the artificial neural network to output the target CMYK image.

2. The color gamut compression method based on the partition mechanism according to claim 1, characterized in that: Convert the large color gamut image to be processed into a LAB image, including: The large color gamut image to be processed is an sRGB image, and the large color gamut image to be processed is linearized using a gamma correction function; The linearized large color gamut image to be processed is mapped from the sRGB color space to the CIE-XYZ color space using a 3×3 matrix; Convert the image to be processed from the CIE-XYZ color space to the perceptually uniform and device-independent LAB color space.

3. The color gamut compression method based on the partition mechanism according to claim 1, characterized in that: The conditional vectors of the four different regions after LAB image segmentation are as follows: Among them, C represents the conditional vectors of four different regions after LAB image segmentation.

4. The color gamut compression method based on a partitioning mechanism according to claim 1, characterized in that: The converting of the LAB image into the CMYK color space includes: using the B2A0 color lookup table in the ICC profile to perform pre-gamut compression to convert the LAB image into the CMYK color space.

5. The color gamut compression method based on partition mechanism according to claim 1, characterized in that: A preset proportion of pixels are uniformly sampled from four different areas divided from the LAB image, including: the preset proportions of uniform sampling from the bright part within the color gamut, the dark part within the color gamut, the bright part outside the color gamut, and the dark part outside the color gamut are 10%, 5%, 15%, and 10%, respectively.

6. The color gamut compression method based on a partitioning mechanism according to claim 1, characterized in that: The ten-dimensional vector is composite-encoded, the steps comprising: One-hot encoding of the conditional vectors encoding four different regions using the identity mapping; The pixel space coordinates and CMYK color values ​​in the original CMYK image are encoded using a triangle wave function.

7. The color gamut compression method based on a partitioning mechanism according to claim 1, characterized in that: The artificial neural network includes a multi-layer perceptron.

8. The color gamut compression method based on a partitioning mechanism according to claim 1, characterized in that: Before training and adjusting the parameters of the artificial neural network, a meta-learning strategy is used to pre-train the artificial neural network.

9. A color gamut compression device based on a partitioning mechanism, characterized in that: include: A partitioning module, used for converting the large color gamut image to be processed into a LAB image, and then using a partition encoder to partition the LAB image into four different regions to obtain condition vectors of the four different regions; The four different areas include a bright part within the color gamut, a dark part within the color gamut, a bright part outside the color gamut, and a dark part outside the color gamut; A CMYK conversion module, used for converting the LAB image into a CMYK color space to obtain an initial CMYK image; The label acquisition module is used to uniformly sample pixels of a preset ratio from the four different areas divided into the LAB image, optimize the sampled pixels using the iCID iterative color gamut compression optimization algorithm, and obtain a CMYK image optimized by the iCID iterative color gamut compression optimization algorithm; A parameter adjustment module is used to form a ten-dimensional vector by combining the one-hot encoding of the conditional vectors of the four different regions, the spatial coordinates of each pixel of the initial CMYK image, and the CMYK color value, and input the ten-dimensional vector into an artificial neural network after compound encoding, and train and adjust the parameters of the artificial neural network using the CMYK image optimized by the iCID iterative color gamut compression optimization algorithm as a label; and embed the artificial neural network parameters obtained after training as annotation fields into the large color gamut image to be processed; The printing module is used to extract the artificial neural network parameters embedded in the large color gamut image to be processed, load them into the artificial neural network, convert the large color gamut image to be processed into the CMYK color space, and input it into the artificial neural network to output the target CMYK image when the printing job is started.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the color gamut compression method based on a partitioning mechanism as claimed in any one of claims 1 to 8 are implemented.