1#ifndef ZeroBufferSmooth_h
2#define ZeroBufferSmooth_h
68 Module(
"ZeroBufferSmooth") {
97 void init(
HiCalData &cal,
const HiCalConf &conf) {
102 int samp0 =
toInt(
ConfKey(prof,
"ZeroBufferSmoothFirstSample",QString(
"0")));
103 int sampN =
toInt(
ConfKey(prof,
"ZeroBufferSmoothLastSample",QString(
"11")));
109 toInt(
ConfKey(prof,
"ZeroBufferSmoothFilterWidth",QString(
"201"))),
110 toInt(
ConfKey(prof,
"ZeroBufferSmoothFilterIterations",QString(
"2"))));
113 _data = spline.ref();
118 for (
int i = 0 ; i <
_data.dim() ; i++ ) {
136 virtual void printOn(std::ostream &o)
const {
137 o <<
"# History = " <<
_history << std::endl;
140 << std::setw(
_fmtWidth+1) <<
"Filtered\n";
142 for (
int i = 0 ; i <
_data.dim() ; i++) {
A DbProfile is a container for access parameters to a database.
Definition DbProfile.h:51
Container for HiRISE calibration data.
Definition HiCalData.h:35
void clear()
Definition HiCalTypes.h:65
void add(const QString &event)
Definition HiCalTypes.h:55
Compute a low pass filter from a Module class content.
Definition LowPassFilter.h:30
Module manages HiRISE calibration vectors from various sources.
Definition Module.h:39
HiVector _data
Data vector.
Definition Module.h:151
HiHistory _history
Hierarchial component history.
Definition Module.h:152
int _fmtWidth
Default field with of double.
Definition Module.h:153
QString formatDbl(const double &value) const
Properly format values that could be special pixels.
Definition Module.h:169
Compute a low pass filter from a Module class content.
Definition SplineFill.h:32
This class is used to accumulate statistics on double arrays.
Definition Statistics.h:94
double Average() const
Computes and returns the average.
Definition Statistics.cpp:300
void AddData(const double *data, const unsigned int count)
Add an array of doubles to the accumulators and counters.
Definition Statistics.cpp:141
double StandardDeviation() const
Computes and returns the standard deviation.
Definition Statistics.cpp:312
void Reset()
Reset all accumulators and counters to zero.
Definition Statistics.cpp:113
Processes Buffer calibration data (ZeroBufferSmooth Module)
Definition ZeroBufferSmooth.h:53
ZeroBufferSmooth()
Definition ZeroBufferSmooth.h:57
virtual ~ZeroBufferSmooth()
Destructor.
Definition ZeroBufferSmooth.h:73
const Statistics & Stats() const
Return statistics for filtered - raw Buffer.
Definition ZeroBufferSmooth.h:80
ZeroBufferSmooth(HiCalData &cal, const HiCalConf &conf)
Construct with data parameters.
Definition ZeroBufferSmooth.h:67
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16
int toInt(const QString &string)
Global function to convert from a string to an integer.
Definition IString.cpp:93
HiVector averageSamples(const HiMatrix &m, int ssamp=0, int esamp=-1)
Reduces by averaging specified samples from a buffer.
Definition HiCalUtil.h:182
T ConfKey(const DbProfile &conf, const QString &keyname, const T &defval, int index=0)
Find a keyword in a profile using default for non-existant keywords.
Definition HiCalUtil.h:205
bool IsSpecial(const double d)
Returns if the input pixel is special.
Definition SpecialPixel.h:197
TNT::Array1D< double > HiVector
1-D Buffer
Definition HiCalTypes.h:27
QString ToString(const T &value)
Helper function to convert values to strings.
Definition HiCalUtil.h:246