[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
Create a dynamic accumulator chain containing the selected statistics and their dependencies. More...
#include <vigra/accumulator.hxx>
Public Member Functions | |
template<class TAG > | |
void | activate () |
void | activate (std::string tag) |
void | activateAll () |
ArrayVector< std::string > | activeNames () const |
template<class TAG > | |
bool | isActive () const |
bool | isActive (std::string tag) const |
unsigned int | passesRequired () const |
![]() | |
void | merge (AccumulatorChainImpl const &o) |
void | operator+= (AccumulatorChainImpl const &o) |
unsigned int | passesRequired () const |
void | reset (unsigned int reset_to_pass=0) |
void | reshape (TinyVector< U, N > const &s) |
void | setCoordinateOffset (SHAPE const &offset) |
void | setHistogramOptions (HistogramOptions const &options) |
void | updatePassN (T const &t, double weight, unsigned int N) |
void | updatePassN (T const &t, unsigned int N) |
Additional Inherited Members | |
![]() | |
static ArrayVector< std::string > const & | tagNames () |
Create a dynamic accumulator chain containing the selected statistics and their dependencies.
DynamicAccumulatorChain is used to compute global statistics with run-time activation. A set of statistics is selected at run-time and from this set statistics can be activated at run-time by calling activate<stat>() or activate(std::string stat).
The template parameters are as follows:
Usage:
Usage, using CoupledHandle:
See Feature Accumulators for more information and examples of use.
Activate statistic 'tag'. Alias names are not recognized. If the statistic is not in the accumulator chain a PreconditionViolation is thrown.
activate<TAG>() activates statistic 'TAG'. If the statistic is not in the accumulator chain it is ignored. (?)
Activate all statistics in the accumulator chain.
Return true if the statistic 'tag' is active, i.e. activate(std::string tag) or activate<TAG>() has been called. If the statistic is not in the accumulator chain a PreconditionViolation is thrown. (Note that alias names are not recognized.)
isActive<TAG>() returns true if statistic 'TAG' is active, i.e. activate(std::string tag) or activate<TAG>() has been called. If the statistic is not in the accumulator chain, true is returned. (?)
ArrayVector< std::string > activeNames | ( | ) | const |
Return names of all statistics in the accumulator chain that are active.
Return number of passes required to compute the active statistics in the accumulator chain.
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |