Code: Select all
Magick::Image magk(width, height, "RGBA", Magick::FloatPixel, pPixels);
magk.alphaChannel(Magick::ActivateAlphaChannel);
magk.channel(static_cast<MagickCore::ChannelType>(Magick::RedChannel|Magick::GreenChannel|Magick::BlueChannel|Magick::AlphaChannel));
magk.medianFilter(radius);
The code and API docs don't really explain a lot... Thanks for any help!