Convert an image file into another file type
Usage: example_convert infile outfile
#include <iostream>
#include <vigra/multi_array.hxx>
int main(int argc, char ** argv)
{
if(argc != 3)
{
std::cout << "Usage: " << argv[0] << " infile outfile" << std::endl;
std::cout << "(supported formats: " << impexListFormats() << ")" << std::endl;
return 1;
}
try
{
{
importImage(info, in);
}
else
{
importImage(info, in);
}
}
catch (std::exception & e)
{
std::cout << e.what() << std::endl;
return 1;
}
return 0;
}
Argument object for the function exportImage().
Definition imageinfo.hxx:134
Argument object for the function importImage().
Definition imageinfo.hxx:391
Main MultiArray class containing the memory management.
Definition multi_array.hxx:2479
image import and export functions