Calculates the Sum of Absolute Deviations (SAD) score between two vectors of length descriptor_len. More...
#include <sad.hpp>
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 |
Calculates the Sum of Absolute Deviations (SAD) score between two vectors of length descriptor_len.
| fovis::SAD::SAD | ( | int | descriptor_len | ) | [inline] |
| int fovis::SAD::getWorstScore | ( | ) | const [inline] |
| int32_t fovis::SAD::score | ( | const uint8_t * | ref_desc, |
| const uint8_t * | target_desc | ||
| ) | [inline] |
int fovis::SAD::_descriptor_len [private] |
int fovis::SAD::_nsad_ops [private] |