ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
flann::HammingPopcnt< T > Struct Template Reference

#include <dist.h>

Public Types

typedef T ElementType
 
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 flann::HammingPopcnt< 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

Definition at line 471 of file dist.h.

Member Typedef Documentation

◆ ElementType

template<class T >
typedef T flann::HammingPopcnt< T >::ElementType

Definition at line 473 of file dist.h.

◆ ResultType

template<class T >
typedef int flann::HammingPopcnt< T >::ResultType

Definition at line 474 of file dist.h.

Member Function Documentation

◆ operator()()

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

Definition at line 477 of file dist.h.

References result, and size.


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