CommonUtility.h 481 Bytes
Newer Older
Your Name's avatar
Your Name committed
1
2
3
4
5
6
7
8
9
10
11
// 常用工具

#ifndef __COMMON_UTILITY_H__
#define __COMMON_UTILITY_H__

#include <CommonDefinition.h>

namespace migraphxSamples
{

// 排序规则: 按照置信度或者按照面积排序
liucong's avatar
liucong committed
12
13
bool CompareConfidence(const ResultOfDetection& L, const ResultOfDetection& R);
bool CompareArea(const ResultOfDetection& L, const ResultOfDetection& R);
Your Name's avatar
Your Name committed
14

liucong's avatar
liucong committed
15
// 非极大抑制
liucong's avatar
liucong committed
16
void NMS(std::vector<ResultOfDetection>& detections, float IOUThreshold);
Your Name's avatar
Your Name committed
17

liucong's avatar
liucong committed
18
} // namespace migraphxSamples
Your Name's avatar
Your Name committed
19
20

#endif