[ VIGRA Homepage | Class Index | Function Index | File Index | Main Page ]
![]() |
RGBGradientMagnitudeFunctor Class Template Reference | ![]() |
---|
#include "vigra/combineimages.hxx"
Public Types | |
typedef RGBValue< ValueType > | first_argument_type |
typedef RGBValue< ValueType > | second_argument_type |
typedef NumericTraits< ValueType >::RealPromote | result_type |
typedef ValueType | value_type |
Public Methods | |
result_type | operator() (first_argument_type const &gx, second_argument_type const &gy) const |
Detailed Description |
Traits defined:
the functor's first argument type
the functor's result type
the functor's second argument type
Calculate the gradient magnitude form given RGB components. The function returns
where
© Ullrich Köthe (koethe@informatik.uni-hamburg.de)
html generated using doxygen and Python
FunctorTraits::isBinaryFunctor
are true (VigraTrueType
)
Member Typedef Documentation
typedef RGBValue<ValueType> first_argument_type
typedef NumericTraits<ValueType>::RealPromote result_type
typedef RGBValue<ValueType> second_argument_type
typedef ValueType value_type
Member Function Documentation
result_type operator()
(
first_argument_type const &
gx,
second_argument_type const &
gy
)
const
[inline]
is defined by
gx.red()*gx.red() + gy.red()*gy.red()
.
ValueType
(the RGB's component type) must support addition, multiplication, abd sqrt()
.
The documentation for this class was generated from the following file:
Cognitive Systems Group,
University of Hamburg, Germany
VIGRA 1.4.0 (21 Dec 2005)