69 _tmp_pyr.
init(pyramid_info);
72 _addf.resize(num_levels);
73 _scalef.resize(num_levels - 1);
75 const size_t last_level = num_levels - 1;
80 for(
size_t l = 0; l < last_level; ++l)
98 _addf[last_level].run();
101 for(
size_t l = last_level; l-- > 0;)
BorderMode
Methods available to handle borders.
virtual size_t num_dimensions() const =0
The number of dimensions of the tensor (rank)
TensorInfo * info() const override
Interface to be implemented by the child class to return the tensor's metadata.
virtual size_t dimension(size_t index) const =0
Return the size of the requested dimension.
1 channel, 1 U8 per channel
void run() override
Run the kernels contained in the function.
size_t dimension(size_t index) const override
Return the size of the requested dimension.
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.
Output values are defined to match the source pixel whose center is nearest to the sample position...
Copyright (c) 2017-2021 Arm Limited.
size_t num_dimensions() const override
The number of dimensions of the tensor (rank)
Basic implementation of the OpenCL pyramid interface.
void run() override final
Run the kernels contained in the function.
virtual const TensorShape & tensor_shape() const =0
Size for each dimension of the tensor.
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.
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)
Interface for OpenCL tensor.
Manages all the OpenCL kernels compilation and caching, provides accessors for the OpenCL Context...
CLTensor * get_pyramid_level(size_t index) const override
Retrieves a level of the pyramid as a ITensor pointer.
size_t num_levels() const
Return the number of the pyramid levels.
void configure(const CLPyramid *pyramid, ICLTensor *input, ICLTensor *output, BorderMode border_mode, uint8_t constant_border_value)
Initialise the function's source, destinations and border mode.
CLLaplacianReconstruct()
Constructor.