31 #ifndef DISTANCEMODEL_EXP_H_
32 #define DISTANCEMODEL_EXP_H_
38 #include "DistanceModel.h"
60 setRadius(horzRadius.forward, vertRadius.forward);
63 void setRadius(
float horz,
float vert = nan_f,
float horzLeft = nan_f,
float vertUp = nan_f);
66 void setDecrement(
float horz,
float vert = nan_f,
float horzRight = nan_f,
float vertUp = nan_f);
69 DistanceElement getElement(
short dx,
short dy,
bool forward=
true)
const;
73 float decrease(
float value,
float coeff)
const {
79 float radius2Dec(
float r,
float rDefault = -1.0)
const;
81 float checkDec(
float d,
float dDefault = 0.75)
const;
Definition: DistanceModel.h:76
Definition: DistanceModelExponential.h:55
void setRadius(float horz, float vert=nan_f, float horzLeft=nan_f, float vertUp=nan_f)
Sets the geometry of the distance model.
Definition: DistanceModelExponential.cpp:54
void setDecrement(float horz, float vert=nan_f, float horzRight=nan_f, float vertUp=nan_f)
Definition: DistanceModelExponential.cpp:106
Base class for linear and exponential distances in rectangular pixel images.
Definition: DistanceModel.h:123
DistanceModel(const std::string &name, const std::string &description="")
Base class for digital distance models. Supports 4-, 8- and extended "chess knight" distance.
Definition: DistanceModel.h:254
Definition: DataSelector.cpp:1277