aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/runtime/CL/functions/CLGaussianPyramid.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/CLGaussianPyramid.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/CLGaussianPyramid.h')
-rw-r--r--arm_compute/runtime/CL/functions/CLGaussianPyramid.h28
1 files changed, 18 insertions, 10 deletions
diff --git a/arm_compute/runtime/CL/functions/CLGaussianPyramid.h b/arm_compute/runtime/CL/functions/CLGaussianPyramid.h
index 70f324be11..b18e5f98f0 100644
--- a/arm_compute/runtime/CL/functions/CLGaussianPyramid.h
+++ b/arm_compute/runtime/CL/functions/CLGaussianPyramid.h
@@ -24,9 +24,6 @@
#ifndef ARM_COMPUTE_CLGAUSSIANPYRAMID_H
#define ARM_COMPUTE_CLGAUSSIANPYRAMID_H
-#include "arm_compute/core/CL/kernels/CLGaussianPyramidKernel.h"
-
-#include "arm_compute/core/CL/kernels/CLScaleKernel.h"
#include "arm_compute/core/IPyramid.h"
#include "arm_compute/core/Types.h"
#include "arm_compute/runtime/CL/CLPyramid.h"
@@ -38,7 +35,12 @@
namespace arm_compute
{
+class CLCompileContext;
+class CLFillBorderKernel;
class ICLTensor;
+class CLGaussianPyramidHorKernel;
+class CLGaussianPyramidVertKernel;
+class CLScaleKernel;
/** Common interface for all Gaussian pyramid functions */
class CLGaussianPyramid : public IFunction
@@ -55,7 +57,7 @@ public:
/** Allow instances of this class to be moved */
CLGaussianPyramid &operator=(CLGaussianPyramid &&) = default;
/** Default destructor */
- virtual ~CLGaussianPyramid() = default;
+ ~CLGaussianPyramid();
/** Initialise the function's source, destinations and border mode.
*
* @param[in, out] input Source tensor. Data types supported: U8. (Written to only for @p border_mode != UNDEFINED)
@@ -93,6 +95,12 @@ class CLGaussianPyramidHalf : public CLGaussianPyramid
public:
/** Constructor */
CLGaussianPyramidHalf();
+ /** Prevent instances of this class from being copied */
+ CLGaussianPyramidHalf(const CLGaussianPyramidHalf &) = delete;
+ /** Prevent instances of this class from being copied */
+ CLGaussianPyramidHalf &operator=(const CLGaussianPyramidHalf &) = delete;
+ /** Default destructor */
+ ~CLGaussianPyramidHalf();
// Inherited methods overridden:
void configure(ICLTensor *input, CLPyramid *pyramid, BorderMode border_mode, uint8_t constant_border_value) override;
@@ -100,10 +108,10 @@ public:
void run() override;
private:
- std::vector<CLFillBorderKernel> _horizontal_border_handler;
- std::vector<CLFillBorderKernel> _vertical_border_handler;
- std::vector<CLGaussianPyramidHorKernel> _horizontal_reduction;
- std::vector<CLGaussianPyramidVertKernel> _vertical_reduction;
+ std::vector<std::unique_ptr<CLFillBorderKernel>> _horizontal_border_handler;
+ std::vector<std::unique_ptr<CLFillBorderKernel>> _vertical_border_handler;
+ std::vector<std::unique_ptr<CLGaussianPyramidHorKernel>> _horizontal_reduction;
+ std::vector<std::unique_ptr<CLGaussianPyramidVertKernel>> _vertical_reduction;
};
/** Basic function to execute gaussian pyramid with ORB scale factor. This function calls the following OpenCL kernels and functions:
@@ -124,8 +132,8 @@ public:
void run() override;
private:
- std::vector<CLGaussian5x5> _gauss5x5;
- std::vector<CLScaleKernel> _scale_nearest;
+ std::vector<CLGaussian5x5> _gauss5x5;
+ std::vector<std::unique_ptr<CLScaleKernel>> _scale_nearest;
};
}
#endif /*ARM_COMPUTE_CLGAUSSIANPYRAMID_H */