#include <iostream>
#include <vigra/multi_array.hxx>
#include <vigra/tensorutilities.hxx>
#include <vigra/boundarytensor.hxx>
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;
}
Argument object for the function exportImage().
Definition imageinfo.hxx:134
Argument object for the function importImage().
Definition imageinfo.hxx:391
Main MultiArray class containing the memory management.
Definition multi_array.hxx:2479
void exportImage(...)
Write an image to a file.
void importImage(...)
Read an image from a file.
image import and export functions
void tensorTrace(...)
Calculate the trace of a 2x2 tensor.
std::string impexListFormats()
List the image formats VIGRA can read and write.
void tensorToEdgeCorner(...)
Decompose a symmetric 2x2 tensor into its edge and corner parts.
void boundaryTensor(...)
Calculate the boundary tensor for a scalar valued image.