| OpenCV 3.4.7 Open Source Computer Vision

Public Types | Public Member Functions | List of all members
cvflann::HammingLUT Struct Reference

`#include <opencv2/flann/dist.h>`

## Public Types
typedef unsigned char | ElementType
typedef False | is_kdtree_distance
typedef False | is_vector_space_distance
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

## § ElementType

typedef unsigned char cvflann::HammingLUT::ElementType

## § is_kdtree_distance

typedef False cvflann::HammingLUT::is_kdtree_distance

## § is_vector_space_distance

typedef False cvflann::HammingLUT::is_vector_space_distance

## § ResultType

typedef int cvflann::HammingLUT::ResultType

## Member Function Documentation

## § operator()()

ResultType cvflann::HammingLUT::operator() | ( | const unsigned char * | a,
|  | const unsigned char * | b,
|  | size_t | size
| ) |  | const
| inline

this will count the bits in a ^ b

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

- opencv2/flann/dist.h