Mirror an image file (horizontal or vertical)
Usage: mirror_tutorial infile outfile
#include <iostream>
#include <vigra/multi_array.hxx>
#include <vigra/basicgeometry.hxx>
{
{
std::cout <<
"Usage: " <<
argv[0] <<
" infile outfile" << std::endl;
std::cout << "(grayscale only, supported formats: " << impexListFormats() << ")" << std::endl;
return 1;
}
std::cout << "How to mirror image?\n";
std::cout << "1 - top to bottom (= about horizontal axis)\n";
std::cout << "2 - left to right (= about vertical axis)\n";
int mode;
std::cin >> mode;
try
{
if(mode == 1)
{
for (
int y=0; y<
info.height(); y++)
{
}
}
else
{
}
}
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
Class for a single RGB value.
Definition rgbvalue.hxx:128
image import and export functions