Search found 6 matches

by pulsar
2016-11-13T11:27:17-07:00
Forum: MagickWand
Topic: How to blur background?
Replies: 4
Views: 35448

Re: How to blur background?

Hmm, it looks like I can't even add the alpha channel to my image wand. I tried this: image_wand_out = CloneMagickWand(image_wand_in); MagickSetImageAlphaChannel(image_wand_out,ActivateAlphaChannel); MagickSetImageAlphaChannel(image_wand_out,OpaqueAlphaChannel); without trying to destroy the alpha ...
by pulsar
2016-11-13T10:57:57-07:00
Forum: MagickWand
Topic: How to blur background?
Replies: 4
Views: 35448

Re: How to blur background?

I just went through the description of all Wand functions, and now have more specific questions. 1) Is Alpha manipulations all I need to achieve my goal? (So I don't need masks, channels, matte etc.). Specifically, if I create an alpha channel for my image, set my "signal" pixels to alpha=0 (fully ...
by pulsar
2016-11-13T05:03:46-07:00
Forum: MagickWand
Topic: How to blur background?
Replies: 4
Views: 35448

Re: How to blur background?

Thanks for the quick reply! I am only familiar with v6.x, so that's what I'm currently using. (I just compiled a 6.8 version with Q32 quantum range for this project.) I found a command line (not C API) IM example solving the same problem (blurring background); there they just made the fg pixels ...
by pulsar
2016-11-12T18:51:31-07:00
Forum: MagickWand
Topic: How to blur background?
Replies: 4
Views: 35448

How to blur background?

Hello, I am writing a C program to process my astrophotography images. I got the basics of Magick Wand programming (reading/writing the image; manipulation with pixel brightness values), but now I am lost trying to do a more advanced task. I wonder if anyone could point me in the right direction ...
by pulsar
2015-03-18T12:18:01-07:00
Forum: MagickWand
Topic: Floating point pixel coordinates
Replies: 2
Views: 12541

Re: Floating point pixel coordinates

Is floating point pixels coordinates (get color via interpolation) feature supported by C API? Yes. I use InterpolateMagickPixelPacket(...), defined in pixel.h. This respects the -virtual-pixel and -interpolate settings. See examples in http://im.snibgo.com/customim.htm That's perfect - your link ...
by pulsar
2015-03-18T11:32:07-07:00
Forum: MagickWand
Topic: Floating point pixel coordinates
Replies: 2
Views: 12541

Floating point pixel coordinates

I had very little experience with ImageMagick C API in the past, mostly by means of finding a similar example code and adopting it to my needs, but now I am trying to accomplish a project in which I don't even know if it is doable with ImageMagick, and don't know where to start. In short, I want to ...