33 #ifndef __H__UG_raster_kernels
34 #define __H__UG_raster_kernels
39 namespace raster_kernels {
56 template <
class T,
int TDIM>
95 template <
class T,
int TDIM>
133 template <
class T,
int TDIM>
146 T nbrVal = raster.template run_on_nbrs<Sum<T, TDIM> >(cur);
149 + (nbrVal *
m_alpha / numNbrs);
Generic raster for arbitrary dimensions.
Definition: raster.h:73
T & node_value(const MultiIndex &mi)
returns the value at the given multi-index (read/write)
Definition: raster_impl.hpp:353
T no_data_value() const
returns the value that shall be considered 'no-data-value'
Definition: raster_impl.hpp:482
Kernel which blurs all values of a raster it was called on.
Definition: raster_kernels.h:134
void operator()(Raster< T, TDIM > &raster, const typename Raster< T, TDIM >::MultiIndex &cur)
Definition: raster_kernels.h:140
Blur(T alpha)
Definition: raster_kernels.h:136
T m_alpha
Definition: raster_kernels.h:155
Kernel which counts the number of times it was run on valid data values.
Definition: raster_kernels.h:57
size_t m_count
Definition: raster_kernels.h:76
size_t result_t
Definition: raster_kernels.h:59
Count()
Definition: raster_kernels.h:61
size_t result() const
Definition: raster_kernels.h:72
void operator()(Raster< T, TDIM > &raster, const typename Raster< T, TDIM >::MultiIndex &cur)
Definition: raster_kernels.h:65
Kernel which sums the values for all entries it was called on.
Definition: raster_kernels.h:96
T result() const
Definition: raster_kernels.h:111
void operator()(Raster< T, TDIM > &raster, const typename Raster< T, TDIM >::MultiIndex &cur)
Definition: raster_kernels.h:104
T result_t
Definition: raster_kernels.h:98
T m_sum
Definition: raster_kernels.h:115
Sum()
Definition: raster_kernels.h:100