Print control device executing error diffusion process using random number
First Claim
1. A print control device comprising:
- a processor; and
a memory that stores a computer program that, when executed by the processor, causes the control device to function as;
an acquiring unit configured to acquire image data representing an image including a plurality of pixels, the image data including a plurality of pixel data corresponding to the plurality of pixels, each of the plurality of pixel data including a gradation value;
an executing unit configured to execute an error diffusion process on each of the plurality of pixel data, the executing unit including;
a target pixel setting unit configured to set target pixel data from among the plurality of pixel data;
a random number acquiring unit configured to acquire a random number included in a first random number range that depends on the gradation value of the target pixel data, in a case that the gradation value of the target pixel data is in a first range;
a first correcting unit configured to correct the gradation value of the target pixel data into a first corrected gradation value by using the random number;
a second correcting unit configured to correct the first corrected gradation value of the target pixel data into a second corrected gradation value by using a distribution error, the distribution error being set by at least one error value of at least one pixel data on which the error diffusion process has been executed;
a determining unit configured to determine whether the second corrected gradation value of the target pixel data is greater than a plurality of threshold values, the plurality of threshold values including a first threshold value and a second threshold value, the second threshold value being greater than the first threshold value;
a dot value setting unit configured to set a dot value of the target pixel data to either a first dot value or a second dot value, the first dot value being set when the second corrected gradation value is greater than the first threshold value, the second dot value being set when the second corrected gradation value is greater than the second threshold value, the first dot value indicating a size of a dot, the second dot value indicating a size of a dot greater than the size of the dot indicated by the first dot value; and
an error value setting unit configured to set an error value of the target pixel data based on the dot value of the target pixel data; and
an output unit configured to output print data determined by the dot value for each of the plurality of pixel data,wherein the first random number range corresponding to the gradation value smaller than the second threshold value includes a specific random number such that the first correcting unit corrects the gradation value included in the first range into the first corrected gradation value greater than the second threshold value by using the specific random number in the first random number range, the first range being greater than a first gradation value and smaller than the second threshold value, the first gradation value being greater than the first threshold value and smaller than the second threshold value.
1 Assignment
0 Petitions
Accused Products
Abstract
In an error diffusion process, a random number acquiring unit acquires a random number included in a first random number range that depends on the gradation value of the target pixel data, in a case that the gradation value of the target pixel data is in a first range. The first correcting unit corrects the gradation value of the target pixel data into a first corrected gradation value by using the random number. The dot value setting unit sets a dot value of the target pixel data to either a first dot value or a second dot value. The first random number range corresponding to the gradation value smaller than the second threshold value includes a specific random number such that the first correcting unit corrects the gradation value into the first corrected gradation value greater than the second threshold value by using the specific random number.
-
Citations
11 Claims
-
1. A print control device comprising:
-
a processor; and a memory that stores a computer program that, when executed by the processor, causes the control device to function as; an acquiring unit configured to acquire image data representing an image including a plurality of pixels, the image data including a plurality of pixel data corresponding to the plurality of pixels, each of the plurality of pixel data including a gradation value; an executing unit configured to execute an error diffusion process on each of the plurality of pixel data, the executing unit including; a target pixel setting unit configured to set target pixel data from among the plurality of pixel data; a random number acquiring unit configured to acquire a random number included in a first random number range that depends on the gradation value of the target pixel data, in a case that the gradation value of the target pixel data is in a first range; a first correcting unit configured to correct the gradation value of the target pixel data into a first corrected gradation value by using the random number; a second correcting unit configured to correct the first corrected gradation value of the target pixel data into a second corrected gradation value by using a distribution error, the distribution error being set by at least one error value of at least one pixel data on which the error diffusion process has been executed; a determining unit configured to determine whether the second corrected gradation value of the target pixel data is greater than a plurality of threshold values, the plurality of threshold values including a first threshold value and a second threshold value, the second threshold value being greater than the first threshold value; a dot value setting unit configured to set a dot value of the target pixel data to either a first dot value or a second dot value, the first dot value being set when the second corrected gradation value is greater than the first threshold value, the second dot value being set when the second corrected gradation value is greater than the second threshold value, the first dot value indicating a size of a dot, the second dot value indicating a size of a dot greater than the size of the dot indicated by the first dot value; and an error value setting unit configured to set an error value of the target pixel data based on the dot value of the target pixel data; and an output unit configured to output print data determined by the dot value for each of the plurality of pixel data, wherein the first random number range corresponding to the gradation value smaller than the second threshold value includes a specific random number such that the first correcting unit corrects the gradation value included in the first range into the first corrected gradation value greater than the second threshold value by using the specific random number in the first random number range, the first range being greater than a first gradation value and smaller than the second threshold value, the first gradation value being greater than the first threshold value and smaller than the second threshold value. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A print control device comprising:
-
a processor; and a memory that stores a computer program that, when executed by the processor, causes the control device to function as; an acquiring unit configured to acquire image data representing an image including a plurality of pixels, the image data including a plurality of pixel data corresponding to the plurality of pixels, each of the plurality of pixel data including a gradation value; an executing unit configured to execute an error diffusion process on each of the plurality of pixel data, the executing unit including; a target pixel setting unit configured to set target pixel data from among the plurality of pixel data; a random number acquiring unit configured to acquire a random number included in a random number range that depends on the gradation value of the target pixel data, in the case that the gradation value of the target pixel data is in a gradation range, the gradation range being greater than or equal to a first gradation value and smaller than or equal to a second gradation value; a first correcting unit configured to correct the gradation value of the target pixel data into a first corrected gradation value by using the random number; a second correcting unit configured to correct the first corrected gradation value of the target pixel data into a second corrected gradation value by using a distribution error, the distribution error being set by at least one error value of at least one pixel data on which the error diffusion process has been executed; a determining unit configured to determine whether the second corrected gradation value of the target pixel data is greater than a plurality of threshold values, the plurality of threshold values including a first threshold value, a second threshold value, and a third threshold value, the second threshold value being greater than the first threshold value, the third threshold value being greater than the second threshold value; a dot value setting unit configured to set a dot value of the target pixel data to one of a first dot value, a second dot value, and a third dot value, the first dot value being set when the second corrected gradation value is greater than the first threshold value, the second dot value being set when the second corrected gradation value is greater than the second threshold value, the third dot value being set when the second corrected gradation value is greater than the third threshold value, the first dot value indicating a size of a dot, the second dot value indicating a size of a dot greater than the size of the dot indicated by the first dot value, the third dot value indicating a size of a dot greater than the size of the dot indicated by the second dot value; and an error value setting unit configured to set an error value of the target pixel data based on the dot value of the target pixel data; and an output unit configured to output print data determined by the dot value for each of the plurality of pixel data, wherein the first gradation value is greater than the first threshold value and smaller than the second threshold value, wherein the second gradation value is greater than the second threshold value and smaller than the third threshold value, wherein the random range includes an upper limit value and a lower limit value, wherein one of the upper limit value and the lower limit value changes linearly according to change of the gradation value in the gradation range, wherein the first correcting unit corrects the first gradation value into the first corrected gradation value substantially equal to the second threshold value by using, as the random number, a first specific value, wherein the first specific value is the one of the upper limit value and a lower limit value when the gradation value is the first gradation value, wherein the first correcting unit corrects the second gradation value into the first corrected gradation value substantially equal to the second threshold value by using, as the random number, a second specific value, wherein the second specific value is a maximum random number in the random number range when the gradation value is the second gradation value. - View Dependent Claims (10)
-
-
11. A non-transitory computer-readable storage medium storing computer-readable instructions that, when executed by a processor, causes an image processing device to perform:
-
acquiring image data representing an image including a plurality of pixels, the image data including a plurality of pixel data corresponding to the plurality of pixels, each of the plurality of pixel data including a gradation value; executing an error diffusion process on each of the plurality of pixel data, the executing including; setting target pixel data from among the plurality of pixel data; acquiring a random number included in a first random number range that depends on the gradation value of the target pixel data, in a case that the gradation value of the target pixel data is in a first range; correcting the gradation value of the target pixel data into a first corrected gradation value by using the random number; correcting the first corrected gradation value of the target pixel data into a second corrected gradation value by using a distribution error, the distribution error being set by at least one error value of at least one pixel data on which the error diffusion process has been executed; determining whether the second corrected gradation value of the target pixel data is greater than a plurality of threshold values, the plurality of threshold values including a first threshold value and a second threshold value, the second threshold value being greater than the first threshold value; setting a dot value of the target pixel data to either a first dot value or a second dot value, the first dot value being set when the second corrected gradation value is greater than the first threshold value, the second dot value being set when the second corrected gradation value is greater than the second threshold value, the first dot value indicating a size of a dot, the second dot value indicating a size of a dot greater than the size of the dot indicated by the first dot value; and setting an error value of the target pixel data based on the dot value of the target pixel data; and outputting print data determined by the dot value for each of the plurality of pixel data, wherein the first random number range corresponding to the gradation value smaller than the second threshold value includes a specific random number such that the correcting corrects the gradation value included in the first range into the first corrected gradation value greater than the second threshold value by using the specific random number in the first random number range, the first range being greater than a first gradation value and smaller than the second threshold value, the first gradation value being greater than the first threshold value and smaller than the second threshold value.
-
Specification