Public Types | Public Member Functions
cvflann::HammingLUT2 Struct Reference

#include <dist.h>

List of all members.

Public Types

typedef False is_kdtree_distance
typedef False is_vector_space_distance
typedef unsigned char ElementType
typedef int ResultType

Public Member Functions

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

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


Member Typedef Documentation

typedef unsigned char cvflann::HammingLUT2::ElementType

Member Function Documentation

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

this will count the bits in a ^ b


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