[ 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
![\[ \sqrt{|\nabla red|^2 + |\nabla green|^2 + |\nabla blue|^2} \]](form_36.png) 
where  is defined by
 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
 |