66 _tmp_pyr.
init(pyramid_info);
69 _addf.resize(num_levels);
70 _scalef.resize(num_levels - 1);
72 const size_t last_level = num_levels - 1;
77 for(
size_t l = 0; l < last_level; ++l)
95 _addf[last_level].run();
98 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)
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.
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.
Output values are defined to match the source pixel whose center is nearest to the sample position...
Interface for Neon tensor.
Copyright (c) 2017-2021 Arm Limited.
Samples are taken at pixel center.
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.
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)
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
void configure(const IPyramid *pyramid, ITensor *input, ITensor *output, BorderMode border_mode, uint8_t constant_border_value)
Initialise the function's source, destinations and border mode.
void allocate()
Allocate the planes in the pyramid.
const PyramidInfo * info() const override
Interface to be implemented by the child class to return the Pyramid's metadata.
1 channel, 1 S16 per channel
#define ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(t, c,...)
Store the Pyramid's metadata.
~NELaplacianReconstruct()
Default destructor.
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.
size_t num_levels() const
Return the number of the pyramid levels.
void run() override
Run the kernels contained in the function.
NELaplacianReconstruct()
Constructor.