32 #ifndef ANDRE_DETECTOR2_H_
33 #define ANDRE_DETECTOR2_H_
36 #include <main/palette-manager.h>
66 DetectorOp(
const std::string & name = __FUNCTION__,
const std::string & description =
"",
const std::string & echoClass =
"") :
67 AndreOp(name,description), classEntry(
PaletteManager::getPalette(
"CLASS").getEntryByCode(echoClass)) {
74 dataSelector.setQuantities(
"DBZH:DBZ");
76 REQUIRE_STANDARD_DATA =
true;
87 DetectorOp(
const DetectorOp & op) :
AndreOp(op), classEntry(op.classEntry), UNIVERSAL(op.UNIVERSAL), REQUIRE_STANDARD_DATA(op.REQUIRE_STANDARD_DATA) {};
97 const std::string & getOutputQuantity(
const std::string & inputQuantity =
"")
const;
99 static bool SUPPORT_UNIVERSAL;
120 runDetection(srcVolume, dstVolume);
161 mout.
unimplemented(
"function ", __FUNCTION__,
" not implemented for ", getName());
162 mout.
error(
"stopping");
174 mout.special(__FUNCTION__,
" now, here!");
177 runDetector(srcData, dstData);
195 void storeDebugData(
int debugLevel,
const ImageFrame & srcImage,
const std::string & label)
const;
207 unsigned short int _count;
209 mutable std::string upperCaseName;
228 void _enhanceDirectionally(
Image & data,
float medianPos,
int windowWidth)
const;
230 void _infect(
Image & data,
int windowWidth,
int windowHeight,
double enhancement)
const;
LogSourc e is the means for a function or any program segment to "connect" to a Log.
Definition: Log.h:308
Logger & error(const TT &... args)
Echoes.
Definition: Log.h:412
Logger & unimplemented(const TT &... args)
Feature to be done. Special type of Logger::note().
Definition: Log.h:507
Image with static geometry.
Definition: ImageFrame.h:67
Class for multi-channel digital images. Supports dynamic typing with base types (char,...
Definition: Image.h:184
The base class for detector and removal operators.
Definition: AndreOp.h:55
A map of radar data, indexed by quantity code (DBZH, VRAD, etc).
Definition: Data.h:1213
Data structure consisting of plain data and an optional quality data.
Definition: Data.h:1144
Base class for anomaly detectors.
Definition: DetectorOp.h:49
const drain::image::Palette::value_type & classEntry
Index applied in the legend of the classification results.
Definition: DetectorOp.h:105
virtual void computeProducts(const DataSetMap< PolarSrc > &srcVolume, DataSetMap< PolarDst > &dstVolume) const
Definition: DetectorOp.h:117
DetectorOp(const std::string &name=__FUNCTION__, const std::string &description="", const std::string &echoClass="")
Definition: DetectorOp.h:66
virtual void runDetector(const PlainData< PolarSrc > &srcData, PlainData< PolarDst > &dstProb) const
Process as sweep (data in one elevation angle)
Definition: DetectorOp.h:159
bool REQUIRE_STANDARD_DATA
Set to true if operator expects fixed background intensities instead of "nodata" defined by the Polar...
Definition: DetectorOp.h:219
bool UNIVERSAL
If true, applies also to quantities str than the one used in detection. The detection and the accumul...
Definition: DetectorOp.h:178
Essential class for storing radar data.
Definition: Data.h:302
Namespace for images and image processing tools.
Definition: AccumulationArray.cpp:45
Definition: DataSelector.cpp:44
Definition: palette-manager.h:41