|
| Etop2Window (const RadarWindowConfig &conf) |
|
void | setSrc (const drain::image::Image &srcGradient, const drain::image::Image &srcCoeff) |
|
void | setDst (PlainData< PolarDst > &dstHeight, PlainData< PolarDst > &dstReflectivity) |
|
void | initialize () final |
| Sets class-specific initial values. Does not change general window state (e.g. location). Should not accumulate any statistics. More...
|
|
void | setImageLimits () const final |
| Sets internal limits corresponding to image geometries. Typically using coordHandler. More...
|
|
virtual void | addPixel (drain::Point2D< int > &p) override |
|
virtual void | removePixel (drain::Point2D< int > &p) override |
| Removes a pixel from window statistics. Unvalidated location. More...
|
|
virtual void | write () final |
| Write the result in the target image. More...
|
|
| SlidingWindow (int width=0, int height=0, bool horzMultiple=true, bool vertMultiple=true) |
|
| SlidingWindow (const RadarWindowConfig &conf, bool horzMultiple=true, bool vertMultiple=true) |
|
void | setSlidingMode (bool horzMultiple, bool vertMultiple) |
|
void | run () |
| Sets coord handler, calls initialise, sets pos(0,0), fills, writes and slides. More...
|
|
void | runHorz () |
| Sets coord handler, calls initialise, sets pos(0,0), fills, writes and slides. More...
|
|
void | runVert () |
| Sets coord handler, calls initialise, sets pos(0,0), fills, writes and slides. More...
|
|
virtual void | debug () |
|
const std::string & | getModeStr () |
|
| Window (size_t width=1, size_t height=0) |
| Constructor with geometry setting option.
|
|
| Window (const C &conf) |
| Constructor adapting given configuration.
|
|
| Window (const Window &window) |
|
virtual | ~Window () |
| Destructor.
|
|
virtual void | setSize (size_t width, size_t height) |
| Sets the window size.
|
|
size_t | getArea () |
| Returns the nominal area in pixels.
|
|
size_t | getSamplingArea () |
| Returns the area which has eventually been scaled (in a non-linear coordinate system)
|
|
virtual void | toStream (std::ostream &ostr) const |
|
virtual void | setSrcFrames (const ImageTray< const Channel > &srcTray) |
|
virtual void | setDstFrames (ImageTray< Channel > &dstTray) |
|
virtual void | setSrcFrameWeight (const ImageFrame &srcW) |
|
virtual void | setDstFrameWeight (ImageFrame &dstW) |
|
virtual void | setSrcFrame (const ImageFrame &src) |
|
virtual void | setDstFrame (ImageFrame &dst) |
|
|
typedef C | conf_t |
|
virtual bool | reset () |
| Returns false, if traversal should be ended.
|
|
void | slideHorz () |
| High-level functionality of a sliding window. FINAL.
|
|
void | slideVert () |
| High-level functionality of a sliding window. FINAL.
|
|
bool | moveDown () |
| Moves one pixel down. Stops at the edge, and returns false. More...
|
|
bool | moveUp () |
| Moves one pixel up. Stops at the edge, and returns false. More...
|
|
bool | moveRight () |
| Moves one pixel right. Stops at the edge, and returns false. More...
|
|
bool | moveLeft () |
| Moves one pixel left. Stops at the edge, and returns false. More...
|
|
virtual void | clear () |
| Clears the applied statistics. Redefined in derived classes.
|
|
virtual void | fillBoth () |
| Clears and computes the statistics for the current location. More...
|
|
void | fillHorz () |
| Clears and computes the statistics for the current location. FINAL. More...
|
|
void | fillVert () |
| Clears and computes the statistics for the current location. FINAL. More...
|
|
void | updateHorzMultiple () |
| In moving horizontally, updates the window centered at current location. Calls removePixel() and addPixel().
|
|
void | updateHorzSingle () |
|
void | updateVertMultiple () |
| In moving vertically, updates the window centered at current location. Calls removePixel() and addPixel().
|
|
void | updateVertSingle () |
| For 1 x n sized windows.
|
|
virtual bool | isHorizontal () const |
| Tells if the window should be moved (traversed of slided) row-by-row (horizontally) or column-by-column (vertically). More...
|
|
virtual void | update () |
| At each location, this is called to calculate and store something in members.
|
|
virtual void | setLoopLimits (int width, int height) |
| Sets the actual traversal range inside the window. Sometimes applied dynamically by reset().
|
|
void | setLoopLimits () |
| Sets the actual traversal range inside the window. Sometimes applied dynamically by reset().
|
|
bool | debugDiag (int bit=4) |
|
Removes a pixel from window statistics. Unvalidated location.
Updates class-specific window statistics by removing a pixel value - typically at the trailing edge of the window.
\param p - location at which contribution should be removed
const int h = (conf.height>0.0) ? conf.height : conf.width;
GaussianStripeVert window2(h, 0.5*conf.radius*static_cast{double}(h)); GaussianStripe2<false> window2(h, 0.5*conf.radius*static_cast{double}(h));
The argument p is \em not validated in advance but
it should be checked within the implementation using coordinateHandler.validate(p), for example.
Implements SlidingWindow< RadarWindowConfig, EtopWindowCore >.
Write the result in the target image.
Sliding windows enjoys a confidence of the application, as it has the
|a bc| = |N -sumHd | |bc d| |-sumHd sumHd2|
|A BC| = div * | d -bc| |BC D| |-bc a|
Implements SlidingWindow< RadarWindowConfig, EtopWindowCore >.