Posted: 2006-11-27T17:46:47-07:00
contrast is a relative term, defineing the difference between the foreground and background levels.
It is also a very hard thing to differentiate, and not something you can easilly automate.
the best way may be to take a copy of the the image, blur it slightly, reduce it to two colors without dither, then use that to define what is 'foreground', using a trim.
See IM Example sections
Two Color Quantization
http://www.cit.gu.edu.au/~anthony/graph ... colors_two
And 'blurred trim'
http://www.cit.gu.edu.au/~anthony/graph ... #trim_blur
And please let us know how it goes, and what your final solution is..
It is also a very hard thing to differentiate, and not something you can easilly automate.
the best way may be to take a copy of the the image, blur it slightly, reduce it to two colors without dither, then use that to define what is 'foreground', using a trim.
See IM Example sections
Two Color Quantization
http://www.cit.gu.edu.au/~anthony/graph ... colors_two
And 'blurred trim'
http://www.cit.gu.edu.au/~anthony/graph ... #trim_blur
And please let us know how it goes, and what your final solution is..