Line Removal strategy

P

PyPK

Hi I am looking for a simple algorithm for removing straight lines in a
given Image using something like an PIL or simpler.
 
B

Bengt Richter

Hi I am looking for a simple algorithm for removing straight lines in a
given Image using something like an PIL or simpler.
The simplest is if you are in control of drawing in the first place
and don't draw the lines ;-) Otherwise, you need to define your
requirements a little more precisely. E.g., replacing horizontal
and vertical runs of identical pixels of a given color with another
given background color could be one definition. Removing an
arbitrarily diagonal anti-aliased line of some undprcified width
running through a speckled background is a different problem ;-)

Regards,
Bengt Richter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,264
Messages
2,571,314
Members
47,992
Latest member
JavierBini

Latest Threads

Top