34#include <drain/UniTuple.h>
39#include "ImpulseResponseOp.h"
54 Decay2(
double decay = 1.0) : forward(this->next()), backward(this->next()) {
70 Decay4(T decay=0.5) : horz(this->tuple(), 0), vert(this->tuple(), 2) {
75 Decay4(
const Decay4 & r) : horz(this->tuple(), 0), vert(this->tuple(), 2){
80 this->set(decay.tuple());
95 this->
parameters.link(
"decayHorz", decays.horz.tuple()).fillArray =
true;
96 this->
parameters.link(
"decayVert", decays.vert.tuple()).fillArray =
true;
104 this->
parameters.link(
"decayHorz", decays.horz.tuple()).fillArray =
true;
105 this->
parameters.link(
"decayVert", decays.vert.tuple()).fillArray =
true;
149 decays = conf.decays;
160 void addLeft(
int i,
double value,
double weight);
164 void addRight(
int i,
double value,
double weight);
168 void addDown(
int i,
double value,
double weight);
172 void addUp(
int i,
double value,
double weight);
194 inline void set(
double value,
double weight){
196 this->weight = weight;
206 void update(entry & curr, entry & acc,
double decay);
214 typedef std::vector<entryPair> container;
220 entryPair accumulated;
Something which has a name, a description and possibly some parameters of varying type.
Definition BeanLike.h:58
map_t parameters
Parameters (name -> linked variable), typically linked to member variables of the derived class.
Definition BeanLike.h:313
void fill(T i)
Set all the elements to i.
Definition TupleBase.h:315
Tuple of N elements of type T.
Definition UniTuple.h:65
Linear scaling and physical range for image intensities.
Definition ValueScaling.h:63
Image with static geometry.
Definition ImageChannel.h:58
Definition ImpulseAvgOp.h:47
Averaging operator. A simple example implementation of ImpulseBucket.
Definition ImpulseAvgOp.h:132
virtual void addUp(int i, double value, double weight)
Accumulate encoded value.
Definition ImpulseAvgOp.cpp:105
virtual void init(const Channel &src, bool horizontal)
Adapt to input geometry, type, and scaling.
Definition ImpulseAvgOp.cpp:41
virtual double getWeight(int i)
Return weight at position i.
Definition ImpulseAvgOp.cpp:114
virtual void addRight(int i, double value, double weight)
Accumulate encoded value.
Definition ImpulseAvgOp.cpp:93
virtual double get(int i)
Return natural (not encoded) value at position i.
Definition ImpulseAvgOp.cpp:119
virtual void addLeft(int i, double value, double weight)
Accumulate encoded value.
Definition ImpulseAvgOp.cpp:87
virtual void addDown(int i, double value, double weight)
Accumulate encoded value.
Definition ImpulseAvgOp.cpp:99
virtual void reset()
Clear statistics before traversing each row or column.
Definition ImpulseAvgOp.cpp:55
Definition ImpulseResponseOp.h:55
Definition ImpulseAvgOp.h:65
Definition ImpulseAvgOp.h:90