How to remove lines from an image? Will pay for help.

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
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Post by glennrp »

Open a target image the same dimensions as your source.

Scan the source looking for "5". Wherever you find one, draw
one in the target image. Repeat with "0".

By "looking for 5" I mean look for a rectangle in which every
black pixel of a small image of the "5" is matched by a black
pixel in the source.

Glenn
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

Glenn, that sounds like a very difficult method, though probably not imposible.

I mean 'fingerprinting' software does this sort of matching all the time by first finding 'key points, matching those up for rotations scales etc, then sees how well the rest of the image matches.

Do you have any references?

My problem is I want to reduce some 'cartoon' like images to line drawings using edge detection, then try to find other images that has simular line drawings. perhaps with
some rescaling and displacement.

EG: was this cartoon used as part of another image?
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply