Image processing method, control device, image forming device and system
By displaying the color system and its properties in the image on the control device, and generating a local color mapping table according to the user's choice, the image is converted and color is solved, and the problem that users cannot adjust a certain color in the image is achieved, achieving high-quality color restoration and user needs.
Patent Information
- Application Number
- CN202411866572.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2044-12-17
AI Technical Summary
In the prior art, users cannot adjust a certain color in the image separately and cannot meet the needs of users with special needs.
An image processing method is provided, by controlling the device to obtain the image to be printed, display the color system and its attributes in the image, and determine the special color system and its desired target attributes according to the user's choice, and send the image to be printed, the special color system and the desired target attributes to be printed to the image forming device. The image forming device generates a local color mapping table based on this information, performs color conversion processing on the image, and performs image fusion processing, and finally prints out the output.
This enables users to adjust a certain color in the image separately according to their needs, meeting the user's special needs, and ensuring the color restoration quality of the output image, avoiding the impact of the global color mapping table.
Smart Images

Figure CN119937947A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and specifically to an image processing method, a control device, an image forming device and a system. Background Art
[0002] In the color printing process, the user edits the image color through the control device, and prints it out through the image forming device after confirming that the color is correct. However, the interactive interface provided by the control device can often only adjust the overall color of the image, such as adjusting the image color according to a certain style. This makes it impossible for some users with special needs, such as the need to adjust certain colors in the image separately, to get their needs met. Summary of the invention
[0003] In view of this, the present application provides an image processing method, a control device, an image forming device and a system to solve the problem in the prior art that a user cannot individually adjust a certain color in an image.
[0004] In a first aspect, an embodiment of the present application provides an image processing method, which is applied to a control device, and the method includes:
[0005] Obtaining an image to be printed;
[0006] Displaying the color system included in the image to be printed and the color adjustment options for adjusting the properties of the color system;
[0007] Determining a special color system according to a user's selection, and determining a desired target attribute of the special color system according to the user's operation on the color adjustment option;
[0008] The image to be printed, the special color system, and a desired target attribute of the special color system are sent to an image forming device.
[0009] In a possible implementation, before displaying the color system included in the image to be printed, the method further includes:
[0010] Counting the color distribution of the image to be printed;
[0011] Performing color gamut segmentation on the image to be printed according to the color distribution of the image to be printed to obtain multiple color gamuts;
[0012] Chromaticity distribution statistics are performed on each of the color gamuts to obtain color gamut statistics results of each of the color gamuts.
[0013] In a possible implementation, the counting of color distribution of the image to be printed includes:
[0014] A color clustering algorithm is used to count the color distribution of the image to be printed.
[0015] In a possible implementation manner, performing chromaticity distribution statistics on each of the color gamuts to obtain color gamut statistics results of each of the color gamuts includes:
[0016] Obtaining RGB data of each color gamut;
[0017] Convert the RGB data of each color gamut into the CI ELAB color space to obtain the LAB data of each color gamut;
[0018] Separating the LAB data of each color gamut into an L channel, an A channel and a B channel;
[0019] Chromaticity distribution statistics are performed on each color gamut according to the number of pixels in the A channel and the B channel of each color gamut to obtain color gamut statistical results of each color gamut.
[0020] In a possible implementation, the displaying of the color system of the image to be printed includes:
[0021] The color systems included in the to-be-printed image and the value ranges of the L channel, the A channel and the B channel corresponding to each color system are displayed according to the color gamut statistical results of each color gamut.
[0022] In a second aspect, an embodiment of the present application provides an image processing method, which is applied to an image forming device, and the method includes:
[0023] receiving an image to be printed, a special color system and a desired target attribute of the special color system sent by a control device;
[0024] Acquire dynamic update parameters of a color mapping table according to the special color system and the expected target attributes of the special color system;
[0025] Generate at least one local color mapping table according to a preset global color mapping table and a dynamic update parameter of the color mapping table, wherein one local color mapping table corresponds to one special color system;
[0026] Performing color conversion processing on the image to be printed according to the preset global color mapping table and the local color mapping table to obtain a plurality of color converted images;
[0027] Performing image fusion processing on the multiple color conversion images to obtain a fused image;
[0028] The fused image is printed out.
[0029] In a possible implementation, generating at least one local color mapping table according to a preset global color mapping table and a dynamic update parameter of the color mapping table includes:
[0030] Separating a preset global color mapping table according to the dynamic update parameters of the color mapping table to obtain at least one separated mapping table;
[0031] An interpolation fitting calculation is performed on at least one of the separation mapping tables according to the dynamic update parameters of the color mapping table to generate at least one local color mapping table.
[0032] In a possible implementation, color conversion processing is performed on the image to be printed according to the preset global color mapping table and the local color mapping table to obtain a plurality of color converted images, including:
[0033] Performing a color system separation operation on the image to be printed to obtain the color system included in the image to be printed;
[0034] Determine whether the color system belongs to a special color system;
[0035] When the color system belongs to a special color system, performing color conversion processing on the color system according to a local color mapping table corresponding to the special color system to obtain a first color conversion image;
[0036] When the color system does not belong to a special color system, performing color conversion processing on the color system according to the preset global color mapping table to obtain a second color conversion image;
[0037] The performing image fusion processing on the multiple color conversion images to obtain a fused image includes:
[0038] An image fusion process is performed on the first color converted image and the second color converted image to obtain a fused image.
[0039] In a possible implementation, the determining whether the color system belongs to a special color system includes:
[0040] Convert the image RGB data corresponding to the color system into LAB data;
[0041] Whether the color system belongs to a special color system is determined according to the Euclidean distance of the LAB data corresponding to the color system.
[0042] In a possible implementation, the performing color conversion processing on the color system according to the local color mapping table corresponding to the special color system includes:
[0043] The local color mapping with the smallest Euclidean distance is selected to perform color conversion processing on the color system.
[0044] In a third aspect, an embodiment of the present application provides a control device, including:
[0045] An acquisition unit, used for acquiring an image to be printed;
[0046] A display unit, for displaying the color system included in the image to be printed, and a color adjustment option for adjusting the properties of the color system;
[0047] a determination unit, configured to determine a special color system according to a user's selection, and determine a desired target attribute of the special color system according to a user's operation on the color adjustment option;
[0048] The sending unit is used to send the image to be printed, the special color system and the expected target attribute of the special color system to the image forming device.
[0049] In a fourth aspect, an embodiment of the present application provides an image forming device, including:
[0050] A receiving unit, configured to receive an image to be printed, a special color system, and a desired target attribute of the special color system sent by a control device;
[0051] An acquisition unit, configured to acquire dynamic update parameters of a color mapping table according to the special color system and a desired target attribute of the special color system;
[0052] A generating unit, configured to generate at least one local color mapping table according to a preset global color mapping table and a dynamic update parameter of the color mapping table, wherein one local color mapping table corresponds to one special color system;
[0053] A color conversion processing unit, used for performing color conversion processing on the image to be printed according to the preset global color mapping table and the local color mapping table to obtain a plurality of color converted images;
[0054] A fusion unit, used for performing image fusion processing on the multiple color conversion images to obtain a fused image;
[0055] A printing output unit is used to print out the fused image.
[0056] In a first aspect, an embodiment of the present application provides an image forming system, comprising a control device as described in any one of the first aspect and an image forming device as described in any one of the second aspect, wherein the control device and the image forming device are communicatively connected.
[0057] The embodiment of the present application can display various color systems included in the image to be printed on the control device, as well as color adjustment options for adjusting the properties of each color system, so that the user can make individual adjustments to a certain color system as needed, which greatly facilitates user use and meets the user's special needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0059] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;
[0060] Figure 2 A flowchart of an image processing method provided in an embodiment of the present application;
[0061] Figure 3 A schematic diagram of the effect of image color separation provided in an embodiment of the present application;
[0062] Figure 4 A schematic diagram of color gamut statistics results provided in an embodiment of the present application;
[0063] Figure 5 A schematic diagram of a control device displaying the color system of an image to be printed and color adjustment options provided in an embodiment of the present application;
[0064] Figure 6 A schematic diagram of obtaining desired target attributes of a special color system provided in an embodiment of the present application;
[0065] Figure 7 A representation of a dynamically generated local color mapping provided in an embodiment of the present application;
[0066] Figure 8 A schematic diagram of generating a local color mapping table for multiple color systems provided in an embodiment of the present application;
[0067] Fig. 9 A schematic diagram of a color conversion process provided in an embodiment of the present application;
[0068] Fig.10 A schematic diagram of a printing output process of an image to be printed provided in an embodiment of the present application;
[0069] Fig.11 A schematic diagram of the structure of a control device provided in an embodiment of the present application;
[0070] Fig.12 A schematic diagram of the structure of an image forming device provided in an embodiment of the present application;
[0071] Fig.13 A schematic diagram of the structure of an image forming system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0072] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0073] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0074] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0075] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0076] See also Figure 1 , is a schematic diagram of an application scenario provided by an embodiment of the present application. Figure 1 As shown, the application scenario includes: a control device 110 and an image forming device 120, wherein the control device 110 and the image forming device 120 are interconnected through a wired or wireless communication network to transmit information. During the image forming process, the control device 110 determines the target output color of the image to be printed according to the user operation, and sends the image to be printed and the target output color of the image to be printed to the image forming device 120, and the image forming device 120 performs the image printing operation.
[0077] The communication network between the control device 110 and the image forming device 120 may be a local area network or a wide area network transferred through a relay device. When the communication network is a local area network, exemplarily, the communication network may be a short-distance communication network such as a Wi-Fi hotspot network, a Wi-Fi P2P network, a Bluetooth network, a ZigBee network or a near field communication (NFC) network. When the communication network is a wide area network, exemplarily, the communication network may be a third-generation mobile communication technology (3G) network, a fourth-generation mobile communication technology (4G) network, a fifth-generation mobile communication technology (5G) network, a future-evolved public land mobile network (PLMN) or the Internet.
[0078] It should be pointed out that Figure 1 This is only an exemplary description and should not be used as a limitation on the scope of protection of this application. For example, the image forming device 120 includes but is not limited to a printer, a copier, a fax machine, a multifunctional image making and copying device, an electrostatic printing device, and any other similar device. The control device 110 includes but is not limited to a computer, a mobile phone, a tablet computer, an internal server of an enterprise, a cloud server, and other electronic devices that can communicate with the image forming device 120. In some possible implementations, the control device 110 may also be referred to as a host computer, a host, and the like.
[0079] In the color printing process, the user edits the image color through the control device, and prints it out through the image forming device after confirming that the color is correct. However, the interactive interface provided by the control device can often only adjust the overall color of the image, such as adjusting the image color according to a certain style. This makes it impossible for some users with special needs, such as the need to adjust certain colors in the image separately, to get their needs met.
[0080] At the same time, the display screen of the control device usually conforms to the RGB color space or optical color space such as YCbCr. The RGB color space is described by red (R), green (G), and blue (B) pixel values. For example, R\G\B can be 0 to 255 pixel values; the YCbCr color space is described by brightness (Y), blue chromaticity component (Cb), and red chromaticity component (Cr). The principle of the image forming device is to form different colors through different concentrations of toner, usually using the CMYK color space. Therefore, after the image forming device receives a color printing job, it needs to convert the optical color space in the job into a printing color space.
[0081] Since both the electronic display screen of the control device and the imaging component of the image forming device have some hardware characteristics, there is no fixed conversion formula from the optical color space to the printing color space. For example, the laser scanning accuracy, laser power control accuracy, toner concentration control accuracy, etc. of different image forming devices may be different, which will affect the color effect. In addition, the principle of RGB space is different from that of CMYK. The RGB display screen emits light of different wavelengths and superimposes them to produce direct optical stimulation to the human eye; while the different CMY pigments on the paper will absorb the light of the corresponding wavelengths when superimposed on each other, and the human eye sees the light reflected after being absorbed by the pigment. Therefore, in order to ensure that an image forming device has a high degree of color reproduction, it is necessary to store the color space conversion relationship in advance before the image forming device leaves the factory, for example, one or more mapping tables are used to store what CMY or CMYK values a specific set of RGB values should be converted to. Each set of conversion relationships in the table can be measured and determined by the image forming device manufacturer. This mapping table is generally called a 3-D (Three D imension) mapping table.
[0082] However, it is difficult for image forming equipment manufacturers to calculate the mapping relationship for each set of RGB values. Assuming that the value range of each R / G / B is 0 to 255, there are a total of 167.7 million value combinations. The measurement cost is huge, and it is not easy for the human eye to distinguish so many types of colors. The cost-effectiveness of calculating each set of color values is not high. Therefore, under normal circumstances, image forming devices will only select a part of the mapping relationship for storage at intervals (for example, 5000 groups can be stored). However, some users have special requirements for color, and the above strategy is difficult to meet the needs of these users. For example, some users want to print out pictures input to the image forming device with a higher degree of restoration.
[0083] In the related art, an image forming device will perform interpolation calculation on a 3-D mapping table according to user preferences, but the result of the interpolation calculation will always exist in the 3-D mapping table, causing the images output by the same image forming device to reflect the user's preferences and fail to meet the needs of other users.
[0084] In view of the above problems, the embodiments of the present application provide an image processing method, a control device, an image forming device and a system. The embodiments of the present application can display various color systems included in the image to be printed on the control device, as well as color adjustment options for adjusting the properties of each color system, so that the user can adjust a certain color system individually according to the needs, which greatly facilitates the use of the user and meets the special needs of the user. At the same time, the embodiments of the present application can also determine the local color mapping table corresponding to the special color system according to the special color system selected by the user and the property adjustment of the special color system, and use the local color mapping table to perform color conversion processing on the special color system, thereby ensuring the color restoration quality of the output image, and the local color mapping table will not affect the global color mapping table (i.e., the above-mentioned 3-D mapping table), so that all pictures output by the image forming device will not reflect the user's preferences.
[0085] A detailed description is given below with reference to the accompanying drawings.
[0086] See also Figure 2 , is a flow chart of an image processing method provided in an embodiment of the present application. The method can be applied to Figure 1 The application scenarios shown are as follows: Figure 2 As shown, the specific steps include the following steps.
[0087] S201: Controlling a device to obtain an image to be printed.
[0088] In the embodiment of the present application, the image to be printed obtained by the control device is a color image, that is, the image to be printed includes multiple colors. The image to be printed can be an image stored in the control device, an image obtained by online search, or an image uploaded by a user, and the embodiment of the present application does not make specific requirements for this.
[0089] S202: Controlling the device to display the color system included in the image to be printed and the color adjustment options for adjusting the properties of the color system.
[0090] After the control device acquires the image to be printed, it performs analysis processing on the image to be printed, and displays the color system included in the image to be printed and the color adjustment options for adjusting the attributes of the color system according to the analysis processing result.
[0091] In one possible implementation, for the acquired image to be printed, the control device first counts the color distribution of the image to be printed, and then performs color gamut segmentation on the image to be printed according to the color distribution of the image to be printed to obtain multiple color gamuts of the image to be printed, and then performs chromaticity distribution statistics on each color gamut of the image to be printed to obtain the color gamut statistical results of each color gamut of the image to be printed, and displays the color system included in the image to be printed on the UI interface according to the color gamut statistical results of each of the color gamuts.
[0092] In a possible implementation, the control device may use a color clustering algorithm, such as K-means, to count the color distribution of the image to be printed. Specifically, the color space of the image to be printed is determined, such as RGB or LAB, and a separation rule of color components is set according to the color space of the image to be printed. The image to be printed is separated into color systems according to the separation rule of color components, so as to count the color distribution of the image to be printed.
[0093] Exemplarily, if the color space of the image to be printed is the RGB color space, the color separation can be performed by setting the size relationship between R / G / B. For example, to separate the red color system, the difference threshold between the R and G / B components can be set. When R–G> the first threshold and R–B> the first threshold, the color can be considered to be red (other color separations are similar and will not be described in detail in the embodiments of the present application for the sake of brevity).
[0094] For example, if the color space of the image to be printed is the LAB color space, color separation can be performed by setting the size relationship between the A / B components. The separation process is similar to the above-mentioned RGB space. For example, the red color system is separated because in the LAB space, the size of the A channel value represents the red-green color system. The value range of the A value can be set. When a∈[0, the second threshold], the color can be considered to be red (other separations are similar. For the sake of brevity, the embodiments of the present application will not be repeated here).
[0095] After the color system of the image to be printed is separated, the color systems included in the image to be printed and the range of each color system can be known, thereby obtaining the color distribution of the image to be printed.
[0096] In a possible implementation, according to the color distribution of the image to be printed, the image to be printed can be divided into color gamuts according to the included color systems to obtain multiple color gamuts, wherein each color gamut corresponds to a color system. Figure 3 As shown, the image 300 to be printed includes red, green and blue colors. After the color gamut of the image 300 to be printed is divided, the image corresponding to each color gamut can be obtained, including image 310 corresponding to the first color gamut (red), image 320 corresponding to the second color gamut (green), and image 330 corresponding to the third color gamut (blue).
[0097] In a possible implementation, chromaticity distribution statistics are performed on each color gamut of the image to be printed to obtain color gamut statistics results of each color gamut of the image to be printed, specifically including: obtaining RGB data of each color gamut of the image to be printed, performing CI ELAB color space conversion on the RGB data of each color gamut to obtain LAB data of each color gamut, separating the LAB data of each color gamut into L channel, A channel and B channel, performing chromaticity distribution statistics on each color gamut according to the number of pixels in the A channel and B channel of each color gamut, and obtaining color gamut statistics results of each color gamut. For example, the color gamut statistics results can be referred to Figure 4 The table shown is statistically analyzed from the dimensions of color category, number of pixels, color value range and sorting number, wherein the color category includes color system 1, color system 2...color system n, and the number of pixels can be arranged in order from large to small, that is, the number of pixels A of color system 1> the number of pixels B of color system 2>...> the number of pixels N of color system n, and the color value range can include L value, A value and B value in LAB space. Of course, in actual applications, users can design the content of the table according to their needs, and the embodiments of the present application do not make specific requirements for this.
[0098] After obtaining the color gamut statistical results, the color system included in the image to be printed can be displayed on the UI interface according to the color gamut statistical results. The embodiment of the present application does not make specific requirements on the order in which the color systems are displayed on the UI interface. For example, the color system included in the printed image can be displayed in the order from small to large in terms of the number of pixels, or in the order from large to small in terms of the number of pixels, or in the order according to user preferences, etc.
[0099] In one possible implementation, when displaying the color system included in the image to be printed, the value range of the L channel, A channel and B channel corresponding to each color system can also be displayed, so as to facilitate the user to adjust the channel range of the color system and ensure that the selection of each color system meets the user's needs.
[0100] It should be noted that the color scheme displayed on the UI interface is an example color of the corresponding color scheme.
[0101] In a possible implementation, in order to facilitate the user to adjust each color system, a color adjustment option for adjusting the properties of the color system, such as brightness, saturation, expected R / G / B values, etc., is also displayed on the interface of the control device. Figure 5As shown in the figure, when the user selects the color system they want to adjust, such as color system 1, the color adjustment option will be automatically associated with the color system for adjusting the properties of the color system. The user can adjust the property value of the color system through the slider, or manually enter the desired target property of the color system. And when the user adjusts the corresponding property, the change of the adjusted color system can also be displayed on the interface, so that the user can check whether it is the effect they want, such as Figure 5 As shown in “Changes in Color System 1 after adjustment”.
[0102] S203: The control device determines a special color system according to the user's selection, and determines a desired target attribute of the special color system according to the user's operation on the color adjustment option.
[0103] Based on the settings of the UI interface of this application, users can select the type of color system that needs special processing on the UI interface according to their attention to different colors. The special processing includes targeted adjustment of the brightness and saturation of the color system, and manual setting of the R / G / B values corresponding to the color system. Of course, in actual applications, other attribute values that need special processing can also be designed, and the embodiments of this application do not make specific requirements for this.
[0104] The control device determines a special color system, ie, a type of color system that needs special processing, according to the user's selection, and determines a desired target attribute of the special color system according to the user's operation on the color adjustment option.
[0105] For example, Figure 6 As shown, the control device determines that the special color system is the red system according to the user's selection, and the color range parameters of the red system are (235, 31, 9), (245, 33, 51) and (250, 92, 64). After the user adjusts the brightness, saturation, expected R / G / B values and other parameters according to the color range parameters of the red system, the color target parameters, that is, the expected target attributes, are obtained, (231, 71, 57), (233, 79, 95) and (255, 133, 122).
[0106] The embodiment of the present application can display various color systems included in the image to be printed, as well as color adjustment options for adjusting the properties of each color system on the control device, so that the user can adjust a certain color system individually according to the needs, which greatly facilitates the user's use and meets the special needs of the user. In addition, the color system property adjustment interface designed in the embodiment of the present application is very easy for the user to understand.
[0107] S204: The control device sends the image to be printed, the special color system, and the desired target attribute of the special color system to the image forming device.
[0108] After determining the special color system of the image to be printed and the desired target attribute of the special color system, the control device can send the image to be printed, the special color system and the desired target attribute of the special color system to the image forming device.
[0109] S205: The image forming device obtains dynamic update parameters of the color mapping table according to the special color system and the expected target attributes of the special color system.
[0110] After obtaining the special color system and the expected target attributes of the special color system, the image forming device can obtain the dynamic update parameters of the color mapping table based on the special color system and the expected target attributes of the special color system, wherein the dynamic update parameters of the color mapping table include the value range of the L / A / B channels of the special color system and the expected target attributes.
[0111] S206: The image forming device generates at least one local color mapping table according to the preset global color mapping table and the dynamic update parameters of the color mapping table, wherein one local color mapping table corresponds to one special color system.
[0112] In the embodiment of the present application, after acquiring the dynamic update parameters of the color mapping table, the image forming device can perform separation processing on the preset global color mapping table according to the dynamic update parameters of the color mapping table to obtain at least one separation mapping table, and then perform interpolation fitting calculation on the at least one separation mapping table according to the dynamic update parameters of the color mapping table to generate at least one local color mapping table. Among them, one separation table corresponds to one special color system, and one local color mapping table corresponds to one special color system.
[0113] like Figure 7 As shown in the figure, taking the red color system as an example, after the interpolation fitting calculation, a mapping table of all colors within the red color system can be dynamically generated. This mapping table can also be called a local color mapping table for the red color system. When the special color system includes n, a local color mapping table for each special color system can be generated, such as Figure 8 shown.
[0114] It can be understood that the preset global color mapping table of the embodiment of the present application is set when the image forming device leaves the factory. It is a parameter that takes into account the comprehensive effects of all colors and will not change with changes in the printed content. The local color mapping table is a color mapping table of multiple local color systems that is automatically generated based on user preferences and will change with changes in the printed content.
[0115] The embodiment of the present application uses a unique UI design to enable the user to accurately express the user's printing intention for the colors in the color image when printing a single color picture, and use this intention as an input parameter for generating a local color mapping table. By generating a local color mapping table, the user's printing intention can be accurately expressed.
[0116] S207: The image forming device performs color conversion processing on the image to be printed according to a preset global color mapping table and a local color mapping table to obtain a plurality of color converted images.
[0117] In the embodiment of the present application, after the image forming device obtains the local color mapping table, it can perform color conversion processing on the image to be printed according to the preset global color mapping table and the local color mapping table to obtain multiple color converted images.
[0118] In one possible implementation, Fig. 9 As shown, the image forming device performs color conversion processing on the image to be printed according to the preset global color mapping table and the local color mapping table to obtain multiple color converted images, which specifically includes the following steps:
[0119] S901: performing a color separation operation on the image to be printed to obtain the color system included in the image to be printed;
[0120] This step may refer to the color gamut segmentation process of the above embodiment, and will not be described in detail here for the sake of brevity.
[0121] S902: Determine whether it belongs to a special color system;
[0122] It is judged whether each color system of the obtained image to be printed belongs to a special color system. If it does, execute S903; if it does not, execute S904.
[0123] Specifically, the image RGB data corresponding to each color system can be converted into LAB data, and whether the color system belongs to the special color system can be judged according to the Euclidean distance of the LAB data corresponding to each color system. If the Euclidean distance of the LAB data corresponding to the color system is within the set range, it is considered that the color system belongs to the special color system. If the Euclidean distance of the LAB data corresponding to the color system is not within the set range, it is considered that the color system does not belong to the special color system.
[0124] S903: performing color conversion processing on the color system according to the local color mapping table corresponding to the special color system to obtain a first color conversion image;
[0125] In a specific implementation, for a special color system, a local color mapping with the smallest Euclidean distance is selected to perform color conversion processing on the color system.
[0126] S904: Performing color conversion processing on the color system according to a preset global color mapping table to obtain a second color converted image.
[0127] S208: The image forming device performs image fusion processing on the multiple color converted images to obtain a fused image.
[0128] After obtaining a plurality of color images, image fusion processing is performed on the plurality of color images to obtain a fused image. For example, after obtaining a first color conversion image and a second color conversion image, image fusion processing is performed on the first color conversion image and the second color conversion image to obtain a fused image.
[0129] It should be noted that the image fusion processing can refer to the description in the relevant technology. For the sake of brevity, the embodiments of the present application will not be described in detail here.
[0130] S209: The image forming device prints out the fused image.
[0131] For example, Fig.10 As shown, after the color gamut of the image to be printed is separated, regional maps of red, green and blue can be obtained. According to the regional maps of each color system, it is determined whether the color system belongs to a special color system, and the corresponding color mapping table is used for color conversion processing. For example, the special color system red system adopts the red local color mapping table, the special color system green system adopts the green color mapping table, and the non-special color system blue system adopts the preset global color mapping table. The red color conversion image, the green color conversion image and the blue color conversion image are obtained respectively. After the red color conversion image, the green color conversion image and the blue color conversion image are fused, a fused image is obtained, and the fused image is printed out.
[0132] The embodiment of the present application can perform color distribution analysis on each single color image that needs to be printed, and dynamically generate a corresponding local color mapping table based on the color distribution characteristics of the single image. Since the local color table is embodied in the form of an independent configuration file, etc., and changes with the change of the image to be printed, the color preference reflected in the local mapping table will not affect the global mapping table, and thus will not cause all pictures output by the image forming device to reflect the user's preference.
[0133] The embodiment of the present application can ensure that the color after the user adjusts the attributes is also within the range of the mapping table, thereby ensuring the color restoration quality of the image to be printed.
[0134] Corresponding to the above embodiment, the embodiment of the present application also provides a structural schematic diagram of a control device.
[0135] See also Fig.11 , is a schematic diagram of the structure of a control device provided in an embodiment of the present application. Fig.11As shown, the control device 1100 includes: an acquisition unit 1101, used for acquiring an image to be printed; a display unit 1102, used for displaying the color system included in the image to be printed, and a color adjustment option for adjusting the attributes of the color system; a determination unit 1103, used for determining a special color system according to a user's selection, and determining the desired target attributes of the special color system according to the user's operation of the color adjustment option; and a sending unit 1104, used for sending the image to be printed, the special color system, and the desired target attributes of the special color system to an image forming device.
[0136] The specific contents of the embodiments of the present application can be found in the description of the above method embodiments, which will not be repeated here for the sake of brevity.
[0137] Corresponding to the above-mentioned embodiment, the present application also provides a structural schematic diagram of an image forming device.
[0138] See also Fig.12 , is a schematic diagram of the structure of an image forming device provided in an embodiment of the present application. Fig.12 As shown, the image forming device 1200 includes: a receiving unit 1201, which is used to receive the image to be printed, the special color system and the expected target attributes of the special color system sent by the control device; an acquisition unit 1202, which is used to acquire the dynamic update parameters of the color mapping table according to the special color system and the expected target attributes of the special color system; a generation unit 1203, which is used to generate at least one local color mapping table according to the preset global color mapping table and the dynamic update parameters of the color mapping table, wherein one local color mapping table corresponds to one special color system; a color conversion processing unit 1204, which is used to perform color conversion processing on the image to be printed according to the preset global color mapping table and the local color mapping table to obtain multiple color converted images; a fusion unit 1205, which is used to perform image fusion processing on the multiple color converted images to obtain a fused image; and a print output unit 1206, which is used to print out the fused image.
[0139] The specific contents of the embodiments of the present application can be found in the description of the above method embodiments, which will not be repeated here for the sake of brevity.
[0140] Corresponding to the above-mentioned embodiment, the present application also provides a structural schematic diagram of an image forming system.
[0141] See also Fig.13 , is a schematic diagram of the structure of an image forming system provided in an embodiment of the present application. Fig.13 As shown, the image forming system 1300 includes: Fig.11 The control device 1100 and Fig.12 The image forming apparatus 1200 is configured so as to be communicatively connected with the control apparatus 1100 .
[0142] The specific contents of the embodiments of the present application can be found in the description of the above method embodiments, which will not be repeated here for the sake of brevity.
[0143] Corresponding to the above embodiment, the embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium may store a program, wherein when the program is running, the device where the computer-readable storage medium is located may be controlled to execute some or all of the steps in the above method embodiment. In a specific implementation, the computer-readable storage medium may be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0144] In a specific implementation, the present application also provides a computer program product, wherein the computer program product includes executable instructions, and when the executable instructions are executed on a computer, the computer executes part or all of the steps in each embodiment of the image processing method provided in the present application.
[0145] Those skilled in the art can clearly understand that the technology in the embodiments of the present application can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application or some parts of the embodiments.
[0146] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.
Claims
1. An image processing method, characterized in that: Applied to a control device, the method comprises: Obtaining an image to be printed; Displaying the color system included in the image to be printed and the color adjustment options for adjusting the properties of the color system; Determining a special color system according to a user's selection, and determining a desired target attribute of the special color system according to the user's operation on the color adjustment option; The image to be printed, the special color system, and a desired target attribute of the special color system are sent to an image forming device.
2. The method according to claim 1, characterized in that Before displaying the color system included in the image to be printed, the method further includes: Counting the color distribution of the image to be printed; Performing color gamut segmentation on the image to be printed according to the color distribution of the image to be printed to obtain multiple color gamuts; Chromaticity distribution statistics are performed on each of the color gamuts to obtain color gamut statistics results of each of the color gamuts.
3. The method according to claim 2, characterized in that The counting of the color distribution of the image to be printed includes: A color clustering algorithm is used to count the color distribution of the image to be printed.
4. The method according to claim 2, characterized in that: The performing chromaticity distribution statistics on each of the color gamuts to obtain color gamut statistics results for each of the color gamuts includes: Obtaining RGB data of each color gamut; Perform CIELAB color space conversion on the RGB data of each color gamut to obtain LAB data of each color gamut; Separating the LAB data of each color gamut into an L channel, an A channel and a B channel; Chromaticity distribution statistics are performed on each color gamut according to the number of pixels in the A channel and the B channel of each color gamut to obtain color gamut statistical results of each color gamut.
5. The method according to claim 4, characterized in that The display of the color system of the image to be printed includes: The color systems included in the to-be-printed image and the value ranges of the L channel, the A channel and the B channel corresponding to each color system are displayed according to the color gamut statistical results of each color gamut.
6. An image processing method, characterized in that: Applied to an image forming device, the method comprises: receiving an image to be printed, a special color system and a desired target attribute of the special color system sent by a control device; Acquire dynamic update parameters of a color mapping table according to the special color system and the expected target attributes of the special color system; Generate at least one local color mapping table according to a preset global color mapping table and a dynamic update parameter of the color mapping table, wherein one local color mapping table corresponds to one special color system; Performing color conversion processing on the image to be printed according to the preset global color mapping table and the local color mapping table to obtain a plurality of color converted images; Performing image fusion processing on the multiple color conversion images to obtain a fused image; The fused image is printed out.
7. The method according to claim 6, characterized in that Generating at least one local color mapping table according to a preset global color mapping table and a dynamic update parameter of the color mapping table, including: Separating a preset global color mapping table according to the dynamic update parameters of the color mapping table to obtain at least one separated mapping table; An interpolation fitting calculation is performed on at least one of the separation mapping tables according to the dynamic update parameters of the color mapping table to generate at least one local color mapping table.
8. The method according to claim 6, characterized in that The image to be printed is subjected to color conversion processing according to the preset global color mapping table and the local color mapping table to obtain a plurality of color converted images, including: Performing a color system separation operation on the image to be printed to obtain the color system included in the image to be printed; Determine whether the color system belongs to a special color system; When the color system belongs to a special color system, performing color conversion processing on the color system according to a local color mapping table corresponding to the special color system to obtain a first color conversion image; When the color system does not belong to a special color system, performing color conversion processing on the color system according to the preset global color mapping table to obtain a second color conversion image; The performing image fusion processing on the multiple color conversion images to obtain a fused image includes: An image fusion process is performed on the first color converted image and the second color converted image to obtain a fused image.
9. The method according to claim 8, characterized in that The determining whether the color system belongs to a special color system includes: Convert the image RGB data corresponding to the color system into LAB data; Whether the color system belongs to a special color system is determined according to the Euclidean distance of the LAB data corresponding to the color system.
10. The method according to claim 9, characterized in that The color conversion process of the color system according to the local color mapping table corresponding to the special color system includes: The local color mapping with the smallest Euclidean distance is selected to perform color conversion processing on the color system.
11. A control device, characterized in that: include: An acquisition unit, used for acquiring an image to be printed; A display unit, for displaying the color system included in the image to be printed, and a color adjustment option for adjusting the properties of the color system; a determination unit, configured to determine a special color system according to a user's selection, and determine a desired target attribute of the special color system according to a user's operation on the color adjustment option; The sending unit is used to send the image to be printed, the special color system and the expected target attribute of the special color system to the image forming device.
12. An image forming device, characterized in that: include: A receiving unit, configured to receive an image to be printed, a special color system, and a desired target attribute of the special color system sent by a control device; An acquisition unit, configured to acquire dynamic update parameters of a color mapping table according to the special color system and a desired target attribute of the special color system; A generating unit, configured to generate at least one local color mapping table according to a preset global color mapping table and a dynamic update parameter of the color mapping table, wherein one local color mapping table corresponds to one special color system; A color conversion processing unit, used for performing color conversion processing on the image to be printed according to the preset global color mapping table and the local color mapping table to obtain a plurality of color converted images; A fusion unit, used for performing image fusion processing on the multiple color conversion images to obtain a fused image; A printing output unit is used to print out the fused image.
13. An image forming system, characterized in that: The invention comprises the control device according to claim 11 and the image forming device according to claim 12, wherein the control device and the image forming device are communicatively connected.
Citation Information
Patent Citations
Printing method, processor, image forming apparatus, and computer readable storage medium
CN115826889A
Color correction method and device for augmented reality shooting and storage medium
CN117240981A
Printing device, printing method, and non-transitory computer-readable storage medium for displaying preview images corresponding to results of gamut mapping processes
US20230384987A1
Cited By
Color matching method and device, electronic equipment, storage medium and program product
CN121442049A