Re: Expose FilterImage through the Magick++ Image interface
Posted: 2015-03-27T13:30:29-07:00
My code on testing this on 6.9.0-6
Almost all were copied from what ImageMagick suggested.
I have no idea what causes the difference between our test code and theirs.
Almost all were copied from what ImageMagick suggested.
I have no idea what causes the difference between our test code and theirs.
Code: Select all
#include "third_party/ImageMagick6/Magick++.h"
using namespace std;
using namespace Magick;
int main(int argc,char **argv)
{
InitializeMagick(*argv);
Image image;
image.read( "input.png" );
image.morphology(CorrelateMorphology,
"-1.0, -2.0, -1.0, 0.0, 0.0, 0.0, 1.0, 2.0, 1.0",1);
// image.filter("-1.0, -2.0, -1.0, 0.0, 0.0, 0.0, 1.0, 2.0, 1.0");
image.write( "output.png" );
return 0;
}