The present invention relates to an image processing apparatus, an image processing method, and a non-transitory computer-readable storage medium storing a program.
When a printing apparatus prints an image using pseudo halftoning, multivalued image data needs to be quantized. As a generation method of a quantized image to be used at this time, an error diffusion method or a dither method is known. In particular, the dither method that decides printing or non-printing of a dot by comparing a threshold stored in advance with a tone value of multivalued data is burdened with a small processing load as compared to the error diffusion method and is therefore used in many image processing apparatuses.
In multivalued quantization using dither, various image quality improvements have been attempted in association with graininess in a state in which dots are ideally arranged. For example, under an environment where a printhead scans a plurality of times, a deviation occurs between scans (to be referred to as an inter-scan misregistration hereinafter) concerning a landing position on a print medium. Improvement is required about simultaneously implementing graininess associated with the deviation of the landing position of a dot in an actual printing operation and robustness to the deviation. Japanese Patent Laid-Open No. 2015-66943 describes coping with an inter-scan misregistration by, according the density of an input signal, designing a threshold matrix between scans in advance in consideration of robustness. Japanese Patent Laid-Open No. 2017-38127 describes setting a threshold matrix for each of a plurality of color materials.
The present invention provides an image processing apparatus that suppresses image quality deterioration to an inter-scan misregistration, an image processing method, and a non-transitory computer-readable storage medium storing a program.
The present invention in one aspect provides an image processing apparatus comprising: an input unit configured to input image data; a generation unit configured to generate, from the image data input by the input unit, print data to be used in each of a plurality of scans of a printing unit; an acquisition unit configured to acquire a threshold matrix based on a tone value represented by the image data; and a quantization unit configured to execute quantization processing for the print data using the threshold matrix acquired by the acquisition unit, wherein if the tone value is included in a first range, the acquisition unit acquires a first threshold matrix corresponding to a first scan of the plurality of scans and acquires a second threshold matrix corresponding to a second scan, and if the tone value is included in a second range on a higher tone side of the first range, the acquisition unit acquires a third threshold matrix corresponding to the first scan and acquires a fourth threshold matrix corresponding to the second scan, the quantization unit executes the quantization processing for first print data corresponding to the first scan using the first threshold matrix and the third threshold matrix, and executes the quantization processing for second print data corresponding to the second scan using the second threshold matrix and the fourth threshold matrix, and a first degree that a dot arrangement that is a result of quantization using the third threshold matrix and a dot arrangement that is a result of quantization using the fourth threshold matrix hold an exclusive relationship is smaller than a second degree that a dot arrangement that is a result of quantization using the first threshold matrix and a dot arrangement that is a result of quantization using the second threshold matrix hold the exclusive relationship.
According to the present invention, it is possible to suppress image quality deterioration to an inter-scan misregistration.
Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
Hereinafter, embodiments will be described in detail with reference to the attached drawings. Note, the following embodiments are not intended to limit the scope of the claimed invention. Multiple features are described in the embodiments, but limitation is not made to an invention that requires all such features, and multiple such features may be combined as appropriate. Furthermore, in the attached drawings, the same reference numerals are given to the same or similar configurations, and redundant description thereof is omitted.
The degree of an inter-scan misregistration can change depending on various print conditions. It is therefore assumed that a threshold matrix is prepared in accordance with each print condition.
According to the present disclosure, it is possible to suppress image quality deterioration to an inter-scan misregistration.
In the printing apparatus 1, a printing apparatus main control unit 100 controls the entire printing apparatus 1, and is configured to include a CPU, a ROM, a RAM, and the like. A print buffer 101 stores image data before transfer to a printhead 102 as raster data. The printhead 102 is an inkjet printing type printhead including a plurality of nozzles capable of discharging ink droplets, and discharges ink from each nozzle in accordance with the image data stored in the print buffer 101. In this embodiment, as an example, nozzle arrays of four colors including cyan, magenta, yellow, and black are arranged on the printhead 102.
A paper feed/discharge motor control unit 103 controls conveyance of a print medium and paper feed/discharge, and controls the position of the print medium to make each ink droplet discharged from the printhead 102 land at a correct position on the print medium. The paper feed/discharge motor control unit 103 can execute a start/stop operation of a motor in consideration of a case where the printhead 102 performs scan a plurality of times.
A printing apparatus interface (I/F) 104 transmits/receives a data signal to/from the image processing apparatus 2. An I/F signal line 114 connects the printing apparatus 1 and the image processing apparatus 2. As a type of the I/F signal line 114, for example, an I/F signal line of specifications of Centronics can be applied. A data buffer 105 temporarily stores image data received from the image processing apparatus 2. An operation unit 106 includes a mechanism configured to accept a command operation by a user such as a developer. A system bus 107 connects the functional blocks of the printing apparatus 1 to each other.
In the image processing apparatus 2, an image processing apparatus main control unit 108 performs various processes for image data supplied from the image supply apparatus 3, thereby generating image data printable by the printing apparatus 1. The image processing apparatus main control unit 108 is configured to include a CPU, a ROM, a RAM, and the like. The image processing apparatus main control unit 108 may be formed by a device different from the main body of the printing apparatus 1, as shown in
Executing the movement in the X direction a plurality of times on the same region of a print medium is called “plural scans”. One of purposes of executing the plural scans is “to achieve a density”. That is, an ink discharge count for achieving a necessary density is implemented by a plurality of carriage scans. Another purpose is “to improve streaks/unevenness”. The discharge amounts of the nozzles provided in the printhead 102 may be slightly different. The discharge amount may be deviated by a tolerance in printer manufacturing or by continuous use. When printing is performed by plural scans, such a discharge amount difference can be made unnoticeable on a print medium. When print scan is performed a necessary number of times, the print medium is conveyed by a distance corresponding to the print width of one scan in the Y direction (conveyance direction) crossing the X direction in
The optical sensor 206 performs a print medium detection operation while moving together with the carriage 201, thereby detecting a signal representing whether the print medium exists on the platen 204. A recovery unit 203 configured to perform maintenance processing of the printhead 102 is provided at a position in the scan region of the carriage 201 and outside the platen 204. As shown in
In
In
As described above, “streaks/unevenness improvement” can be achieved using the plural-scan configuration. On the other hand, when the plural-scan configuration is employed, an inter-scan misregistration readily occurs. For example, in the example of
As shown in
The cause and the degree of influence of the inter-scan misregistration can change depending on a plurality of factors such as an accuracy error of the printer itself concerning landing/conveyance, the characteristics of a print medium, and the characteristics of ink. For example, spread of ink on a print medium changes depending on the features of the receiving layer of the print medium. An inter-scan misregistration becomes conspicuous because of overlap of a plurality of dots that should not overlap, and spread of ink on the print medium is associated with the influence of the inter-scan misregistration. If ink readily spreads, dots readily overlap in the inter-scan misregistration.
In step S303, the image processing apparatus main control unit 108 separates the RGB data after the conversion into tone data (density data) of C (cyan), M (magenta), Y (yellow), and K (black) which are the ink colors of the printing apparatus 1 and are each represented by 8 bits (256 values). At this stage, 8-bit gray images corresponding to four channels (four colors) are generated. In the ink color separation processing, an LUT stored in the ROM or the like may be used, like color correction processing.
In step S304, the image processing apparatus main control unit 108 performs tone correction processing for each of CMYK. In general, the number of dots printed on a print medium and optical brightness implemented on the print medium by the number of dots do not hold a linear relationship. Hence, to make the relationship linear, the multivalued color signal data CMYK are primarily converted to adjust the number of dots to be printed on the print medium. More specifically, by referring to a one-dimensional LUT prepared in correspondence with each ink color, CMYK data each represented by 8 bits (256 values) are converted into C′M′Y′K′ data each similarly represented by 8 bits (256 values).
In step S305, the image processing apparatus main control unit 108 performs scan count division according to the scan count of the printhead 102 for each pixel of C′M′Y′K′ data. As the scan count division, for example, an input tone value is equally divided to each scan. For example, if the input tone value of a pixel PIXi of C′ is 200, and the printhead 102 forms the density on the pixel PIXi by two scans, a tone value of 100 is assigned to the first scan (PIXi1), and a tone value of 100 is assigned to the second scan (PIXi2). Note that the method of scan count division is merely an example and is not limited to this method. By the process of step S305, C1′, C2′, . . . , CX′ are obtained from C′. X varies depending on the scan count. The same applies to data corresponding to the M ink, the Y ink, and the K ink.
In step S306, the image processing apparatus main control unit 108 performs predetermined quantization processing for C1′, C2′, . . . , CX′ to convert these into dot discharge data. The same applies to data corresponding to the M ink, the Y ink, and the K ink. The quantization processing in step S306 will be described later. In step S307, the image processing apparatus main control unit 108 outputs the dot discharge data converted in step S306. The processing shown in
In the dither processing unit 402, the input multivalued data C1′ and C2′ to be quantized are directly transmitted to a quantization processing unit 407. On the other hand, a threshold selection unit 405 controls a threshold acquisition unit 406 using the information of the input multivalued data C′. The threshold acquisition unit 406 accesses a memory 403 and acquires an appropriate threshold matrix 404. The threshold acquisition unit 406 selects a dither threshold corresponding to the coordinates of the input multivalued data for each of C1′ and C2′ and transmits the dither thresholds to the quantization processing unit 407. Using the input multivalued data C1′ and a dither threshold Dth1 acquired from the threshold acquisition unit 406, the quantization processing unit 407 performs predetermined quantization processing and outputs quantized data. Also, using the input multivalued data C2′ and a dither threshold Dth2 acquired from the threshold acquisition unit 406, the quantization processing unit 407 performs predetermined quantization processing and outputs quantized data.
If input multivalued data In of one pixel is input, in step S501, the quantization processing unit 407 prepares a dither threshold Dth. The dither threshold Dth is a value arranged at a position corresponding to the coordinates (x, y) of the input multivalued data In in the threshold matrix 404 acquired by the threshold acquisition unit 406.
In step S502, the quantization processing unit 407 compares the input multivalued data In with the dither threshold Dth. If In≥Dth, the process advances to step S503 to set a quantization value N to 1, and the processing is ended. On the other hand, if In<Dth, the process advances to step S504 to maintain the quantization value N at 0, and the processing is ended. A dot is discharged for a pixel for which the quantization value is set to 1. No dot is discharged for a pixel for which the quantization value is set to 0.
In this embodiment, as shown in
In step S901, the threshold acquisition unit 406 acquires condition values for threshold matrix selection. In this embodiment, the type of a print medium that is a print target and the scan speed of the printhead 102 are acquired as the condition values. For example, pieces of setting information (print conditions) such as print medium type=plain paper and scan speed of printhead 102=40 inches/sec are set. Acquisition of the condition values in step S901 may be done by, for example, acquiring these from contents set by the user. The scan speed of the printhead 102 may be held in an internal storage area in advance, or may be acquired from the printing apparatus 1.
In step S902, the threshold acquisition unit 406 acquires a threshold matrix selection candidate based on a correspondence table shown in
In step S1001, the threshold acquisition unit 406 performs determination processing using the input tone value input by the threshold selection unit 405 and the switching tone value acquired in step S903. That is, if the input tone value is smaller than the switching tone value, the process advances to step S1002. If the input tone value is equal to or larger than the switching tone value, the process advances to step S1005.
In step S1002, the threshold acquisition unit 406 executes loop processing as many times as the scan count. In step S1003, the threshold acquisition unit 406 selects, for a scan count X, a threshold matrix registered as the first threshold matrix for a row corresponding to setting information in the correspondence table shown in
In step S1004, the threshold acquisition unit 406 performs termination processing of the loop processing of step S1002. That is, if the loop processing is not executed as many times as the scan count, the process returns to step S1002.
On the other hand, in step S1005, the threshold acquisition unit 406 executes loop processing as many times as the scan count. In step S1006, the threshold acquisition unit 406 selects, for the scan count X, a threshold matrix registered as the second threshold matrix for a row corresponding to setting information in the correspondence table shown in
In step S1007, the threshold acquisition unit 406 performs termination processing of the loop processing of step S1005. That is, if the loop processing is not executed as many times as the scan count, the process returns to step S1005.
In this above-described way, the threshold matrix for each scan can be selected in accordance with the input tone value. In this embodiment, the selection candidate of the threshold matrix is specified by the processing of the flowchart shown in
Dot-on-dot means that pixels to discharge dots overlap to form a single pixel on digital data between scans. It can be said that even on a print medium, dot-on-dot occurs at the same probability as on digital data in a state in which there is no influence of an inter-path misregistration or the like.
The occurrence probability of dot-on-dot is the ratio of the area of a region where dots between scans land in a superimposed manner by the discharge of the printhead to the area of a predetermined print region. On the other hand, the occurrence theoretical value of dot-on-dot represents overlap of dots generated by a combination in which the dot discharge data of scans do not have correlation with each other. The probability of the occurrence theoretical value of dot-on-dot is the ratio of the area of a region where pixels to discharge dots on digital data form a single pixel between scans to the area of a region on the digital data corresponding to a predetermined print region.
The occurrence theoretical value of dot-on-dot can be calculated by equation (1) using a combination formula in probability theory.
In equation (1), N is the number of pixels corresponding to a certain print region of a print medium, D1 is the number of dots discharged by the first scan, D2 is the number of dots discharged by the second scan, and X is the number of pixels in which dot-on-dot occurs by the scan with two discharge operations. The sum of D1 and D2 equals N, and the condition of equation (1) is D1≤D2. Under such a condition, the dot-on-dot occurrence theoretical value can be evaluated. For example, assume that N=5, D1=dots of two discharge operations, and D2=dots of three discharge operations. For X=2 (dot-on-dot occurs in two of five pixels by the scan with two discharge operations), the calculation result is obtained as 0.3. Similarly, 0.3 is obtained for X=1, and 0 is obtained for X=0. When these calculation results are added, the dot-on-dot occurrence theoretical value is calculated as 0.6. Note that having correlation with each other between scans means that the condition of the denominator in equation (1) is different. Equation (1) shows the combination when discharging D1 and D2 at random from the number N of pixels. Unless at random, the combination probability varies.
The threshold matrix b is designed to make the occurrence probability of dot-on-dot between scans much smaller than the dot-on-dot occurrence theoretical value such that dot-on-dot is distributed at an occurrence probability of about 10% on average.
The threshold matrix c is designed to make the dot-on-dot occurrence probability smaller than the dot-on-dot occurrence theoretical value such that dot-on-dot is distributed at an occurrence probability of about 40% on average. The exclusive relationship between scans is weaker than between the threshold matrices a-b.
The threshold matrix d is designed to make the dot-on-dot occurrence probability close to the dot-on-dot occurrence theoretical value such that dot-on-dot is distributed at an occurrence probability of about 50% on average. It can be said that the dots do not have correlation between scans, and there is no consciousness of overlap.
That is, the threshold matrix b has the exclusive relationship with the threshold matrix a as compared to the threshold matrix c or threshold matrix d. In addition, deviation from the dot-on-dot occurrence theoretical value is largest in the combination of the threshold matrices a and b. That the deviation is large is represented by a value calculated from, for example, equation (2) below.
(dot-on-dot occurrence probability between scans when threshold matrices ◯−x is used)÷(dot-on-dot occurrence theoretical value between scans) (2)
Note that ◯−x in equation (2) represent some of the threshold matrices a to d here.
When the deviation is calculated based in equation (2) under the condition shown in
Between threshold matrices a-b: 0.1÷0.5=0.2
Between threshold matrices a-c: 0.4÷0.5=0.8
Between threshold matrices a-d: 0.5÷0.5=1
Even for a different condition, the deviation from the dot-on-dot occurrence theoretical value between scans is substantially uniform, and the feature of the threshold matrix selectively used between scans depending on the input tone value can be expressed. Note that the distributions of dot-on-dot occurrence probability generated when using different threshold matrices include partially overlapping portions. However, because of the characteristic of the normal distribution, it is self-evident that the threshold matrices have different characteristics even if the ends of variations overlap. For example, when the statistical theory of a normal distribution is used, about 95% of generation results is included in a condition of σ=2. For this reason, overlap outside is not important when describing the characteristics of the threshold matrices.
Note that the calculation method of the dot-on-dot occurrence theoretical value is not limited to this. Regardless of the calculation method used for evaluation, the tendency of the dot-on-dot occurrence theoretical value matches the feature of non-correlation in which discharged dots in each scan do not have correlation with each other. For example, even in
The same applies to a case where scan is performed three or more times for the same print region. If scan is performed three or more times, the calculation formula of the dot-on-dot occurrence theoretical value is more complex. However, dots discharged in each scan do not have correlation with each other between scans, like the above-described dot-on-dot occurrence theoretical value.
In each graph, the abscissa represents the X direction or the Y direction of the print medium. The ordinate represents the discharge distribution in each scan. If the value on the ordinate is high, it indicates that the density is high. If the value is low, it indicates that the density is low. Hence, a portion where the value on the ordinate is high represents that discharge is performed in that portion.
Thus, as shown in
Each combination of threshold matrices defined in the correspondence table shown in
Since the distributions shown in
The switching tone value is decided based on the spread of a dot on a print medium and the frequency/magnitude of a misregistration. In this embodiment, as the decision conditions, a print medium type and the scan speed of the printhead 102 are used. However, the conditions are not limited to these. Even on a print medium of a similar type, the spread of a dot changes depending on the ink permeability difference and the type of ink to be discharged. Also, the frequency/magnitude of a misregistration changes depending on the distance between the printhead 102 and the print medium, the scan count of the printhead 102, and whether the print region is located at an end portion of the print medium or at the center. If the distance between the printhead 102 and the print medium is long, the landing accuracy lowers. For this reason, the frequency of a deviation becomes high, and the deviation amount becomes large. Depending on the specifications of the main body of the printing apparatus 1, as a characteristic of an end portion of a print medium, the print medium readily flaps because of weak press of a conveyance roller. This makes the frequency of a deviation high and the deviation amount large. The switching tone value may be decided by combining the plurality of conditions described above. Note that in this embodiment, even for plain paper, the combination of threshold matrices to be used is changed in accordance with the scan speed of the printhead 102. In a mode in which the scan speed of the printhead 102 is low, set contents on a printer driver often include “high quality”. Graininess is important for a user who demands high quality. For this reason, in this embodiment, the combination of the threshold matrix a and the threshold matrix c is used. This is because, as shown in
The switching tone value may be decided from a range based on the input tone value. Considering that registration deviates by an amount corresponding to one pixel at maximum, and that a dot spreads by an amount corresponding to one pixel at maximum, the possibility of graininess lowering and lightness inversion is considered to be high in a case where dots are arranged on eight pixels around a target pixel. Hence, a predetermined switching tone value may be decided within a tone value range (=about 10%) about 1/9 the highest input tone value.
Here, concerning the predetermined switching tone value, the lower tone side of the switching tone value is defined as a first range, and the higher tone side of the switching tone value is defined as a second range. If the range of a tone value is from 0 to 255, and the switching tone value is 80, the first range is from 0 to 79, and the second range is from 81 to 255. Dot-on-dot occurrence probability÷dot-on-dot occurrence theoretical value in a case where the input tone value is included in the first range is smaller than dot-on-dot occurrence probability÷dot-on-dot occurrence theoretical value in a case where the input tone value is included in the second range.
In the example shown in
On the other hand, if the input tone value is included in the second range, dot discharge data is generated by the combination of the threshold matrix a and the threshold matrix c. For example, the input tone value is defined as a second tone value (for example, 250). First, the scan count division unit 401 generates tone values C1′=125 and C2′=125 corresponding to two scans. Since the second tone value (250) is a value included in the second range (81 to 255), the tone value C1′ (125) corresponding to the first scan is quantized using the threshold matrix a, and a third dot arrangement is generated. Similarly, the tone value C2′ (125) corresponding to the second scan is quantized using the threshold matrix c, and a fourth dot arrangement is generated. Here, the ratio of the number of pixels that overlap as the result of quantization using the threshold matrix a and the threshold matrix c to the total number of pixels in the third dot arrangement and the fourth dot arrangement in a case where overlap is assumed to be absent is defined as a second ratio.
In the above-described example, the first ratio is 5/100 because this is the ratio of the number of pixels (for example, 5) that overlap as the result of quantization using the threshold matrix a and the threshold matrix b to the total number of pixels (100) in the first dot arrangement and the second dot arrangement in a case where overlap is assumed to be absent. On the other hand, the second ratio is 100/250 because this is the ratio of the number of pixels (for example, 100) that overlap as the result of quantization using the threshold matrix a and the threshold matrix c to the total number of pixels (250) in the third dot arrangement and the fourth dot arrangement in a case where overlap is assumed to be absent. The first ratio and the second ratio each show that the lower the ratio is, the lower the dot-on-dot occurrence probability is, and the stronger the exclusive relationship is. As shown in the above-described example, the combination of threshold matrices according to this embodiment is set such that the first ratio is lower than the second ratio. That is, the example shows that the dot-on-dot occurrence probability in a case where the input tone value is lower than the switching tone value is lower than the dot-on-dot occurrence probability in a case where the input tone value is higher than the switching tone value.
Note that since only needed is to compare the strengths of exclusive relationships suffices, the indices are not limited to those described above. For example, the ratio of the number of pixels that do not overlap as the result of quantization using threshold matrices to the total number of pixels in a case where overlap is assumed to be absent may be used. In this case, the dot-on-dot occurrence probability on the low tone side can be lowered by making the ratio for a tone value lower than the switching tone value higher than the ratio for a tone value higher than the switching tone value.
Note that as described above, the calculation method of the dot-on-dot occurrence theoretical value is not limited to this. Also, the dot-on-dot occurrence theoretical value equals that when dots discharged between scans do not have correlation with each other.
According to this embodiment, threshold matrices are selectively controlled, thereby obtaining a state in which high graininess is ensured while minimizing the influence of an inter-scan misregistration. Also, when selection of threshold matrices and change of the switching tone value of threshold matrices are performed in accordance with the setting information, it is possible to cope with a variety of print conditions by the same control. Even for print conditions with which a dot spreads in a different manner, same threshold matrices can be used only by changing the switching tone value. For example, same threshold matrices can be used only by changing the switching tone value between a case where the pieces of setting information are “print medium type=photo paper, and scan speed of printhead 102=10 inches/sec” and a case where the pieces of setting information are “print medium type=photo paper, and scan speed of printhead 102=25 inches/sec”. Hence, the capacity of the RAM can be suppressed.
In this embodiment, a case where the scan count for completing printing on a predetermined unit region is 2 has been described. The same applies to a case where the scan count is larger. A combination of threshold matrices with a strong or weak exclusive relationship between scans can be selected. In this case, the scan count division unit 401 generates data as many as the scan count.
A plurality of switching tone values may be set. For example, selection of threshold matrices may be switched between a case where the input tone value represents a low density, a case where the input tone value represents a halftone, and a case where the input tone value represents a high density. In a halftone, the influence of a misregistration is large. However, when the density is high, the density difference is substantially unchanged even if dot-on-dot occurs due to a misregistration. Hence, when the combination of the threshold matrix a and the threshold matrix c is used for a halftone, and the combination of the threshold matrix a and the threshold matrix d is used for a high density, a dot arrangement suitable for each tone can be implemented.
Also, in the above-described example, if the input tone value is 50, the scan count division unit 401 generates two data of a tone value “25”. However, the present invention is not limited to the example in which data is equally divided to generate a plurality of data having equal tone values, and the ratio may appropriately be changed. When equally dividing data, one data may be generated and quantized using the combination of selected threshold matrices to generate data representing a dot arrangement.
Concerning the second embodiment, differences from the first embodiment will be described below. In the first embodiment, using a switching tone value to set threshold matrices to be used in each scan before and after the switching tone value has been described. The strength of the exclusive relationship (correlation) is controlled using the threshold matrices set before and after the switching tone value. For example, a strong exclusive relationship is implemented using the combination of the threshold matrix a and the threshold matrix b. When creating an exclusive relationship using threshold matrices, for a portion where a threshold is set low in one threshold matrix, a threshold assigned to the same position in the other threshold matrix is set high, thereby implementing the exclusive relationship.
In this embodiment, the exclusive relationship is implemented not only by the combination of threshold matrices by also by exclusion by control based on one threshold matrix. This can obviate the necessity of preparing a plurality of different threshold matrices and reduce the memory capacity. Also, even if the scan count increases, the threshold setting can be prevented from becoming complex.
In step S1401, a threshold acquisition unit 406 acquires setting information for threshold matrix selection. In this embodiment, the type of a print medium that is a print target and the scan speed of a printhead 102 are acquired. For example, pieces of setting information (print conditions) such as print medium type=plain paper and scan speed of printhead 102=40 inches/sec are acquired. The setting information may be acquired from, for example, contents set by the user. The scan speed of the printhead 102 may be held in an internal storage area in advance, or may be acquired from a printing apparatus 1.
In step S1402, the threshold acquisition unit 406 acquires a threshold matrix selection candidate corresponding to the setting information based on a correspondence table shown in
In step S1403, the threshold acquisition unit 406 acquires a threshold control method based on the correspondence table shown in
If input multivalued data In of one pixel is input, in step S1501, the quantization processing unit 407 prepares a dither threshold Dth. The prepared threshold Dth is a threshold assigned to each scan in
In step S1502, the quantization processing unit 407 determines the control method of a target pixel. As shown in
In step S1503, the quantization processing unit 407 acquires the input value of scan of the reference destination. For example, in this embodiment, assume that the scan count is 2, and for the second scan, the input value of the first scan is referred to. Hence, scan of the reference destination does not exist for the first scan, and the input value of the first scan is acquired for the second scan.
In step S1504, the quantization processing unit 407 acquires a threshold offset value Ofs from the acquired input value of the scan of the reference destination. The threshold offset value Ofs is calculated by equation (3).
Ofs=sum of input values of scan of reference destination (3)
Hence, Ofs=0 for the first scan. For the second scan, the input value of the first scan is referred to. Hence, if input value of first scan=25, Ofs=25. In this embodiment, a case where the scan count is 2 is shown. The same applies to a larger scan count. If the scan count is 2 or more, the sum of the input values of scan of all reference destinations is acquired as Ofs.
In step S1505, the quantization processing unit 407 calculates a dither threshold Dth′ from the dither threshold Dth and the threshold offset value Ofs. The dither threshold Dth′ is calculated by equations (4) and (5).
Dth′=Dth−Ofs (4)
If Dth′<0,
Dth′=Dth′+Dth_Max (5)
At this time, Dth_Max represents the maximum value of the range (0 to Dth_Max) of values that Dth can take.
On the other hand, if the process advances from step S1502 to step S1506, the quantization processing unit 407 substitutes the contents of the dither threshold Dth into the dither threshold Dth′.
In step S1507, the quantization processing unit 407 performs a comparison operation between the calculated Dth′ and the input multivalued data In. The processes of steps S1508 and S1509 are the same as those of steps S503 and S504, and a description thereof will be omitted.
When the quantization processing shown in
As described above, according to this embodiment, threshold matrices having the exclusive relationship between scans can be implemented using one threshold matrix. Note that in this embodiment, the threshold of the threshold matrix is offset. However, a method of offsetting a tone value in the second and subsequent scans may be used. Change processing of offsetting (adding or subtracting) at least one of multivalued data and a threshold matrix is performed, and quantization is performed using the multivalued data and the threshold matrix after the change processing. Even in a case where a plurality of quantization processes corresponding to a plurality of scans are performed using one threshold matrix, dot arrangements having the exclusive relationship with each other can be obtained by performing offset processing.
The third embodiment will be described in terms of differences from the first and second embodiments. As shown in
In
In
In
As described above, when a scan count division unit 401 unevenly assigns the input tone value to the scans, a conspicuous change of the dot arrangement before and after the switching tone value can be suppressed. As shown in
In the above-described embodiments, all processes shown in
The number of bits of input/output in each process described above is not limited to that of the above-described embodiments. To maintain accuracy, the number of outputs bits may be larger than the number of input bits, and the number of bits may be adjustable variously in accordance with the application purpose or situation.
Furthermore, an inkjet printing apparatus has been described above as a configuration for printing an image processed by quantization. However, the configuration is not limited to the inkjet printing apparatus. The operation of each embodiment can be applied to any printing method if a plurality of levels of densities according to the level after multivalued quantization can be expressed in each pixel. For example, even in an apparatus that prints an image by an electrophotographic method, if a density according to a level after quantization can be expressed in each pixel by adjusting the output value of a laser to several levels, the operation of each embodiment can be applied to obtain the same effect.
Embodiment(s) of the present invention can also be realized by a computer of a system or apparatus that reads out and executes computer executable instructions (e.g., one or more programs) recorded on a storage medium (which may also be referred to more fully as ‘a non-transitory computer-readable storage medium’) to perform the functions of one or more of the above-described embodiment(s) and/or that includes one or more circuits (e.g., application specific integrated circuit (ASIC)) for performing the functions of one or more of the above-described embodiment(s), and by a method performed by the computer of the system or apparatus by, for example, reading out and executing the computer executable instructions from the storage medium to perform the functions of one or more of the above-described embodiment(s) and/or controlling the one or more circuits to perform the functions of one or more of the above-described embodiment(s). The computer may comprise one or more processors (e.g., central processing unit (CPU), micro processing unit (MPU)) and may include a network of separate computers or separate processors to read out and execute the computer executable instructions. The computer executable instructions may be provided to the computer, for example, from a network or the storage medium. The storage medium may include, for example, one or more of a hard disk, a random-access memory (RAM), a read only memory (ROM), a storage of distributed computing systems, an optical disk (such as a compact disc (CD), digital versatile disc (DVD), or Blu-ray Disc (BD)™), a flash memory device, a memory card, and the like.
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
This application claims the benefit of Japanese Patent Application No. 2022-096751, filed Jun. 15, 2022, which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2022-096751 | Jun 2022 | JP | national |