Removing an object from an image using ImageMagick

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
skeegan

Removing an object from an image using ImageMagick

Post by skeegan »

Hi, I have a collection of images with embedded Kodak Color Control patches. http://www.flickr.com/photos/92759244@N00/4947944378/ is a sample. I would like to remove the Kodak Color Control patch from this image and replace it with black pixels. Does anybody know a way of achieving this using ImageMagick? One of the problems about this is that the control patch can appear anywhere in the image-sometimes on the left, other times on the right or above or below the page. Also, the orientation of the control patch can also vary-sometimes it is orientated horizontally, other times vertically. S
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Removing an object from an image using ImageMagick

Post by fmw42 »

I don't think IM can do this, though it has the compare function that will allow you to find a small image inside a larger one. But it is not rotational or scale invariant.

Try searching google for rotational invariant image matching.
Post Reply