ug4
ug::raster_kernels::Blur< T, TDIM > Class Template Reference

Kernel which blurs all values of a raster it was called on. More...

#include <raster_kernels.h>

Public Member Functions

 Blur (T alpha)
 
void operator() (Raster< T, TDIM > &raster, const typename Raster< T, TDIM >::MultiIndex &cur)
 

Private Attributes

m_alpha
 

Detailed Description

template<class T, int TDIM>
class ug::raster_kernels::Blur< T, TDIM >

Kernel which blurs all values of a raster it was called on.

Note
This class does not feature a default constructor and thus must be constructed before being run on a raster.

Use, e.g., like this:

Raster<T,TDIM> raster;
//...
Blur<T,TDIM> blurKernel(0.1);
raster.run_on_all (blurKernel);
Note
'no_data_values' will not be affected by the blur operation

Constructor & Destructor Documentation

◆ Blur()

template<class T , int TDIM>
ug::raster_kernels::Blur< T, TDIM >::Blur ( alpha)
inline

Member Function Documentation

◆ operator()()

template<class T , int TDIM>
void ug::raster_kernels::Blur< T, TDIM >::operator() ( Raster< T, TDIM > &  raster,
const typename Raster< T, TDIM >::MultiIndex cur 
)
inline

Member Data Documentation

◆ m_alpha

template<class T , int TDIM>
T ug::raster_kernels::Blur< T, TDIM >::m_alpha
private

The documentation for this class was generated from the following file: