1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include "armnn/Tensor.hpp"
#include "armnn/Descriptors.hpp"
#include "Decoders.hpp"
#include <vector>
namespace armnn
{
void DetectionPostProcess(const TensorInfo& boxEncodingsInfo,
const TensorInfo& scoresInfo,
const TensorInfo& anchorsInfo,
const TensorInfo& detectionBoxesInfo,
const TensorInfo& detectionClassesInfo,
const TensorInfo& detectionScoresInfo,
const TensorInfo& numDetectionsInfo,
const DetectionPostProcessDescriptor& desc,
Decoder<float>& boxEncodings,
Decoder<float>& scores,
Decoder<float>& anchors,
float* detectionBoxes,
float* detectionClasses,
float* detectionScores,
float* numDetections);
void TopKSort(unsigned int k,
unsigned int* indices,
const float* values,
unsigned int numElement);
float IntersectionOverUnion(const float* boxI, const float* boxJ);
std::vector<unsigned int> NonMaxSuppression(unsigned int numBoxes,
const std::vector<float>& boxCorners,
const std::vector<float>& scores,
float nmsScoreThreshold,
unsigned int maxDetection,
float nmsIouThreshold);
} // namespace armnn
|