|
vspline 1.1.0
Generic C++11 Code for Uniform B-Splines
|
apply an FIR filter to an image More...
#include <iostream>#include <stdlib.h>#include <vspline/general_filter.h>#include <vigra/stdimage.hxx>#include <vigra/imageinfo.hxx>#include <vigra/impex.hxx>Go to the source code of this file.
Typedefs | |
| typedef vigra::RGBValue< float, 0, 1, 2 > | pixel_type |
| typedef vigra::MultiArray< 2, pixel_type > | target_type |
Functions | |
| int | main (int argc, char *argv[]) |
apply an FIR filter to an image
vspline has some code which isn't useful only for b-splines. One example is the application of a FIR filter to a MultiArrayView. With vspline's multithreaded SIMD code, this is done efficiently. This example program will apply a 1D kernel along the horizontal and vertical. You can pass an arbitrarily long sequence of filter coefficients after an image file name.
compile with: ./examples.sh fir.cc
invoke passing an image file and the filter's coefficients. the result will be written to 'fir.tif'
Definition in file fir.cc.
| typedef vigra::RGBValue< float , 0 , 1 , 2 > pixel_type |
| typedef vigra::MultiArray< 2 , pixel_type > target_type |