#include <dist.h>
Public Types | |
typedef unsigned char | ElementType |
typedef int | ResultType |
Public Member Functions | |
ResultType | operator() (const unsigned char *a, const unsigned char *b, int size) const |
Static Public Member Functions | |
static unsigned char | byteBitsLookUp (unsigned char b) |
given a byte, count the bits using a look up table |
Hamming distance functor - counts the bit differences between two strings - useful for the Brief descriptor bit count of A exclusive XOR'ed with B
typedef unsigned char rtflann::HammingLUT::ElementType |
typedef int rtflann::HammingLUT::ResultType |
static unsigned char rtflann::HammingLUT::byteBitsLookUp | ( | unsigned char | b | ) | [inline, static] |
ResultType rtflann::HammingLUT::operator() | ( | const unsigned char * | a, |
const unsigned char * | b, | ||
int | size | ||
) | const [inline] |