32 #ifndef DOPPLER_Inversion_WINDOW_H_
33 #define DOPPLER_Inversion_WINDOW_H_
40 #include "RadarWindows.h"
96 pTmp.setLocation(p.x, p.y - 1);
97 if (!this->coordinateHandler.
validate(pTmp))
99 const double d1 = src.
get<
double>(pTmp);
101 pTmp.setLocation(p.x, p.y + 1);
102 if (!this->coordinateHandler.
validate(pTmp))
104 const double d2 = src.
get<
double>(pTmp);
106 if (odimSrc.deriveDifference(d1, d2, diff)){
123 std::string functorSetup;
164 bool isDiag(
int step)
const {
bool validate(Point2D< int > &p) const
Handles the coordinate, returning true if the position is reversible.
Definition: CoordinateHandler.h:223
T get(size_t i) const
Gets the intensity at location i. See address().
Definition: ImageFrame.h:254
ImageFrame that also has channels.
Definition: ImageView.h:52
void setView(const ImageFrame &src)
Views the whole image.
Definition: ImageView.h:65
Class for multi-channel digital images. Supports dynamic typing with base types (char,...
Definition: Image.h:184
Point2D< int > location
Current location of this window.
Definition: Window.h:520
Definition: DopplerInversionWindow.h:46
Definition: DopplerInversionWindow.h:56
Definition: DopplerInversionWindow.h:253
Definition: DopplerInversionWindow.h:61
drain::UnaryFunctor * functor
Handling altitude.
Definition: DopplerInversionWindow.h:129
virtual void removePixel(drain::Point2D< int > &p)
Removes the pixel located at (p.x,p.y) from the window statistic/quantity.
Definition: DopplerInversionWindow.cpp:164
virtual void initialize()
Sets class-specific initial values. Does not change general window state (e.g. location)....
Definition: DopplerInversionWindow.cpp:54
virtual void addPixel(drain::Point2D< int > &p)
Add the pixel located at (p.x,p.y) to the window statistic/quantity.
Definition: DopplerInversionWindow.cpp:122
virtual void removeTrailingValue(double x)
Handles the converted (natural-scaled) value.
Definition: DopplerInversionWindow.h:138
bool getDerivative(const drain::Point2D< int > &p, double &diff, bool debug=false) const
Computes the derivative (m/s)/beam. Often rescaled with beam width.
Definition: DopplerInversionWindow.h:92
virtual void addLeadingValue(double x)
Handles the converted (natural-scaled) value.
Definition: DopplerInversionWindow.h:135
virtual void write()
Write the result in the target image.
Definition: DopplerInversionWindow.cpp:203
virtual void clear()
Clears the applied statistics. Redefined in derived classes.
Definition: DopplerInversionWindow.cpp:279
Metadata structure for single-radar data (polar scans, volumes and products).
Definition: PolarODIM.h:45
Definition: RadarWindows.h:112
RadarWindowConfig(int widthM=1500, double heightD=3.0, double contributionThreshold=0.5, bool invertPolar=false, bool relativeScale=false)
Definition: RadarWindows.h:130
Definition: RadarWindows.h:311
Definition: DataSelector.cpp:44
Definition: Functor.h:116