21.02
|
Basic implementation of the pyramid interface. More...
#include <Pyramid.h>
Public Member Functions | |
void | init (const PyramidInfo &info) |
Initialize pyramid data-object using the given Pyramid's metadata. More... | |
void | init_auto_padding (const PyramidInfo &info) |
Initialize pyramid data-object using the given Pyramid's metadata. More... | |
void | allocate () |
Allocate the planes in the pyramid. More... | |
const PyramidInfo * | info () const override |
Interface to be implemented by the child class to return the Pyramid's metadata. More... | |
Tensor * | get_pyramid_level (size_t index) const override |
Retrieves a level of the pyramid as a ITensor pointer. More... | |
Public Member Functions inherited from IPyramid | |
virtual | ~IPyramid ()=default |
Default virtual destructor. More... | |
void allocate | ( | ) |
Allocate the planes in the pyramid.
Definition at line 99 of file Pyramid.cpp.
References PyramidInfo::num_levels().
Referenced by NELaplacianPyramid::configure(), and NELaplacianReconstruct::configure().
|
overridevirtual |
Retrieves a level of the pyramid as a ITensor pointer.
[in] | index | The index of the level, such that index is less than levels. |
Implements IPyramid.
Definition at line 112 of file Pyramid.cpp.
References ARM_COMPUTE_ERROR_ON, and PyramidInfo::num_levels().
Referenced by NELaplacianPyramid::configure(), NEOpticalFlow::configure(), and NELaplacianReconstruct::configure().
|
overridevirtual |
Interface to be implemented by the child class to return the Pyramid's metadata.
Implements IPyramid.
Definition at line 107 of file Pyramid.cpp.
Referenced by NEOpticalFlow::configure(), Pyramid::init_auto_padding(), and NELaplacianReconstruct::run().
void init | ( | const PyramidInfo & | info | ) |
Initialize pyramid data-object using the given Pyramid's metadata.
[in] | info | Pyramid's metadata |
Definition at line 35 of file Pyramid.cpp.
Referenced by NELaplacianPyramid::configure(), and NELaplacianReconstruct::configure().
void init_auto_padding | ( | const PyramidInfo & | info | ) |
Initialize pyramid data-object using the given Pyramid's metadata.
[in] | info | Pyramid's metadata |
Definition at line 40 of file Pyramid.cpp.
References TensorInfo::auto_padding(), PyramidInfo::format(), PyramidInfo::height(), Pyramid::info(), PyramidInfo::num_levels(), PyramidInfo::scale(), arm_compute::SCALE_PYRAMID_ORB, TensorShape::set(), PyramidInfo::tensor_shape(), arm_compute::test::validation::w, and PyramidInfo::width().