Page 1 of 1

convert command line morph capability to c++

Posted: 2015-09-17T12:46:14-07:00
by penny318
Hello.

I have gone through the command line functions and have my images looking just like I want them to, but I am having difficulties translating the command line options to C++ (to work programmatically). I am hoping someone who is more fluent in Magick++ can help. I am using version imageMagick 6.8.9.

I need the edges of my icon to glow, which is what this function does really well.

This is what I am trying to translate into c++:

convert borderedImage.png -alpha set -virtual-pixel transparent -channel A -morphology Distance Euclidean:1,5\! +channel blurred_border_image.png

It looks like I need to set the morphologyChannel() options and then call the morphology() method on my image, but I am unsure of how the options should be set. Any help would be greatly appreciated.

-Penny