Public Types | Public Member Functions | Public Attributes | List of all members
ProberControl Struct Referenceabstract

Container for parameters of SegmentProber. More...

#include <ProbingControl.h>

Inheritance diagram for ProberControl:
Inheritance graph
[legend]
Collaboration diagram for ProberControl:
Collaboration graph
[legend]

Public Types

enum  move_status { MOVE_ACCEPTED =0 , COORD_ERROR =1 , DIR_ERROR =2 }
 
typedef unsigned char marker_t
 

Public Member Functions

virtual bool isVisited (const Position &pos) const
 NEW.
 
virtual void markVisited (const Position &pos)
 
void markBlockedIn (const Position &pos, Direction::value_t dir)
 Disable exit from position pos towards direction dir. More...
 
bool markBlockedOut (Position pos, Direction::value_t dir)
 Disable entry to position pos from direction dir inverted . More...
 
virtual bool isValidDir (const Position &pos, Direction::value_t dir) const
 Direction NONE is always valid,.
 
virtual bool isValidPixel (const Channel &src, const Position &pos) const =0
 
virtual move_status move (Position &pos, Direction::value_t dir) const
 

Public Attributes

CoordinateHandler2D handler
 
ImageT< marker_t > markerImage
 
marker_t visitedMarker = 0xff
 

Detailed Description

Container for parameters of SegmentProber.

Template Parameters
S- storage type of the source image data (int by default, but should be floating-type, if src is).
D- storage type of the destination image data
Author
Marku.nosp@m.s.Pe.nosp@m.ura@f.nosp@m.mi.f.nosp@m.i

Member Function Documentation

◆ markBlockedIn()

void markBlockedIn ( const Position pos,
Direction::value_t  dir 
)
inline

Disable exit from position pos towards direction dir.

Mark blocking for this position(i,j).

Parameters
pos- value parameter forwarded to direction dir
dir- direction to be inverted for marking

◆ markBlockedOut()

bool markBlockedOut ( Position  pos,
Direction::value_t  dir 
)
inline

Disable entry to position pos from direction dir inverted .

Mark inverse blocking for "pos+dir", with dir inverted 180 degrees.

Parameters
pos- value parameter forwarded to direction dir
dir- direction to be inverted for marking
Returns
- true in success, false upon coordinate overflow

The documentation for this struct was generated from the following file: