Public Types | Public Member Functions
cvflann::Hamming2< T > Struct Template Reference

#include <dist.h>

List of all members.

Public Types

typedef False is_kdtree_distance
typedef False is_vector_space_distance
typedef T ElementType
typedef int ResultType

Public Member Functions

unsigned int popcnt32 (uint32_t n) const
unsigned int popcnt64 (uint64_t n) const
template<typename Iterator1 , typename Iterator2 >
ResultType operator() (Iterator1 a, Iterator2 b, size_t size, ResultType=-1) const

template<typename T>
struct cvflann::Hamming2< T >


Member Typedef Documentation

template<typename T >
typedef False cvflann::Hamming2< T >::is_kdtree_distance
template<typename T >
typedef False cvflann::Hamming2< T >::is_vector_space_distance
template<typename T >
typedef T cvflann::Hamming2< T >::ElementType
template<typename T >
typedef int cvflann::Hamming2< T >::ResultType

Member Function Documentation

template<typename T >
unsigned int cvflann::Hamming2< T >::popcnt32 ( uint32_t  n) const

This is popcount_3() from: http://en.wikipedia.org/wiki/Hamming_weight

template<typename T >
unsigned int cvflann::Hamming2< T >::popcnt64 ( uint64_t  n) const
template<typename T >
template<typename Iterator1 , typename Iterator2 >
ResultType cvflann::Hamming2< T >::operator() ( Iterator1  a,
Iterator2  b,
size_t  size,
ResultType  = -1 
) const

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