16using namespace Magick;
18int main(
int ,
char **argv)
22 InitializeMagick(*argv);
29 if(getenv(
"SRCDIR") != 0)
30 srcdir = getenv(
"SRCDIR");
36 list<Image> imageList;
37 readImages( &imageList, srcdir +
"test_image_anim.miff" );
40 morphImages( &morphed, imageList.begin(), imageList.end(), 3 );
42 if ( morphed.size() != 21 )
45 cout <<
"Line: " << __LINE__
46 <<
" Morph images failed, number of frames is "
48 <<
" rather than 21 as expected." << endl;
54 cout <<
"Caught exception: " << error_.what() << endl;
57 catch( exception &error_ )
59 cout <<
"Caught exception: " << error_.what() << endl;
65 cout << failures <<
" failures" << endl;