| subimage_tutorial.cxx |  | 
Create a half-sized subimage 
 Usage: subimage_tutorial infile outfile
#include <iostream>
#include <vigra/multi_array.hxx>
#include <vigra/stdimage.hxx>
using namespace vigra; 
int main(int argc, char ** argv) 
{
    if(argc != 3) 
    {
        std::cout << "Usage: " << argv[0] << " infile outfile" << std::endl;
        
        return 1;
    }
    try 
    {
        
        
        
        {
            
            
            
            Shape2 upperLeft  = info.
shape() / 4,
                   lowerRight = info.
shape() - upperLeft;
        
            
            
            
            
        }
        else 
        {
            
            
            
            Shape2 upperLeft  = info.
shape() / 4,
                   lowerRight = info.
shape() - upperLeft;
        
            
            
            
            
        }
    }
    catch (std::exception & e)
    {
        
        std::cout << e.what() << std::endl;
        return 1;
    }
    
    return 0;
}