Halftone mask manufacturing method and halftone mask manufacturing system
10298812 ยท 2019-05-21
Assignee
Inventors
Cpc classification
H04N1/4053
ELECTRICITY
B41J2/52
PERFORMING OPERATIONS; TRANSPORTING
H04N1/6022
ELECTRICITY
H04N1/4051
ELECTRICITY
International classification
H04N1/405
ELECTRICITY
Abstract
A temporary dot pattern at a dot pattern determining target gradation is determined by adding or removing dots as much as the number of dots corresponding to a gradation difference to or from a dot pattern at a gradation at which a dot pattern is already determined, and a dot pattern at a dot pattern determining target gradation is determined by performing a replacement process of replacing dots including some of dots at a dot pattern determined gradation among the dots in the temporary dot pattern with non-dot arrangements. A halftone mask may be constituted by a group of dot patterns at each gradation, or the halftone mask may be constituted by setting a dot pattern for each gradation as a threshold value.
Claims
1. A halftone mask manufacturing method of manufacturing a halftone mask to be applied to a halftone process of creating a halftone image by converting multivalued image data, the method comprising: a dot pattern determining step of determining a dot pattern at a dot pattern determining target gradation, which is a gradation having a gradation difference of one or more gradations from a dot pattern determined gradation as a gradation at which a dot pattern indicating whether or not there is a dot is already determined and is a gradation of a target for determining a dot pattern based on the dot pattern at the dot pattern determined gradation, consecutively changing the dot pattern determining target gradation, and determining dot patterns for a plurality of gradations, wherein the dot pattern determining step includes a dot number changing step of determining a temporary dot pattern at the dot pattern determining target gradation by removing or adding dots as much as the number of dots corresponding to the gradation difference between the dot pattern determined gradation and the dot pattern determining target gradation from or to the dot pattern at the dot pattern determined gradation, and a replacement processing step of determining the dot pattern at the dot pattern determining target gradation by performing a replacement process of replacing dots including some of the dots at the dot pattern determined gradation with non-dot arrangements on the temporary dot pattern, or a replacement processing step of determining a temporary dot pattern at the dot pattern determined gradation by performing a replacement process of replacing some of dots with non-dot arrangements on the dot pattern at the dot pattern determined gradation, and a dot number changing step of determining the dot pattern at the dot pattern determining target gradation by removing or adding the dots as much as the number of dots corresponding the gradation difference between the dot pattern determined gradation and the dot pattern determining target gradation from or to the temporary dot pattern.
2. The halftone mask manufacturing method according to claim 1, wherein, in the dot number changing step, the dots as much as the number of dots corresponding to the gradation difference between the dot pattern determined gradation and the dot pattern determining target gradation are added in a case where the dot pattern determining target gradation is greater than the dot pattern determined gradation, and the dots as much as the number of dots corresponding to the gradation difference between the dot pattern determined gradation and the dot pattern determining target gradation are removed in a case where the dot pattern determining target gradation is less than the dot pattern determined gradation.
3. The halftone mask manufacturing method according to claim 1, further comprising: a threshold value setting step of setting a threshold value to the halftone mask based on the dot pattern for each gradation determined in the dot pattern determining step.
4. The halftone mask manufacturing method according to claim 3, wherein the threshold value setting step includes a threshold value setting step of setting a first threshold value at which the non-dot arrangement is switched to the dot with an increase in gradation and a second threshold value at which the dot is switched to the non-dot arrangement with the increase in gradation at at least some gradations.
5. The halftone mask manufacturing method according to claim 4, wherein, in the threshold value setting step, two kinds of the first threshold value and the second threshold value are set for at least some pixels at at least some gradations.
6. The halftone mask manufacturing method according to claim 1, further comprising: a dot pattern storing step of storing the dot pattern which is determined in the dot pattern determining step and is the dot pattern for each gradation at at least some gradations.
7. The halftone mask manufacturing method according to claim 1, wherein, in the dot pattern determining step, the dot pattern is determined at one gradation at a time at at least some gradations.
8. The halftone mask manufacturing method according to claim 1, wherein, in the dot pattern determining step, a dot pattern at the dot pattern determining target gradation having a gradation difference of two or more gradations from the dot pattern determined gradation is determined, and a dot pattern at a gradation between the dot pattern determined gradation and the dot pattern determining target gradation is determined based on the dot pattern at the dot pattern determined gradation and the dot pattern at the dot pattern determining target gradation.
9. The halftone mask manufacturing method according to claim 1, further comprising: a replacement process number setting step of setting the number of times of the replacement process in the replacement processing step.
10. The halftone mask manufacturing method according to claim 9, wherein, in the replacement process number setting step, the number of times of the replacement process in the replacement processing step is changed depending on the gradation at at least some gradations.
11. The halftone mask manufacturing method according to claim 9, wherein, in the replacement process number setting step, the number of times of the replacement process in the replacement processing step of increasing the number of times of the replacement process in the replacement processing step in a case where the smaller one of the number of dots in the dot pattern and the number of non-dot arrangements is increased or decreasing the number of times of the replacement process in the replacement processing step in a case where the smaller one of the number of dots in the dot pattern and the number of non-dot arrangements is decreased is set at at least some gradations.
12. The halftone mask manufacturing method according to claim 9, wherein, in the replacement process number setting step, the number of times of the replacement process in the replacement processing step which is in proportion to the smaller one of the number of dots in the dot pattern and the number of non-dot arrangements is changed at at least some gradations.
13. The halftone mask manufacturing method according to claim 9, wherein, in the replacement process number setting step, in a case where a value acquired by dividing the gradation by a maximum gradation is x and a size of the halftone mask is M, the number of times of the replacement process in the replacement processing step is set in a range which is not greater than M(x x.sup.2) at at least some gradations.
14. The halftone mask manufacturing method according to claim 9, wherein, in the replacement process number setting step, the number of times of the replacement process in the replacement processing step is set in a range which is not greater than M(xx.sup.2) at at least some gradations in a case where a value acquired by dividing the gradation by a maximum gradation is x, the size of the halftone mask is M, and predetermined constant which is greater than 0 or is equal to or less than 1 is .
15. The halftone mask manufacturing method according to claim 9, wherein, in the replacement process number setting step, the number of times of the replacement process in the replacement processing step is set based on a replacement dot number which is the number of dots on which the replacement of the dot and the non-dot arrangement is actually performed at at least some gradations.
16. The halftone mask manufacturing method according to claim 9, wherein, in the replacement process number setting step, the number of times of the replacement process in the replacement processing step is set based on the number of overlapped dots or the number of overlapped non-dot arrangements in a dot pattern of a target on which the replacement process is performed and a dot pattern of each of one or more dot pattern determined gradations at at least some gradations.
17. The halftone mask manufacturing method according to claim 9, wherein, in the replacement process number setting step, in a case where a value acquired by dividing a gradation of a dot or a non-dot arrangement in a dot pattern of a target on which the replacement process is performed by a maximum gradation is x, a value acquired by dividing a gradation of a dot or a non-dot arrangement in a dot pattern of each dot pattern determined gradation by a maximum gradation is y, and a size of the halftone mask is M, the number of times of the replacement process in the replacement processing step is set in a range in which the number of overlapped non-dot arrangements or the number of overlapped dots in the dot pattern of the target on which the replacement process is performed and the dot pattern at each dot pattern determined gradation is equal to or greater than Mxy at at least some gradations.
18. The halftone mask manufacturing method according to claim 9, wherein, in the replacement process number setting step, in a case where a value acquired by dividing a gradation of a dot or a non-dot arrangement in a dot pattern of a target on which the replacement process is performed by a maximum gradation is x, a value acquired by dividing a gradation of a dot or a non-dot arrangement in a dot pattern of each dot pattern determined gradation by a maximum gradation is y, a size of the halftone mask is M, and predetermined constant which is greater than 0 and is equal to or less than 1 is , the number of times of the replacement process in the replacement processing step is set in a range in which the number of overlapped non-dot arrangements or the number of overlapped dots in the dot pattern of the target on which the replacement process is performed and the dot pattern at each dot pattern determined gradation is equal to or greater than M(y(yxy)) at at least some gradations.
19. The halftone mask manufacturing method according to claim 1, wherein, in the dot pattern determining step, a dot pattern of which evaluation of image quality becomes best is determined as the dot pattern at the dot pattern determining target gradation.
20. The halftone mask manufacturing method according to claim 1, wherein, in the dot number changing step, a dot pattern of which evaluation of image quality becomes best is determined as the temporary dot pattern at the dot pattern determining target gradation.
21. The halftone mask manufacturing method according to claim 1, wherein, in the replacement processing step, a dot pattern of which evaluation of image quality becomes best is determined as the temporary dot pattern at the dot pattern determined gradation.
22. A halftone mask manufacturing system of manufacturing a halftone mask to be applied to a halftone process of creating a halftone image by converting multivalued image data, the system comprising: a dot pattern determining unit that determines a dot pattern at a dot pattern determining target gradation, which is a gradation having a gradation difference of one or more gradations from a dot pattern determined gradation as a gradation at which a dot pattern indicating whether or not there is a dot is already determined and is a gradation of a target for determining a dot pattern based on the dot pattern at the dot pattern determined gradation, consecutively changes the dot pattern determining target gradation, and determines dot patterns for a plurality of gradations, wherein the dot pattern determining unit includes a dot number changing unit that determines a temporary dot pattern at the dot pattern determining target gradation by removing or adding dots as much as the number of dots corresponding to the gradation difference between the dot pattern determined gradation and the dot pattern determining target gradation from or to the dot pattern at the dot pattern determined gradation, and a replacement processing unit that determines the dot pattern at the dot pattern determining target gradation by performing a replacement process of replacing dots including some of the dots at the dot pattern determined gradation with non-dot arrangements on the temporary dot pattern, or a replacement processing unit that determines a temporary dot pattern at the dot pattern determined gradation by performing a replacement process of replacing some of dots with non-dot arrangements on the dot pattern at the dot pattern determined gradation, and a dot number changing unit that determines the dot pattern at the dot pattern determining target gradation by removing or adding the dots as much as the number of dots corresponding the gradation difference between the dot pattern determined gradation and the dot pattern determining target gradation from or to the temporary dot pattern.
23. A non-transitory computer-readable recording medium that stores a halftone mask manufacturing program for manufacturing a halftone mask to be applied to a halftone process of creating a halftone image by converting multivalued image data, wherein, in a case where the halftone mask manufacturing program is read by a computer, the program causes the computer to function as dot pattern determining means for determining a dot pattern at a dot pattern determining target gradation, which is a gradation having a gradation difference of one or more gradations from a dot pattern determined gradation as a gradation at which a dot pattern indicating whether or not there is a dot is already determined and is a gradation of a target for determining a dot pattern based on the dot pattern at the dot pattern determined gradation, consecutively changing the dot pattern determining target gradation, and determining dot patterns for a plurality of gradations, the dot pattern determining means causes the computer to function as dot number changing means for determining a temporary dot pattern at the dot pattern determining target gradation by removing or adding dots as much as the number of dots corresponding to the gradation difference between the dot pattern determined gradation and the dot pattern determining target gradation from or to the dot pattern at the dot pattern determined gradation, and replacement processing means for determining the dot pattern at the dot pattern determining target gradation by performing a replacement process of replacing dots including some of the dots at the dot pattern determined gradation with non-dot arrangements on the temporary dot pattern, or replacement processing means for determining a temporary dot pattern at the dot pattern determined gradation by performing a replacement process of replacing some of dots with non-dot arrangements on the dot pattern at the dot pattern determined gradation, and dot number changing means for determining the dot pattern at the dot pattern determining target gradation by removing or adding the dots as much as the number of dots corresponding the gradation difference between the dot pattern determined gradation and the dot pattern determining target gradation from or to the temporary dot pattern.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19)
(20)
(21)
(22)
(23)
(24)
(25)
(26)
(27)
(28)
(29)
(30)
(31)
(32)
(33)
DESCRIPTION OF THE PREFERRED EMBODIMENTS
(34) Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings.
First Embodiment
(35) <Outline>
(36) In the present embodiment, an example in which a dither mask manufacturing method is used as a halftone mask manufacturing method will be described. In the dither mask manufacturing method according to the present embodiment, a dither mask that achieves favorable image quality such as graininess compared to the dither mask of the related art is manufactured by partially eliminating stacking limitations and independently optimizing white and black arrangement at each density of the dither mask.
(37) Meanwhile, in a case where the white and black arrangement at each density is independently optimized, the graininess or continuity of image data at an ununiform gradation is deteriorated. In the dither mask manufacturing method according to the present embodiment, a dither mask that secures the continuity of the white and black arrangements at the density by partially maintaining the stacking limitations and adjusting the maintained stacking limitations is manufactured.
(38) That is, in the dither mask manufacturing method described in the present embodiment, the degree of freedom of the white and black arrangement is increased and the image quality is improved by partially canceling the stacking limitations. Further, constant continuity of the white and black arrangement between densities is secured by partially maintaining the stacking limitations. Thus, it is possible to adjust a balance between the improvement of the image quality and the securing of the continuity of the white and black arrangement between the densities.
(39) In addition, in the dither mask manufacturing method described in the present embodiment, a dither mask capable of setting a plurality of threshold values including the threshold value at which the black pixel is changed to the white pixel in addition to changing the pixel to the black pixel in a case where an image value is greater than the threshold value at each pixel of the dither mask is manufactured.
(40) That is, a dither mask capable of setting the threshold value in a case where the black pixel is changed to the white pixel along with the replacement of the black pixel and the white pixel in addition to the threshold value in a case where the white pixel is changed to the black pixel is manufactured. A dither mask capable of setting a plurality of threshold values including the threshold value in a case where the white pixel is changed to the black pixel and the threshold value in a case where the black pixel is changed to the white pixel is manufactured.
(41) Here, as a recent printer, there is a printer capable of printing not only one kind of dot but also multiple kinds of dots. In addition to the white or black dots used for the printer capable of printing multiple kinds of dots, an image value is quantized to a multivalued value corresponding to each dot by using the dither method.
(42) Meanwhile, there is only a difference between printing performed using one kind of dot and printing performed using multiple kinds of dots in that a process of allocating the image values to binary values of the white pixel and black pixel in comparison with the threshold value is performed in one stage or in multiple stages. In the present embodiment, a dither mask to be applied to a binarization process of allocating the image values to the binary values of the white pixel and the black pixel will be described.
(43) <Procedure of Halftone Mask Manufacturing Method>
(44)
(45) In initial white and black arrangement setting step S10 shown in
(46) White and black arrangement corresponding to a threshold value in a previous process is applied as the white and black arrangement as a reference in a case where the threshold value is decreased by one. That is, the white and black arrangement for which a certain threshold value is set becomes reference white and black arrangement at a threshold value in a next process acquired by decreasing the threshold value by one.
(47) In ascending-order threshold value setting step S14, the initial white and black arrangement set in the initial white and black arrangement setting step S10 is used as the reference, the threshold value is increased one by one, the white and black arrangements at the threshold values are determined, and the threshold values are set for the black pixels replaced with the white pixels and the white pixels replaced with the black pixels.
(48) The white and black arrangement corresponding to the threshold value of the previous process is applied as the white and black arrangement as the reference in a case where the threshold value is increased one by one. That is, the white and black arrangement for which the certain threshold value is set is used as the reference white and black arrangement at the threshold value in the next process in which the threshold value is increased by one. The details of the determination of the white and black arrangement and the setting of the threshold value will be described below.
(49) In a case where the white and black arrangements are determined for all the threshold values and the threshold value corresponding to the white and black arrangement is set, the dither mask manufacturing method shown in
(50) In the following description, an example in which a white and black arrangement at a threshold value 8 is used as the initial white and black arrangement, the threshold values 9 to 16 are set for a dither mask which is constituted by 16 pixels of 4 pixels4 pixels and for which threshold values of 1 to 16 are set in ascending order, and the threshold values 8 to 1 are set for the dither mask in descending order will be described.
(51) <Procedure of Ascending-Order Threshold Value Setting Step>
(52) Hereinafter, the ascending-order threshold value setting step shown in
(53) Although the white and black arrangement is separately prepared for simplicity of description, the white and black arrangement is determined from the white and black dither mask and the black and white dither mask, it is not necessary to prepare the white and black arrangement.
(54)
(55) As shown in
(56) The steps from ascending-order white-to-black changed threshold value setting step S20 to ascending-order threshold value setting completion determination step S24 are repeatedly performed until the threshold values are set for all threshold value setting target pixels of the dither mask. Meanwhile, in a case where the threshold value is set for all the threshold value setting target pixels of the dither mask, the ascending-order threshold value setting step is ended. Hereinafter, ascending-order white-to-black changed threshold value setting step S20 and ascending-order replaced threshold value setting step S22 will be described in detail.
(57) <Ascending-Order White-to-Black Changed Threshold Value Setting Step: White-to-Black Changing Process>
(58)
(59) The white and black arrangement 10 before the white-to-black changing process shown in
(60) In the present embodiment, a white and black arrangement at a threshold value 8 becomes the white and black arrangement 10 before the white-to-black changing process in the first process. For example, in the second and subsequent processes, a white and black arrangement acquired through a process at a threshold value 9 becomes the white and black arrangement 10 before the white-to-black changing process in a process at a threshold value 10.
(61) Initially, in the white-to-black changing process, for all the white pixels of the white and black arrangement 10 before the white-to-black changing process shown in
(62) The known index may be applied as an index of the graininess evaluation. For example, a standard deviation calculated by applying a blur filter that takes account of RMS granularity, that is, visual perception characteristics of human such as VTF to the white and black arrangement may be used as the index. RMS is short for Root Mean Square. VTF is short for Visual Transfer Function.
(63) As shown in
(64) In
(65) In a white and black arrangement 14 after the white-to-black changing process shown in
(66) The white and black arrangement corresponds to a dot pattern indicating whether or not there is a dot. The white-to-black changing process in the ascending-order white-to-black changed threshold value setting step is an aspect of a dot number changing step of adding dots as much as dots corresponding to a gradation difference between a dot pattern determined gradation and a dot pattern determining target gradation, and is a component of a dot pattern determining step.
(67) The white-to-black changing process in the ascending-order white-to-black changed threshold value setting step is an aspect of the dot number changing step of adding dots as much as dots corresponding to the gradation difference between the dot pattern determined gradation and the dot pattern determining target gradation in a case where a dot pattern determining target gradation is greater than the dot pattern determined gradation.
(68) A threshold value of the target of the white-to-black changing process in the ascending-order white-to-black changed threshold value setting step is a gradation having a gradation difference of one or more gradations from the dot pattern determined gradation, and corresponds to a dot pattern determining target gradation which a target gradation for determining the dot pattern.
(69) The white and black arrangement after the white-to-black changing process which is the white and black arrangement determined through the white-to-black changing process is an aspect of a temporary dot pattern with the dot pattern determining target gradation.
(70) A threshold value in the previous process in the ascending-order white-to-black changed threshold value setting step corresponds to the dot pattern determined gradation. The white and black arrangement acquired through the previous process corresponds to a dot pattern with the dot pattern determined gradation.
(71) A process of changing threshold values of processing targets in the ascending-order white-to-black changed threshold value setting step one by one corresponds to a process of consecutively changing the dot pattern determining target gradation.
(72) <Ascending-Order White-to-Black Changed Threshold Value Setting Step: White-to-Black Changed Threshold Value Setting Process>
(73)
(74) A white and black arrangement 14 after the white-to-black changing process shown in
(75) In a white and black dither mask 20 shown in
(76) The white-to-black changed threshold value setting process in the ascending-order white-to-black changed threshold value setting step is a component of a threshold value setting step.
(77) <Ascending-Order Replaced Threshold Value Setting Step: Replacement Process>
(78)
(79) A white and black arrangement 14 before the replacement process shown in
(80) As shown in
(81) Subsequently, the target pixel 24 which is the target black pixel is temporarily replaced with all the white pixels one by one, and the graininess is evaluated. Pixels 26 hatched by diagonal lines in
(82) The target pixel 24 shown in
(83) A white and black arrangement 28 after the replacement process shown in
(84) In the white and black arrangement 28 after the replacement process shown in
(85) The black pixels as the targets of the replacement process include at least one of the black pixels of the white and black arrangement corresponding to the threshold value in the previous process. That is, at least a part of the black pixels in the white and black arrangement 10 before the white-to-black changing process shown in
(86) The replacement process in the ascending-order replaced threshold value setting step is an aspect of a replacement process of replacing dots including some of dots at the dot pattern determined gradation with non-dot arrangements, and is a component of the dot pattern determining step of performing the replacement process by the preset number of times of the process.
(87) A step of setting the number of times of the replacement process in the ascending-order replaced threshold value setting step is a component of a replacement process number setting step.
(88) <Ascending-Order Replaced Threshold Value Setting Step: Replaced Threshold Value Setting Process>
(89)
(90) As shown in
(91) In the white and black dither mask 20 shown in
(92) As shown in
(93) In a case where a threshold value 9 is set for the white and black dither mask 20 and the black and white dither mask 44, the threshold value is increased by one, and the process proceeds to the setting of a threshold value 10. By doing this, the threshold value is set in ascending order until a threshold value 16 is set.
(94) The replaced threshold value setting process in the ascending-order replaced threshold value setting step is a component of the threshold value setting step. The threshold value set for the white and black dither mask corresponds to a first threshold value. The threshold value set for the black and white dither mask corresponds to a second threshold value.
(95) <Image Quality Evaluation in Replacement Process>
(96) In the replacement process shown in
(97) <Number of Times of Replacement Process>
(98) The replacement process is performed while changing the target pixel 24 shown in
(99) As for the number of times of the replacement process, the target pixel may be changed by using all the black pixels as the targets, the replacement of all the black pixels with all the white pixels may be performed as one cycle, and the number of cycles may be set as the number of times of the replacement process. The processing result before one cycle is used in the second and subsequent cycles of process, and thus, it is possible to improve the graininess whenever the number of times of the replacement process is repeated. Here, even in a case where the replacement process is performed on all the black pixels, it is preferable that an order in which the target pixel is changed such that the black pixels to be replaced with the white pixels are not biased is set such that the pixel position of the target pixel is randomly changed or is changed without being biased.
(100) Although it has been described in such an aspect that all the black pixels in the white and black arrangement 14 before the replacement process shown in
(101) <Description of Other Examples of Replacement Process>
(102)
(103)
(104) Initially, in a white and black arrangement 14 before the replacement process which is the white and black arrangement of the targets of the replacement process shown in
(105) As shown in
(106) A pixel 30A of a white and black arrangement 28A after the black specification process shown in
(107) Subsequently, the specified black pixel 30A is temporarily replaced with all the white pixels of the white and black arrangement 28A after the black specification process shown in
(108) The specified black pixel 30A is actually replaced with the white pixel of which the graininess becomes best, and becomes the white pixel. The pixel 26A of the white and black arrangement 31A after the replacement process shown in
(109) The setting of the threshold value for the white and black dither mask and the black and white dither mask is the same as the example described above, and thus, the description thereof is omitted.
(110) <Example of Generation of Dither Mask Using Void and Cluster Method>
(111) In a case where the known void and cluster method is used in the generation of the dither mask, the ascending-order threshold value setting process shown in
(112) Initially, an energy mask in which a blur filter such as a Gaussian filter is applied with a pixel, which corresponds to each black pixel of the white and black arrangement 10 before the white-to-black changing process shown in
(113) The energy mask is updated by applying the blur filter with the pixel in the white and black arrangement 14 after the white-to-black changing process shown in
(114) In ascending-order replaced threshold value setting step S22 shown in
(115) Subsequently, the target pixel 24 is changed to the white pixel as shown in
(116) Similarly to the example described above, the replacement process is performed while changing the target pixel by a preset number of times of the process. The replacement process mentioned herein includes a case where the replacement of the black pixel and the white pixel is not performed since the energy of the target pixel 24 described above is minimum. Similarly to the example described above, it is preferable that an order in which the target pixel 24 is changed is an order in which a pixel position of the target pixel 24 is randomly changed or an order in which the pixel position is changed without being biased. An order in which all the black pixels are replaced is preferable.
(117) The target pixel may be changed by using all the black pixels as the targets, the replacement of all the black pixels with all the white pixels may be performed as one cycle, and the number of cycles may be set as the number of times of the replacement process.
(118) In a case where the known void and cluster method is used in the generation of the dither mask, the ascending-order replaced threshold value setting step S22 shown in
(119) A cluster pixel which is a pixel of which energy is maximum, among all the black pixels in the white and black arrangement 14 before the replacement process shown in
(120) Subsequently, the energy mask is updated by changing the void pixel which is the pixel of which the energy is minimum, among all the white pixels, to the black pixel and applying the blur filter with the pixel changed to the black pixel as the center, and the threshold value is set for the white and black dither mask and the black and white dither mask.
(121) Similarly to the example described above, in the replacement process, the replacement of the black pixel is repeatedly performed by a preset number of times of the process. The replacement process mentioned herein includes a case where the replacement of the black pixel and the white pixel is not performed since the energy of the specified pixel 30A is minimum as described above.
(122) <Description of Special Process of Threshold Value Setting>
(123) In ascending-order white-to-black changed threshold value setting step S20 and the ascending-order replaced threshold value setting step S22 shown in
(124) In this case, it is assumed that the threshold value is not set for the white and black dither mask and the black and white dither mask. Specifically, in a case where the threshold value is set for any pixel of the white and black dither mask, it is checked whether or not the same threshold value is already set for the corresponding pixel of the black and white dither mask. In a case where the same threshold value is set for the corresponding pixels of the black and white dither mask, the threshold values of the pixels of the white and black dither mask and the black and white dither mask are removed.
(125) Similarly, in a case where the threshold value is set for any pixel of the black and white dither mask, it is checked whether or not the same threshold value is already set for the corresponding pixel of the white and black dither mask. In a case where the same threshold value is already set for the corresponding pixel of the white and black dither mask, the threshold values of the pixels of the black and white dither mask and the white and black dither mask are removed.
(126) The ascending-order threshold value setting step has been described above according to the procedure of
(127) That is, the white and black arrangement after the replacement process may be initially determined and the threshold value may be set for the white and black dither mask and the black and white dither mask by performing the replacement process on the white and black arrangement at the dot pattern determined gradation by the preset number of times of the process in ascending-order replaced threshold value setting step S22. Subsequently, the white and black arrangement at the dot pattern determining target gradation may be determined and the threshold value may be set for or may be removed from the white and black dither mask and the black and white dither mask by adding the dots as much as the dots corresponding to the gradation difference between the dot pattern determined gradation and the dot pattern determining target gradation to the white and black arrangement after the replacement process in ascending-order white-to-black changed threshold value setting step S20.
(128) These steps may be repeatedly performed until the threshold value is set for all the threshold value setting target pixels of the dither mask. Here, the details of ascending-order white-to-black changed threshold value setting step S20 and ascending-order replaced threshold value setting step S22 are described above, and thus, the description thereof is omitted. Image quality becomes good by performing ascending-order replaced threshold value setting step S22 in the dot pattern determining target gradation.
(129) The aspect in which ascending-order replaced threshold value setting step S22 is performed and ascending-order white-to-black changed threshold value setting step S20 is subsequently performed is an aspect of a dot pattern determining step of performing a replacement processing step and subsequently performing a dot number changing step.
(130) <Procedure of Descending-Order Threshold Value Setting Step>
(131) Hereinafter, a procedure of the descending-order threshold value setting step shown in
(132) As shown in
(133) The steps from descending-order black-to-white changed threshold value setting step S30 to descending-order threshold value setting completion determination step S34 are repeatedly performed until the threshold values are set for all the threshold value setting target pixels of the dither mask. Meanwhile, in a case where the threshold value is set for all the threshold value setting target pixels of the dither mask, the descending-order threshold value setting step is ended.
(134) <Descending-Order Black-to-White Changed Threshold Value Setting Step: Black-to-White Changing Process>
(135)
(136) A white and black arrangement 50 after the black-to-white changing process shown in
(137) In the black-to-white changing process, graininess in a case where all black pixels of the white and black arrangement 50 before the black-to-white changing process shown in
(138) Pixels 52 hatched by dots in
(139) Similarly to the ascending-order threshold value setting step described above, the known index may be applied as the index of the graininess, and thus, the description thereof is omitted.
(140) The black-to-white changing process in the descending-order black-to-white changed threshold value setting step is an aspect of a dot number changing determination process of removing dots as much as dots corresponding to a gradation difference between a dot pattern determined gradation and a dot pattern determining target gradation, and is a component of the dot pattern determining step.
(141) The black-to-white changing process in the descending-order black-to-white changed threshold value setting step is an aspect of a dot number changing step of removing dots as much as dots corresponding to a gradation difference between a dot pattern determined gradation and a dot pattern determining target gradation in a case where the dot pattern determining target gradation is less than the dot pattern determined gradation.
(142) The white and black arrangement after the black-to-white changing process which is the white and black arrangement determined through the black-to-white changing process is an aspect of a temporary dot pattern in the dot pattern determining target gradation.
(143) A threshold value of the target of the black-to-white changing process in the descending-order black-to-white changed threshold value setting step is a gradation having a gradation difference of one or more gradations from the dot pattern determined gradation, and corresponds to a dot pattern determining target gradation which is a gradation of the target for determining the dot pattern.
(144) A process of changing threshold values of processing targets in the descending-order black-to-white changed threshold value setting step one by one corresponds to a process of consecutively changing the dot pattern determining target gradation.
(145) <Descending-Order Black-to-White Changed Threshold Value Setting Step: Black-to-White Changed Threshold Value Setting Process>
(146)
(147) A white and black arrangement 54 after the black-to-white changing process shown in
(148) A threshold value 8 is set for a pixel 58 in a white and black dither mask 20 shown in
(149) The black-to-white changed threshold value setting process in the descending-order black-to-white changed threshold value setting step is a component in the threshold value setting step.
(150) <Descending-Order Replaced Threshold Value Setting Step: Replacement Process>
(151)
(152) The white and black arrangement 54 before the replacement process shown in
(153) As shown in
(154) Subsequently, the target pixel 60 which is the target black pixel is temporarily replaced with all the white pixels one by one, and graininess is evaluated. Pixels 62 hatched by diagonal lines in
(155) The target pixel 60 shown in
(156) The number of times of the process is the same as the ascending-order threshold value setting step S14 described above, and the description thereof is omitted.
(157) A white and black arrangement 64 after the replacement process shown in
(158) In the white and black arrangement 64 after the replacement process shown in
(159) The black pixel as the target of the replacement process includes all the black pixels. That is, all the black pixels in the white and black arrangement 54 before the replacement process shown in
(160) The replacement process in the descending-order replaced threshold value setting step is an aspect of a replacement process of replacing dots including some of dots at the dot pattern determined gradation with the non-dot arrangements, and is a component of the dot pattern determining step of performing the replacement process by the preset number of times of the process.
(161) A step of setting the number of times of the replacement process in the descending-order replaced threshold value setting step is a component of a replacement process number setting step.
(162) <Descending-Order Replaced Threshold Value Setting Step: Replaced Threshold Value Setting Process>
(163)
(164)
(165) As shown in
(166) In a replaced white and black dither mask 20 shown in
(167) In a black and white dither mask 44 shown in
(168) The replaced threshold value setting process in the descending-order replaced threshold value setting step is a component of the threshold value setting step.
(169) <Number of Times of Replacement Process>
(170) Similarly to the ascending-order threshold value setting step described above, it is possible to set the number of times of the replacement process in the descending-order threshold value setting step. That is, the replacement of the black pixels to the white pixel may be performed while changing the target pixel 60 shown in
(171) The processing result before one cycle is used in the second and subsequent cycles of process, and thus, it is possible to improve the graininess whenever the number of times of the replacement process is repeated.
(172) Similarly to the ascending-order threshold value setting step described above, it has been described in such an aspect that all the black pixels in the white and black arrangement 54 before the replacement process shown in
(173) <Example of Generation of Dither Mask Using Void and Cluster Method>
(174) In a case where the known void and cluster method is used in the generation of the dither mask, the descending-order threshold value setting process shown in
(175) An energy mask in which a blur filter is applied with each black pixel of the white and black arrangement 50 before the black-to-white changing process shown in
(176) The blur filter is removed with the pixel in the white and black arrangement 54 after the black-to-white changing process shown in
(177) In the descending-order replaced threshold value setting step S32 shown in
(178) Subsequently, the target pixel 60 is changed to the white pixel, as shown in
(179) Similarly to the example described above, the replacement process is performed while changing the target pixel 60 by the preset number of times of the process. The replacement process mentioned herein includes a case where the replacement of the black pixel and the white pixel is not performed since the energy of the target pixel 60 described above is minimum. Similarly to the example described above, it is preferable that the pixel position of the target pixel 60 is randomly changed or is changed without being biased. It is preferable that the pixel of the position thereof is changed in an order in which all the black pixels are changed.
(180) The target pixel may be changed by using all the black pixels as the targets, the replacement of all the black pixels with all the white pixels may be performed as one cycle, and the number of cycles may be set as the number of times of the replacement process.
(181) In a case where the known void and cluster method is used in the generation of the dither mask, the descending-order replaced threshold value setting step S32 shown in
(182) One cluster pixel which is the pixel of which the energy is maximum, among all the black pixels in the white and black arrangement 54 before the replacement process shown in
(183) The void pixel which is the pixel of which the energy is minimum, among all the white pixels, is changed to the black pixel, the energy mask is updated by applying the blur filter with the pixel changed to the black pixel as the center, and the threshold value is set for the white and black dither mask 20 and the black and white dither mask 44.
(184) Similarly to the example described above, in the replacement process, the replacement of the black pixel is repeatedly performed by a preset number of times of the process. The replacement process mentioned herein includes a case where the replacement of the black pixel and the white pixel is not performed since the energy of the specified pixel is minimum as described above.
(185) <Description of Special Process of Threshold Value Setting>
(186) In the descending-order black-to-white changed threshold value setting step S30 and the descending-order replaced threshold value setting step S32 shown in
(187) In this case, it is assumed that the threshold value is not set for the white and black dither mask and the black and white dither mask. Specifically, in a case where the threshold value is set for any pixel of the white and black dither mask, it is checked whether or not the same threshold value is already set for the corresponding pixel of the black and white dither mask. In a case where the same threshold value is already set for the corresponding pixel of the black and white dither mask, the threshold values of the pixels for which the same threshold value is set in the white and black dither mask and the black and white dither mask are removed.
(188) Similarly, in a case where the threshold value is set for any pixel of the black and white dither mask, it is checked whether or not the same threshold value is already set for the corresponding pixel of the white and black dither mask. In a case where the same threshold value is already set for the corresponding pixel of the white and black dither mask, the threshold values of the pixels for which the same threshold value is set in the black and white dither mask and the white and black dither mask are removed.
(189) The descending-order threshold value setting step has been described according to the procedure of
(190) That is, the orders of the descending-order black-to-white changed threshold value setting step S30 and the descending-order replaced threshold value setting step S32 in the procedure of
(191) That is, the white and black arrangement after the replacement process may be initially determined and the threshold value may be set for the white and black dither mask and the black and white dither mask by performing the replacement process on the white and black arrangement at the dot pattern determined gradation by the preset number of times of the process in descending-order replaced threshold value setting step S32. Subsequently, the white and black arrangement at the dot pattern determining target gradation may be determined and the threshold value may be set for or may be removed from the white and black dither mask and the black and white dither mask by removing the dots as much as the dots corresponding to the gradation difference between the dot pattern determined gradation and the dot pattern determining target gradation from the white and black arrangement after the replacement process in descending-order black-to-white changed threshold value setting step S30.
(192) These steps may be repeatedly performed until the threshold value is set for all the threshold value setting target pixels of the dither mask. Here, the details of the descending-order black-to-white changed threshold value setting step S30 and the descending-order replaced threshold value setting step S32 have been described above, and thus, the description thereof is omitted. Image quality becomes good by performing descending-order replaced threshold value setting step S32 in the dot pattern determining target gradation.
(193) The aspect in which the descending-order replaced threshold value setting step S32 is performed and the descending-order black-to-white changed threshold value setting step S30 is subsequently performed is an aspect of the dot pattern determining step of performing the replacement processing step and subsequently performing the dot number changing step.
(194) <Another Example of Dither Mask>
(195)
(196) A white and black arrangement 100 shown in
(197) Pixels colored in black in the white and black arrangement 100 shown in
(198) In a white and black dither mask 102 shown in
(199)
(200) In a white and black arrangement 106 shown in
(201) In the black and white dither mask 108 shown in
(202) For example, in a case where P threshold values in any pixel of the white and black dither mask 102 are a first white-to-black threshold value, a second white-to-black threshold value, . . . , and a P-th white-to-black threshold value and (P1) threshold values in the pixel of the black and white dither mask 108 are a first black-to-white threshold value, a second black-to-white threshold value, . . . , and a (P1)-th black-to-white threshold value, the relationship of first white-to-black threshold value <first black-to-white threshold value <second white-to-black threshold value <second black-to-white threshold value < . . . <(P1)-th black-to-white threshold value <P-th white-to-black threshold value is satisfied. Here, in a case where the black pixels remain even at the minimum gradation or the white pixels remain even at the maximum gradation, the minimum value or the maximum value of the plurality of threshold values in the same pixels of the white and black dither mask 102 and the black and white dither mask 108 do not necessarily belong to the white and black dither mask 102.
(203)
(204) In the white and black arrangement 112 shown in
(205) In the present embodiment, the dither mask constituted by 16 pixels of 4 pixels4 pixels and the dither mask having the size of 81 pixels of 9 pixels9 pixels have been used as the examples. The dither mask manufacturing method described in the present embodiment is not limited to the manufacturing of the dither masks having these sizes, but may be applied to the manufacturing of a dither mask having a certain number of pixels.
(206) <Description of Halftone Process>
(207) Hereinafter, a halftone process using the dither mask manufactured by the dither mask manufacturing method according to the present embodiment will be described. As described above, the white and black dither mask that stores the threshold value at which the white pixel is changed to the black pixel and the black and white dither mask that stores the threshold value at which the black pixel is changed to the white pixels are provided as the dither mask.
(208) As described above, the threshold values in the pixels of the white and black dither mask and the threshold values in the pixels of the black and white dither mask are alternately set. That is, in a case where the threshold values in the pixels of the white and black dither mask are the first white-to-black threshold value, the second white-to-black threshold value, . . . , and the P-th white-to-black threshold value in ascending order and the pixels of the black and white dither mask are the first black-to-white threshold value, the second black-to-white threshold value, . . . , and the (P1)-th black-to-white threshold value in ascending order, the relationship of first white-to-black threshold value <first black-to-white threshold value <second white-to-black threshold value <second black-to-white threshold value < . . . <(P1)-th black-to-white threshold value <P-th white-to-black threshold value is satisfied.
(209) Here, P represents the number of threshold values in each pixel of the white and black dither mask, and has a different value for each pixel. As described above, the first white-to-black threshold value is not necessarily minimum in a case where the black pixels remain even at the minimum gradation, and the P-th white-to-black threshold value is not necessarily maximum in a case where the white pixels remain even at the maximum gradation. Thus, the number of threshold values of the same pixel of the black and white dither mask is not necessarily (P1) with respect to the number P of threshold values of the white and black dither mask.
(210) It is preferable that the number of threshold values of each pixel of the white and black dither mask and the number of threshold values of each pixel of the black and white dither mask are retained apart from the white and black dither mask and the black and white dither mask.
(211)
(212) In a case where the halftone process is started, an image value for each pixel is acquired from image data in image value acquisition step S40.
(213) Subsequently, in white and black first determination step S42, it is determined whether or not an image value is less than the first white-to-black threshold value stored in the white and black dither mask. In white and black first determination step S42, the pixel of which the image value is determined to be less than the first white-to-black threshold value is allocated to the white pixel in allocation step S44, and the processing of the pixel is completed. This procedure is a case where the determination result in white and black first determination step S42 is YES.
(214) Meanwhile, in white and black first determination step S42, the processing of the pixel of which the image value is determined to be equal to or greater than the first white-to-black threshold value proceeds to a black and white first determination step S46. This procedure is a case where the determination result in white and black first determination step S42 is NO.
(215) In black and white first determination step S46, it is determined whether or not the image value is less than the first black-to-white threshold value stored in the black and white dither mask.
(216) In black and white first determination step S46, the pixel of which the image value is determined to be less than the first black-to-white threshold value is allocated to the black pixel in allocation step S48, and the processing of the pixel is completed. This procedure is a case where the determination result in black and white first determination step S46 is YES.
(217) Meanwhile, in black and white first determination step S46, the processing of the pixel of which the image value is determined to be equal to or greater than the first black-to-white threshold value proceeds to white and black second determination step S50. This procedure is a case where the determination result in black and white first determination step S46 is NO.
(218) In white and black second determination step S50, it is determined whether or not the image value is less than the second white-to-black threshold value stored in the white and black dither mask.
(219) In white and black second determination step S50, the pixel of which the image value is determined to be less than the second white-to-black threshold value is allocated to the white pixel in allocation step S52, and the processing of the pixel is completed. This procedure is a case where the determination result in white and black second determination step S50 is YES.
(220) Meanwhile, in white and black second determination step S50, the processing of the pixel of which the image value is determined to be equal to or greater than the second white-to-black threshold value proceeds to the black and white second determination step. This procedure is a case where the determination result in white and black second determination step S50 is NO. In
(221) In a case where the processing proceeds to black and white (P1)-th determination step S54, it is determined whether or not the image value is less than the (P1)-th black-to-white threshold value stored in the black and white dither mask in black and white (P1)-th determination step S54.
(222) The pixel of which the image value is determined to be less than the (P1)-th black-to-white threshold value is allocated to the black pixel in allocation step S56, and the processing of the pixel is completed. This procedure is a case where the determination result in black and white (P1)-th determination step S54 is YES.
(223) Meanwhile, in black and white (P1)-th determination step S54, the processing of the pixel of which the image value is determined to be equal to or greater than the (P1)-th black-to-white threshold value proceeds to white and black P-th determination step S58. This procedure is a case where the determination result in black and white (P1)-th determination step S54 is NO.
(224) In white and black P-th determination step S58, it is determined whether or not the image value is less than the P-th white-to-black threshold value stored in the white and black dither mask.
(225) The pixel of which the image value is determined to be less than the P-th white-to-black threshold value is allocated to the white pixel in allocation step S60, and the processing of the pixel is completed. This procedure is a case where the determination result in white and black P-th determination step S58 is YES.
(226) Meanwhile, in white and black P-th determination step S58, the pixel of which the image value is determined to be equal to or greater than the P-th white-to-black threshold value is allocated to the black pixel in allocation step S62, and the processing of the pixel is completed. This procedure is a case where the determination result in white and black P-th determination step S58 is NO.
(227) By doing this, the halftone process is completed by sequentially comparing the image value of the processing target pixel with the threshold values from the first white-to-black threshold value to the P-th white-to-black threshold value and allocating each pixel to the black pixel or the white pixel based on the comparison result.
(228) In a case where there is a possibility that the pixel will become the white pixel even at the maximum gradation, the P-th black-to-white threshold value may be present as the maximum threshold value. The presence or absence of the P-th black-to-white threshold value may be determined based on the number of black-to-white threshold values with respect to the number P of white-to-black threshold values. That is, it may be determined that the P-th black-to-white threshold value is present in a case where the number of black-to-white threshold values is P, and it may be determined that P-th black-to-white threshold value is not present in a case where the number of black-to-white threshold values is P1.
(229) Alternatively, it may be determined whether or not the P-th black-to-white threshold value is present even though the maximum value of the white-to-black threshold values and the maximum value of the black-to-white threshold values are compared. That is, it may be determined that the P-th black-to-white threshold value is present in a case where the maximum value of the threshold values is the black-to-white threshold value, and it may be determined that the P-th black-to-white threshold value is not present in a case where the maximum value of the threshold values is the white-to-black threshold value.
(230) In a case where the P-th black-to-white threshold value is present, the black and white P-th determination step of determining whether or not the image value is less than the P-th black-to-white threshold value may be added after white and black P-th determination step S58 of
(231) In a case where there is a possibility that the pixel will become the black pixel even at the minimum gradation, there is also a possibility that the minimum threshold value will become the first black-to-white threshold value. In a case where there is a possibility that the pixel will become the black pixel even at the minimum gradation, the first white-to-black threshold value and the first black-to-white threshold value are compared, and the halftone process is performed according to the flowchart shown in
(232)
(233) In the flowchart shown in
(234) In the flowchart shown in
(235) In the flowchart shown in
(236) As shown in
(237) In a case where there is a possibility that the pixel will become the white pixel even at the maximum gradation, a (P+1)-th black-to-white threshold value may be present. The presence or absence of the (P+1)-th black-to-white threshold value may be determined similarly to the presence or absence of the P-th black-to-white threshold value in the description of the flowchart shown in
(238) The presence or absence of the (P+1)-th black-to-white threshold value may be determined based on the number of black-to-white threshold values with respect to the number P of white-to-black threshold values. That is, it may be determined that the (P+1)-th black-to-white threshold value is present in a case where the number of black-to-white threshold values is P+1, and it may be determined that the (P+1)-th black-to-white threshold value is not present in a case where the number of black-to-white threshold values is P.
(239) The presence or absence of the (P+1)-th black-to-white threshold value may be determined even though the maximum values of the white-to-black threshold values and the black-to-white threshold values are compared. That is, it may be determined that the (P+1)-th black-to-white threshold value is present in a case where the maximum value of the threshold values is the black-to-white threshold value, and it may be determined that the (P+1)-th black-to-white threshold value is not present in a case where the maximum value of the threshold values is the white-to-black threshold value.
(240) In a case where the (P+1)-th black-to-white threshold value is present, the black-to-white (P+1)-th determination step of determining whether or not the image value is less than the (P+1)-th black-to-white threshold value may be added after the white and black P-th determination step S58 of
(241) The halftone process corresponds to a halftone process for creating a halftone image by converting multivalued image data. The dither mask is an aspect of a halftone mask.
(242) <Description of Halftone Mask>
(243) Although the dither mask manufacturing method of manufacturing the dither mask in which the threshold value is set for each pixel as the halftone mask has been described in the present embodiment, a set of white and black arrangements corresponding to the threshold values of the dither mask may be manufactured as the halftone mask.
(244) For example, in a case where a dither mask having a size of 256 pixels256 pixels is used, memory capacity of 2 bytes per pixel is required in order to store threshold values from 1 to 65536. As the number of times of the replacement process of ascending-order replaced threshold value setting step S22 of
(245) Meanwhile, the white and black arrangement may have only the memory capacity of one byte per pixel. In a case where the gradation of the image value is a gradation which is smaller than 65536, for example, 256, the white and black arrangement corresponding to a gradation of 256 may be stored. In a case where the white and black arrangement is stored, since the white and black arrangement is directly allocated from the image value of each pixel, a processing period of the halftone process is also advantageous.
(246) Although the aspect in which two kinds of dither masks of the white and black dither mask and the black and white dither mask are used has been described in the present embodiment, an aspect in which one dither mask includes two kinds of threshold values of the threshold value at which the white pixel is changed to the black pixel and the threshold value at which the black pixel is changed to the white pixel may be used as an example.
(247) <Operations and Effects of First Embodiment>
(248) According to the dither mask manufacturing method described above, the stacking limitations of the dither mask are partially eliminated, and the white and black arrangement at each density is independently optimized to some extent. Thus, the image quality is more favorable compared to a case where the dither mask of the related art is used. The stacking limitations of the dither mask are partially maintained, and thus, it is possible to secure constant continuity in the white and black arrangements between the densities.
(249) Although it has been described in the present embodiment that the graininess is evaluated as the evaluation of the image quality, image quality other than the graininess, such as unevenness in density or unevenness in color may be evaluated.
(250) The density mentioned herein may be referred to as the image value, the gradation, or the number of gradations.
Second Embodiment
(251) Hereinafter, a dither mask manufacturing method according to a second embodiment will be described. The same configurations in the second embodiment to be described below as those in the first embodiment described above will be assigned the same references, and thus, the description thereof will be appropriately omitted.
(252) <Outline>
(253) In the first embodiment, the aspect in which the white and black arrangement is determined by increasing or decreasing the threshold value one by one and adding the black pixel or the white pixel one by one and the threshold value is set for the dither mask so as to correspond to the determined white and black arrangement has been described.
(254) In the dither mask manufacturing method according to the second embodiment, the white and black arrangement is determined by increasing or decreasing the threshold value by two or more and adding the black pixels or the white pixels as much as the pixels corresponding to the value by which the threshold value is increased or decreased, and the threshold value is set for the dither mask based on the determined white and black arrangement.
(255) In the dither mask manufacturing method according to the second embodiment, the step of determining the white and black arrangement by adding the black pixels or the white pixels as much as the pixels corresponding to the value by which the threshold value is increased or decreased is a component of a dot pattern determining step of determining a dot pattern in a dot pattern determining target gradation having a difference in the number of gradations of two or more gradations from the dot pattern determined gradation.
(256)
(257) As shown in
(258) The descending-order threshold value setting step and the ascending-order threshold value setting step are components of the threshold value setting step.
(259) In the dither mask manufacturing method shown in
(260) Subsequently, in descending-order white and black arrangement determining step S72, the black pixel is sequentially decreased in descending order at an interval of two or more threshold values, and a white and black arrangement corresponding to a section threshold value for each interval of two threshold values is determined. Initially, a white and black arrangement 202 acquired by decreasing the black pixel from the initial white and black arrangement 200 by 16 threshold values is determined. The initial white and black arrangement 200 according to the present embodiment has the number of black pixels and the number of white pixels corresponding to a threshold value 128 which is a reference threshold value.
(261) Here, the reference threshold value is a threshold value at which descending-order white and black arrangement determining step S72 and ascending-order white and black arrangement determining step S74 are switched.
(262) A dither mask 220 shown in
(263) Subsequently, a white and black arrangement 204 acquired by decreasing the black pixel from the white and black arrangement 202 by 16 threshold values is determined. By doing this, the black pixel is decreased by 16 threshold values until all the pixels become the white pixels, and the white and black arrangement is determined for each section threshold value with the white and black arrangement corresponding to a previous section threshold value as a reference.
(264) Similarly, in the ascending-order white and black arrangement determining step S74, the black pixel is sequentially increased in ascending order at an interval of two or more threshold values, and a white and black arrangement corresponding to a separation threshold value for each interval of two threshold values is determined. As shown in
(265) Subsequently, the black pixel is increased from the white and black arrangement 212 by 16 threshold values, and a white and black arrangement 214 is determined. By doing this, the black pixel is increased by 16 threshold values until all the pixels become the black pixels, and the white and black arrangements are determined for the section threshold values with the white and black arrangement corresponding to the previous section threshold value as the reference.
(266) In descending-order threshold value setting step S76 of
(267) White and black arrangements are determined for intermediate threshold values between the section threshold values such that continuity with the white and black arrangement of the section threshold value is maintained, and the corresponding threshold value is set for the dither mask 220.
(268) As shown in
(269) The white and black arrangement 201A is determined, and thus, the threshold value 128 is set for the dither mask 220. Similarly, the white and black arrangement 201B, . . . , the white and black arrangement 201C, and the white and black arrangement 201D are determined, and thus, the threshold value 127, . . . , the threshold value 115, the threshold value 114 are set for the dither mask 220. The white and black arrangement 201D is determined, and thus, the threshold value 113 is set for the dither mask 220 based on the difference from the white and black arrangement 202 of the section threshold value 112.
(270) Similarly, in ascending-order threshold value setting step S78 of
(271) As for each intermediate threshold value between the section threshold values, the white and black arrangement is determined such that continuity with the white and black arrangement of the section threshold value is maintained, and the corresponding threshold value is set for the dither mask 220.
(272) As shown in
(273) The white and black arrangement 211A is determined, and thus, the threshold value 129 is set for the dither mask 220. Similarly, the white and black arrangement 211B, . . . , the white and black arrangement 211C, and the white and black arrangement 211D are determined, and thus, the threshold value 130, . . . , the threshold value 142, and the threshold value 143 are set for the dither mask 220. The white and black arrangement 211D is determined, and thus, the threshold value 144 is set for the dither mask 220 based on the difference from the white and black arrangement 212 of the section threshold value 144.
(274) <Description of Ascending-order White and Black Arrangement Determining Step>
(275)
(276) As shown in
(277) A step of setting the number of times of the replacement process in the replacement processing step is a component of the replacement process number setting step.
(278) In the first process, the black pixels as much as 16 threshold values are added to the initial white and black arrangement 200 shown in
(279) In white-to-black changing processing step S82 of
(280) In white-to-black changing processing step S82 shown in
(281) The white pixel of which the graininess becomes best is actually changed to the black pixel. This process is repeatedly performed by the same number of times as the number of pixels corresponding to the threshold value interval. The white pixels as much as the number of pixels corresponding to the threshold value interval are changed to the black pixel.
(282) In other words, white-to-black changing processing step S82 is a process of repeating the process of temporarily changing one pixel among the white pixels of the white and black arrangement before the white-to-black changing process to the black pixel, evaluating the graininess, determining the white pixels of which the graininess becomes best, and changing the white pixel to the black pixel by the same number of times as the number of pixels corresponding to the threshold value interval.
(283) In replacement processing step S84 shown in
(284) By doing this, the white and black arrangements corresponding to the section threshold values are determined for the threshold values from 144 to 256 through the steps shown in
(285) Here, in a case where the orders thereof are not reversed, image quality is favorable.
(286) The aspect in which replacement processing step S84 is performed and white-to-black changing processing step S82 is subsequently performed is an aspect of the dot pattern determining step of performing the replacement processing step and performing the dot number changing step.
(287) The ascending-order white and black arrangement determining step is an aspect of the dot pattern determining step. The ascending-order white and black arrangement determining step is an aspect of the dot pattern determining step of determining the dot pattern of the dot pattern determining target gradation which is the gradation having the gradation difference of one or more gradations from the dot pattern determined gradation and is the gradation of the target for determining the dot pattern.
(288) <Description of Descending-Order White and Black Arrangement Determining Step>
(289)
(290) A descending-order white and black arrangement determining process in the descending-order white and black arrangement determining step shown in
(291) A step of setting the number of times of the replacement process in the replacement processing step is a component of the replacement process number setting step.
(292) In the first process, the black pixels as much as 16 threshold values are decreased from the initial white and black arrangement 200, and the white and black arrangement 202 is determined. In the second process, the black pixels as much as 16 threshold values are decreased from the white and black arrangement 202, and the white and black arrangement 204 is determined. Subsequently, the black pixels as much as 16 threshold values are decreased from the current white and black arrangement, and these processes are repeated until all the pixels become the white pixels.
(293) In black-to-white changing processing step S92 of
(294) In black-to-white changing processing step S92 shown in
(295) The black pixel of which the graininess becomes best is actually changed to the white pixel. This process is repeatedly performed by the same number of times as the number of pixels corresponding to the threshold value interval. The black pixels as much as the number of pixels corresponding to the threshold value interval are changed to the white pixels.
(296) In other words, black-to-white changing processing step S92 is a process of repeating the process of temporarily changing one pixel among the black pixels of the white and black arrangement before the black-to-white changing process to the white pixel, evaluating the graininess, determining the black pixel of which the graininess becomes best, and changing the black pixel to the white pixel by the same number of times as the number of pixels corresponding to the threshold value interval.
(297) In replacement processing step S94 shown in
(298) By doing this, the white and black arrangements corresponding to the section threshold values are determined for the threshold values from 128 to 0 through the steps shown in
(299) The aspect in which replacement processing step S94 is performed and black-to-white changing processing step S92 is subsequently performed is an aspect of the dot pattern determining step of performing the replacement processing step and subsequently performing the dot number changing step.
(300) The descending-order white and black arrangement determining step is an aspect of the dot pattern determining step. The descending-order white and black arrangement determining step is an aspect of the dot pattern determining step of determining the dot pattern of the dot pattern determining target gradation which is the gradation having the gradation difference of one or more gradations from the dot pattern determined gradation and is the gradation of the target for determining the dot pattern.
(301) <Determining of White and Black Arrangements Corresponding to Intermediate Threshold Values and Setting of Threshold Values>
(302) Hereinafter, the determining of the white and black arrangements corresponding to the intermediate threshold values and the setting of the threshold values including the section threshold values will be described with reference to
(303)
(304) A two-digit sign assigned to each pixel in
(305) The pixels colored in black in
(306) In a white and black arrangement 304 shown in
(307) For example, a pixel of which the pixel position is 32 is the black pixel common to the white and black arrangement 300 shown in
(308) In
(309) The pixels hatched by the diagonal lines are the black pixels only in the white and black arrangement corresponding to the threshold value 48. The black pixels only in the white and black arrangement corresponding to the threshold value 48 are pixels of which the pixel positions 15, 21, 37, and 3c, and are 25 pixels in all. The pixel positions of the black pixels only in the white and black arrangement corresponding to the threshold value 48 are pixel positions of targets to be changed from the white pixels to the black pixels in the white and black arrangement corresponding to any of the threshold value 33 to the threshold value 48.
(310) 25 which is the number of pixels only in the white and black arrangement corresponding to the threshold value 48 is 25 acquired by adding a value at which the white pixel is replaced to the black pixel, that is, 9 which is the number of black pixels only in the white and black arrangement corresponding to the threshold value 32 to a value of 16 corresponding to the threshold value interval.
(311) In the ascending-order threshold value setting step S78 shown in
(312) Initially, any of the white pixels, among 25 white pixels in the white and black arrangement 300 corresponding to the threshold value 32, which correspond to 25 pixels which are the black pixels only in the white and black arrangement 302 corresponding to the threshold value 48 is changed to the black pixel. The threshold value is set for the pixels of the white and black dither mask corresponding to the pixels changed to the black pixels from the white pixels.
(313) The changing of the white pixels to the black pixels is performed similarly to the white-to-black changing process in ascending-order white-to-black changed threshold value setting step S20 of
(314) Subsequently, any of the black pixels as much as a predetermined replacement number, among nine pixels which are the black pixels only in the white and black arrangement 300 corresponding to the threshold value 32 and the 25 white pixels in the white and black arrangement 300 corresponding to the threshold value 32 corresponding to 25 pixels which are the black pixels only in the white and black arrangement corresponding to the threshold value 48 are replaced. The threshold value is set for the pixels of the white and black dither mask corresponding to the pixels changed to the black pixels from the white pixels through the replacement. The threshold value is set for the pixels of the black and white dither mask corresponding to the pixels changed to the white pixels from the black pixels through the replacement.
(315) That is, it is necessary to change nine pixels which are the black pixels only in the white and black arrangement 300 corresponding to the threshold value 32 to the white pixels from the black pixels in any of the white and black arrangements corresponding to the threshold value 33 to the threshold value 48. It is necessary to change the white pixels to the black pixels as much as the same number of white pixels changed from the black pixels. The pixel positions in which the pixels are able to be changed to the black pixels are the pixel positions of the black pixels only in the white and black arrangement 302 corresponding to the threshold value 48.
(316) Here, the predetermined replacement number, 9 which is the number of pixels required to be replaced is divided by the threshold value interval 16 between the section threshold values of the processing targets, and the product of the division is the replacement number in a case where there is no remainder. The replacement number is acquired by appropriately distributing the remainder in addition to the product in a case where there is the remainder.
(317) In the present embodiment, since nine pixels are allocated to 16 gradations, an aspect in which the pixels are allocated to the first-half nine gradations one by one, an aspect in which the pixels are allocated to the second-half nine gradations one by one, and an aspect in which the pixels are randomly allocated may be adopted. There is an example of the aspect in which the pixels are randomly allocated to the gradations, an example in which the pixels are allocated to the white and black arrangements corresponding to the threshold values of 35, 38, 40, 42, 43, 44, 45, 46, and 48 one by one.
(318) Here, an actual replacement number is counted in order to necessarily obey the set replacement number. That is, it is preferable that the replacement number before the replacement process is set to be zero, the counted number is increased by one in a case where the actual replacement process is performed, and the replacement process is completed in a case where the count number reaches the preset replacement number.
(319) The replacement process of replacing the black pixel and the white pixel will be described in detail. Initially, one black pixel among nine pixels which are the black pixels only in the white and black arrangement 300 corresponding to the threshold value 32 is set as the target pixel. The set target pixel is temporarily replaced with all the white pixels among 25 pixels which are the black pixels only in the white and black arrangement 302 corresponding to the threshold value 48, and the graininess is evaluated.
(320) Subsequently, the target pixel is sequentially changed to all the black pixels, among nine pixels which are the black pixels only in the white and black arrangement 300 corresponding to the threshold value 32. Similarly, the target pixel is temporarily replaced with all the white pixels among 25 pixels which are the black pixels only in the white and black arrangement 302 corresponding to the threshold value 48, and the graininess is evaluated. The black pixel of which the graininess becomes best is actually replaced with the white pixel.
(321) In a case where the void and cluster method is used, the cluster pixel which is the pixel of which the energy is maximum, among all the black pixels out of nine pixels which are the black pixels only in the white and black arrangement 300 corresponding to the threshold value 32 is initially changed to the white pixel. The blur filter is removed with the changed pixel as the center, and the energy mask is updated. Thereafter, the void pixels which is the pixel of which the energy is minimum, among all the white pixels out of 25 pixels which are the black pixels only in the white and black arrangement 302 corresponding to the threshold value 48, is changed to the black pixel.
(322) In both the process of changing the pixel from the white pixel to the black pixel and the process of replacing the white pixel and the black pixel, in a case where the void and cluster method is used, it is necessary to update the energy mask through the applying or removing of the blur filter whenever the pixel is changed from the white pixel to the black pixel or is changed from the black pixel to the white pixel.
(323) The process of changing and replacing the pixel is repeatedly performed from the threshold value 33 to the threshold value 48, the white and black arrangements corresponding to the threshold values are determined, and the threshold value is set.
(324) It has been described in the present embodiment that the process of changing the pixels from the white pixels to the black pixels among 25 pixels which are the black pixels only in the white and black arrangement corresponding to the threshold value 48 is initially performed and the process of replacing the black pixels among nine pixels which are the black pixels in the white and black arrangement corresponding to the threshold value 32 and any of the white pixels among 25 pixels which are the black pixels in the white and black arrangement corresponding to the threshold value 48 is subsequently performed. However, the process of replacing the black pixel and the white pixel may be initially performed, and the process of changing the pixel from the white pixel to the black pixel may be subsequently performed.
(325) The aspect in which the process of replacing the black pixel and the white pixel is performed and the process of the changing the pixel from the white pixel to the black pixel is subsequently performed is an aspect of the dot pattern determining step of performing the replacement processing step and subsequently performing the dot number changing step.
(326) Hereinafter, the descending-order process will be described. It is assumed that the white and black arrangement 300 shown in
(327) That is, it is assumed that after the white and black arrangement 302 corresponding to the threshold value 48 shown in
(328) In descending-order threshold value setting step S76 of
(329) Initially, any of black pixels among 25 black pixels which are the black pixels only in the white and black arrangement 302 corresponding to the threshold value 48 is changed to the white pixel. The threshold value is set for the white and black dither mask.
(330) The changing of the pixel from the black pixel to the white pixel is performed as follows. The temporary changing of all the black pixels among 25 pixels which are the black pixels only in the white and black arrangement 302 corresponding to the threshold value 48 to the white pixels and the evaluation of the graininess are repeated. Subsequently, the black pixel of which the graininess becomes best is determined, and is actually changed to the white pixel. In a case where the void and cluster method is used, the cluster pixel which is the pixel of which the energy is maximum is selected, and is changed to the white pixel.
(331) Subsequently, the black pixels corresponding to the predetermined replacement number among 25 pixels which are the black pixels only in the white and black arrangement 302 corresponding to the threshold value 48 and any of the white pixels among nine pixels which are the black pixels only in the white and black arrangement 300 corresponding to the threshold value 32 are replaced. The threshold value is set for the pixel of the black and white dither mask corresponding to the pixel changed from the white pixel to the black pixel through the replacement. The threshold value is set for the pixel of the white and black dither mask corresponding to the pixel changed from the black pixel to the white pixel through the replacement.
(332) The predetermined replacement number may be determined similarly to the ascending-order process, and thus, the description thereof is omitted. Similarly to the ascending-order process, it is preferable that the actual replacement number is counted.
(333) Hereinafter, the replacement process of replacing the black pixel and the white pixel will be described in detail. Initially, the target pixel is set for one black pixel among 25 pixels which are the black pixels only in the white and black arrangement 302 corresponding to the threshold value 48. The set target pixel is temporarily replaced with all the white pixels among nine pixels which are the black pixels only in the white and black arrangement 300 corresponding to the threshold value 32, and the graininess is evaluated.
(334) Subsequently, the target pixel is sequentially changed to all the black pixels among 25 pixels which are the black pixels only in the white and black arrangement 302 corresponding to the threshold value 48. Similarly, the target pixel is sequentially replaced with all the white pixels among nine pixels which are the black pixels only in the white and black arrangement 300 corresponding to the threshold value 32, and the graininess is evaluated.
(335) The black pixel of which the graininess becomes best and the white pixel are actually replaced.
(336) In a case where the void and cluster method is used, the cluster pixel which is the pixel of which the energy is maximum among all the black pixels out of 25 pixels which are the black pixels only in the white and black arrangement 302 corresponding to the threshold value 48 is initially changed to the white pixel. The blur filter is removed with the changed pixel as the center, and the energy mask is updated. Thereafter, the void pixel which is the pixel of which the energy is minimum among all the white pixels out of nine pixels which are the black pixels only in the white and black arrangement 300 corresponding to the threshold value 32 is changed to the black pixel.
(337) In any of the process of changing the pixel from the black pixel to the white pixel and the process of replacing the black pixel and the white pixel, in a case where the void and cluster method is used, it is necessary to update the energy mask through the removing or applying of the blur filter whenever the pixel is changed from the black pixel to the white pixel or is changed from the white pixel to the black pixel.
(338) By doing this, the white and black arrangements corresponding to the intermediate threshold values between the section threshold values are determined, and the threshold values including the section threshold values are set.
(339) The determination of the white and black arrangements corresponding to the intermediate threshold values is a component of the dot pattern determining step. The setting of the threshold values is a component of the threshold value setting step.
(340) The process of changing the pixel and the process of replacing the pixel are repeatedly performed from the threshold value 47 to the threshold value 32, the white and black arrangements corresponding to the threshold values are determined, and the threshold values are set.
(341) It has been described in the present embodiment that the process of changing the pixel to the white pixel from the black pixel among 25 pixels which are the black pixels only in the white and black arrangement corresponding to the threshold value 48 is initially performed and the process of replacing the black pixels among 25 pixels which are the black pixels only in the white and black arrangement corresponding to the threshold value 48 with any of the white pixels among nine pixels which are the black pixels only in the white and black arrangement corresponding to the threshold value 32 is subsequently performed. The process of replacing the black pixel and the white pixel may be initially performed, and the process of changing the pixel from the black pixel to the white pixel may be subsequently performed.
(342) The aspect in which the process of replacing the black pixel and the white pixel is performed and the process of the changing the pixel from the white pixel to the black pixel is subsequently performed is an aspect of the dot pattern determining step of performing the replacement processing step and subsequently performing the dot number changing step.
Operations and Effect of Second Embodiment
(343) According to the dither mask manufacturing method described above, it is possible to acquire the same operations and effects as those of the first embodiment between the section threshold values. That is, the constant continuity in the white and black arrangements between the densities is secured, and the image quality is more favorable compared to a case where the dither mask of the related art is used. The stacking limitations of the dither mask are partially maintained at the intermediate threshold value between the section threshold values, and thus, it is possible to secure constant continuity in the white and black arrangements between the densities.
(344) <Other Aspects of Number of Times of Replacement Process>
(345) In the dither mask manufacturing method according to the first embodiment and the second embodiment, the replacement process is repeated by the preset number of times the process, and thus, the replacement of the white pixel and the black pixel as much as the number of pixels corresponding to the number of times of the process is performed. The definition of the number of times of the process has been already described, and thus, the description thereof is omitted.
(346) Meanwhile, in a case where the image quality in which the replacement of the white pixel and the black pixel is replaced becomes best, the replacement of the white pixel and the black pixel may not be performed in the white and black arrangement acquired as the result of the replacement process even though the replacement process is performed.
(347) In view of the circumstances, the replacement of the white pixel and the black pixel for at least one pixel is performed by adopting an aspect in which the number of replacement pixels is set instead of setting the number of times of the replacement process, the number of pixels actually replaced is counted, and the replacement process is ended in a case where the number of pixels actually replaced reaches the set replacement pixel number. The number of replacement pixels corresponds to the replacement dot number.
(348) Since the continuity in the white and black arrangements between the densities depends on the number of overlapped white pixels or black pixels of the white and black arrangements at the neighboring densities, the image quality can be favorable while appropriately securing the constant continuity in the white arrangements between the densities in an aspect in which the replacement process is ended based on the number of actually replaced pixels rather than the number of times of the replacement process.
(349) Similarly to the aspect in which the replacement process is ended based on the number of times of the process the replacement process described above is performed, it is preferable that the pixel position of the target pixel is changed randomly or without being biased even in the aspect in which the replacement process is ended based on the number of replacement pixels. It is preferable that the pixel of the position thereof is changed in an order in which all the black pixels are changed.
(350) Since it is considered that the number of overlapped white pixels or black pixels in the white and black arrangements at the neighboring gradations required to secure the constant continuity is different depending on the number of all white pixels or the number of all black pixels, that is, the gradations, it is preferable that the number of replacement pixels is changed depending on the gradations and is set. For example, in a case where the gradation is 256, the number of replacement pixels may be set as follows. The gradation mentioned herein may be replaced with the density.
(351) Initially, since the number of black pixels is zero at a gradation of zero, the number of replacement pixels is set to zero. In the range of the number of gradations as 1 to the number of gradations as 128, that is, the range of the gradations in which the number of white pixels is larger than the number of black pixels, as the gradation is increased, that is, as the number of black pixels is increased, the number of replacement pixels is also increased.
(352) Meanwhile, the range of the gradation 128 to the gradation 255, that is, the range of the gradation in which the number of black pixels is larger than the number of white pixels, as the gradation is increased, that is, as the number of white pixels is decreased, the number of replacement pixels is also decreased. Since the number of white pixels is zero at the gradation 256, the number of replacement pixels is set to zero.
(353) A ratio in a case where the number of replacement pixels is increased or decreased depending on the gradation may be constant, that is, the number of replacement pixels may be in proportion to the gradation. That is, in a case where the number of replacement pixels is L, the gradation is n, and a is proportionality constant, the number L of replacement pixels may be L=n in the range in which n is from 0 to 128, and the number of L of replacement pixels may be L=(256n) in a range in which n is from 128 to 256. Here, in order to increase the number of replacement pixels, the proportionality constant may be set to a large value.
(354) The number of replacement pixels may be set as follows.
(355) A straight line 400 shown in
(356) The overlap ratio of the black pixels is a value acquired by expressing the number of black pixels common to the white and black arrangements at the neighboring gradations, that is, the number of overlapped black pixels as a ratio in a case where the number of black pixels in the white and black arrangement at the gradation of the white and black arrangement having a smaller number of black pixels is 1. The overlap ratio of the white pixels is a value acquired by expressing the number of white pixels common to the white and black arrangements at the neighboring gradations, that is, the number of overlapped white pixels as a ratio in a case where the number of white pixels in the white and black arrangement at the gradation of the white and black arrangement having a smaller number of white pixels is 1.
(357) The relationship between the gradation and the overlap ratio of
(358)
(359) A straight line 410 shown in
(360) The relationship between the gradation and the number of black pixels and the number of black pixels common to the white and black arrangements at the neighboring gradations of
(361) The number s of common black pixels at a certain gradation shown in
(362) Meanwhile, in a case where the dither mask having the stacking limitations is used, the overlap ratio of the black pixels in the white and black arrangements between the neighboring gradations is 1 without depending on the gradation. By doing this, the number of common black pixels which is the number of overlapped black pixels in the white and black arrangements between the neighboring gradations in the dither mask having the stacking limitations matches the straight line 410 of
(363) The number of common black pixels is decreased by one whenever one black pixel is replaced with the white pixel, and the number of common black pixels is equal to or less than s in a case where (bs) pixels or more are replaced. Thus, the white and black arrangements at the neighboring gradations are discontinuous.
(364) Thus, the number of replacement pixels is set to a value smaller than (b s) such that the number of common black pixels is not equal to or less than s. That is, the number of replacement pixels is set to a value smaller than xx.sup.2. Here, x is n/256, that is, is a value acquired by dividing the gradation n by the maximum gradation 256 and representing the gradation by a range of 0 to 1. It is assumed that the size of the halftone mask is one pixel.
(365)
(366) A curved line 422 shown in
(367) Since the actual size of the halftone mask is not one pixel, in a case where it is assumed that the size of the halftone mask is M pixels, a value acquired by multiplying the value of each gradation of the curved line 420 shown in
(368) That is, the upper limit of the number of replacement pixels at each gradation is expressed by M(xx.sup.2). For example, in a case where predetermined constant which is greater than 0 or is equal to or less than 1 is , the number of replacement pixels at each gradation is set as M(xx.sup.2).
(369) It has been described that since the continuity in the white and black arrangements between the gradations depends on the number of overlapped white pixels or black pixels of the white and black arrangements at the neighboring gradations, the replacement process is ended based on the number of actually replaced pixels at the neighboring gradation, that is, the number of replacement pixels instead of the number of times of the replacement process.
(370) However, since the image data on which the halftone process is performed also includes a gradation sharply changed over a plurality of gradations in addition to the neighboring gradations, it is preferable that the number of overlapped white pixels or black pixels of the white and black arrangements at the plurality of gradations in addition to the neighboring gradations is maintained by a predetermined number or more in order to secure the constant continuity over the plurality of gradations in addition to the neighboring gradations.
(371) In a case where the dither mask having the stacking limitations of the related art is used, the overlap ratio of the white pixels or the black pixels in the white and black arrangements at the plurality of gradations in addition to the neighboring gradations is 1 (the white pixels or the black pixels at the gradation at which the number of white pixels or the number of black pixels is smaller are completely included in the white pixels or the black pixels at the gradation at which the number of white pixels or the number of black pixels is larger, of two certain gradations among the plurality of gradations), and thus, the continuity is secured over the plurality of gradations. As a result, even in a case where the halftone process is performed on the image data including the gradation sharply changed over the plurality of gradations, since the image quality of the halftone image is favorable, it is preferable that the number of overlapped white pixels or black pixels of the white and black arrangements at the plurality of gradations is retained by a predetermined number or more in addition to the neighboring gradations similarly to a case where the replacement process is performed.
(372) That is, in a case where the white and black arrangement corresponding to the threshold value I(u) is determined, it is preferable that m is an integer which is equal to or less than u, the white and black arrangements corresponding to m neighboring threshold values I(u1), I(u2), . . . , and I(um) are retained, and the white and black arrangement is determined such that the number of overlapped white pixels or black pixels of the white and black arrangements is retained by a predetermined number or more. Here, I(u) represents a u-th threshold value.
(373) The number of overlapped white pixels or black pixels of the white and black arrangements may be set as follows.
(374)
(375) The curved line 412 and the curved line 416 of
(376) That is, the number of overlapped pixels in the curved line 412 or the curved line 416 of
(377) The relationship between the gradation and the number of overlapped pixels of
(378) In a case where the white and black arrangement corresponding to the threshold value I(u) is determined based on xy representing the number of overlapped white pixels or black pixels of the independent white and black arrangements at the gradation x and the gradation y, the white and black arrangements corresponding to m neighboring threshold value I(u1), I(u2), . . . , and I(um) may be retained, the number of overlapped white pixels or black pixels of the white and black arrangements may be respectively set as
(379)
(380) x(I(u) in Expression (1), Expression (2), and Expression (3) corresponds to x of
(381) Here, M represents the size of the halftone mask. is set to a value which is greater than 0 and is equal to or less than 1. In a case where is set to 0, the number of overlapped pixels with the white and black arrangements corresponding to m neighboring threshold values I(u1), I(u2), . . . , I(um) are Mx(I(ui)), Mx(I(u2)), . . . , and Mx(I(um)), and match the number of overlapped pixels of the dither mask having the stacking limitations of the related art. Thus, the halftone mask that considers the continuity in the white and black arrangements between the gradations as being important is manufactured.
(382) Meanwhile, in a case where is set to 1, the number of overlapped pixels with the white and black arrangements corresponding to m neighboring threshold values I(u1), I(u2), . . . , and I(um) are Mx(I(u))x(I(u1)), Mx(I(u))x(I(u2)), . . . , and Mx(I(u))x(I(um)), and the white and black arrangement corresponding to the threshold value I(u) is independently optimized from the white and black arrangements corresponding to m neighboring threshold values I(u1), I(u2), . . . , and I(um). Thus, the halftone mask that considers the image quality as being important is manufactured.
(383) That is, in a case where the determining target gradation of the white and black arrangement is x, the gradation at which the white and black arrangement is already determined and has the gradation difference of one or more gradations from the determining target gradation of the white and black arrangement is y, the size of the halftone mask is M, and predetermined constant which is greater than 0 and is equal to or less than 1 is , Expression (1), Expression (2), and Expression (3) represent M{y(yxy)} which is the number of overlapped white pixels or black pixels. In a case where y=1, the number of overlapped white pixels or black pixels is expressed by Mxy.
(384) m is set to be wide such that a change in gradation of the gradations included in image data on which the halftone process is performed in the range of the gradation from x(I(um)) to x(I(u)).
(385) Although it has been described that the replacement process is ended based on the number of actually replaced pixels, in a case where any pixel is not replaced even though the replacement of all the black pixels as the candidates is performed as a cycle, the white pixel and the black pixel are not replaced even though several cycles of replacement are performed. Accordingly, in a case where any pixel is not replaced after one cycle of replacement is performed, the replacement process is completed even though the number of actually replaced pixels does not reach the number of set replacement pixels.
(386) It has been described in the present specification that the target pixel is set for the black pixel and is replaced in the replacement process of the white pixels and the black pixels. In the replacement process of the white pixel and the black pixel, the white pixel may be set as the target pixel, and may be replaced. Due to a difference between the setting of the black pixel as the target pixel and the setting of the white pixel as the target pixel, the white and black arrangement after the replacement process is different even though the number of times of the replacement process or the number of replacement pixels is the same.
(387) An aspect in which the black pixel is set as the target pixel in the threshold value range in which the number of black pixels is smaller than the number of white pixels, that is, in the threshold value range from zero to of the maximum value of the threshold value and the white pixel is set as the target pixel in the threshold value range in which the number of white pixels is smaller than the number of black pixels, that is, in the threshold value range from of the maximum value of the threshold value to the maximum value of the threshold value is preferable.
(388) In the present specification, the white and black arrangements corresponding to the threshold values or the dither mask having the plurality of threshold values have been described as an example of the halftone mask. As the halftone mask, the dither mask and the white and black arrangement may be combined. For example, the dither mask may be used in a partial threshold value range, and the white and black arrangement may be used in the remaining threshold value range. In such an aspect, an aspect in which a white and black arrangement storing step of storing the white and black arrangement is included as the dither mask is preferable. The white and black arrangement storing step is an aspect of the dot pattern storing step.
(389) [Description of Dither Mask Manufacturing System]
(390) Hereinafter, a dither mask manufacturing system corresponding to the dither mask manufacturing method described above will be described. The dither mask manufacturing system is an aspect of a halftone mask manufacturing system.
(391)
(392) A dither mask manufacturing system 500 shown in
(393) The dither mask manufacturing system 500 includes an initial white and black arrangement setting unit 504. The initial white and black arrangement setting unit 504 has a function corresponding to initial white and black arrangement setting step S10 shown in
(394) The dither mask manufacturing system 500 shown in
(395) The white-to-black changing processing unit 506 is an aspect of the dot number changing unit, and is a component of the dot pattern determining unit. The white-to-black changing processing unit 506 corresponds to dot number changing means, and is a component of dot pattern determining means.
(396) The dither mask manufacturing system 500 shown in
(397) The replacement processing unit corresponds to replacement processing means, and is a component of dot pattern determining means.
(398) The dither mask manufacturing system 500 shown in
(399) The dither mask manufacturing system 500 shown in
(400) The dither mask manufacturing system 500 shown in
(401) The dither mask storage unit 514 shown in
(402) The dither mask manufacturing system 500 includes a program storage unit 516. The program storage unit 516 stores programs executed by the units of the dither mask manufacturing system 500. A temporary non-transitory information storage medium is applied as the program storage unit 516.
(403) The units of the dither mask manufacturing system 500 shown in
(404) The dither mask manufacturing system 500 shown in
(405) [Description of Dither Mask Manufacturing Program]
(406) A program causing a computer to function as the dither mask manufacturing system may be stored in a computer-readable medium, and a dither mask manufacturing program may be provided through the computer-readable medium.
(407) As an example of the computer-readable medium, there are CD-ROM and a magnetic disk. The CD-ROM is short for a compact disc read-only memory. The computer-readable medium that stores the dither mask manufacturing program is a temporary non-transitory information storage medium.
(408) Instead of the aspect in which the program is stored in the information storage medium and is provided, a program signal may be downloaded and provided by busing a communication network such as the Internet. The provided program is installed into the computer, and thus, the program may cause the computer to function as the dither mask manufacturing system. The dither mask manufacturing program is an aspect of a halftone mask manufacturing program.
(409) The embodiments of the present invention described above may appropriately change, add, and remove the components without departing from the gist of the present invention. The present invention is not limited to the embodiment described above, and may be variously changed by those having ordinary knowledge within the technical scope of the present invention.
EXPLANATION OF REFERENCES
(410) 20: white and black dither mask 44: black and white dither mask 220: dither mask