43 _gaussian_pyr_function(),
74 _gauss_pyr.
init(pyramid_info);
75 _conv_pyr.
init(pyramid_info);
78 _gaussian_pyr_function.
configure(compile_context, input, &_gauss_pyr, border_mode, constant_border_value);
80 _convf.resize(_num_levels);
81 _subf.resize(_num_levels);
83 for(
unsigned int i = 0; i < _num_levels; ++i)
99 _gaussian_pyr_function.
run();
101 for(
unsigned int i = 0; i < _num_levels; ++i)
106 for(
unsigned int i = 0; i < _num_levels; ++i)
111 _depth_function.
run();
BorderMode
Methods available to handle borders.
const TensorShape & tensor_shape() const
Return the TensorShape of the o-th level tensor.
void configure(ICLTensor *input, CLPyramid *pyramid, ICLTensor *output, BorderMode border_mode, uint8_t constant_border_value)
Initialise the function's source, destinations and border mode.
virtual size_t dimension(size_t index) const =0
Return the size of the requested dimension.
1 channel, 1 U8 per channel
const PyramidInfo * info() const override
Interface to be implemented by the child class to return the Pyramid's metadata.
void init(size_t num_levels, float scale, size_t width, size_t height, Format format)
Initialize pyramid's metadata for 2D tensors.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
Copyright (c) 2017-2021 Arm Limited.
void run() override
Run the kernels contained in the function.
Basic implementation of the OpenCL pyramid interface.
void run() override final
Run the kernels contained in the function.
void init(const PyramidInfo &info)
Initialize pyramid data-object using the given Pyramid's metadata.
#define ARM_COMPUTE_ERROR_ON_MSG(cond, msg)
void allocate()
Allocate the planes in the pyramid.
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
CLLaplacianPyramid()
Constructor.
1 channel, 1 S16 per channel
#define ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(t, c,...)
void configure(const ICLTensor *input, ICLTensor *output, ConvertPolicy policy, uint32_t shift)
Initialize the function's source, destination.
Store the Pyramid's metadata.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
void run() override
Run the kernels contained in the function.
Interface for OpenCL tensor.
CLTensor * get_pyramid_level(size_t index) const override
Retrieves a level of the pyramid as a ITensor pointer.
size_t width() const
Return the width of the 0th level tensor.
size_t num_levels() const
Return the number of the pyramid levels.
size_t height() const
Return the height of the 0th level tensor.
void configure(ICLTensor *input, CLPyramid *pyramid, BorderMode border_mode, uint8_t constant_border_value) override
Initialise the function's source, destinations and border mode.