1
// This may look like C code, but it is really -*- C++ -*-
3
// Copyright Bob Friesenhahn, 1999, 2000, 2003
5
// Test STL morphImages function
16
using namespace Magick;
18
int main( int /*argc*/, char **argv)
21
// Initialize ImageMagick install location for Windows
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;
52
catch( Exception &error_ )
54
cout << "Caught exception: " << error_.what() << endl;
57
catch( exception &error_ )
59
cout << "Caught exception: " << error_.what() << endl;
65
cout << failures << " failures" << endl;