21.02
|
Basic implementation of the OpenCL pyramid interface. More...
#include <CLPyramid.h>
Public Member Functions | |
CLPyramid () | |
Default constructor. More... | |
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... | |
CLTensor * | 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... | |
Basic implementation of the OpenCL pyramid interface.
Definition at line 40 of file CLPyramid.h.
CLPyramid | ( | ) |
Default constructor.
Definition at line 36 of file CLPyramid.cpp.
void allocate | ( | ) |
Allocate the planes in the pyramid.
Definition at line 109 of file CLPyramid.cpp.
References PyramidInfo::num_levels().
Referenced by CLLaplacianPyramid::configure(), and CLLaplacianReconstruct::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 122 of file CLPyramid.cpp.
References ARM_COMPUTE_ERROR_ON, and PyramidInfo::num_levels().
Referenced by CLLaplacianPyramid::configure(), CLLaplacianReconstruct::configure(), CLGaussianPyramidHalf::configure(), CLOpticalFlow::configure(), and CLGaussianPyramidOrb::configure().
|
overridevirtual |
Interface to be implemented by the child class to return the Pyramid's metadata.
Implements IPyramid.
Definition at line 117 of file CLPyramid.cpp.
Referenced by CLLaplacianPyramid::configure(), CLLaplacianReconstruct::configure(), CLGaussianPyramidHalf::configure(), CLOpticalFlow::configure(), CLGaussianPyramidOrb::configure(), CLPyramid::init_auto_padding(), and CLLaplacianReconstruct::run().
void init | ( | const PyramidInfo & | info | ) |
Initialize pyramid data-object using the given Pyramid's metadata.
[in] | info | Pyramid's metadata |
Definition at line 41 of file CLPyramid.cpp.
Referenced by CLLaplacianPyramid::configure(), and CLLaplacianReconstruct::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 46 of file CLPyramid.cpp.
References TensorInfo::auto_padding(), PyramidInfo::format(), PyramidInfo::height(), CLPyramid::info(), PyramidInfo::num_levels(), PyramidInfo::scale(), arm_compute::SCALE_PYRAMID_ORB, TensorShape::set(), PyramidInfo::tensor_shape(), arm_compute::test::validation::w, and PyramidInfo::width().