#include <features2d.hpp>
Public Types | |
typedef int | ResultType |
important that this is signed as weird behavior happens | |
typedef unsigned char | ValueType |
Public Member Functions | |
ResultType | operator() (const unsigned char *a, const unsigned char *b, int size) const |
Hamming distance functor, this one will try to use gcc's __builtin_popcountl but will fall back on HammingLUT if not available bit count of A exclusive XOR'ed with B
typedef int cv::Hamming::ResultType |
important that this is signed as weird behavior happens
typedef unsigned char cv::Hamming::ValueType |
ResultType cv::Hamming::operator() | ( | const unsigned char * | a, | |
const unsigned char * | b, | |||
int | size | |||
) | const |
this will count the bits in a ^ b, using __builtin_popcountl try compiling with sse4