| boundarytensor.cxx |  | 
Measure boundary and corner strengths with the boundaryTensor(): boundarytensor.cxx 
 Usage: example_boundarytensor infile, creates boundarystrength.tif and cornerstrength.tif
                
 
#include <iostream>
#include <vigra/multi_array.hxx>
#include <vigra/tensorutilities.hxx>
#include <vigra/boundarytensor.hxx>
using namespace vigra; 
int main(int argc, char ** argv)
{
    if(argc != 2)
    {
        std::cout << "Usage: " << argv[0] << " infile" << std::endl;
        std::cout << "creates: boundarystrength.tif, cornerstrength.tif" << std::endl;
        
        return 1;
    }
    
    try
    {
        
        
        
        
        double scale;
        std::cout << "Operator scale ? ";
        std::cin >> scale;
        
        {
        }
        {
            
            
            for(int b=0; b<3; ++b)
            {
                
                boundarytensor += bandtensor;
            }
        }
        else
        {
            std::cerr << "Sorry, can only operate on gray and color images.\n";
            return 1;
        }
        
        
        
        
        
    }
    catch (std::exception & e)
    {
        std::cout << e.what() << std::endl;
        return 1;
    }
    
    return 0;
}