[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
|   | FindSum< VALUETYPE > Class Template Reference |  | 
Find the sum of the pixel values in an image or ROI. More...
#include <vigra/inspectimage.hxx>
Inherits UnaryReduceFunctorTag.
| Public Types | |
| typedef VALUETYPE | argument_type | 
| typedef NumericTraits < VALUETYPE >::Promote | result_type | 
| Public Member Functions | |
| FindSum () | |
| void | operator() (argument_type const &v) | 
| void | operator() (FindSum const &v) | 
| result_type | operator() () const | 
| void | reset () | 
| result_type | sum () const | 
Find the sum of the pixel values in an image or ROI.
This Functor can also be used in conjunction with ArrayOfRegionStatistics to find the sum of all regions in a labeled image, and with the reduce mode of transformMultiArray().
Traits defined:
FunctorTraits::isUnaryAnalyser and FunctorTraits::isInitializer are true (VigraTrueType)
Usage:
#include <vigra/inspectimage.hxx>
 Namespace: vigra
Required Interface:
| typedef VALUETYPE argument_type | 
the functor's argument type
| typedef NumericTraits<VALUETYPE>::Promote result_type | 
the functor's result type
| FindSum | ( | ) | 
init sum
| void reset | ( | ) | 
(re-)init sum
| void operator() | ( | argument_type const & | v | ) | 
update sum
| void operator() | ( | FindSum< VALUETYPE > const & | v | ) | 
merge two statistics
| result_type sum | ( | ) | const | 
return current sum
| result_type operator() | ( | ) | const | 
return current sum
| 
© Ullrich Köthe     (ullrich.koethe@iwr.uni-heidelberg.de)  | 
html generated using doxygen and Python
 |