| transpose_image_tutorial.cxx |  | 
Transpose an image file about major or minor axis 
 Usage: transpose_image_tutorial infile outfile
#include <iostream>
#include <vigra/multi_array.hxx>
#include <vigra/basicgeometry.hxx>
using namespace vigra; 
int main(int argc, char ** argv)
{
    if(argc != 3) 
    {
        std::cout << "Usage: " << argv[0] << " infile outfile" << std::endl;
        std::cout << 
"(grayscale images only, supported formats: " << 
impexListFormats() << 
")" << std::endl;
        return 1;
    }
    
    
    std::cout << "Transpose about which diagonal?\n";
    std::cout << "1 - major\n";
    std::cout << "2 - minor\n";
    int mode;
    std::cin >> mode;
    try 
    {
        
        if(mode == 1)
        {
            
            
        }
        else
        {
            
            
        }
    }
    catch (std::exception & e) 
    {
        
        std::cout << e.what() << std::endl;
        return 1;
    }
    return 0;
}