32 #ifndef GapFillerOP_H_
33 #define GapFillerOP_H_
35 #include <drain/image/ImageFile.h>
36 #include "drain/util/Fuzzy.h"
37 #include "drain/image/Intensity.h"
39 #include "radar/Geometry.h"
40 #include "RemoverOp.h"
65 double expansionCoeff;
71 GapFillOpBase(
const std::string &name,
const std::string &description) :
73 dataSelector.setQuantities(
"^DBZH$");
79 throw std::runtime_error(name +
"::"+__FUNCTION__+
" not implemented");
100 GapFillOpBase(__FUNCTION__,
"Removes low-quality data with gap fill based on distance transformation.") {
101 parameters.link(
"width", this->widthM = width,
"meters");
102 parameters.link(
"height", this->heightD = height,
"degrees");
105 parameters.link(
"qualityThreshold", this->qualityThreshold = 0.1,
"0.0...1.0");
117 double qualityThreshold;
128 GapFillRecOp(
int width=1500,
float height=5.0,
int loops=3) :
129 GapFillOpBase(__FUNCTION__,
"Recursive, 'splinic' gap filler.") {
130 parameters.link(
"width", this->widthM = width,
"meters");
131 parameters.link(
"height",this->heightD = height,
"degrees");
132 parameters.link(
"loops", this->loops = loops,
"N");
Data structure consisting of plain data and an optional quality data.
Definition: Data.h:1144
The base class for operators removing detected anomalies by overriding low-quality pixels with neighb...
Definition: GapFillOp.h:55
virtual void processData(const Data< PolarSrc > &srcData, Data< PolarDst > &dstData) const
Cleaning a the data array of one quantity (measurement parameter). Called by processDataSet.
Definition: GapFillOp.h:78
A simple gap filler based on distance transformation.
Definition: GapFillOp.h:91
virtual void processData(const PlainData< PolarSrc > &srcData, const PlainData< PolarSrc > &srcQuality, PlainData< PolarDst > &dstData, PlainData< PolarDst > &dstQIND) const
TODO: move to data tools etc?
Definition: GapFillOp.cpp:62
GapFillOp(int width=1500, float height=5.0)
Definition: GapFillOp.h:99
Recursive, 'splinic' gap filler based on fast averaging.
Definition: GapFillOp.h:123
Essential class for storing radar data.
Definition: Data.h:302
The simplest possible anomaly removal operator and the base class for more complex ones.
Definition: RemoverOp.h:53
RemoverOp(double threshold=0.5)
Definition: RemoverOp.h:61
Definition: DataSelector.cpp:44