convert command line morph capability to c++

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
penny318
Posts: 1
Joined: 2015-09-17T12:27:44-07:00
Authentication code: 1151

convert command line morph capability to c++

Post 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
Post Reply