smooth images More...
#include "vil_gauss_filter.h"#include <vil/vil_transpose.h>#include <vil/algo/vil_convolve_1d.h>#include <vcl_iostream.h>#include <vcl_cassert.h>Go to the source code of this file.
Defines | |
| #define | vil_gauss_filter_txx_ |
| #define | VIL_GAUSS_FILTER_INSTANTIATE(srcT, destT) |
Functions | |
| unsigned char | vl_round (double x, unsigned char) |
| signed char | vl_round (double x, signed char) |
| double | vl_round (double x, double) |
| float | vl_round (double x, float) |
| template<class srcT , class destT > | |
| void | vil_gauss_filter_5tap (const srcT *src_im, vcl_ptrdiff_t src_istep, vcl_ptrdiff_t src_jstep, destT *dest_im, vcl_ptrdiff_t dest_istep, vcl_ptrdiff_t dest_jstep, unsigned nx, unsigned ny, const vil_gauss_filter_5tap_params ¶ms, destT *work, vcl_ptrdiff_t work_jstep) |
| Smooth and subsample src_im to produce dest_im. | |
| template<class srcT , class destT > | |
| void | vil_gauss_filter_5tap (const vil_image_view< srcT > &src_im, vil_image_view< destT > &dest_im, const vil_gauss_filter_5tap_params ¶ms, vil_image_view< destT > &work) |
| Smooth a src_im to produce dest_im. | |
smooth images
Definition in file vil_gauss_filter.txx.
| #define VIL_GAUSS_FILTER_INSTANTIATE | ( | srcT, | |
| destT | |||
| ) |
template void vil_gauss_filter_5tap(const vil_image_view<srcT >& src_im, \ vil_image_view<destT >& dest_im, \ const vil_gauss_filter_5tap_params& params, \ vil_image_view<destT >& work)
Definition at line 289 of file vil_gauss_filter.txx.
| #define vil_gauss_filter_txx_ |
Definition at line 3 of file vil_gauss_filter.txx.
| void vil_gauss_filter_5tap | ( | const srcT * | src_im, |
| vcl_ptrdiff_t | src_istep, | ||
| vcl_ptrdiff_t | src_jstep, | ||
| destT * | dest_im, | ||
| vcl_ptrdiff_t | dest_istep, | ||
| vcl_ptrdiff_t | dest_jstep, | ||
| unsigned | nx, | ||
| unsigned | ny, | ||
| const vil_gauss_filter_5tap_params & | params, | ||
| destT * | work, | ||
| vcl_ptrdiff_t | work_jstep | ||
| ) |
Smooth and subsample src_im to produce dest_im.
Applies 5 pin filter in x and y, then samples every other pixel. Assumes dest_im has sufficient data allocated
Definition at line 36 of file vil_gauss_filter.txx.
| void vil_gauss_filter_5tap | ( | const vil_image_view< srcT > & | src_im, |
| vil_image_view< destT > & | dest_im, | ||
| const vil_gauss_filter_5tap_params & | params, | ||
| vil_image_view< destT > & | work | ||
| ) |
Smooth a src_im to produce dest_im.
Applies 5 element FIR filter in x and y.
Definition at line 144 of file vil_gauss_filter.txx.
| unsigned long vl_round | ( | double | x, |
| unsigned | char | ||
| ) | [inline] |
Definition at line 18 of file vil_gauss_filter.txx.
| signed long vl_round | ( | double | x, |
| signed | char | ||
| ) | [inline] |
Definition at line 19 of file vil_gauss_filter.txx.
| double vl_round | ( | double | x, |
| double | |||
| ) | [inline] |
Definition at line 26 of file vil_gauss_filter.txx.
| float vl_round | ( | double | x, |
| float | |||
| ) | [inline] |
Definition at line 27 of file vil_gauss_filter.txx.
1.7.5.1