Optimizing Tone Separation of Photographic Images

Tone separation is the process of reducing a continuous tone image to a set of discrete tone levels. It is usually the first step in many graphic arts techniques, for example posterization. This Demonstration shows the partition of a continuous tone photograph into four tone intervals defined by three thresholds: one for the shadows, one for the midtones, and one for the highlights. Adjust the threshold values and see the effect on the four negative or positive masks and on the composition of all four masks into a posterization. Three evenly spaced thresholds (0.25, 0.50, and 0.75) can be used, but they usually result in unbalanced fractions of black and white, forming a less pleasing composition. If we optimize the threshold values to produce equal black fractions for each separation (0.25 for the positives or 0.75 for the negatives), we get a more interesting posterization. White dust spots, caused by repeated binarization, can be removed with the new Inpaint function in Mathematica 8.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


Snapshot 1: shows the thumbnail image with evenly spaced thresholds
Snapshot 2: an example of an image with very strong highlights and almost no shadows or midtones, giving poor results in the composition with evenly spaced threshold values
Snapshot 3: the same image as in Snapshot 2 but with optimized thresholds and resulting in a better composition
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2018 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+