21 int main(
int ,
char ** argv)
31 if(getenv(
"SRCDIR") != 0)
32 srcdir = getenv(
"SRCDIR");
35 list<Image> imageList;
36 readImages( &imageList, srcdir +
"smile_anim.miff" );
41 for_each( imageList.begin(), imageList.end(),
flipImage() );
46 morphImages( &morphed, imageList.begin(), imageList.end(), 3 );
49 cout <<
"Writing image \"flip_out.miff\" ..." << endl;
50 writeImages( morphed.begin(), morphed.end(),
"flip_out.miff" );
53 catch( exception &error_ )
55 cout <<
"Caught exception: " << error_.what() << endl;
void writeImages(InputIterator first_, InputIterator last_, const std::string &imageSpec_, bool adjoin_=true)
void readImages(Container *sequence_, const std::string &imageSpec_, ReadOptions &options)
int main(int, char **argv)
void morphImages(Container *morphedImages_, InputIterator first_, InputIterator last_, size_t frames_)
MagickPPExport void InitializeMagick(const char *path_)