Public Types | Public Member Functions | Static Public Member Functions
rtflann::HammingLUT Struct Reference

#include <dist.h>

List of all members.

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

Detailed Description

Hamming distance functor - counts the bit differences between two strings - useful for the Brief descriptor bit count of A exclusive XOR'ed with B

Definition at line 372 of file dist.h.


Member Typedef Documentation

typedef unsigned char rtflann::HammingLUT::ElementType

Definition at line 374 of file dist.h.

Definition at line 375 of file dist.h.


Member Function Documentation

static unsigned char rtflann::HammingLUT::byteBitsLookUp ( unsigned char  b) [inline, static]

given a byte, count the bits using a look up table

Parameters:
bthe byte to count bits. The look up table has an entry for all values of b, where that entry is the number of bits.
Returns:
the number of bits in byte b

Definition at line 394 of file dist.h.

ResultType rtflann::HammingLUT::operator() ( const unsigned char *  a,
const unsigned char *  b,
int  size 
) const [inline]

this will count the bits in a ^ b

Definition at line 379 of file dist.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jun 6 2019 21:59:42