63#include <vigra/stdimage.hxx>
64#include <vigra/imageinfo.hxx>
65#include <vigra/impex.hxx>
75int main (
int argc ,
char * argv[] )
79 std::cerr <<
"pass a colour image file as argument," << std::endl ;
80 std::cerr <<
"followed by the pole value(s)" << std::endl ;
86 vigra::ImageImportInfo imageInfo ( argv[1] ) ;
88 std::vector < vspline::xlf_type > kernel ;
91 for (
int i = 2 ; i < argc ; i++ )
100 vigra::importImage ( imageInfo , image ) ;
109 kernel.size() / 2 ) ;
113 vigra::ImageExportInfo eximageInfo (
"iir.tif" );
115 std::cout <<
"storing the target image as 'iir.tif'" << std::endl ;
117 vigra::exportImage ( image ,
119 .setPixelType(
"UINT8") ) ;
vigra::MultiArray< 2, pixel_type > target_type
provides vspline's digital filtering capabilities without the b-spline-specific aspects.
int main(int argc, char *argv[])
vigra::RGBValue< float, 0, 1, 2 > pixel_type
vigra::MultiArray< 2, pixel_type > target_type
void forward_backward_recursive_filter(const vigra::MultiArrayView< dimension, in_value_type > &input, vigra::MultiArrayView< dimension, out_value_type > &output, vigra::TinyVector< bc_code, static_cast< int >(dimension) > bcv, std::vector< vspline::xlf_type > pv, xlf_type tolerance=-1, xlf_type boost=xlf_type(1), int axis=-1, int njobs=default_njobs)
forward_backward_recursive_filter applies one or more pairs of simple recursive filters to the input....