DGtal
1.5.beta
|
Aim: Functor allowing to rescale a value. Values of the initial scale [initMin,initMax] are rescaled to the new scale [newMin,newMax]. More...
#include <DGtal/base/BasicFunctors.h>
Public Member Functions | |
Rescaling (const TInputType &initMin, const TInputType &initMax, const TOutputType &newMin, const TOutputType &newMax) | |
TOutputType | operator() (const TInputType &anInitVal) const |
Data Fields | |
TInputType | myInitMin |
TInputType | myInitMax |
TInputType | myInitRange |
TOutputType | myNewMin |
TOutputType | myNewMax |
TOutputType | myNewRange |
Aim: Functor allowing to rescale a value. Values of the initial scale [initMin,initMax] are rescaled to the new scale [newMin,newMax].
Description of template class 'Rescaling'
TInputType | the type of values on the inital scale. |
TOutputType | the type of values on the new scale. |
Definition at line 905 of file BasicFunctors.h.
|
inline |
Constructor.
initMin | the minimum value of the initial scale. Lower values are set to this value. |
initMax | the maximum value of the initial scale. Greater values are set to this value. |
newMin | the minimum value of the new scale. |
newMax | the maximum value of the new scale. |
Definition at line 923 of file BasicFunctors.h.
|
inline |
Operator.
anInitVal | value of the initial scale. |
Definition at line 934 of file BasicFunctors.h.
References DGtal::functors::Rescaling< TInputType, TOutputType >::myInitMax, DGtal::functors::Rescaling< TInputType, TOutputType >::myInitMin, DGtal::functors::Rescaling< TInputType, TOutputType >::myInitRange, DGtal::functors::Rescaling< TInputType, TOutputType >::myNewMax, DGtal::functors::Rescaling< TInputType, TOutputType >::myNewMin, and DGtal::functors::Rescaling< TInputType, TOutputType >::myNewRange.
TInputType DGtal::functors::Rescaling< TInputType, TOutputType >::myInitMax |
Definition at line 908 of file BasicFunctors.h.
Referenced by DGtal::functors::Rescaling< TInputType, TOutputType >::operator()().
TInputType DGtal::functors::Rescaling< TInputType, TOutputType >::myInitMin |
Definition at line 907 of file BasicFunctors.h.
Referenced by DGtal::functors::Rescaling< TInputType, TOutputType >::operator()().
TInputType DGtal::functors::Rescaling< TInputType, TOutputType >::myInitRange |
Definition at line 909 of file BasicFunctors.h.
Referenced by DGtal::functors::Rescaling< TInputType, TOutputType >::operator()().
TOutputType DGtal::functors::Rescaling< TInputType, TOutputType >::myNewMax |
Definition at line 912 of file BasicFunctors.h.
Referenced by DGtal::functors::Rescaling< TInputType, TOutputType >::operator()().
TOutputType DGtal::functors::Rescaling< TInputType, TOutputType >::myNewMin |
Definition at line 911 of file BasicFunctors.h.
Referenced by DGtal::functors::Rescaling< TInputType, TOutputType >::operator()().
TOutputType DGtal::functors::Rescaling< TInputType, TOutputType >::myNewRange |
Definition at line 913 of file BasicFunctors.h.
Referenced by DGtal::functors::Rescaling< TInputType, TOutputType >::operator()().