Public Types | Public Member Functions
rtflann::HammingPopcnt< T > Struct Template Reference

#include <dist.h>

List of all members.

Public Types

typedef T ElementType
typedef int ResultType

Public Member Functions

template<typename Iterator1 , typename Iterator2 >
ResultType operator() (Iterator1 a, Iterator2 b, size_t size, ResultType=-1) const

Detailed Description

template<class T>
struct rtflann::HammingPopcnt< T >

Hamming distance functor (pop count between two binary vectors, i.e. xor them and count the number of bits set) That code was taken from brief.cpp in OpenCV

Definition at line 471 of file dist.h.


Member Typedef Documentation

template<class T >
typedef T rtflann::HammingPopcnt< T >::ElementType

Definition at line 473 of file dist.h.

template<class T >
typedef int rtflann::HammingPopcnt< T >::ResultType

Definition at line 474 of file dist.h.


Member Function Documentation

template<class T >
template<typename Iterator1 , typename Iterator2 >
ResultType rtflann::HammingPopcnt< T >::operator() ( Iterator1  a,
Iterator2  b,
size_t  size,
ResultType  = -1 
) const [inline]

Definition at line 477 of file dist.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Sat Jul 23 2016 11:44:32