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?".
1) use -blur to blur the edge slightly with the transparent background
2) magnify your original image by 2 or 4 in each direction, then extract the edge result, then minimize the result back to your original size (use -filter lanczos -resize)
Of course creating anti-aliased areas that can piece together (using blend or add composition)
would be the ultimate form of anti-aliased segmentation of an image. However that seems to be much more difficult then a pure B/W mask.
Please let us know what you try and what you come up with, as I and probably a lot of other people would like to know what you conclude from the various methods, and the best result you achieved.
Great, I've made some progress... ...and sorry for my hopeless lack of understanding of bitmap manipulation.
In my (PerlMagick) script I now make a new image with a transparent background of the same dimensions and then blur it. Then I Composite it onto the original image. Right now I'm using the Screen composite method which seems to get closest to the result.
Actually, I've been looking around the examples pages some more and it looks like the stuff here is really close to the result I want to achieve anyway. That is to say, I want to make an image that is (already) on a transparent background to get a 'nice edge' so that it can be placed on a 'noisy background' and still stand out. The specific example on the examples page starts out with an image on a white background (i.e. no transparent layer). So would I be close with something like the following sequence?
convert myImageWithTransparentBackground.png <some command to extract the alpha mask> difference.png
Yes, you are right. My magicwand script only makes a binary outline image and does not allow the black area to be output as transparent. But your modification afterwards is what I would have done. Glad to hear it has worked out.