MorphologyApply available for Wand?

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
User avatar
foxyshadis
Posts: 15
Joined: 2010-04-29T19:29:46-07:00
Authentication code: 8675308
Location: Fresno, California

MorphologyApply available for Wand?

Post by foxyshadis » 2011-01-18T20:46:42-07:00

I would like to use Morphology in my current project, there's some really powerful stuff in it. Is there a MagickWand interface to it yet? I suspect there's not, since I looked over the code.

If not, can you post a short snippet demonstrating how to combine Wand and Core APIs without accidentally leaking memory? I assume it starts with GetImageFromMagickWand, but I'm not sure how to stuff that image back in afterward. Or does this simply return the original pointer and allow APIs to modify the image in-place, with nothing else required in order to go back to using Wand methods on it?

User avatar
magick
Site Admin
Posts: 11043
Joined: 2003-05-31T11:32:55-07:00

Re: MorphologyApply available for Wand?

Post by magick » 2011-01-19T06:42:55-07:00

Have you looked at MagickMorphologyImage() @ http://www.imagemagick.org/api/magick-i ... ologyImage?

User avatar
foxyshadis
Posts: 15
Joined: 2010-04-29T19:29:46-07:00
Authentication code: 8675308
Location: Fresno, California

Re: MorphologyApply available for Wand?

Post by foxyshadis » 2011-01-20T15:26:52-07:00

Thanks, I did miss that. I added it to my PyMagickWand set.

BTW, there's a problem in the morphology docs: ScaleGeometryKernelInfo doesn't have its signature shown, instead ScaleKernelInfo is listed twice.

Post Reply