CN114202591A - Color transition method, device and equipment based on ground color removal and storage medium - Google Patents
Color transition method, device and equipment based on ground color removal and storage medium Download PDFInfo
- Publication number
- CN114202591A CN114202591A CN202010982206.4A CN202010982206A CN114202591A CN 114202591 A CN114202591 A CN 114202591A CN 202010982206 A CN202010982206 A CN 202010982206A CN 114202591 A CN114202591 A CN 114202591A
- Authority
- CN
- China
- Prior art keywords
- color
- transition
- pixel point
- values
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B41—PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
- B41J—TYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
- B41J29/00—Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
- B41J29/38—Drives, motors, controls or automatic cut-off devices for the entire printing mechanism
- B41J29/393—Devices for controlling or analysing the entire machine ; Controlling or analysing mechanical parameters involving printing of test patterns
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
Abstract
The invention belongs to the technical field of ink-jet printing, and particularly discloses a color transition method, a device, equipment and a storage medium based on ground color removal. The method comprises the following steps: obtaining a color difference delta E; judging the color difference delta E and the transition interval [ K1,K2]The magnitude relationship between the endpoints of (1); when Δ E<K1Then, adjusting the color value of each color channel of the pixel point to 0; when K is1<△E<K2And acquiring a transition coefficient K, and multiplying the color values of all the color channels of the pixel points by the transition coefficient K. According to the embodiment of the invention, when the color difference delta E is positioned in the transition interval, the color values of all color channels of the pixel point are multiplied by the transition coefficient K, so that the color values of the pixel point are correspondingly reduced. Therefore, when printing, the color density of the pixel points with the adjusted color values is correspondingly reduced, thereby reducing the visual contrast with the blank area on the color,the technical problem of uneven color transition after the ground color is removed is effectively solved.
Description
Technical Field
The invention relates to the technical field of ink-jet printing, in particular to a color transition method, a device, equipment and a storage medium based on under color removal.
Background
The inkjet printing technique is a printing technique in which ink is ejected in the form of ink droplets through a head onto a printing medium to form a printed image. For example, in CMYK four-color printing, print images of different colors are formed on a print medium by color register printing (i.e., ink of different colors is ejected on the same area of the print medium).
In the field of inkjet printing technology, in order to save ink consumption and reduce printing cost, under color removal is usually performed on an image to be printed. The background color removal means that when the color difference between the color of the pixel point in the image to be printed and the background color is within a certain range, the color of the pixel point is removed, namely, the color value of each color channel of the pixel point is adjusted to be zero. Therefore, when the ink-jet printing is carried out on the image dot matrix data obtained by screening the image to be printed, the data corresponding to the pixel points with the color values of all the color channels being zero are used for representing the ink output of the nozzle to be zero. Therefore, by adopting the mode, when the color of a large area in the image to be printed is similar to that of the printing medium, ink consumables can be effectively saved, and the printing efficiency is improved.
Because the color change of an image is usually gradual, large color difference change cannot be suddenly generated, namely when the color difference between the color of some pixel points and the background color is the maximum value of the allowed color difference, the pixel points with the color difference between the color and the background color exceeding the maximum value of the allowed color difference usually exist around the pixel points. Therefore, if the above technical solution is adopted, the edge of the area (i.e. blank area) of the printing medium not covered with ink may suddenly appear with a higher concentration of ink, which forms a strong contrast with the printing medium, and this phenomenon may cause color transition unevenness of the whole picture, and affect the printing quality.
Disclosure of Invention
In view of this, embodiments of the present invention provide a color transition method, device, apparatus, and storage medium based on under color removal, so as to solve the technical problem in the prior art that color transition is not uniform after under color removal.
In a first aspect, an embodiment of the present invention provides a color transition method based on under color removal, where the method includes:
s10: respectively determining the color difference delta E between the color and the ground color of each pixel point in the image to be printed;
s20: judging the color difference delta E and the transition interval [ K1,K2]The magnitude relationship between the endpoints of (1); wherein, when Δ E<K1When so, go to S30; when K is1<△E<K2When so, go to S40;
s30: adjusting the color value of each color channel of the pixel point to be 0;
s40: obtaining a transition coefficient K, wherein the value range of the transition coefficient K is 0< K < 1;
s50: and multiplying the color values of all color channels of the pixel points by a transition coefficient K.
The embodiment of the invention determines the color difference delta E between the color and the ground color of each pixel point in the image to be printed and judges the color difference delta E and the transition interval [ K ] one by one1,K2]When the color difference delta E is located in the transition interval, the color values of all color channels of the pixel point are multiplied by the transition coefficient K, so that the color values of the pixel point are correspondingly reduced. And then, screening the adjusted image to be printed to obtain image dot matrix data. Therefore, when printing with this image dot matrix data, the colour value correspondingly reduces through the colour density of the pixel of adjustment to reduce and blank area visual contrast in the colour, effectively solve the background and get rid of the inhomogeneous technical problem of back colour transition.
Preferably, at S10: respectively determining the color difference delta E between the color and the ground color of each pixel point in the image to be printed, wherein the color difference delta E comprises the following steps:
s11: acquiring an LAB value of each pixel point of an image to be printed, and recording the LAB value as a first LAB value;
s12: acquiring an LAB value of the background color and recording the LAB value as a second LAB value;
s13: and respectively calculating the color difference delta E between the color and the ground color of each pixel point according to each first LAB value and each second LAB value.
Embodiments of the invention account for the first LAB value and the second LAB value by determining the first LAB value and the second LAB valueThe technical scheme is convenient to calculate the color difference delta E between the color and the ground color of each pixel point and obtain the LAB value to calculate the color difference. In particular, when the method is realized, a formula can be adoptedPerforming a calculation wherein L1、A1And B1Denotes the first LAB value, L2、A2And B2A second LAB value is indicated.
Preferably, at S11: in obtaining the LAB value of each pixel point of the image to be printed, the method comprises the following steps:
s111: traversing each pixel point in the image to be printed to obtain color values of each color channel of the pixel point, and recording the color values as first color values;
s112: converting the first color value to the first LAB value.
According to the embodiment of the invention, the LAB value of the image to be printed is acquired by reading the color values (such as CMYK values or RGB values) of the pixel points one by one and converting the color values into the first LAB value according to a specific algorithm. By adopting the embodiment of the invention, the LAB value detection is carried out by adopting related equipment (such as a color difference meter) without printing the test image according to the image to be printed, so that the method is more efficient and convenient.
Preferably, at S12: the LAB values for the ground color are obtained by:
s121: obtaining color values of all color channels of the ground color and recording the color values as second color values;
s122: converting the second color value to the second LAB value.
According to the embodiment of the invention, the color value of the background color is determined and converted into the second LAB value according to the specific algorithm, so that the LAB value of the background color is acquired without adopting specific LAB value detection equipment.
Preferably, the transition coefficient K is positively correlated with the color difference Δ E. As mentioned above, the color density of the pixel point with the adjusted color value is correspondingly reduced, so that the visual contrast with the blank area on the color is reduced, and the technology of uneven color transition after the ground color is removed is effectively solvedThe problem of operation. In the embodiment of the invention, the transition coefficient K is in positive correlation with the color difference delta E, so that the transition coefficient K corresponding to a pixel point with larger color difference of the ground color is larger, and the transition coefficient K corresponding to a pixel point with smaller color difference of the ground color is smaller, namely, the color difference delta E with the ground color is closer to K2The color change before and after adjustment of (A) is close to 0, and the color difference Delta E from the ground color is close to K1The color of (2) is changed as much as possible before and after the adjustment. And then when guaranteeing to realize better colour transition with the blank region, further guarantee with the colour transition of high concentration region, further print quality.
Preferably, at S40: the obtaining of the transition coefficient K includes:
s41: calculating the transition coefficient K according to a first formula, wherein the first formula is as follows:
wherein K represents a transition coefficient, K1Denotes the left end of the transition region, K2The right end of the transition region is indicated and Δ E indicates the color difference.
The embodiment of the invention exceeds K by the chromatic aberration delta E1Is evenly distributed to the transition region [ K ]1,K2]When Δ E is closer to K1When the color value of the corresponding pixel point is closer to 0, K is closer to 0, so that the color transition of the printed image and the blank area can be realized. As Δ E approaches K2When the color transition method is used, the color transition coefficient K is proportional to the color difference delta E, so that the color transition is more uniform.
Preferably, K1Equal to 1.5. When the color difference is less than 1, the human eye cannot recognize the difference in color, and when the color difference is between 1 and 2, the human eye can recognize the difference in color finely. Thus, K is1When set to 1.5, likeWhen the color difference delta E between the color of the pixel point and the background color is less than 1.5, the color value of each color channel of the corresponding pixel point is set to be zero due to difficulty in identification, so that the ink consumption is reduced to the maximum extent. At the same time, can also avoid the problem that K is1The setting is too large, resulting in some colors not being printable, resulting in a reduction in print quality.
In a second aspect, an embodiment of the present invention provides a color transition device based on under color removal, where the device includes:
the color difference determining module is used for respectively determining the color difference delta E between the color and the ground color of each pixel point in the image to be printed;
a judging module for judging the color difference delta E and the transition interval [ K1,K2]The magnitude relationship between the endpoints of (1); wherein, when Δ E<K1The judging module is also used for selecting the first adjusting module to execute; when K is1<△E<K2The judging module is also used for selecting a transition coefficient determining module and a second adjusting module to execute;
the first adjusting module is used for adjusting the color values of all color channels of the pixel points to be 0;
the transition coefficient determining module is used for acquiring a transition coefficient K, and the value range of the transition coefficient K is 0< K < 1;
and the second adjusting module is used for multiplying the color values of all the color channels of the pixel points by the transition coefficient K.
In a third aspect, an embodiment of the present invention provides a printing apparatus including: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement any of the methods of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a storage medium having stored thereon computer program instructions which, when executed by a processor, implement any of the methods of the first aspect.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and for those skilled in the art, without any creative effort, other drawings may be obtained according to the drawings, and these drawings are all within the protection scope of the present invention.
Fig. 1 is a schematic diagram of an image to be printed according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of the effect of printing in the prior art.
Fig. 3 is a schematic flowchart of a color transition method based on under color removal according to an embodiment of the present invention.
Fig. 4 is a schematic flow chart of a method for calculating a color difference Δ E according to an embodiment of the present invention.
Fig. 5 is a flowchart illustrating a method for obtaining LAB values of each pixel of an image to be printed according to an embodiment of the present invention.
Fig. 6 is a flowchart illustrating a method for obtaining LAB values of a background color according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of a color transition device based on under color removal according to an embodiment of the present invention.
Fig. 8 is a schematic structural diagram of a printing apparatus according to an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
In the field of inkjet printing technology, the amount of ink discharged from nozzles is controlled using image dot matrix data. The image dot matrix data is obtained by screening (also called rasterization image processing) the image to be printed, and is usually in prn format or prt format. The image dot matrix data is in the form of a two-dimensional matrix composed of a plurality of data each for characterizing the ink discharge amount of the corresponding nozzle. For example, after 2-bit screening, the data in the image dot matrix data includes 4 values, which are 00, 01, 10, and 11, respectively. Wherein data 00 is used to characterize the nozzle as having zero ink output; data 01 is used to characterize the nozzle as emitting a small amount of ink (e.g., 25%); data 10 is used to characterize the nozzle as having a medium ink (e.g., 50%); data 11 is used to characterize the nozzle as delivering a large ink volume (e.g., 100%). When the color value of each color channel of the pixel is zero, the pixel is screened to obtain data 00, so that the ink output of the characterization nozzle is 0. Taking CMYK four-color printing as an example, when color values of a Cyan channel (Cyan), a Magenta channel (Magenta), a Yellow channel (Yellow), and a Black channel (Black) of a certain pixel point are all zero, the pixel point obtains data 00 after performing screening processing.
In order to save ink consumption and reduce printing cost, the background color of the image to be printed is usually removed. The background color removal means that when the color difference between the color of the pixel point in the image to be printed and the background color is within a certain range, the color of the pixel point is removed, namely, the color value of each color channel of the pixel point is adjusted to be zero. Therefore, when the ink-jet printing is carried out on the image dot matrix data obtained by screening the image to be printed, the data corresponding to the pixel points with the color values of all the color channels being zero are used for representing the ink output of the nozzle to be zero.
For easy understanding, please refer to fig. 1, the image to be printed 10 includes 9 pixels, and the color difference between the color of the 9 pixels and the color of the printing medium (also called ground color) isWhen the maximum allowable color difference is 2, the color values of the color channels of the pixel point of the 1 st row and the 1 st column, the pixel point of the 1 st row and the 2 nd column and the pixel point of the 2 nd row and the 1 st column are all adjusted to be 0. At this time, as shown in fig. 2, a blank area 20 and an image area 30 in the upper left corner of the printed image are strongly contrasted, and the color transition effect is poor.
Therefore, the embodiment of the invention provides a color transition method, a color transition device, color transition equipment and a storage medium based on background color removal, so as to solve the technical problem of poor color transition effect during background color removal.
Fig. 3 is a schematic flow chart of a color transition method for removing a background color according to an embodiment of the present invention, which includes the following steps.
S10: respectively determining the color difference delta E between the color and the ground color of each pixel point in the image to be printed;
s20: judging the color difference delta E and the transition interval [ K1,K2]The magnitude relationship between the endpoints of (1); wherein, when Δ E<K1When so, go to S30; when K is1<△E<K2When so, go to S40;
s30: adjusting the color value of each color channel of the pixel point to be 0;
s40: obtaining a transition coefficient K, wherein the value range of the transition coefficient K is 0< K < 1;
s50: and multiplying the color values of all color channels of the pixel points by a transition coefficient K.
Specifically, the color difference Δ E can be calculated based on the LAB value. Wherein L represents luminance; the positive number of A represents red, and the negative number represents green; a positive number for B represents yellow and a negative number represents blue. For example, LAB values of certain pixel points of the image to be printed are respectively L1=70,A1=55,B1LAB values for base colour are L for 502=75,A2=50,B240 according to the formulaThe color difference Δ E was determined to be about 12.25. In other embodiments of the present invention, other formulas may be used to calculate the color difference Δ E.
In one embodiment of the invention, the external input is responded to acquire as the end point of the transition interval, namely K1And K2,K1And K2Typically a positive number.
It is to be noted that the transition region [ K ]1,K2]And may be set to an open interval or a half-open and half-closed interval.
In different color modes, the color channels are also different. For example, in the CMYK mode, a Cyan color channel (Cyan), a Magenta color channel (Magenta), a Yellow color channel (Yellow), and a Black color channel (Black) are included. In the RGB mode, a Red channel (Red), a Green channel (Green), and a Blue channel (Blue) are included. The color value of the color channel determines the color of the pixel, for example, for 100% cyan, the color value of the cyan channel is 100%, and the color values of the other color channels are 0. Therefore, according to the color value combination of each color channel, various colors can be obtained.
Therefore, when the color values of the color channels of the pixel points are all adjusted to be 0, the color of the pixel points is equivalently removed, so that when the printing is performed, the corresponding nozzles do not jet ink, and the ink consumption is saved.
The obtaining of the transition coefficient K includes various implementations. In one implementation, the transition coefficient K is obtained in response to an external input. Further, an external input may be determined according to the interval (0,1), and when the external input is located in the interval (0,1), the external input may be responded as the transition coefficient K. And when the external input is not positioned in the interval (0,1), the external input is not taken as the transition coefficient K, and prompt information can be output for prompting a user to input errors.
In one embodiment of the invention, the same transition coefficient K is used regardless of the value of the color difference Δ E. For example, the color difference Δ E between the color of the existing pixel point P1 and the ground color is 1.6; the color difference Δ E between the color of the pixel P2 and the ground color is 2. The transition interval is (1,3), and since the color difference Δ E between the pixel point P1 and the pixel point P2 and the background color are all located in the transition interval (1,3), the transition coefficient K is obtained, for example, the transition coefficient K is all obtained to be 0.5.
In another embodiment of the invention, the transition coefficient K is positively correlated to the color difference Δ E. That is, the larger the color difference Δ E between the pixel point and the ground color is, the larger the transition coefficient K corresponding to the pixel point is. For example, the color difference Δ E between the color of the conventional pixel P3 and the background color is 1.5; the color difference Δ E between the color of the pixel P4 and the ground color is 2. The transition interval is (1,3), and since the color difference Δ E between the pixel point P3 and the pixel point P4 and the ground color are all located in the transition interval (1,3), the transition coefficient K is obtained. For example, the transition coefficient K correspondingly obtained by the pixel point P3 is 0.5; the transition coefficient K correspondingly obtained by the pixel point P4 is 0.8.
In one embodiment of the present invention, the corresponding transition coefficient K can be obtained by performing an operation on the color difference Δ E. Specifically, the transition coefficient K is calculated according to a first formula, where the first formula is:
wherein K represents a transition coefficient, K1Denotes the left end of the transition region, K2Right end point representing a transition regionAnd Δ E represents a chromatic aberration.
For example, if the transition interval is (1,3), the color difference Δ E between the color of the pixel P5 and the background color is 2, and the transition coefficient K is equal to 0.5.
It is apparent that in this embodiment, the closer Δ E is to K1When the color value of the corresponding pixel point is closer to 0, K is closer to 0, so that the color transition of the printed image and the blank area can be realized. As Δ E approaches K2When the color value of the corresponding pixel point is closer to 1, the color value of the corresponding pixel point is closer to the original color value, so that the color transition of the printed image can be well realized in a high-concentration area. And because the transition coefficient K and the color difference delta E are proportional, the color transition is more uniform.
Multiplying the color values of the color channels of the pixel points by a transition coefficient K comprises: when the color channels of the pixel point include 4 channels, namely a cyan channel, a magenta channel, a yellow channel and a black channel, the color values of the 4 channels are multiplied by a transition coefficient K. For example, if the transition coefficient K is 0.5, and the color values of the cyan channel, the magenta channel, the yellow channel, and the black channel are 50%, 60%, 70%, and 0%, respectively, then after the color values of the color channels of the pixel are multiplied by the transition coefficient K, the color values of the cyan channel, the magenta channel, the yellow channel, and the black channel are 25%, 30%, 35%, and 0%, respectively.
When the color mode is RGB, the principle is not substantially different from the above embodiment, and it is not further described here.
The embodiment of the invention determines the color difference delta E between the color and the ground color of each pixel point in the image to be printed and judges the color difference delta E and the transition interval [ K ] one by one1,K2]When the color difference delta E is located in the transition interval, the color values of all color channels of the pixel point are multiplied by the transition coefficient K, so that the color values of the pixel point are correspondingly reduced. And then, screening the adjusted image to be printed to obtain image dot matrix data. Therefore, when the image dot matrix data is used for printing, the color density of the pixel point with the adjusted color value is correspondingThe visual contrast with the blank area on the color is reduced, and the technical problem of uneven color transition after the background color is removed is effectively solved.
Fig. 4 is a schematic flow chart of a method for calculating a color difference Δ E according to an embodiment of the present invention, which includes the following steps.
S11: and acquiring an LAB value of each pixel point of the image to be printed, and recording the LAB value as a first LAB value.
S12: and acquiring an LAB value of the background color and recording the LAB value as a second LAB value.
S13: and respectively calculating the color difference delta E between the color and the ground color of each pixel point according to each first LAB value and each second LAB value.
Specifically, the LAB value of each pixel point of the image to be printed is obtained, and the following technical scheme can be adopted: and printing according to the image to be printed to obtain a test image, and detecting the test image by using a color difference meter (also called a spectrocolorimeter) so as to obtain an LAB value of each pixel point.
In an embodiment of the present invention, LAB values of each pixel point can also be obtained through a color picker in image processing software (e.g., Photoshop).
In another embodiment of the present invention, the technical solution shown in fig. 5 may also be adopted to obtain LAB values of each pixel point of the image to be printed, including the following steps.
S111: traversing each pixel point in the image to be printed to obtain color values of each color channel of the pixel point, and recording the color values as first color values;
s112: converting the first color value to the first LAB value.
For example, in a CMYK mode, color values of 4 channels, including a cyan channel, a magenta channel, a yellow channel, and a black channel, of each pixel point can be obtained by traversing each pixel point in the image to be printed. The traversal pixel points may be in a first-row-after-column, first-row-after-row traversal mode, and certainly, other traversal modes may be adopted.
After obtaining the color values of 4 channels, cyan, magenta, yellow, and black, they can be converted to LAB values. Specifically, a configuration file may be created, where the configuration file includes a two-dimensional table, where the color values are used as an index and the LAB values are used as outputs. Therefore, after the color values are determined, the corresponding LAB values can be determined by looking up the two-dimensional table. Of course, the same technical effect can be achieved by using a Look-Up-Table (LUT).
In another embodiment, the color values may also be directly converted to LAB values by a specific algorithm. Since these algorithms belong to the prior art, no further remark is made here.
Referring to fig. 6, in one embodiment of the present invention, the LAB value of the ground color can be obtained as follows.
S121: obtaining color values of all color channels of the ground color and recording the color values as second color values;
s122: converting the second color value to the second LAB value.
Here, the base color refers to a color of the printing medium. In another embodiment of the present invention, the method may further respond to an external input to obtain color values of each color channel of the ground color, record the color values as second color values, and then convert the second color values into the second LAB values. Specifically, since the printing medium is relatively fixed, the user can input the color values of the color channels and then calculate the corresponding LAB values. Of course, it is also possible to preset LAB values or color values of various printing media in a configuration file, and when in use, respond to an external input for characterizing the type of the printing media, and then retrieve corresponding LAB values or color values according to the external input.
In other embodiments, LAB values can be detected on the print medium using a spectrocolorimeter. In another embodiment, the print medium may be scanned, and the image obtained by scanning may be processed in a similar manner as the image to be printed, so as to obtain the LAB value.
In a preferred embodiment of the invention, K1Equal to 1.5. When the color difference is less than 1, the color is hardly recognized by the human eyeAnd when the color difference is between 1 and 2, the human eye can only recognize the difference minutely. Thus, K is1When the color difference delta E between the color of the pixel point and the background color is less than 1.5, the color value of each color channel of the corresponding pixel point is set to be zero due to difficulty in identification, and the ink consumption is reduced to the maximum extent. At the same time, can also avoid the problem that K is1The setting is too large, resulting in some colors not being printable, resulting in a reduction in print quality.
Referring to fig. 7, a schematic structural diagram of a color transition device based on ground color removal according to an embodiment of the present invention is shown, where the device includes:
the color difference determining module is used for respectively determining the color difference delta E between the color and the ground color of each pixel point in the image to be printed;
a judging module for judging the color difference delta E and the transition interval [ K1,K2]The magnitude relationship between the endpoints of (1); wherein, when Δ E<K1The judging module is also used for selecting the first adjusting module to execute; when K is1<△E<K2The judging module is also used for selecting a transition coefficient determining module and a second adjusting module to execute;
the first adjusting module is used for adjusting the color values of all color channels of the pixel points to be 0;
the transition coefficient determining module is used for acquiring a transition coefficient K, and the value range of the transition coefficient K is 0< K < 1;
and the second adjusting module is used for multiplying the color values of all the color channels of the pixel points by the transition coefficient K.
In addition, the color transition method based on under color removal according to the embodiment of the present invention may be implemented by a printing apparatus. Fig. 8 is a schematic diagram illustrating a hardware configuration of a printing apparatus according to an embodiment of the present invention.
The printing device may include a processor and a memory storing computer program instructions.
In particular, the processor may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits that may be configured to implement embodiments of the present invention.
The memory may include mass storage for data or instructions. By way of example, and not limitation, memory may include a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, magnetic tape, or Universal Serial Bus (USB) Drive or a combination of two or more of these. The memory may include removable or non-removable (or fixed) media, where appropriate. The memory may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory is non-volatile solid-state memory. In a particular embodiment, the memory includes Read Only Memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory or a combination of two or more of these.
The processor reads and executes the computer program instructions stored in the memory to implement any one of the color transition methods based on under color removal in the above embodiments.
In one example, the printing device may also include a communication interface and a bus. As shown in fig. 8, the processor, the memory, and the communication interface are connected via a bus to complete communication therebetween.
The communication interface is mainly used for realizing communication among modules, devices, units and/or equipment in the embodiment of the invention.
The bus includes hardware, software, or both that couple the components of the printing device to one another. By way of example, and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hypertransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus or a combination of two or more of these. A bus may include one or more buses, where appropriate. Although specific buses have been described and shown in the embodiments of the invention, any suitable buses or interconnects are contemplated by the invention.
In addition, in combination with the color transition method based on under color removal in the above embodiments, embodiments of the present invention may be implemented by providing a computer-readable storage medium. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any of the above-described embodiments of a color transition method based on under color removal.
It is to be understood that the invention is not limited to the specific arrangements and instrumentality described above and shown in the drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications and additions or change the order between the steps after comprehending the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments mentioned in this patent describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
As described above, only the specific embodiments of the present invention are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention.
Claims (10)
1. A color transition method based on under color removal, the method comprising:
s10: respectively determining the color difference delta E between the color and the ground color of each pixel point in the image to be printed;
s20: judging the color difference delta E and the transition interval [ K1,K2]The magnitude relationship between the endpoints of (1); wherein, when Δ E<K1When so, go to S30; when K is1<△E<K2When so, go to S40;
s30: adjusting the color value of each color channel of the pixel point to be 0;
s40: obtaining a transition coefficient K, wherein the value range of the transition coefficient K is 0< K < 1;
s50: and multiplying the color values of all color channels of the pixel points by a transition coefficient K.
2. The method of claim 1, wherein at S10: respectively determining the color difference delta E between the color and the ground color of each pixel point in the image to be printed, wherein the color difference delta E comprises the following steps:
s11: acquiring an LAB value of each pixel point of an image to be printed, and recording the LAB value as a first LAB value;
s12: acquiring an LAB value of the background color and recording the LAB value as a second LAB value;
s13: and respectively calculating the color difference delta E between the color and the ground color of each pixel point according to each first LAB value and each second LAB value.
3. The method of claim 2, wherein at S11: in obtaining the LAB value of each pixel point of the image to be printed, the method comprises the following steps:
s111: traversing each pixel point in the image to be printed to obtain color values of each color channel of the pixel point, and recording the color values as first color values;
s112: converting the first color value to the first LAB value.
4. The method of claim 2, wherein at S12: the LAB values for the ground color are obtained by:
s121: obtaining color values of all color channels of the ground color and recording the color values as second color values;
s122: converting the second color value to the second LAB value.
5. The method according to any of claims 1 to 4, wherein said transition coefficient K is positively correlated to said color difference Δ E.
6. The method of claim 5, wherein at S40: the obtaining of the transition coefficient K includes:
s41: calculating the transition coefficient K according to a first formula, wherein the first formula is as follows:
wherein K represents a transition coefficient, K1Denotes the left end of the transition region, K2The right end of the transition region is indicated and Δ E indicates the color difference.
7. The method of any one of claims 1-4, wherein K is1Equal to 1.5.
8. Color transition device based on under color removal, characterized in that the device comprises:
the color difference determining module is used for respectively determining the color difference delta E between the color and the ground color of each pixel point in the image to be printed;
a judging module for judging the color difference delta E and the transition interval [ K1,K2]The magnitude relationship between the endpoints of (1); wherein, when Δ E<K1The judging module is also used for selecting the first adjusting module to execute; when K is1<△E<K2The judging module is also used for selecting a transition coefficient determining module and a second adjusting module to execute;
the first adjusting module is used for adjusting the color values of all color channels of the pixel points to be 0;
the transition coefficient determining module is used for acquiring a transition coefficient K, and the value range of the transition coefficient K is 0< K < 1;
and the second adjusting module is used for multiplying the color values of all the color channels of the pixel points by the transition coefficient K.
9. A printing apparatus, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement the method of any of claims 1-7.
10. A storage medium having computer program instructions stored thereon, which when executed by a processor implement the method of any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010982206.4A CN114202591A (en) | 2020-09-17 | 2020-09-17 | Color transition method, device and equipment based on ground color removal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010982206.4A CN114202591A (en) | 2020-09-17 | 2020-09-17 | Color transition method, device and equipment based on ground color removal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114202591A true CN114202591A (en) | 2022-03-18 |
Family
ID=80644908
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010982206.4A Pending CN114202591A (en) | 2020-09-17 | 2020-09-17 | Color transition method, device and equipment based on ground color removal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114202591A (en) |
-
2020
- 2020-09-17 CN CN202010982206.4A patent/CN114202591A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8040569B2 (en) | Image processing apparatus and method for contrast processing and intermediate color removal | |
RU2372202C2 (en) | Device for ink-jet printing and method of choosing printing mode | |
CN111845101B (en) | Printer ink amount adjusting method, device, equipment and medium based on color management | |
CN111845084B (en) | Printer ink amount adjusting method, device, equipment and medium based on image processing | |
KR100542365B1 (en) | Appratus and method of improving image | |
US8571269B2 (en) | Image quality defect detection via sensor characterization and halftone dot classification | |
US20210303952A1 (en) | Image processing apparatus, image processing method, and storage medium | |
JP2002283675A (en) | Method for measuring image ratio in imaging apparatus, and imaging apparatus | |
US8149465B2 (en) | Coloring image generating apparatus and coloring image generating method for generating a coloring image from an image using an edge intensity frequency distribution of the image | |
CN109949379B (en) | Color-tracing method, device, equipment and storage medium for ink-jet printer | |
CN115071286B (en) | Automatic adjustment method, device and equipment for eclosion template and storage medium | |
CN111845098B (en) | Method, device, equipment and medium for adjusting ink amount of printer | |
CN114202591A (en) | Color transition method, device and equipment based on ground color removal and storage medium | |
US20230166527A1 (en) | Image processing apparatus, image processing method, non-transitory computer-readable storage medium, and image forming apparatus | |
JP2010119006A (en) | Image processing apparatus,and image processing method | |
CN111845099B (en) | Method, device, equipment and medium for setting white ink quantity of printer | |
CN111845100B (en) | Printer ink amount setting method, device, equipment and medium based on image processing | |
JP2010120185A (en) | Image processing apparatus and image processing method | |
CN112083894A (en) | Method, device, equipment and medium for automatically setting white ink amount of pixel by pixel of image | |
CN110385917B (en) | Method, device and equipment for controlling ink output quantity of ink-jet printer and storage medium | |
US11601569B2 (en) | Image processing device, image forming system, image processing method, and non-transitory computer-readable storage medium | |
US11745501B1 (en) | Drop size monitoring mechanism | |
US11755865B1 (en) | Drop size monitoring mechanism | |
US20230286265A1 (en) | Drop size monitoring mechanism | |
CN116353210A (en) | Method, device, equipment and storage medium for detecting and calibrating chromatic aberration between spray heads |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |