vil_exp_filter_2d.h
Go to the documentation of this file.
1 #ifndef vil_exp_filter_2d_h_
2 #define vil_exp_filter_2d_h_
3 //:
4 // \file
5 // \brief Apply exponential filter in two dimensions
6 // \author Tim Cootes
7 
9 
10 //: Apply exponential filter along i and j to src_im to produce dest_im
11 // Symmetric exponential filter of the form exp(c*|j|) applied. c=log(k)
12 // Uses fast recursive implementation.
13 // \relatesalso vil_image_view
14 template <class srcT, class destT, class accumT>
15 inline void vil_exp_filter_2d(const vil_image_view<srcT>& src_im,
16  vil_image_view<destT>& dest_im,
17  accumT ki, accumT kj)
18 {
19  vil_image_view<destT> filtered_im;
20  vil_exp_filter_i(src_im,filtered_im,ki);
21  vil_exp_filter_j(filtered_im,dest_im,kj);
22 }
23 
24 #endif // vil_exp_filter_2d_h_
Concrete view of image data of type T held in memory.
Definition: vil_fwd.h:13
Apply exponential filter.
void vil_exp_filter_2d(const vil_image_view< srcT > &src_im, vil_image_view< destT > &dest_im, accumT ki, accumT kj)
Apply exponential filter along i and j to src_im to produce dest_im.
void vil_exp_filter_j(const vil_image_view< srcT > &src_im, vil_image_view< destT > &dest_im, accumT k)
Apply exponential filter along j to src_im to produce dest_im.
void vil_exp_filter_i(const vil_image_view< srcT > &src_im, vil_image_view< destT > &dest_im, accumT k)
Apply exponential filter along i to src_im to produce dest_im.