template struct cvflann::MaxDistance
Overview
#include <dist.h> template <class T> struct MaxDistance { // typedefs typedef T ElementType; typedef False is_kdtree_distance; typedef True is_vector_space_distance; typedef Accumulator<T>::Type ResultType; // methods template < typename Iterator1, typename Iterator2 > ResultType operator()( Iterator1 a, Iterator2 b, size_t size, ResultType worst_dist = -1 ) const; };
Detailed Documentation
Methods
template < typename Iterator1, typename Iterator2 > ResultType operator()( Iterator1 a, Iterator2 b, size_t size, ResultType worst_dist = -1 ) const
Compute the max distance (L_infinity) between two vectors.
This distance is not a valid kdtree distance, it’s not dimensionwise additive.