24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_CPP_NONMAXIMUMSUPPRESSIONKERNEL_LAYER_H
25 #define ARM_COMPUTE_CPP_NONMAXIMUMSUPPRESSIONKERNEL_LAYER_H
40 const char *
name()
const override
42 return "CPPNonMaximumSuppressionKernel";
70 unsigned int max_output_size,
71 const float score_threshold,
72 const float iou_threshold);
87 unsigned int max_output_size,
88 const float score_threshold,
89 const float iou_threshold);
98 unsigned int _max_output_size;
99 float _score_threshold;
100 float _iou_threshold;
102 unsigned int _num_boxes;
CPPNonMaximumSuppressionKernel & operator=(const CPPNonMaximumSuppressionKernel &)=delete
Prevent instances of this class from being copied (As this class contains pointers)
Interface for CPU tensor.
static Status validate(const ITensorInfo *input_bboxes, const ITensorInfo *input_scores, const ITensorInfo *output_indices, unsigned int max_output_size, const float score_threshold, const float iou_threshold)
Static function to check if given arguments will lead to a valid configuration of CPPNonMaximumSuppre...
void configure(const ITensor *input_bboxes, const ITensor *input_scores, ITensor *output_indices, unsigned int max_output_size, const float score_threshold, const float iou_threshold)
Configure the kernel to perform non maximal suppression.
const char * name() const override
Name of the kernel.
Common interface for all kernels implemented in C++.
const Window & window() const
The maximum window the kernel can be executed on.
Information about executing thread and CPU.
~CPPNonMaximumSuppressionKernel()=default
Default destructor.
Describe a multidimensional execution window.
CPP Function to perform non maximum suppression on the bounding boxes and scores.
Copyright (c) 2017-2024 Arm Limited.
void run(const Window &window, const ThreadInfo &info) override
Execute the kernel on the passed window.
Store the tensor's metadata.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
CPPNonMaximumSuppressionKernel()
Default constructor.