| smooth_convolve.cxx |  | 
Convolve an image in different ways (gray scale or color) 
 Usage: smooth_convolve infile outfile
#include <vigra/multi_array.hxx>
#include <vigra/convolution.hxx>
#include <iostream>
using namespace vigra;
int main (int argc, char ** argv) 
{
    if(argc != 3) 
    {
        std::cout << "Usage: " << argv[0] << " infile outfile" << std::endl;
        
        return 1;
    }
    try
    {
        
        
        std::cout << "Which mode of convolution?\n";
        std::cout << "1 - disk average\n";
        std::cout << "2 - corners of a 3x3-box\n";
        std::cout << "3 - Gaussian filter\n";
        std::cout << "4 - separable Gaussian filter (x- and x-dimension separately)\n";
        int mode;
        std::cin >> mode;
        
        
        
        
        switch(mode) 
        {
            case 1: 
                
                break;
            case 2: 
                
                        0.25, 0.0, 0.25, 
                        0.0,  0.0, 0.0,
                        0.25, 0.0, 0.25; 
                        break;
            case 3: 
                
                break;
            case 4: 
                
                break;
            default:
                vigra_precondition(false, "mode must be between 1 and 4.");
        }
           
        
        {
            
                                 exportArray(info.
shape());
            
            
            if (mode == 4) 
            {
            }
            else 
            {
            }
            
        }
        
        else 
        {
            
            
            
            if (mode == 4) 
            {
            }
            else 
            {
            }
            
        }
    }
    catch (std::exception & e) 
    {
        
        std::cout << e.what() << std::endl;
        return 1;
    }
    return 0;
}