- std::string plugins_file = argv[ 1 ];
- std::string input_image_file = argv[ 2 ];
- std::string output_image_file = argv[ 3 ];
- std::string dimensions = argv[ 4 ];
- std::string pixel_type = argv[ 5 ];
- bool is_color = ( std::atoi( argv[ 6 ] ) == 1 );
-
- // Create interface
- typedef cpPlugins::Interface::Interface TInterface;
- typedef TInterface::TClasses TClasses;
-
- TInterface plugins;
- plugins.Load( plugins_file );
-
- // Create objects
- typedef cpPlugins::Interface::ProcessObject TProcessObject;
- typedef TProcessObject::TParameters TParameters;
- cpPlugins::Interface::ProcessObject::Pointer reader;
- cpPlugins::Interface::ProcessObject::Pointer writer;