cv::HammingLUT Struct Reference

#include <features2d.hpp>

List of all members.

Public Types

typedef int ResultType
typedef unsigned char ValueType

Public Member Functions

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

Static Public Member Functions

static unsigned char byteBitsLookUp (unsigned char b)
 given a byte, count the bits using a compile time generated look up table

Member Typedef Documentation

typedef unsigned char cv::HammingLUT::ValueType

Member Function Documentation

static unsigned char cv::HammingLUT::byteBitsLookUp ( unsigned char  b  )  [static]

given a byte, count the bits using a compile time generated look up table

Parameters:
b the byte to count bits. The look up table has an entry for all values of b, where that entry is the number of bits.
Returns:
the number of bits in byte b
ResultType cv::HammingLUT::operator() ( const unsigned char *  a,
const unsigned char *  b,
int  size 
) const

this will count the bits in a ^ b


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