54#include <vigra/stdimage.hxx>
55#include <vigra/imageinfo.hxx>
56#include <vigra/impex.hxx>
66int main (
int argc ,
char * argv[] )
70 std::cerr <<
"pass a colour image file as argument," << std::endl ;
71 std::cerr <<
"followed by the filter's coefficients" << std::endl ;
77 vigra::ImageImportInfo imageInfo ( argv[1] ) ;
79 std::vector < vspline::xlf_type > kernel ;
82 for (
int i = 2 ; i < argc ; i++ )
91 vigra::importImage ( imageInfo , image ) ;
100 kernel.size() / 2 ) ;
104 vigra::ImageExportInfo eximageInfo (
"fir.tif" );
106 std::cout <<
"storing the target image as 'fir.tif'" << std::endl ;
108 vigra::exportImage ( image ,
110 .setPixelType(
"UINT8") ) ;
vigra::MultiArray< 2, pixel_type > target_type
int main(int argc, char *argv[])
vigra::RGBValue< float, 0, 1, 2 > pixel_type
vigra::MultiArray< 2, pixel_type > target_type
provides vspline's digital filtering capabilities without the b-spline-specific aspects.
void convolution_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 > kv, int headroom, int axis=-1, int njobs=default_njobs)
convolution_filter implements convolution of the input with a fixed-size convolution kernel....