Template Function compareDataAsFloatThreshold#

Function Documentation#

template<class T, class S>
inline bool compareDataAsFloatThreshold(const T *reference, const T *data, const unsigned int len, const S epsilon, const float threshold)#

Compare two arrays of arbitrary type

Parameters
  • reference – handle to the reference data / gold image

  • data – handle to the computed data

  • len – number of elements in reference and data

  • epsilon – epsilon to use for the comparison

  • epsilon – threshold % of (# of bytes) for pass/fail

Returns

true if reference and data are identical, otherwise false