Image treshold

Johny python at
Sat Nov 10 10:23:11 CET 2007

Can anyone give me an example how to apply a threshold value to an

(everything above a certain brightness level becomes white, and
everything below the
 level becomes black.)

I was told I should use 256-item mapping table and pass it to the
"point" method.

But how should the 256-item mapping table  look like, if the threshold
is 18( found from the histogram)

Thank you for any hint.

More information about the Python-list mailing list