Page 1 of 1

Eliminating blue

Posted: 2013-04-18T13:04:56-07:00
by aporthog
I'm experimenting with seeing if I can remove blue ink underlining from black text on white pages. I've been reading up on all of the color processing options available in IM but I'm afraid it's mostly above my head. The pages will ultimately end up as bitonal so preserving the colors on the page isn't important insofar as I can convert them successfully to bitonal at the end.

So some questions about strategies:

1. Is there away to lighten just the blue colors?
2. Can I enhance contrast or darken non-blue colors?
3. Can I deemphasize the blue colors when converting to grayscale?

My ultimate goal is to leave the blue colors largely behind when I apply a final -threshold.

Here's a sample: http://ucblibrary4.berkeley.edu/~apollo ... lueink.png

Re: Eliminating blue

Posted: 2013-04-18T13:19:01-07:00
by Bonzo
I just used blue as the colour to change and you may have a better result if you use a rgb value instead:

Code: Select all

convert blueink.png -fuzz 50% -fill white -opaque blue noblue.jpg

Re: Eliminating blue

Posted: 2013-04-18T14:08:37-07:00
by aporthog
Thanks, that seems to do the trick. I had tried just that exact thing some time ago but it had damaged the text too much and I gave it up. But combining it with some other new processing techniques I've learned I'm able to restore the damaged text and this time it seems to work.