31#ifndef ACCUMULATORGEO_H_ 
   32#define ACCUMULATORGEO_H_ 
   34#include "Accumulator.h" 
   54    void setGeometry(
unsigned int width, 
unsigned int height) {
 
   55        GeoFrame::setGeometry(width, height);
 
   66            Logger mout(__FILE__, __FUNCTION__);
 
   67            mout.
warn(
"allocation requested for empty area" );
 
 
   81    void addUnprojected(
double lon, 
double lat, 
double value, 
double weight){
 
   88            add(a, value, weight);
 
   98    std::ostream & toStream(std::ostream & ostr) 
const;
 
 
  103std::ostream & operator<<(std::ostream &ostr, 
const AccumulatorGeo & accumulator){
 
  104    return accumulator.AccumulatorGeo::toStream(ostr);
 
LogSourc e is the means for a function or any program segment to "connect" to a Log.
Definition Log.h:312
Logger & warn(const TT &... args)
Possible error, but execution can continue.
Definition Log.h:430
ImageT< double > data
Accumulation array for actual data: ,  or generally .
Definition AccumulationArray.h:179
unsigned int getHeight() const
Returns the height of the accumulation array.
Definition AccumulationArray.h:162
virtual void setGeometry(size_t width, size_t height)
Changes the geometry of all the layers.
Definition AccumulationArray.cpp:47
unsigned int getWidth() const
Returns the width of the accumulation array.
Definition AccumulationArray.h:158
Definition AccumulatorGeo.h:47
virtual void allocate()
This should be called after setGeometry, unless the projection is used as a frame.
Definition AccumulatorGeo.h:63
Definition Accumulator.h:76
void add(const size_t i, double value, double weight)
Adds decoded data that applies natural scaling.
Definition Accumulator.h:198
AccumulationArray accArray
Todo: export.
Definition Accumulator.h:131
Array with georeferencing support.
Definition GeoFrame.h:58
bool geometryIsSet() const
Return true, if array area is greater than zero.
Definition GeoFrame.h:89
virtual void deg2pix(double lon, double lat, int &i, int &j) const
Projects geographic coordinates to image coordinates.
Definition GeoFrame.h:243
size_t address(size_t i) const
Computes the index location from image coordinates. Does not involve bit resolution.
Definition ImageFrame.h:145
Definition DataSelector.cpp:1277