Reduce image size by mean of a Gaussian pyramid
Usage: example_pyramid infile outfile
#include <iostream>
#include <stdio.h>
#include "vigra/stdimage.hxx"
#include "vigra/convolution.hxx"
#include "vigra/resizeimage.hxx"
template <class Image>
{
int height =
in.height();
filter.initExplicitly(-2, 2) = 0.05, 0.25, 0.4, 0.25, 0.05;
separableConvolveX(srcImageRange(
in),
resizeImageNoInterpolation(srcImageRange(
tmpimage2), destImageRange(
out));
}
{
{
std::cout <<
"Usage: " <<
argv[0] <<
" infile outfile" << std::endl;
return 1;
}
try
{
{
{
}
}
else
{
{
}
}
}
catch (vigra::StdException & 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
Class for a single RGB value.
Definition rgbvalue.hxx:128
image import and export functions
std::string impexListFormats()
List the image formats VIGRA can read and write.