31 #ifndef ACCUMULATIONARRAY_H_
32 #define ACCUMULATIONARRAY_H_
43 #include "drain/util/Point.h"
46 #include "CoordinateHandler.h"
50 #include "AccumulationConverter.h"
65 class AccumulationMethod;
137 setGeometry(geometry.getWidth(), geometry.getHeight());
158 unsigned int getWidth()
const {
return geometry.width; };
162 unsigned int getHeight()
const {
return geometry.height; };
166 return coordinateHandler;
172 size_t address(
const size_t &i,
const size_t &j)
const {
201 std::ostream & operator<<(std::ostream &ostr,
const AccumulationArray &cumulator);
General-purpose image compositing.
Definition: AccumulationArray.h:112
AccumulationArray(size_t width=0, size_t height=0)
Default constructor. The channels are DATA, COUNT, WEIGHT, WEIGHT2.
Definition: AccumulationArray.h:118
ImageT< double > data
Accumulation array for actual data: , or generally .
Definition: AccumulationArray.h:174
unsigned int getHeight() const
Returns the height of the accumulation array.
Definition: AccumulationArray.h:162
virtual ~AccumulationArray()
Destructor.
Definition: AccumulationArray.h:128
virtual void setGeometry(size_t width, size_t height)
Changes the geometry of all the layers.
Definition: AccumulationArray.cpp:47
ImageT< double > data2
Accumulation array for auxiliary data; typically for std.deviation or difference (in Overwrite)
Definition: AccumulationArray.h:189
void setGeometry(const AreaGeometry &geometry)
Changes the geometry of all the layers.
Definition: AccumulationArray.h:136
ImageT< unsigned int > count
Accumulation array ( in )
Definition: AccumulationArray.h:185
unsigned int getWidth() const
Returns the width of the accumulation array.
Definition: AccumulationArray.h:158
void clear()
Resets the accumulation array values to undetectValue. Does not change the geometry.
Definition: AccumulationArray.cpp:63
void reset()
Collapses the accumulation geometries to zero area.
Definition: AccumulationArray.h:151
ImageT< double > weight
Accumulation array for weights ( )
Definition: AccumulationArray.h:182
Function for accumulating data: maximum, average, weighted average etc.
Definition: AccumulationMethods.h:64
Definition: CoordinateHandler.h:62
size_t address(size_t i) const
Computes the index location from image coordinates. Does not involve bit resolution.
Definition: ImageFrame.h:148
Definition: DataSelector.cpp:1277