31 #ifndef DISTANCEMODEL_LIN_H_
32 #define DISTANCEMODEL_LIN_H_
38 #include <drain/Type.h>
40 #include "DistanceModel.h"
60 void setRadius(
float horz,
float vert = nan_f,
float horzLeft = nan_f,
float vertUp = nan_f);
63 void setDecrement(
float horz,
float vert = nan_f,
float horzLeft = nan_f,
float vertUp = nan_f);
66 DistanceElement getElement(
short dx,
short dy,
bool forward=
true)
const;
70 float decrease(
float value,
float coeff)
const {
76 float radius2Dec(
float r,
float rDefault)
const;
78 float checkDec(
float d,
float dDefault = 1.0)
const;
Definition: DistanceModel.h:76
Definition: DistanceModelLinear.h:51
void setRadius(float horz, float vert=nan_f, float horzLeft=nan_f, float vertUp=nan_f)
Definition: DistanceModelLinear.cpp:53
void setDecrement(float horz, float vert=nan_f, float horzLeft=nan_f, float vertUp=nan_f)
Definition: DistanceModelLinear.cpp:105
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