struct cv::Hamming

Overview

#include <base.hpp>

struct Hamming
{
    // typedefs

    typedef int ResultType;
    typedef unsigned char ValueType;

    // enums

    enum
    {
        normType = NORM_HAMMING,
    };

    // methods

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

Detailed Documentation

Methods

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

this will count the bits in a ^ b