aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/runtime/CL/functions/CLFastCorners.h
diff options
context:
space:
mode:
authorSang-Hoon Park <sang-hoon.park@arm.com>2020-10-21 15:58:54 +0100
committerSang-Hoon Park <sang-hoon.park@arm.com>2020-11-07 08:07:22 +0000
commitbef7fa27b0d231a8649952f60808132d109b6345 (patch)
tree7543c66a473d90e28b4860986fad77afa5115043 /arm_compute/runtime/CL/functions/CLFastCorners.h
parentb9531540dadce8331a703c32456f3c9defdfefa9 (diff)
downloadComputeLibrary-bef7fa27b0d231a8649952f60808132d109b6345.tar.gz
COMPMID-3639: (3RDPARTY_UPDATE) Move CL kernels to src
Change-Id: I10d27db788e5086adae1841e3e2441cd9b76ef84 Signed-off-by: Sang-Hoon Park <sang-hoon.park@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4310 Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/runtime/CL/functions/CLFastCorners.h')
-rw-r--r--arm_compute/runtime/CL/functions/CLFastCorners.h29
1 files changed, 16 insertions, 13 deletions
diff --git a/arm_compute/runtime/CL/functions/CLFastCorners.h b/arm_compute/runtime/CL/functions/CLFastCorners.h
index 698cc67995..e110582c50 100644
--- a/arm_compute/runtime/CL/functions/CLFastCorners.h
+++ b/arm_compute/runtime/CL/functions/CLFastCorners.h
@@ -25,7 +25,6 @@
#define ARM_COMPUTE_CLFASTCORNERS_H
#include "arm_compute/core/CL/OpenCL.h"
-#include "arm_compute/core/CL/kernels/CLFastCornersKernel.h"
#include "arm_compute/core/Types.h"
#include "arm_compute/core/Window.h"
#include "arm_compute/runtime/CL/CLArray.h"
@@ -40,6 +39,8 @@
namespace arm_compute
{
+class CLFastCornersKernel;
+class CLCopyToArrayKernel;
class ICLTensor;
using ICLImage = ICLTensor;
@@ -59,6 +60,8 @@ public:
CLFastCorners(const CLFastCorners &) = delete;
/** Prevent instances of this class from being copied (As this class contains pointers) */
const CLFastCorners &operator=(const CLFastCorners &) = delete;
+ /** Default destructor */
+ ~CLFastCorners();
/** Initialize the function's source, destination, conv and border_mode.
*
* @param[in] input Source image. Data types supported: U8.
@@ -88,18 +91,18 @@ public:
void run() override;
private:
- MemoryGroup _memory_group;
- CLFastCornersKernel _fast_corners_kernel;
- CLNonMaximaSuppression3x3 _suppr_func;
- CLCopyToArrayKernel _copy_array_kernel;
- CLImage _output;
- CLImage _suppr;
- Window _win;
- bool _non_max;
- unsigned int *_num_corners;
- cl::Buffer _num_buffer;
- ICLKeyPointArray *_corners;
- uint8_t _constant_border_value;
+ MemoryGroup _memory_group;
+ std::unique_ptr<CLFastCornersKernel> _fast_corners_kernel;
+ CLNonMaximaSuppression3x3 _suppr_func;
+ std::unique_ptr<CLCopyToArrayKernel> _copy_array_kernel;
+ CLImage _output;
+ CLImage _suppr;
+ Window _win;
+ bool _non_max;
+ unsigned int *_num_corners;
+ cl::Buffer _num_buffer;
+ ICLKeyPointArray *_corners;
+ uint8_t _constant_border_value;
};
}
#endif /*ARM_COMPUTE_CLFASTCORNERS_H */