26 #include <vigra/functorexpression.hxx>
29 #include <vigra/combineimages.hxx>
31 namespace deghosting {
35 template <
class PixelType>
50 template <
class ComponentType>
55 vigra::RGBValue<ComponentType>
operator()(vigra::RGBValue<ComponentType>
const& v)
const {
56 vigra::RGBValue<ComponentType> retVal;
70 template <
class PixelType>
76 PixelType t = (v/127.5 -1);
89 template <
class ComponentType>
94 ComponentType
operator()(vigra::RGBValue<ComponentType> v)
const {
95 ComponentType t = (v.luminance()/127.5 -1);
106 template <
class PixelType>
122 template <
class ComponentType>
125 NormalizeFunctor(vigra::RGBValue<ComponentType> oldMaxValue, vigra::RGBValue<ComponentType> newMaxValue) {
129 vigra::RGBValue<ComponentType>
operator()(vigra::RGBValue<ComponentType>
const &v) {
133 vigra::RGBValue<ComponentType>
foo;
vigra::RGBValue< ComponentType > operator()(vigra::RGBValue< ComponentType > const &v) const
PixelType operator()(PixelType v) const
NormalizeFunctor(vigra::RGBValue< ComponentType > oldMaxValue, vigra::RGBValue< ComponentType > newMaxValue)
vigra::RGBValue< ComponentType > foo
LogarithmFunctor(ComponentType off=0)
LogarithmFunctor(PixelType off=0)
NormalizeFunctor(PixelType f)
vigra::RGBValue< ComponentType > operator()(vigra::RGBValue< ComponentType > const &v)
Fuctor to normalize values.
NormalizeFunctor(PixelType oldMaxValue, PixelType newMaxValue)
ComponentType operator()(vigra::RGBValue< ComponentType > v) const
vigra::RGBValue< T, RIDX, GIDX, BIDX > log(vigra::RGBValue< T, RIDX, GIDX, BIDX > const &v)
component-wise logarithm
Functor to apply mexican hat function returns very small values for input near to 0 or 255...
PixelType operator()(PixelType const &v) const
PixelType operator()(PixelType const &v) const