|
void | setRadius (float horz, float vert=nan_f, float horzLeft=nan_f, float vertUp=nan_f) |
| Sets the geometry of the distance model. More...
|
|
void | setDecrement (float horz, float vert=nan_f, float horzRight=nan_f, float vertUp=nan_f) |
|
virtual DistanceElement | getElement (short dx, short dy, bool forward=true) const |
|
virtual float | decrease (float value, float coeff) const |
|
void | setMax (float maxCodeValue) |
| Set maximum (expected) code value. Radii, if given, will set pixel-to-pixel decrements scaled to this value.
|
|
float | getMax () const |
| Returns the maximum (expected) code value.
|
|
void | setRadiusVerbatim (float horz, float vert=nan_f, float horzLeft=nan_f, float vertUp=nan_f) |
| Simply copies values, does not try to set defaults.
|
|
const Bidirectional< float > & | getRadiusHorz () const |
|
const Bidirectional< float > & | getRadiusVert () const |
|
void | update () |
|
virtual void | updateBean () const override |
| Called after setParameters()
|
|
void | setTopology (PIXEL_ADJACENCY topology) |
| Sets the topology of the computation grid: 0=diamond, 1=diagonal, 2=extended (chess knight steps)
|
|
void | setTopology (const std::string &topology) |
|
void | createChain (DistanceNeighbourhood &chain, PIXEL_ADJACENCY topology=PIXEL_ADJACENCY::KNIGHT, bool forward=true) const |
| Creates a list of DistanceElements. More...
|
|
void | createChain (DistanceNeighbourhood &chain, bool forward=true) const |
|
virtual const std::string & | getName () const |
| Return the name of an instance.
|
|
virtual const std::string & | getDescription () const |
| Return a brief description.
|
|
bool | hasParameters () const |
|
template<class F > |
F | getParameter (const std::string &p) const |
| Gets a single parameter.
|
|
const ReferenceMap & | getParameters () const |
|
ReferenceMap & | getParameters () |
|
template<class F > |
void | setParametersFromEntries (const F &args) |
|
void | setParameters (std::initializer_list< Variable::init_pair_t > args) |
| Grants access to (if above hidden)
|
|
virtual void | setParameters (const std::string &p, char assignmentSymbol='=', char separatorSymbol=0) |
| Sets comma-separated parameters in a predetermined order "a,b,c" or by specifing them "b=2". More...
|
|
template<class T > |
void | setParameters (const std::map< std::string, T > &args) |
| Set parameters.
|
|
template<class T > |
void | setParameters (const SmartMap< T > &args) |
| Set parameters.
|
|
void | setParameter (const std::string &p, const Castable &value) |
| Sets a single parameter.
|
|
template<class T > |
void | setParameter (const std::string &p, const VariableT< T > &value) |
|
template<class F > |
void | setParameter (const std::string &p, const F &value) |
| Sets a single parameter. More...
|
|
template<class F > |
void | setParameter (const std::string &p, std::initializer_list< F > value) |
| Sets a single parameter.
|
|
BeanLike & | operator= (const BeanLike &b) |
|
virtual std::ostream & | toStream (std::ostream &ostr, bool compact=true) const |
|
| BeanLike (const BeanLike &b) |
|
| BeanLike (const std::string &name, const std::string &description="") |
|
In this model, the diagonal decay is computed as $ d_d = \log - \sqrt { \log^2 d_x + \log^2 d_x)) } ; $ because $ d_d = \log - \sqrt { \log^2 d_x + \log^2 d_x)) } ; $