A method is described to match an original binary image with the dynamic
range of a desired target document. The original binary image is restored
first to contone and a histogram of the contone image is processed to
generate a Tone Reproduction Curve (TRC) for the contone image with
improved dynamic range. The histogram processing includes determining a
histogram of the contone image, and generating the TRC based on matching
the determined histogram with a target histogram profile. This helps in
matching outputs from legacy devices to a desired quality.