[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
|
VectorNormSqFunctor< ValueType > Class Template Reference | ![]() |
A functor for computing the squared vector norm. More...
#include <vigra/transformimage.hxx>
Public Types | |
| typedef ValueType | argument_type |
| typedef NumericTraits < typename ValueType::value_type > ::RealPromote | result_type |
Public Member Functions | |
| result_type | operator() (const argument_type &a) const |
A functor for computing the squared vector norm.
Calculate the squared magnitude or norm from a given vector-valued entity. The vector type will typically be some sort of TinyVector.
At least, the vector type is required to have a function 'result = dot(v,v)'.
For an example of its usage see VectorNormFunctor
Traits defined:
FunctorTraits::isUnaryFunctor is true (VigraTrueType)
| typedef ValueType argument_type |
the functor's argument type
| typedef NumericTraits<typename ValueType::value_type>::RealPromote result_type |
the functor's result type
| result_type operator() | ( | const argument_type & | a | ) | const |
calculate transform 'v1*v1 + v2*v2 + ...'.
|
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|