DetUtils.h 625 B

1234567891011121314151617181920212223242526
  1. #ifndef __MAS_DETUTILS_H
  2. #define __MAS_DETUTILS_H
  3. #define NAMESPACE_DETUTILS_BEGIN namespace detutils {
  4. #define NAMESPACE_DETUTILS_END };
  5. #include "MAS_AlgoDef.h"
  6. NAMESPACE_MAS_BEGIN
  7. NAMESPACE_DETUTILS_BEGIN
  8. TZ_BOOL IsInRoi(const TZ_DOUBLE & ltx, const TZ_DOUBLE & lty, const TZ_DOUBLE & rbx, const TZ_DOUBLE & rby,
  9. const std::vector<AreaBox> & focusArea, const std::vector<AreaBox> & ignoreArea,
  10. const TZ_DOUBLE & roiThreshold);
  11. TZ_INT GetDetSample(TZ_INT freq);
  12. TZ_BOOL IsIoULeqThreshold(const AreaBox& boxA, const AreaBox& boxB, const TZ_DOUBLE& iouThreshold);
  13. NAMESPACE_DETUTILS_END
  14. NAMESPACE_MAS_END
  15. #endif