Public Member Functions | Private Attributes
fovis::SAD Class Reference

Calculates the Sum of Absolute Deviations (SAD) score between two vectors of length descriptor_len. More...

#include <sad.hpp>

List of all members.

Public Member Functions

int getWorstScore () const
 SAD (int descriptor_len)
int32_t score (const uint8_t *ref_desc, const uint8_t *target_desc)

Private Attributes

int _descriptor_len
int _nsad_ops

Detailed Description

Calculates the Sum of Absolute Deviations (SAD) score between two vectors of length descriptor_len.

Definition at line 17 of file sad.hpp.


Constructor & Destructor Documentation

fovis::SAD::SAD ( int  descriptor_len) [inline]

Definition at line 19 of file sad.hpp.


Member Function Documentation

int fovis::SAD::getWorstScore ( ) const [inline]

Definition at line 55 of file sad.hpp.

int32_t fovis::SAD::score ( const uint8_t *  ref_desc,
const uint8_t *  target_desc 
) [inline]

Calculate SAD score between ref_desc and target_desc. ref_desc and target_desc must be padded with zero-filled pad bytes up to multiple of 16.

Definition at line 29 of file sad.hpp.


Member Data Documentation

Definition at line 60 of file sad.hpp.

int fovis::SAD::_nsad_ops [private]

Definition at line 61 of file sad.hpp.


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


libfovis
Author(s): Albert Huang, Maurice Fallon
autogenerated on Thu Jun 6 2019 20:16:12