| OpenCV 5.0.0alpha Open Source Computer Vision

Loading...
Searching...
No Matches
Functions
Hamming distance
Core functionality » Hardware Acceleration Layer » Interface

## Detailed Description

Hamming norm of a vector

Parameters

  a | pointer to vector data
  n | length of a vector
  cellSize | how many bits of the vector will be added and treated as a single bit, can be 1 (standard Hamming distance), 2 or 4
  result | pointer to result output

Hamming distance between two vectors

Parameters

  a | pointer to first vector data
  b | pointer to second vector data
  n | length of vectors
  cellSize | how many bits of the vectors will be added and treated as a single bit, can be 1 (standard Hamming distance), 2 or 4
  result | pointer to result output

## Functions
int | hal_ni_normHamming8u (const uchar *a, int n, int cellSize, int *result)
int | hal_ni_normHammingDiff8u (const uchar *a, const uchar *b, int n, int cellSize, int *result)

## Function Documentation

## ◆ hal_ni_normHamming8u()

int hal_ni_normHamming8u | ( | const uchar * | a,
|  | int | n,
|  | int | cellSize,
|  | int * | result )
| inline

`#include <core/src/hal_replacement.hpp>`

## ◆ hal_ni_normHammingDiff8u()

int hal_ni_normHammingDiff8u | ( | const uchar * | a,
|  | const uchar * | b,
|  | int | n,
|  | int | cellSize,
|  | int * | result )
| inline

`#include <core/src/hal_replacement.hpp>`