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?".
How can determine the color of a particular selected area in the picture, so that later i can insert a watermark depending on the background color. If the color background is light, then insert a black watermark. Or if the background color is black, then insert the lighter!
The basic idea is to crop the desired rectangle, and find the average lightness. If this is less than 50% (or whatever threshold you want) the text will be white, otherwise black.
With v7 this can probably be done in one command. In v6 it will need a shell script.