opencv  2.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
cv::Hamming Struct Reference

#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
 

Detailed Description

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

Member Typedef Documentation

important that this is signed as weird behavior happens

typedef unsigned char cv::Hamming::ValueType

Member Function Documentation

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


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