cv::Hamming Struct Reference

#include <features2d.hpp>

List of all members.

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Thu Dec 23 11:40:55 2010 for opencv by  doxygen 1.6.3