EP0808055A2

Enhanced error-diffusion method for color or black-and-white reproduction

Abstract

An enhanced error diffusion for color and/or black-and-white halftone reproduction of gray scale, color and/or black-and-white images, features enhancements in obtaining the thresholds that are used in error diffusion halftoning as well as enhancements in how to distribute error. Thresholds according to the invention are derived by applying a standard error-diffusion technique, using a fixed threshold value of .5, to a constant gray level image patch which has a gray level value corresponding to an irrational number. Thresholds so-derived are well dispersed in a threshold mask and have only a limited number of threshold values; use of such thresholds in error diffusion has been found to reduce significantly the presence of structural artifacts in halftone images. As for how to distribute error, the invention provides a different error distribution matrix for each gray level value (for example, 256 different error distribution matrices) and selects one such matrix for error distribution based on the gray level value of the target pixel in the original image. Particularly in a case where the error distribution matrix is in the form: for highlight/shadow regions, distributing error according to the invention has been found to reduce significantly the presence of worm-like chains in such highlight and shadow regions.

EP0808055A2, drawing sheet 1
Sheet 1 of 56

Term

Term ended

Projected expiry passed 12 May 2017, 9.4 years ago.

  1. Priority
  2. Filed
  3. Published
  4. Projected expiry
  5. Today

28 claims: 7 independent, 21 dependent

  1. 1
    A method for generating a threshold mask, the threshold mask being usable by an error diffusion halftoning process which generates halftone images by comparing gray-level pixel values against thresholds in the threshold mask, the method comprising the steps of:defining a first gray-level patch having a constant gray level whose value is irrational;error-diffusing the first gray level patch against a constant threshold, so as to obtain a first intermediate threshold mask;defining a second gray-level patch having a constant gray level whose value is irrational;error diffusing the second gray-level patch against thresholds in the first intermediate threshold mask, so as to obtain a second intermediate threshold mask;and combining the first and second intermediate threshold masks so as to generate the threshold mask.
  2. 2
    A method according to Claim 1, wherein in said combining step, the first and second intermediate threshold masks are combined by averaging.
  3. 3
    A method according to Claim 1, further comprising the steps of:defining a third gray-level patch having a constant gray level whose value is irrational;error diffusing the third gray-level using thresholds in the threshold mask so as to obtain a third intermediate threshold mask;and combining the threshold mask with the third intermediate threshold mask so as to obtain an updated threshold mask.
  4. 4
    A method according to Claim 3, further comprising repeated applications of said defining, said error-diffusing, and said combining steps, so as to obtain updated threshold masks.
  5. 5
    A method according to Claim 1, wherein said first and second gray-level patches are the same.
  6. 6
    A method according to Claim 1, wherein said first and second gray-level patches have a common constant gray level whose value is a common irrational number.
  7. 7
    A method according to Claim 1, wherein said first and second gray-level patches have constant gray levels whose values are different irrational numbers.
  8. 8
    A method according to Claim 1, further comprising the step of scaling thresholds in the threshold mask so as to obtain a scaled threshold mask whose threshold values are weighted toward an average.
  9. 9
    An error diffusion halftoning process for obtaining binary values for each pixel of a halftone image based on gray-level values of corresponding pixels in an original image, comprising the steps of:selecting a threshold from a threshold mask based on the location of a target pixel in the original image;comparing the gray value of the target pixel with the selected threshold value;outputting a binary 1 or 0 for a pixel in the halftone image that corresponds to the target pixel, the binary 1 or 0 being output based on said comparing step;determining error between the binary 1 or 0 output in said outputting step and the gray level of the target pixel;and distributing the error to pixels adjacent the target pixel;wherein thresholds in said threshold mask are well-dispersed within the threshold mask and have a limited predetermined number of values.
  10. 10
    An error diffusion halftoning process according to Claim 9, wherein thresholds in the threshold mask have one of exactly three values.
  11. 11
    An error diffusion halftoning process according to Claim 10, wherein the exactly three threshold values correspond to a black threshold, a white threshold, and a mid-gray threshold.
  12. 12
    An error diffusion halftoning process according to Claim 9, wherein thresholds in the threshold mask are obtained by an error-diffusion process performed on a gray-level patch having a constant gray level whose value is irrational.
  13. 13
    An error diffusion halftoning process according to Claim 12, wherein thresholds in the threshold mask are obtained by repeated application of an error-diffusion process performed on gray-level patches having respectively constant gray levels whose values are irrational.
  14. 14
    A method for building plural different error distribution matrices usable by an error diffusion halftoning process which diffuses error between binary pixel values in a halftone image and gray-level pixel values in an original image using a selected one of the plural error diffusion matrices, the method comprising the steps of:defining a first error diffusion matrix usable in connection with pixels of the original image having a gray-level value corresponding to shadows or highlights;defining a second error diffusion matrix usable with pixels of the original image having a gray-level value corresponding to mid-tones;and calculating, based on values in the first and second error diffusion matrices, at least one third error diffusion matrix usable with pixels of the original image having a gray level value in a transition between highlights and mid-tones or a transition between mid-tones and shadows.
  15. 15
    A method according to Claim 14, wherein plural error diffusion matrices are built such that there is exactly one error diffusion matrix for each gray level value.
  16. 16
    A method according to Claim 14, wherein the third error diffusion matrix is calculated based on a weighted average of the first and second error diffusion matrices, with weight for the weighted average being calculated in accordance with gray level for the third error diffusion matrix and in accordance with a difference between gray levels for the first and second error diffusion matrices.
  17. 17
    An error diffusion halftoning process for obtaining binary values for each pixel of a halftone image based on gray-level values of corresponding pixels in an original image, comprising the steps of:selecting a threshold from a threshold mask based on the location of a target pixel in the original image;comparing the gray value of the target pixel with the selected threshold value;outputting a binary 1 or 0 for a pixel in the halftone image that corresponds to the target pixel, the binary 1 or 0 being output based on said comparing step;determining error between the binary 1 or 0 output in said outputting step and the gray level of the target pixel;and distributing the error to pixels adjacent the target pixel;wherein said step of distributing error further comprises the step of selecting an error distribution matrix from plural such error distribution matrices, the selected error distribution matrix being selected based on gray level of the target pixel.
  18. 18
    A process according to Claim 17, wherein said plural error distribution matrices include at least a first error distribution matrix for use with gray levels corresponding to highlights/shadows, a second error distribution matrix for use with gray level pixels having a mid-tone value, and a third error distribution matrix for transition pixels between highlights and mid-tones and for transition regions between mid-tones and shadows.
  19. 19
    A process according to Claim 18, wherein the third error distribution matrices are formed by a weighted average of the first and second error distribution matrices, weight in the weighted average being calculated based on gray level for the third error diffusion matrix and in accordance with a difference between gray levels for the first and second error diffusion matrices.
  20. 20
    A process according to Claim 19, wherein said plural error distribution matrices include exactly one error distribution matrix for each gray level.
  21. 21
    A method for distributing error in an error diffusion halftoning process which generates binary pixel values for a halftone image from gray-level pixel values of an original image by comparing gray value of a target pixel in the original image with a threshold value, setting a corresponding pixel in the halftone image to a binary 0 or 1 based on the comparison, and distributing error between the binary value and the gray level value to pixels adjacent the target pixel, said error diffusion method comprising the steps of:determining the gray value of the target pixel;selecting a first error distribution matrix in a case where the gray value corresponds to a shadow region or a highlight region, the first error distribution matrix being: and selecting a second error distribution matrix, different from the first matrix, in a case where the gray value corresponds to a mid-tone region.
  22. 22
    A method according to Claim 21, wherein the second error distribution matrix is:
  23. 23
    A method according to Claim 21, wherein the second error distribution matrix is:
  24. 24
    A method according to Claim 21, further comprising the step of selecting a third error distribution matrix in a case where the gray value is in a transition region between highlights and mid-tones or in a transition region between mid-tones and shadow.
  25. 25
    A method according to Claim 24, wherein the third error distribution matrix is a weighted average between the first and second error distribution matrix, weight of the weighted average being calculated in accordance with gray level for the third error diffusion matrix and in accordance with a difference between gray levels for the first and second error diffusion matrices.
  26. 26
    A method according to any of claims 1 to 8 further comprising the step of incorporating the obtained threshold mask in a product for implementing an error diffusion halftoning process, so as to cause different thresholds for different pixels of an original gray-level image be used in said process.
  27. 28
    A method or apparatus having the features of any combination of the preceding claims.
Independent claims27