vspline 1.1.0
Generic C++11 Code for Uniform B-Splines
Typedefs | Functions
fir.cc File Reference

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_typetarget_type
 

Functions

int main (int argc, char *argv[])
 

Detailed Description

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 Documentation

◆ pixel_type

typedef vigra::RGBValue< float , 0 , 1 , 2 > pixel_type

Definition at line 60 of file fir.cc.

◆ target_type

typedef vigra::MultiArray< 2 , pixel_type > target_type

Definition at line 64 of file fir.cc.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 66 of file fir.cc.