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?".
- Posts: 8882
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
For general placement of text look at IM Examples, Annotating Images (see sig for link)
however specifically locating a specific area of color in an image is more difficult.
What I would do is first use a fuzzy color replacement to find the areas of the image containing that color, to produce a mask..
Something like, this looking for near-red areas in the Im logo...
Code: Select all
convert logo: -matte -fuzz 15% -fill none -opaque red \
-channel A -separate +channel -negate color_mask.png
From that you can use a fuzzy trim to discover the location of the area of that color on the image. Assuming only one such area exists. A fuzzy trim will let the trim ignore smaller isolated areas in a controled way.
Trimming 'Noisy' Images
http://www.cit.gu.edu.au/~anthony/graph ... #trim_blur
Good luck and let us know how you go or if you find any useful technique on the way.
That is contribute back anything you learned.