24 #ifndef ARM_COMPUTE_CPP_NONMAXIMUMSUPPRESSIONKERNEL_LAYER_H 25 #define ARM_COMPUTE_CPP_NONMAXIMUMSUPPRESSIONKERNEL_LAYER_H 41 const char *
name()
const override 43 return "CPPNonMaximumSuppressionKernel";
68 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);
81 const float score_threshold,
const float iou_threshold);
90 unsigned int _max_output_size;
91 float _score_threshold;
94 unsigned int _num_boxes;
const Window & window() const
The maximum window the kernel can be executed on.
void run(const Window &window, const ThreadInfo &info) override
Execute the kernel on the passed window.
Common interface for all kernels implemented in C++.
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...
CPPNonMaximumSuppressionKernel & operator=(const CPPNonMaximumSuppressionKernel &)=delete
Prevent instances of this class from being copied (As this class contains pointers) ...
Store the tensor's metadata.
Interface for Neon tensor.
Copyright (c) 2017-2021 Arm Limited.
~CPPNonMaximumSuppressionKernel()=default
Default destructor.
CPPNonMaximumSuppressionKernel()
Default constructor.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
Information about executing thread and CPU.
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.
CPP Function to perform non maximum suppression on the bounding boxes and scores. ...
const char * name() const override
Name of the kernel.
Describe a multidimensional execution window.