Create white pixel above all single white pixels

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
wineismine
Posts: 3
Joined: 2017-10-22T04:06:07-07:00
Authentication code: 1151

Create white pixel above all single white pixels

Post by wineismine » 2017-10-22T18:22:17-07:00

Image
I need to create white pixel above the solitary white pixels so as to fill the gap made by line removal.Please help

User avatar
fmw42
Posts: 22079
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

Re: Create white pixel above all single white pixels

Post by fmw42 » 2017-10-22T19:54:53-07:00

Would it be sufficient to just remove single white pixels or whatever is the minimum area of white? If so, you can do that with -connected-components. Filling in would likely result in thickening your characters where you do not want them thicker or filling in closed parts of the characters.

Post Reply