OpenCV  3.4.7
Open Source Computer Vision
Public Types | Public Member Functions | List of all members
cvflann::Hamming< T > Struct Template Reference

#include <opencv2/flann/dist.h>

Public Types

typedef T ElementType
 
typedef False is_kdtree_distance
 
typedef False is_vector_space_distance
 
typedef int ResultType
 

Public Member Functions

template<typename Iterator1 , typename Iterator2 >
ResultType operator() (Iterator1 a, Iterator2 b, size_t size, ResultType=-1) const
 

Detailed Description

template<class T>
struct cvflann::Hamming< T >

Hamming distance functor (pop count between two binary vectors, i.e. xor them and count the number of bits set) That code was taken from brief.cpp in OpenCV

Member Typedef Documentation

§ ElementType

template<class T >
typedef T cvflann::Hamming< T >::ElementType

§ is_kdtree_distance

template<class T >
typedef False cvflann::Hamming< T >::is_kdtree_distance

§ is_vector_space_distance

template<class T >
typedef False cvflann::Hamming< T >::is_vector_space_distance

§ ResultType

template<class T >
typedef int cvflann::Hamming< T >::ResultType

Member Function Documentation

§ operator()()

template<class T >
template<typename Iterator1 , typename Iterator2 >
ResultType cvflann::Hamming< T >::operator() ( Iterator1  a,
Iterator2  b,
size_t  size,
ResultType  = -1 
) const
inline

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