libfovis
Public Member Functions | List of all members
SAD Class Reference

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

Public Member Functions

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

Detailed Description

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

Member Function Documentation

int32_t 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.


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