44 _gaussian_pyr_function(),
58 _gaussian_pyr_function.
run();
60 for(
unsigned int i = 0; i < _num_levels; ++i)
66 for(
unsigned int i = 0; i < _num_levels; ++i)
72 _depth_function.
run();
92 _gauss_pyr.
init(pyramid_info);
93 _conv_pyr.
init(pyramid_info);
96 _gaussian_pyr_function.
configure(input, &_gauss_pyr, border_mode, constant_border_value);
98 _convf.resize(_num_levels);
99 _subf.resize(_num_levels);
101 for(
unsigned int i = 0; i < _num_levels; ++i)
BorderMode
Methods available to handle borders.
const TensorShape & tensor_shape() const
Return the TensorShape of the o-th level tensor.
virtual const PyramidInfo * info() const =0
Interface to be implemented by the child class to return the Pyramid's metadata.
void run() override final
Run the kernels contained in the function.
void configure(const ITensor *input, IPyramid *pyramid, BorderMode border_mode, uint8_t constant_border_value) override
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.
Tensor * get_pyramid_level(size_t index) const override
Retrieves a level of the pyramid as a ITensor pointer.
1 channel, 1 U8 per channel
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.
Interface for Neon tensor.
Copyright (c) 2017-2021 Arm Limited.
void configure(const ITensor *input, IPyramid *pyramid, ITensor *output, BorderMode border_mode, uint8_t constant_border_value)
Initialise the function's source, destinations and border mode.
Interface for pyramid data-object.
virtual ITensor * get_pyramid_level(size_t index) const =0
Retrieves a level of the pyramid as a ITensor pointer.
void init(const PyramidInfo &info)
Initialize pyramid data-object using the given Pyramid's metadata.
void run() override
Run the kernels contained in the function.
#define ARM_COMPUTE_ERROR_ON_MSG(cond, msg)
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
~NELaplacianPyramid()
Default destructor.
void allocate()
Allocate the planes in the pyramid.
1 channel, 1 S16 per channel
#define ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(t, c,...)
Store the Pyramid's metadata.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
void configure(const ITensor *input, ITensor *output, ConvertPolicy policy, uint32_t shift=0)
Initialize the function's source, destination.
NELaplacianPyramid()
Constructor.
size_t width() const
Return the width of the 0th level tensor.
size_t num_levels() const
Return the number of the pyramid levels.
void run() override
Run the kernels contained in the function.
size_t height() const
Return the height of the 0th level tensor.