Expose FilterImage through the Magick++ Image interface

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
hwenjing
Posts: 8
Joined: 2015-03-25T13:05:02-07:00
Authentication code: 6789

Re: Expose FilterImage through the Magick++ Image interface

Post by hwenjing »

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.

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