[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
|
RGBGradientMagnitudeFunctor [Functors to Combine Images] |
![]() |
#include <vigra/combineimages.hxx>
Public Types | |
| typedef RGBValue< ValueType > | first_argument_type |
| typedef NumericTraits < ValueType >::RealPromote | result_type |
| typedef RGBValue< ValueType > | second_argument_type |
| typedef ValueType | value_type |
Public Member Functions | |
| result_type | operator() (first_argument_type const &gx, second_argument_type const &gy) const |
Traits defined:
FunctorTraits::isBinaryFunctor are true (VigraTrueType)
| typedef RGBValue<ValueType> first_argument_type |
the functor's first argument type
| typedef NumericTraits<ValueType>::RealPromote result_type |
the functor's result type
| typedef RGBValue<ValueType> second_argument_type |
the functor's second argument type
| typedef ValueType value_type |
| result_type operator() | ( | first_argument_type const & | gx, | |
| second_argument_type const & | gy | |||
| ) | const |
Calculate the gradient magnitude form given RGB components. The function returns
where
is defined by gx.red()*gx.red() + gy.red()*gy.red().
ValueType (the RGB's component type) must support addition, multiplication, abd sqrt().
|
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|