1. Field of the Invention
The present invention relates to an image forming apparatus and an image forming method for forming a visible image on a recording medium.
2. Description of the Related Art
Generally, if an image is expressed digitally, the image is expressed with multiple tones at 256 levels, for example. Furthermore, in the case of color images, such images are expressed with multiple tones for each color component, such as RGB or CMYK. However, since ordinary printers cannot express gradations at 256 levels, conventionally, a method has been adopted with which such multiple levels are reduced to a smaller number of levels (for example, two levels or four levels) that such printers can express, using a method called half toning.
For example, Japanese Patent Laid-Open No. 09-74488 (Patent Document 1) discloses technology for expressing an image having 256 levels with two to four levels, using a multi-level error diffusion method. Specifically, in a case in which 256 level data are converted into four level data, by using a threshold table to establish correspondence between 256 level data and four level data, the density data of a pixel of interest is converted into four level data using the multi-level error diffusion method. Then, the error (residual error) after this conversion into four level data is held, and used for adding to the peripheral pixels of the pixel of interest.
However, a dot of a pixel with no dots existing in the periphery, that is, an isolated pixel may become unstable. To cope with this, in order to reduce isolated pixels as much as possible, a method has been adopted with which contiguous pixels are made into a block and handled, and pixels are integrated in that block.
On the other hand, in the case in which pixels are integrated in a block in this way, there is a problem in that overloading may occur since such processing is complicated. As a method for reducing the load applied in such processing, in Japanese Patent Laid-Open No. 2001-309188 (Patent Document 2), image data corresponding to n pixels (n is a natural number) contiguous with each other in an inputted image is averaged, and multi-level error diffusion processing is performed on the averaged image data. Also, technology is disclosed with which based on the image data obtained by performing multi-level error diffusion processing, n pieces of image data expressed with N levels (N is a natural number) depending on a pattern set for each color are generated, and image data corresponding to n pixels is generated.
However, with conventional technology, in the case of averaging an inputted image for each group of a plurality of pixels contiguous with each other, if the difference between the densities of the pixels of such a plurality is great, information on the original image may disappear through averaging, so that an output image may deteriorate.
The present invention has been achieved in view of the above problems, and provides an image forming apparatus and an image forming method that suppress image deterioration that occurs when converting image data into data having fewer levels.
According to one aspect of the present invention, there is provided an image forming apparatus comprising: an integration unit configured to integrate n pixels (n is a natural number that satisfies 2≦n) that include an input pixel of interest in inputted image data and that are contiguous in a sub-scanning direction, and to decide an average value of pixel values of the n pixels as a pixel value of integrated pixels; a quantization unit configured to quantize the pixel value of the integrated pixels obtained by the integration unit to N levels (N is a natural number that satisfies 3≦N); an image analysis unit configured to perform first judgment processing for judging whether a difference between the pixel values of n input pixels that are contiguous in the sub-scanning direction exceeds a threshold value set in advance, and second judgment processing for judging whether a direction in which the pixel values of the n input pixels becomes greater is a forward direction of the sub-scanning direction or an opposite direction to the forward direction, and to output judgment results of the first and second judgment processing; and a determination unit configured to determine n output pixels in the sub-scanning direction, based on the judgment results of the first and the second judgment processing performed by the image analysis unit, from a quantization result of the integrated pixels obtained by the quantization unit.
According to another aspect of the present invention, there is provided an image forming method comprising: an integration step of integrating n pixels (n is a natural number that satisfies 2≦n) that include an input pixel of interest in inputted image data and that are contiguous in a sub-scanning direction, and of determining an average value of pixel values of the n pixels as a pixel value of integrated pixels; a quantization step of quantizing the pixel value of the integrated pixels obtained in the integration step to N levels (N is a natural number that satisfies 3≦N); an image analysis step of performing first judgment processing for judging whether a difference between the pixel values of n input pixels that are contiguous in the sub-scanning direction exceeds a threshold value set in advance, and second judgment processing for judging whether a direction in which the pixel values of the n input pixels becomes greater is a forward direction of the sub-scanning direction or an opposite direction to the forward direction, and of outputting judgment results of the first and second judgment processing; and a determination step of determining n output pixels in the sub-scanning direction, based on the judgment results of the first and the second judgment processing performed by the image analysis unit, from a quantization result of the integrated pixels obtained in the quantization step.
According to the present invention, it is possible to provide an image forming apparatus and an image forming method that suppress image deterioration that occurs when converting image data into data having fewer levels.
Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
Hereinafter, embodiments of the present invention are described in detail with reference to the attached drawings. It should be noted that the embodiments described below are examples of means for realizing the present invention and, thus, the present invention can be applied to an embodiment obtained by modifying or changing an embodiment below without departing from the scope of the present invention.
An input unit (not shown) inputs multi-level image data. The resolution conversion unit 101 functions as an integration unit, integrates n pixels (n is a natural number of 2≦n) that are contiguous in the sub-scanning direction including this input pixel of interest, and determines the average value of the pixel values (multi-level image data) of n pixels as a pixel value of integrated pixels.
The γ correction unit 102 performs γ correction on the integrated image data. Note if the input image data satisfies certain conditions (for example, if the density has a linear proportional relationship), the γ correction unit 102 does not perform processing. The γ correction unit 102 is connected to the quantization unit 103.
The quantization unit 103 quantizes image data of the integrated pixels output from the resolution conversion unit 101 to N level image data using multi-level error diffusion processing. The quantization unit 103 is connected to the pixel selection unit 104.
The image analysis unit 100 performs first and second judgment processing described later, and outputs the judgment results of the first and second judgment processing. In the first judgment processing, it is judged whether the difference between pixel values of n input pixels that are contiguous in the sub-scanning direction inputted by the input unit exceeds a threshold value set in advance. In the second judgment processing, it is judged whether the direction in which the pixel values of n input pixels become greater is a forward direction of the sub-scanning direction or an opposite direction to the forward direction. Furthermore, the image analysis unit 100 outputs the difference between the pixel values of n input pixels used when judging in the first judgment processing as a judgment result. The image analysis unit 100 is connected to the pixel selection unit 104.
The pixel selection unit 104 generates n output pixels in the sub-scanning direction, from the N level image data of the pixel of interest in the quantization result of the integrated pixels obtained by the quantization unit 103. Further, based on the judgment results of the first and second judgment processing performed by the image analysis unit 100, the pixel selection unit 104 determines a N level pixel value for each of the n output pixels. If the judgment result of the first judgment processing performed by the image analysis unit 100 indicates that the difference between the pixel values of n input pixels is less than or equal to the threshold value set in advance, the pixel selection unit 104 determines the pixel value of the pixel of interest obtained by the quantization unit 103 as a pixel value of each of the n output pixels. On the other hand, if the judgment result of the first judgment processing performed by the image analysis unit 100 indicates that the difference between the pixel values of n input pixels exceeds the threshold value set in advance, the pixel selection unit 104 determines the pixel value of each of the n output pixels according to the direction indicated by the judgment result of the second judgment processing.
Further, the pixel selection unit 104 has a table showing a plurality of distribution methods set in advance. If the judgment result of the first judgment processing performed by the image analysis unit 100 indicates that the difference between the pixel values of n input pixels exceeds the threshold value set in advance, using one table determined according to this difference, the pixel selection unit 104 determines the pixel values of n output pixels. The pixel selection unit 104 is connected to the PWM conversion unit 105.
The PWM conversion unit 105 converts the output from the pixel selection unit 104 into a PWM signal, in order to transmit the signal to an exposure apparatus. Note that hereinafter, image data outputted from the PWM conversion unit 105 is also referred to as output image data.
In step S1, the image analysis unit 100 computes the difference between pixel values of two pixels that are contiguous in the sub-scanning direction, and compares the result with a threshold value.
A difference value=|a pixel value of an upper pixel−a pixel value of a lower pixel| (Equation 1)
As shown in
In a 2-bit judgment signal, the second bit is information that indicates whether a difference value is greater than a threshold value. For example, if the second bit is 1, the difference value is greater than the threshold value, and if the second bit is 0, the difference value is less than or equal to the threshold value. On the other hand, the first bit is information that indicates which pixel value is greater. For example, the upper pixel value is shown as being greater than the lower pixel value when the first bit is 1, and the upper pixel value is shown as being less than or equal to the lower pixel value when the first bit is 0.
Here, the output procedure for a difference value, and the output procedure for 2-bit data are described using specific numerical values. In
In the case of
Next, in step S2, the resolution conversion unit 101 performs vertical two-pixel average processing. Specifically, the resolution conversion unit 101 averages the image data of two pixels that are contiguous in the sub-scanning direction using Equation 2, and generates one new pixel image data.
An average value=(a pixel value of an upper pixel+a pixel value of a lower pixel)/2 (Equation 2)
Next, the details of vertical two-pixel average processing (step S2) are described with reference to
A description is given assuming a case in which the image data shown in
The resolution conversion unit 101 calculates the average value of two pixels that are aligned in the sub-scanning direction using Equation 2 (vertical two-pixel average processing).
Note that although the resolution of the sub-scanning direction is reduced by ½ in this way, since the resolution is doubled in step S5 described later, the size of the final output image data corresponds to that of the original image data.
Next, in step S3, the γ correction unit 102 performs γ correction of the image data on which vertical two-pixel average processing has been performed. Then, in step S4, the quantization unit 103 performs nine-level error diffusion processing using a multi-level error diffusion method. In nine-level error diffusion processing, after quantizing the inputted data having 256 levels to nine levels, an error due to quantization is diffused to the peripheral unprocessed pixels, thereby expressing levels. Accordingly, the error (residual error) after this conversion into nine values is held, and when converting the next pixel into nine values, a weight is assigned to the above held error, and the resultant error is added to the peripheral pixels thereof and, thus, this conversion into nine values is repeated.
Next, in step S5, the pixel selection unit 104 selects the pixel values of two pixels that are contiguous in the sub-scanning direction according to the nine-value image data quantized by the quantization unit 103.
Note that the pixel selection unit 104 has stored pixel values according to input levels (0 to 8) in a memory (not shown) in advance in order to perform this selection processing.
Further, since it is necessary to provide a difference for pixel values of two pixels according to the difference value therebetween, the pixel selection unit 104 holds the image data of two pixels corresponding to each difference value in the above-mentioned memory. Pixel values corresponding to typical difference values are stored in this memory in advance to reduce its size. For example, the above-mentioned memory has stored therein only (255, 192) for pixel values corresponding to the input level 7; two types, namely (255, 128) and (224, 160), for pixel values corresponding to the input level 6; three types, namely (255, 64), (224, 96), and (192, 128), for pixel values corresponding to the input level 5; four types, namely (255, 0), (224, 32), (192, 64), and (160, 96), for pixel values corresponding to the input level 4; three types, namely (192, 0), (160, 32), and (128, 64), for pixel values corresponding to the input level 3; two types, namely (128, 0), and (96, 32), for pixel values corresponding to the input level 2; and only (64, 0) for pixel values corresponding to the input level 1.
Here, the detailed procedure of two-pixel selection output processing (step S5) is described with reference to
Furthermore, the pixel selection unit 104 receives nine-value image data (the input level 0 to 8) from the quantization unit 103 (step S52). Then, the pixel selection unit 104 judges whether or not the second bit of the judgment result signal is 1 (step S53). In other words, step S53 corresponds to first judgment processing for judging whether or not the difference between pixel values of n input pixels that are contiguous in the sub-scanning direction exceeds the threshold value set in advance.
If the second bit is 0, the pixel selection unit 104 selects the same pixel value for both the two pixels from the above-mentioned memory according to the input level 0 to 8, and determines that pixel value for the values of upper and lower pixels (step S55).
For example, if the input level from the quantization unit 103 is 4, in step S55, as shown in the upper diagram in
For example, if the input level from the quantization unit 103 is 4, and the difference value is 128, (192, 64) are selected from the above-mentioned memory in step S54. Note that which of pixel values selected here is to be disposed as the upper pixel value is not determined.
Next, the pixel selection unit 104 judges whether or not the first bit of the judgment result signal is 1 (step S56). In other words, step S56 corresponds to second judgment processing for judging whether the direction in which the pixel values of n input pixels become greater is a forward direction of the sub-scanning direction or an opposite direction to the forward direction.
If the first bit is 0, the pixel selection unit 104 determines values of upper and lower pixels from the pixel values selected in step S54, such that the lower pixel value is greater than the upper pixel value only by the difference value (step S58). For example, from the pixel values (192, 64) selected in step S54, as shown in
On the other hand, if the first bit is 1, the pixel selection unit 104 determines the values of upper and lower pixels from the pixel values selected in step S54, such that the upper pixel value is greater than the lower pixel value only by the difference value (step S57). For example, from the pixel values (192, 64) selected in step S54, it is determined that the upper pixel value is 192, and the lower pixel value is 64.
In this way, the pixel selection unit 104 determines the pixel values of two pixels that are aligned vertically, and outputs the determined pixel values to the PWM conversion unit 105 in step S6.
Note that the order in which the upper and lower pixels are outputted may be changed such that pixel values are outputted in the order (lower, upper) when the first bit of a judgment signal is 0, and in the order (upper, lower) when the first bit of a judgment signal is 1.
Next, in step S6, the PWM conversion unit 105 performs processing for outputting dots in a stabilized manner.
Note that in the present embodiment, a configuration in which a 2-bit judgment signal and a difference value are outputted from the image analysis unit 100 is applied, however, the configuration is not limited to this, and a configuration in which a 1-bit judgment signal and a difference value are outputted may be applied, for example. In this case, only information indicating the size relationship of values of two pixels may be used as a judgment signal, and the pixel selection unit 104 in the later stage may perform threshold judgment for a difference value. According to the present embodiment as described above, since it is possible to reduce, to 1/n, the number of pixels that are processed in error diffusion processing that requires the greatest processing load, the entire processing load can be greatly reduced. Further, by adjusting input values for PWM using the result of analysis by the image analysis unit 100, it is possible to avoid a lack of information (image quality deterioration) due to the number of pixels being reduced. Further, since it is possible to maximize the overlap of dots through PWM in the sub-scanning direction, images can be stabilized, and at the same time, the image quality can be enhanced. Further, by controlling the direction in which dots are grown in PWM conversion processing, the contiguity of PWM in the scanning direction is improved and, thus, more stable dots are formed on a sheet.
Specifically, the image forming apparatus A2 is provided with an input unit, a resolution conversion unit 101, a first quantization unit 109a, a second quantization unit 109b, an image analysis unit 100, and a pixel selection unit 110. Note that in the following, the transportation direction of a recording medium is set to be a sub-scanning direction, and the direction orthogonal to the sub-scanning direction is set to be a scanning direction.
Although the input unit is not shown, the unit inputs multi-level image data into the image forming apparatus A2.
The resolution conversion unit 101 functions as an integration unit, integrates an input pixel of interest in the image data inputted by the input unit, and n pixels that are contiguous in the sub-scanning direction including this input pixel of interest, and determines the average value of pixel values of n pixels as a pixel value of integrated pixels. Note that n is a natural number that satisfies 2≦n.
The first quantization unit 109a quantizes image data constituted from the integrated pixels obtained by the resolution conversion unit 101 to image data having N levels. The second quantization unit 109b quantizes image data constituted from the integrated pixels obtained by the resolution conversion unit 101 to image data having M levels (M is a natural number that satisfies M<N).
The image analysis unit 100 performs first and second judgment processing, and outputs the judgment results of the first and second judgment processing. In the first judgment processing, it is judged whether the difference between pixel values of n input pixels that are contiguous in the sub-scanning direction inputted by the input unit exceeds a threshold value set in advance. In the second judgment processing, it is judged whether the direction in which the pixel values of n input pixels become greater is a forward direction of the sub-scanning direction or an opposite direction to the forward direction.
The pixel selection unit 110 functions as a selecting unit, and if the judgment result of the first judgment processing performed by the image analysis unit 100 indicates that the difference between pixel values of n input pixels is less than or equal to the threshold value set in advance, selects the quantization result obtained by the first quantization unit 109a. On the other hand, if the judgment result of the first judgment processing performed by the image analysis unit 100 indicates that the difference between pixel values of n input pixels exceeds the threshold value set in advance, the pixel selection unit 110 selects the quantization result obtained by the second quantization unit 109b.
Also, the pixel selection unit 110 functions as a determination unit. Specifically, the pixel selection unit 110 generates n output pixels in the sub-scanning direction from the pixel of interest in the selected quantization result, and based on the judgment results of the first and second judgment processing performed by the image analysis unit 100, determines a pixel value expressed with N levels for each of the n output pixels.
Next, the operational procedure for the image forming apparatus A2 is described with reference to the flowchart shown in
Input image analysis processing (step S1) performed by the image analysis unit 100 differs from the first embodiment only in a difference value and a 2-bit judgment signal being outputted to the quantization unit 109 and the pixel selection unit 110, and other processes are the same as those in the first embodiment. Further, the operations in vertical two-pixel average processing (step S2) performed by the resolution conversion unit 101, and input γ correction processing (step S3) performed by the γ correction unit 102 are the same as those in the first embodiment.
Next is a description regarding the operational procedure in nine-level error diffusion processing (step S4) performed by the quantization unit 109. In the present embodiment, as multi-level error diffusion processing, two types of processing, namely, ternary error diffusion processing and nine-level error diffusion processing are used. Since ternary error diffusion processing is the same as nine-level error diffusion processing except quantizing to three values, a description thereof is omitted.
In the present embodiment, for a 2-bit judgment signal outputted from the image analysis unit 100, based on the judgment signal that indicates whether or not the difference value between two pixels in the sub-scanning direction is greater than a threshold value, ternary error diffusion processing and nine-level error diffusion processing are switched. For example, if data with the second bit of the 2-bit judgment signal, indicating whether or not the difference value is greater than a threshold value, being set to 1 is inputted into the quantization unit 109, ternary error diffusion processing is executed. On the other hand, if data with the second bit being set to 0 is inputted, nine-level error diffusion processing is executed.
Next is a description regarding the operational procedure in two-pixel selection output processing (step S5) performed by the pixel selection unit 110. If nine-level error diffusion processing is performed by the pixel selection unit 110, a nine-value input level (tone level) 0 to 8 is inputted, and if ternary error diffusion processing is performed, a ternary input level (tone level) 0 to 2 is inputted. Note that since a 2-bit judgment signal is inputted into the pixel selection unit 110 similar to the first embodiment, it can be judged that ternary error diffusion processing has been performed.
A detailed description is given regarding the operational procedure if ternary error diffusion processing is performed. Assume a case in which an input level is 1, the second bit of 2-bit data indicating whether or not ternary error diffusion processing has been performed is 1, and the first bit thereof is 1. In this case, of two pixels to be outputted to the PWM conversion unit 105, the pixel selection unit 104 sets the pixel value of an upper pixel to 255, and sets the pixel value of a lower pixel to 0, and outputs the pixel values to the PWM conversion unit 105.
Since PWM conversion processing performed by the PWM conversion unit 105 (step S6) is the same as that in the first embodiment, a description thereof is omitted.
Note that although the output in ternary error diffusion processing is set to 0 to 2 in the above example, the output is not limited to this, and may be 0, 4, and 8. In this case, since levels therefor correspond to the levels for nine-level error diffusion processing, processing after pixel selection processing can be the same as that in the first embodiment.
According to the present embodiment as described above, a circuit is simplified by switching the number of error diffusion processing levels according to a difference value. In particular, if the processing is switched to ternary error diffusion processing when a difference value is great, a pixel value table according to difference values is not needed. Further, if a difference greater than a threshold value is generated, since a difference value is expanded, an edge portion becomes clearer. In particular, in a character/line drawing (graphics) portion, a great effect of improving image quality is achieved. On the other hand, since the contiguity of dots other than those of an edge portion is almost equivalent to that in the first embodiment, stable dots can be formed on a sheet.
An image forming apparatus in the present embodiment has configurations in the first and second embodiments, and properly uses the configuration in the first or second embodiment for each color. For example, for CMYK, the configuration in the second embodiment is used only for black (K), which is important for image quality in a character/line drawing (graphics) portion, and the configuration in the first embodiment is used for the others: cyan (C), magenta (M), and yellow (Y).
Specifically, in the present embodiment, the pixel selection unit 110 includes a judgment unit that judges whether the color component to be processed is black (K), or non-black (CMY). Further, if the judgment unit judges that the color component to be processed is non-black, the pixel selection unit 110 unconditionally selects the quantization result obtained by the first quantization unit 109a. On the other hand, if the judgment unit judges that the color component to be processed is black, the pixel selection unit 110 selects the quantization result obtained by the second quantization unit 109b.
According to the present embodiment as described above, it is possible to select a quantization result with a different number of levels for each color plane, which enables further improvement in image quality.
Note that for CMYK, the configuration in the first embodiment may be used for cyan (C) and yellow (Y), to which visual sensitivity regarding resolution is comparatively low, and the configuration in the second embodiment may be used for magenta (M) and black (K) to which visual sensitivity regarding resolution is comparatively high. In this case, a similar effect to that in the present embodiment can also be obtained.
The image forming apparatus A4 has a configuration with an edge computing unit 106 being added to that of the image forming apparatus A1 in the first embodiment. Further, the image forming apparatus A4 outputs, to the edge computing unit 106, a 2-bit judgment signal that indicates the threshold judgment for a difference value in the sub-scanning direction and the size relationship between pixel values, and a difference value between two pixels in the sub-scanning direction, from the image analysis unit 100. This 2-bit judgment signal is the same as that in the first embodiment.
Specifically, in the present embodiment, of a plurality of pixels that are contiguous in the sub-scanning direction of an inputted image, the image analysis unit 100 calculates the difference between pixel values of pixels contiguous with each other and analyzes the result. A pixel selection unit 108 selects an output pixel based on the value outputted from the quantization unit 103. The edge computing unit 106 changes the output pixel value selected by the pixel selection unit 108.
In
Note that a difference value is a value calculated using Equation 1 in the first embodiment. The following is a description assuming a case in which a threshold value for distinguishing whether pixels are an edge is 100 in the image analysis unit 100, and the upper pixel value is 192 and the lower pixel value is 64, which are shown in the upper diagram in
In the above example, the difference value between the upper pixel value and the lower pixel value is 128, and is greater than 100, which is the threshold value for distinguishing whether pixels are an edge, and the upper pixel value is greater than the lower pixel value. Therefore, the image analysis unit 100 sets the second bit of a 2-bit judgment signal to 1 (greater than the threshold value), and sets the first bit thereof to 1 (the upper pixel value is greater than the lower pixel value). The image analysis unit 100 inputs the 2-bit judgment signal that has been set, and the difference value 128 calculated using Equation 1 in the first embodiment, into the edge computing unit 106 according to a similar timing to that in the first embodiment.
Since operations of the resolution conversion unit 101, the γ correction unit 102, the quantization unit 103, and the PWM conversion unit 105 are the same as those in the first embodiment, a description thereof is omitted. Note that the pixel selection unit 108 converts the output level of the quantization unit 103 into a pixel value, irrespective of the judgment signal or the difference value. Note that although the upper and lower pixel values are the same here, different values may be used. In that case, it is assumed that, in the edge computing unit 106, pixel values can be permutated so as to match the first bit of a judgment signal.
In step S6, the edge computing unit 106 judges whether or not a pixel of interest is an edge based on a 2-bit judgment signal. If the pixel of interest is an edge, the edge computing unit 106 performs edge computation processing in step S7. In the above example, since the second bit of the 2-bit judgment signal is 1, edge computation processing is performed in step S7.
The middle diagram in
A value outputted from the quantization unit 103 is 0 to 8, and if this is converted into two pixels' worth of density, the result will be 0, 64, 128, 192, 256, 320, 384, 448, or 510. The value obtained by a difference value being subtracted from this converted density and reduced by ½ (1-bit shift to the right) is used as a smaller value. Note that if this value is negative due to a quantization error or through γ conversion, the value is rounded to 0. On the other hand, a greater value is calculated by subtracting the smaller value from this converted density. Note that if this value exceeds the upper limit of the PWM conversion unit 105 in a later stage due to a quantization error or through γ conversion, the value is rounded to the upper limit value. In the above example, 128 is the value obtained by subtracting a difference value 128 from 256, which is an output value of the pixel selection unit 108 (which is the output in the first embodiment being shifted to the left by 1-bit), and is reduced by ½ (1-bit shift to the right), and a smaller value 64 is obtained. Next, the smaller value 64 is subtracted from 256, which is the output value of the pixel selection unit 108, and a greater value 192 is obtained. The values of input pixels are reconstructed by performing such operations.
On the other hand, it is also possible to perform edge emphasis by converting this difference value. For example, if the above operation is performed after the difference value is doubled (shifted to the left), since the difference value to be inputted in this example is 128, this is doubled (shifted to the left) so that the difference value is increased to 256, and this operation is performed. A value 0 obtained by subtracting the converted difference value 256 from the output value 256 of the pixel selection unit 108 is reduced by ½, and a smaller value 0 is obtained. Next, the above-mentioned smaller value 0 is subtracted from 256, which is the output value of the pixel selection unit 108, so as to obtain a greater value 256; however, since 256 exceeds the upper limit value 255 of the input value for PWM, the value is rounded to 255 and outputted. As a result, as shown in the lower diagram in
Note that when converting a difference value, the method is not limited to the above example, and conversion may be performed through other computations, or the difference value may be converted using a table so as to obtain values. If conversion is performed using a table, since nonlinear processing can be easily performed, higher image quality can be achieved.
Further, if the upper and lower pixel values are different values in the pixel selection unit 108, a difference value may be subtracted from a smaller value, and the difference value may be added to a greater value. In this case, although the value is set to 0 if the result obtained by subtracting the difference value from the smaller value is negative, and the value is rounded to the upper limit value if the result obtained by adding the difference value to the greater value exceeds the upper limit value for PWM, since the difference value is used as it is, the difference value after computation will be greater than or equal to the original difference value. In other words, an edge is emphasized.
The edge computing unit 106 outputs pixel values to the PWM conversion unit 105 after edge computation has ended. The PWM conversion unit 105 is the same as that in the first embodiment. Note that since the configuration in a case in which a difference value does not exceed a threshold value in the image analysis unit 100 is the same as that in the first embodiment, a description thereof is omitted.
According to the present embodiment as described above, since an inputted difference value can be reconstructed through edge computation processing, a table having PWM values corresponding to each difference value is not needed. Further, by converting the inputted difference value, it is possible to perform edge emphasis, and still higher image quality can be achieved. Further, by subtracting a difference value from a smaller value, and adding a difference value to a greater value in the pixel selection unit 108, a difference greater than or equal to the inputted difference value can be held, and edges are sharpened.
The image forming apparatus A5 has a configuration in which an edge computing unit 107 is added to the image forming apparatus A1 in the first embodiment. Further, the image forming apparatus A5 outputs to the edge computing unit 107, judgment of a difference value in the sub-scanning direction, a 2-bit judgment signal that indicates the size relationship between pixel values, and a signal that indicates whether or not the smaller pixel value of the two pixels is 0, from the image analysis unit 111 according to the timing described in the first embodiment. A 2-bit judgment signal is the same as that in the first embodiment. Note that the same flowchart as that in the fourth embodiment is used.
Furthermore, the image analysis unit 111 performs third judgment processing for judging whether each pixel value of n input pixels is less than or equal to a second threshold value set in advance. Specifically, whether there is a white pixel among input pixels is detected. Although here, a pixel is judged as a white pixel if each pixel value of the input pixels is less than or equal to the second threshold value, if the pixel value (density value) of an input pixel is 0, a pixel may be judged as a white pixel.
The edge computing unit 107 functions as a determination unit, and based on the judgment result of third judgment processing, adds the output pixel value of a pixel judged as having a value that is less than or equal to the second threshold value (white pixel) to the output pixel value of a pixel judged as having a value that exceeds the second threshold value (a pixel other than a white pixel). Further, the edge computing unit 107 changes the output pixel value of the pixel judged as having a value that is less than or equal to the second threshold value (white pixel) to 0.
In
Also, each processing performed by the resolution conversion unit 101, the γ correction unit 102, the quantization unit 103, the pixel selection unit 108, and the PWM conversion unit 105 (steps S2 to S5, and step S8) is the same as that in the fourth embodiment, and thus, a description thereof is omitted.
As shown in step S6 (see
Edge computation processing is described with reference to
(1) Add a smaller pixel value indicated in a 2-bit judgment signal to a greater pixel value, and newly output the resultant value as a greater pixel value. At this time, if the addition result exceeds the upper limit value of an input value into the PWM conversion unit 105, the resultant value is rounded to this upper limit value.
(2) Set the smaller pixel value indicated in the 2-bit judgment signal to 0.
Note that if a 1-bit white pixel judgment signal is 0, the same result as that in the fourth embodiment is obtained. In the example shown in the middle diagram in
The processing performed by the PWM conversion unit 105 (step S6) is the same as that in the first embodiment. Note that if the difference does not exceed a threshold value in the image analysis unit 111, the result is the same as that in the first embodiment.
According to the present embodiment as described above, since an output value of a portion in which an input pixel value is 0 is to be 0, a portion having a white pixel is accurately reproduced. Accordingly, when outputting an original whose ground is white such as a document image, resolution does not deteriorate, and a stable output can be obtained.
Aspects of the present invention can also be realized by a computer of a system or apparatus (or devices such as a CPU or MPU) that reads out and executes a program recorded on a memory device to perform the functions of the above-described embodiments, and by a method, the steps of which are performed by a computer of a system or apparatus by, for example, reading out and executing a program recorded on a memory device to perform the functions of the above-described embodiments. For this purpose, the program is provided to the computer for example via a network or from a recording medium of various types serving as the memory device (e.g., computer-readable medium).
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. 2009-001105, filed Jan. 6, 2009, which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2009-001105 | Jan 2009 | JP | national |