Public Types | Public Member Functions | Static Public Member Functions | List of all members
rtflann::HammingLUT Struct Reference

#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 More...
 

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)
inlinestatic

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 Wed Jun 5 2019 22:43:43