#include <iostream>
#include <exception>
int
main(int argc, char * argv[])
{
if (argc < 2)
{
std::cerr << "Usage: " << argv[0] << " image_file_name\n";
return 1;
}
std::cout << "The supported image IOs are: ";
std::vector<std::string>::iterator it;
for (it = image_ios.begin(); it != image_ios.end(); it++)
{
std::cout << (*it) << " ";
}
std::cout << std::endl;
std::cout << "--------------------" << std::endl;
std::cout << "--------------------" << std::endl;
try
{
std::cout << "Read image: " << argv[1] << std::endl;
std::vector<unsigned int> size = image.
GetSize();
std::cout << "Image size: " << size[0] << " " << size[1] << std::endl;
}
catch (std::exception &
e)
{
std::cout << "Read failed: " << e.what() << std::endl;
}
return 0;
}