vigra - MagnitudeFunctor< ValueType > Class Template Reference

[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]

| MagnitudeFunctor< ValueType > Class Template Reference Functors to Combine Images |

`#include <vigra/combineimages.hxx>`

## Public Types
typedef ValueType | first_argument_type
typedef SquareRootTraits < typename NormTraits < ValueType >::SquaredNormType > ::SquareRootResult | result_type
typedef ValueType | second_argument_type
typedef ValueType | value_type

## Public Member Functions
result_type | operator() (first_argument_type const &v1, second_argument_type const &v2) const

## Detailed Description

### template<class ValueType>
class vigra::MagnitudeFunctor< ValueType >

Calculate the magnitude from two arguments. Can be used in conjunction with gradientBasedTransform().

If the gradient is represented by a vector-valued image instead of a pair of scalar images, use vigra::VectorNormFunctor.

Traits defined:

`FunctorTraits::isBinaryFunctor` are true (`VigraTrueType`)

## Member Typedef Documentation

typedef ValueType first_argument_type

the functor's first argument type

typedef ValueType second_argument_type

the functor's second argument type

typedef SquareRootTraits<typename NormTraits<ValueType>::SquaredNormType>::SquareRootResult result_type

the functor's result type

typedef ValueType value_type

Deprecated:
  use first_argument_type, second_argument_type, result_type

## Member Function Documentation

result_type operator() | ( | first_argument_type const & | v1,
|  | second_argument_type const & | v2
| ) |  | const

calculate transform '`sqrt(squaredNorm(v1) + squaredNorm(v2))`'.

The documentation for this class was generated from the following file:

- vigra/combineimages.hxx

© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) Heidelberg Collaboratory for Image Processing, University of Heidelberg, Germany | html generated using doxygen and Python vigra 1.10.0 (Mon Nov 18 2013)