Hugintrunk
0.1
|
functor to apply a LUT to gray and color images. More...
#include <lut.h>
Public Types | |
typedef LUT::value_type | lut_type |
the functor's first argument type More... | |
Public Member Functions | |
InvLUTFunctor () | |
the functor's result type More... | |
InvLUTFunctor (LUT &lut) | |
create a LUT functor. More... | |
lut_type | applyLutFloat (lut_type v) const |
template<class T > | |
lut_type | applyLutInteger (T i) const |
template<class T > | |
vigra::RGBValue< lut_type > | applyVector (vigra::RGBValue< T > v, vigra::VigraFalseType) const |
template<class T > | |
vigra::RGBValue< lut_type > | applyVector (vigra::RGBValue< T > v, vigra::VigraTrueType) const |
template<class T > | |
lut_type | applyScalar (T v, vigra::VigraFalseType) const |
template<class T > | |
lut_type | applyScalar (T v, vigra::VigraTrueType) const |
template<class T > | |
lut_type | apply (T v, vigra::VigraTrueType) const |
template<class T > | |
vigra::RGBValue< lut_type > | apply (vigra::RGBValue< T > 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 functor works by using a binary search and does linear interpolation.
floating point values between 0..1 are mapped to min and max of the lookup table.
integers are also mapped to 0..1 before applying the lut.
typedef LUT::value_type vigra_ext::InvLUTFunctor< VT1, LUT >::lut_type |
|
inline |
|
inline |
|
inline |
Definition at line 350 of file lut.h.
References vigra_ext::InvLUTFunctor< VT1, LUT >::applyScalar().
Referenced by vigra_ext::InvLUTFunctor< VT1, LUT >::operator()().
|
inline |
Definition at line 357 of file lut.h.
References vigra_ext::InvLUTFunctor< VT1, LUT >::applyVector().
|
inline |
Definition at line 275 of file lut.h.
References vigra_ext::InvLUTFunctor< VT1, LUT >::m_lut.
Referenced by vigra_ext::InvLUTFunctor< VT1, LUT >::applyLutInteger(), vigra_ext::InvLUTFunctor< VT1, LUT >::applyScalar(), and vigra_ext::InvLUTFunctor< VT1, LUT >::applyVector().
|
inline |
Definition at line 308 of file lut.h.
References vigra_ext::InvLUTFunctor< VT1, LUT >::applyLutFloat(), and celeste::max().
Referenced by vigra_ext::InvLUTFunctor< VT1, LUT >::applyScalar(), and vigra_ext::InvLUTFunctor< VT1, LUT >::applyVector().
|
inline |
Definition at line 337 of file lut.h.
References vigra_ext::InvLUTFunctor< VT1, LUT >::applyLutFloat().
Referenced by vigra_ext::InvLUTFunctor< VT1, LUT >::apply().
|
inline |
Definition at line 344 of file lut.h.
References vigra_ext::InvLUTFunctor< VT1, LUT >::applyLutInteger().
|
inline |
Definition at line 316 of file lut.h.
References vigra_ext::InvLUTFunctor< VT1, LUT >::applyLutFloat().
Referenced by vigra_ext::InvLUTFunctor< VT1, LUT >::apply().
|
inline |
Definition at line 326 of file lut.h.
References vigra_ext::InvLUTFunctor< VT1, LUT >::applyLutInteger().
|
inline |
Definition at line 364 of file lut.h.
References vigra_ext::InvLUTFunctor< VT1, LUT >::apply().
LUT vigra_ext::InvLUTFunctor< VT1, LUT >::m_lut |
Definition at line 370 of file lut.h.
Referenced by vigra_ext::InvLUTFunctor< VT1, LUT >::applyLutFloat().