Template Struct L2

Struct Documentation

template<class Feature>
struct loop_closure::distance::L2

Default implementation of L2 distance metric.

Works with std::vector, boost::array, or more generally any container that has a value_type typedef, size() and array-indexed element access.

Public Types

typedef Feature::value_type value_type
typedef Accumulator<value_type>::type result_type

Public Functions

inline result_type operator()(const Feature &a, const Feature &b) const