Hugintrunk
0.1
|
functor to apply a LUT to gray and color images. More...
#include <lut.h>
Public Types | |
typedef vigra_ext::ValueTypeTraits < VTIn >::value_type | VT1 |
typedef LUT::value_type | lut_type |
the functor's first argument type More... | |
Public Member Functions | |
LUTFunctor () | |
the functor's result type More... | |
LUTFunctor (LUT &lut) | |
create a LUT functor. More... | |
lut_type | applyLutInteger (VT1 v) const |
lut_type | applyLutFloat (double v) const |
vigra::RGBValue< lut_type > | applyVector (vigra::RGBValue< VT1 > v, vigra::VigraFalseType) const |
vigra::RGBValue< lut_type > | applyVector (vigra::RGBValue< VT1 > v, vigra::VigraTrueType) const |
lut_type | applyScalar (VT1 v, vigra::VigraFalseType) const |
lut_type | applyScalar (VT1 v, vigra::VigraTrueType) const |
lut_type | apply (VT1 v, vigra::VigraTrueType) const |
vigra::RGBValue< lut_type > | apply (vigra::RGBValue< VT1 > v, vigra::VigraFalseType) const |
template<class T > | |
vigra::NumericTraits< T > ::RealPromote | operator() (T v) const |
Public Attributes | |
LUT | m_lut |
functor to apply a LUT to gray and color images.
This is a safe, and iterpolatating table lookup.
if the argument has a higher bit count than lut.size(), interpolation will take place.
This is slower, because there is a size check at runtime, which might be placed in a template parameter.
floating point values between 0..1 are mapped to min and max of the lookup table.
typedef LUT::value_type vigra_ext::LUTFunctor< VTIn, LUT >::lut_type |
typedef vigra_ext::ValueTypeTraits<VTIn>::value_type vigra_ext::LUTFunctor< VTIn, LUT >::VT1 |
|
inline |
|
inline |
|
inline |
Definition at line 220 of file lut.h.
Referenced by vigra_ext::LUTFunctor< VTInCompReal, LUTD >::operator()().
|
inline |
|
inline |
Definition at line 170 of file lut.h.
Referenced by vigra_ext::LUTFunctor< VTInCompReal, LUTD >::applyScalar(), and vigra_ext::LUTFunctor< VTInCompReal, LUTD >::applyVector().
|
inline |
Definition at line 149 of file lut.h.
Referenced by vigra_ext::LUTFunctor< VTInCompReal, LUTD >::applyScalar(), and vigra_ext::LUTFunctor< VTInCompReal, LUTD >::applyVector().
|
inline |
Definition at line 209 of file lut.h.
Referenced by vigra_ext::LUTFunctor< VTInCompReal, LUTD >::apply().
|
inline |
|
inline |
Definition at line 188 of file lut.h.
Referenced by vigra_ext::LUTFunctor< VTInCompReal, LUTD >::apply().
|
inline |
|
inline |
LUT vigra_ext::LUTFunctor< VTIn, LUT >::m_lut |
Definition at line 239 of file lut.h.
Referenced by vigra_ext::LUTFunctor< VTInCompReal, LUTD >::applyLutFloat(), vigra_ext::LUTFunctor< VTInCompReal, LUTD >::applyLutInteger(), and vigra_ext::LUTFunctor< VTInCompReal, LUTD >::applyVector().