opencv on mbed

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

HammingLUT Struct Reference

HammingLUT Struct Reference

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

#include <dist.h>

Public Member Functions

ResultType operator() (const unsigned char *a, const unsigned char *b, size_t size) const
 this will count the bits in a ^ b

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


Member Function Documentation

ResultType operator() ( const unsigned char *  a,
const unsigned char *  b,
size_t  size 
) const

this will count the bits in a ^ b

Definition at line 389 of file dist.h.