template<class T, int TDIM>
class ug::raster_kernels::Count< T, TDIM >
Kernel which counts the number of times it was run on valid data values.
For use with ug::Raster.
This class defines a default constructor, the type 'result_t', and the method 'result_t result() const' and can thus be used like this:
Raster<T,TDIM> raster;
size_t countAll = raster.run_on_all<Count<T,TDIM> > ();
size_t countNbrs = raster.run_on_nbrs<Count<T,TDIM> > (someMultiIndex);
- Note
- if the kernel is run on a 'no_data_value', the counter is not increased.