![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#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... | |
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 flann::HammingLUT::ElementType |
| typedef int flann::HammingLUT::ResultType |
|
inlinestatic |
given a byte, count the bits using a look up table
| b | the byte to count bits. The look up table has an entry for all values of b, where that entry is the number of bits. |
Definition at line 394 of file dist.h.
Referenced by operator()().
|
inline |
this will count the bits in a ^ b
Definition at line 379 of file dist.h.
References byteBitsLookUp(), result, and size.