/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/op_bnd_box.hpp Source File

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/op_bnd_box.hpp Source File#

2 min read time

Applies to Linux

rocCV: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/op_bnd_box.hpp Source File
op_bnd_box.hpp
Go to the documentation of this file.
1 
22 #pragma once
23 #include <hip/hip_runtime.h>
24 #include <operator_types.h>
25 
26 #include <i_operator.hpp>
27 #include <vector>
28 
29 #include "core/tensor.hpp"
30 
31 namespace roccv {
37 class BndBox final : public IOperator {
38  public:
44  BndBox();
45 
51 
87  void operator()(hipStream_t stream, const roccv::Tensor& input, const roccv::Tensor& output,
88  const BndBoxes_t bnd_boxes, eDeviceType device = eDeviceType::GPU);
89 
90  void generateRects(std::vector<Rect_t>& rects, const BndBoxes_t& bnd_boxes, int64_t height, int64_t width);
91 };
92 } // namespace roccv
Class for managing the BndBox Operator.
Definition: op_bnd_box.hpp:37
~BndBox()
Destroy the BndBox object.
void operator()(hipStream_t stream, const roccv::Tensor &input, const roccv::Tensor &output, const BndBoxes_t bnd_boxes, eDeviceType device=eDeviceType::GPU)
Executes the BndBox operation. BndBox can be used to draw bounding boxes on images in a tensor.
BndBox()
Constructs a BndBox object.
void generateRects(std::vector< Rect_t > &rects, const BndBoxes_t &bnd_boxes, int64_t height, int64_t width)
Interface class for all roccv operators.
Definition: i_operator.hpp:31
Definition: tensor.hpp:37
Definition: strided_data_wrap.hpp:33
Definition: operator_types.h:104
eDeviceType
Describes the device type. Used to determine where Tensor data should be allocated and whether operat...
Definition: util_enums.h:69