This source file includes following definitions.
- main
#include <Magick++.h>
#include <string>
#include <iostream>
#include <list>
#include <algorithm>
using namespace std;
using namespace Magick;
int main( int , char ** argv)
{
InitializeMagick(*argv);
try {
string srcdir("");
if(getenv("SRCDIR") != 0)
srcdir = getenv("SRCDIR");
list<Image> imageList;
readImages( &imageList, srcdir + "smile_anim.miff" );
for_each( imageList.begin(), imageList.end(), flipImage() );
list<Image> morphed;
morphImages( &morphed, imageList.begin(), imageList.end(), 3 );
cout << "Writing image \"flip_out.miff\" ..." << endl;
writeImages( morphed.begin(), morphed.end(), "flip_out.miff" );
}
catch( exception &error_ )
{
cout << "Caught exception: " << error_.what() << endl;
return 1;
}
return 0;
}