24 #ifndef ARM_COMPUTE_CLHOGMULTIDETECTION_H 25 #define ARM_COMPUTE_CLHOGMULTIDETECTION_H 41 class CLCompileContext;
42 class CLHOGOrientationBinningKernel;
43 class CLHOGBlockNormalizationKernel;
122 std::vector<std::unique_ptr<CLHOGOrientationBinningKernel>> _orient_bin_kernel;
123 std::vector<std::unique_ptr<CLHOGBlockNormalizationKernel>> _block_norm_kernel;
124 std::vector<CLHOGDetector> _hog_detect_kernel;
126 std::vector<CLTensor> _hog_space;
127 std::vector<CLTensor> _hog_norm_space;
131 bool _non_maxima_suppression;
132 size_t _num_orient_bin_kernel;
133 size_t _num_block_norm_kernel;
134 size_t _num_hog_detect_kernel;
BorderMode
Methods available to handle borders.
void configure(ICLTensor *input, const ICLMultiHOG *multi_hog, ICLDetectionWindowArray *detection_windows, ICLSize2DArray *detection_window_strides, BorderMode border_mode, uint8_t constant_border_value=0, float threshold=0.0f, bool non_maxima_suppression=false, float min_distance=1.0f)
Initialise the function's source, destination, detection window strides, border mode, threshold and non-maxima suppression.
Base class for all functions.
CLHOGMultiDetection(std::shared_ptr< IMemoryManager > memory_manager=nullptr)
Default constructor.
Copyright (c) 2017-2021 Arm Limited.
Interface for OpenCL Array.
Basic function to calculate the gradient for HOG.
Interface for storing multiple HOG data-objects.
CPP kernel to perform in-place computation of euclidean distance on IDetectionWindowArray.
Basic function to detect multiple objects (or the same object at different scales) on the same input ...
Interface for OpenCL tensor.
SimpleTensor< T > non_maxima_suppression(const SimpleTensor< T > &src, BorderMode border_mode, T constant_border_value)
~CLHOGMultiDetection()
Default destructor.
void run() override
Run the kernels contained in the function.
SimpleTensor< T > threshold(const SimpleTensor< T > &src, T threshold, T false_value, T true_value, ThresholdType type, T upper)
CLHOGMultiDetection & operator=(const CLHOGMultiDetection &)=delete
Prevent instances of this class from being copied (As this class contains pointers) ...
Basic implementation of the OpenCL tensor interface.