Public Types | Public Member Functions | List of all members
rtflann::HammingPopcnt< T > Struct Template Reference

#include <dist.h>

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 499 of file dist.h.

Member Typedef Documentation

◆ ElementType

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

Definition at line 501 of file dist.h.

◆ ResultType

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

Definition at line 502 of file dist.h.

Member Function Documentation

◆ operator()()

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 505 of file dist.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:28