21.02
|
Store the Pyramid's metadata. More...
#include <PyramidInfo.h>
Public Member Functions | |
PyramidInfo () | |
Default constructor. More... | |
virtual | ~PyramidInfo ()=default |
Default destructor. More... | |
PyramidInfo (const PyramidInfo &)=default | |
Allow instances of this class to be copy constructed. More... | |
PyramidInfo & | operator= (const PyramidInfo &)=default |
Allow instances of this class to be copied. More... | |
PyramidInfo (PyramidInfo &&)=default | |
Allow instances of this class to be move constructed. More... | |
PyramidInfo & | operator= (PyramidInfo &&)=default |
Allow instances of this class to be moved. More... | |
PyramidInfo (size_t num_levels, float scale, size_t width, size_t height, Format format) | |
Create pyramid info for 2D tensors. More... | |
PyramidInfo (size_t num_levels, float scale, const TensorShape &tensor_shape, Format format) | |
Create pyramid info using TensorShape. More... | |
void | init (size_t num_levels, float scale, size_t width, size_t height, Format format) |
Initialize pyramid's metadata for 2D tensors. More... | |
void | init (size_t num_levels, float scale, const TensorShape &tensor_shape, Format format) |
Initialize pyramid's metadata using TensorShape. More... | |
size_t | num_levels () const |
Return the number of the pyramid levels. More... | |
size_t | width () const |
Return the width of the 0th level tensor. More... | |
size_t | height () const |
Return the height of the 0th level tensor. More... | |
const TensorShape & | tensor_shape () const |
Return the TensorShape of the o-th level tensor. More... | |
Format | format () const |
Return the image format of all tensor in the pyramid. More... | |
float | scale () const |
Return the scale factor of the pyramid. More... | |
Store the Pyramid's metadata.
Definition at line 35 of file PyramidInfo.h.
PyramidInfo | ( | ) |
Default constructor.
Definition at line 33 of file PyramidInfo.cpp.
References arm_compute::UNKNOWN.
|
virtualdefault |
Default destructor.
|
default |
Allow instances of this class to be copy constructed.
|
default |
Allow instances of this class to be move constructed.
PyramidInfo | ( | size_t | num_levels, |
float | scale, | ||
size_t | width, | ||
size_t | height, | ||
Format | format | ||
) |
Create pyramid info for 2D tensors.
[in] | num_levels | The number of pyramid levels. This is required to be a non-zero value |
[in] | scale | Used to indicate the scale between the pyramid levels. This is required to be a non-zero positive value. |
[in] | width | The width of the 2D tensor at 0th pyramid level |
[in] | height | The height of the 2D tensor at 0th pyramid level |
[in] | format | The format of all 2D tensors in the pyramid NV12, NV21, IYUV, UYVY and YUYV formats are not supported. |
Definition at line 38 of file PyramidInfo.cpp.
References PyramidInfo::init().
PyramidInfo | ( | size_t | num_levels, |
float | scale, | ||
const TensorShape & | tensor_shape, | ||
Format | format | ||
) |
Create pyramid info using TensorShape.
[in] | num_levels | The number of pyramid levels. This is required to be a non-zero value |
[in] | scale | Used to indicate the scale between the pyramid levels. This is required to be a non-zero positive value. |
[in] | tensor_shape | It specifies the size for each dimension of the tensor 0th pyramid level in number of elements |
[in] | format | The format of all tensors in the pyramid |
Definition at line 44 of file PyramidInfo.cpp.
References PyramidInfo::init().
Format format | ( | ) | const |
Return the image format of all tensor in the pyramid.
Definition at line 97 of file PyramidInfo.cpp.
Referenced by PyramidInfo::init(), Pyramid::init_auto_padding(), and CLPyramid::init_auto_padding().
size_t height | ( | ) | const |
Return the height of the 0th level tensor.
Definition at line 87 of file PyramidInfo.cpp.
References Dimensions< T >::y().
Referenced by NELaplacianPyramid::configure(), CLLaplacianPyramid::configure(), NEOpticalFlow::configure(), NEGaussianPyramidHalf::configure(), CLGaussianPyramidHalf::configure(), CLOpticalFlow::configure(), CLGaussianPyramidOrb::configure(), NEGaussianPyramidOrb::configure(), Pyramid::init_auto_padding(), and CLPyramid::init_auto_padding().
void init | ( | size_t | num_levels, |
float | scale, | ||
size_t | width, | ||
size_t | height, | ||
Format | format | ||
) |
Initialize pyramid's metadata for 2D tensors.
[in] | num_levels | The number of pyramid levels. This is required to be a non-zero value |
[in] | scale | Used to indicate the scale between the pyramid levels. This is required to be a non-zero positive value. |
[in] | width | The width of the 2D tensor at 0th pyramid level |
[in] | height | The height of the 2D tensor at 0th pyramid level |
[in] | format | The format of all 2D tensors in the pyramid NV12, NV21, IYUV, UYVY and YUYV formats are not supported. |
Definition at line 50 of file PyramidInfo.cpp.
Referenced by NELaplacianPyramid::configure(), CLLaplacianPyramid::configure(), NELaplacianReconstruct::configure(), CLLaplacianReconstruct::configure(), CLGaussianPyramidOrb::configure(), NEGaussianPyramidOrb::configure(), and PyramidInfo::PyramidInfo().
void init | ( | size_t | num_levels, |
float | scale, | ||
const TensorShape & | tensor_shape, | ||
Format | format | ||
) |
Initialize pyramid's metadata using TensorShape.
[in] | num_levels | The number of pyramid levels. This is required to be a non-zero value |
[in] | scale | Used to indicate the scale between the pyramid levels. This is required to be a non-zero positive value. |
[in] | tensor_shape | It specifies the size for each dimension of the tensor 0th pyramid level in number of elements |
[in] | format | The format of all tensors in the pyramid |
Definition at line 55 of file PyramidInfo.cpp.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_MSG, PyramidInfo::format(), arm_compute::IYUV, PyramidInfo::num_levels(), arm_compute::NV12, arm_compute::NV21, PyramidInfo::scale(), PyramidInfo::tensor_shape(), arm_compute::UYVY422, Dimensions< T >::x(), Dimensions< T >::y(), arm_compute::YUV444, and arm_compute::YUYV422.
size_t num_levels | ( | ) | const |
Return the number of the pyramid levels.
Definition at line 77 of file PyramidInfo.cpp.
Referenced by Pyramid::allocate(), CLPyramid::allocate(), NELaplacianPyramid::configure(), CLLaplacianPyramid::configure(), NEOpticalFlow::configure(), NELaplacianReconstruct::configure(), CLLaplacianReconstruct::configure(), NEGaussianPyramidHalf::configure(), CLGaussianPyramidHalf::configure(), CLOpticalFlow::configure(), CLGaussianPyramidOrb::configure(), NEGaussianPyramidOrb::configure(), Pyramid::get_pyramid_level(), CLPyramid::get_pyramid_level(), PyramidInfo::init(), Pyramid::init_auto_padding(), CLPyramid::init_auto_padding(), NELaplacianReconstruct::run(), and CLLaplacianReconstruct::run().
|
default |
Allow instances of this class to be copied.
|
default |
Allow instances of this class to be moved.
float scale | ( | ) | const |
Return the scale factor of the pyramid.
Definition at line 102 of file PyramidInfo.cpp.
Referenced by NEOpticalFlow::configure(), NEGaussianPyramidHalf::configure(), CLGaussianPyramidHalf::configure(), CLOpticalFlow::configure(), CLGaussianPyramidOrb::configure(), NEGaussianPyramidOrb::configure(), PyramidInfo::init(), Pyramid::init_auto_padding(), and CLPyramid::init_auto_padding().
const TensorShape & tensor_shape | ( | ) | const |
Return the TensorShape of the o-th level tensor.
Definition at line 92 of file PyramidInfo.cpp.
Referenced by NELaplacianPyramid::configure(), CLLaplacianPyramid::configure(), NEGaussianPyramidHalf::configure(), CLGaussianPyramidHalf::configure(), CLGaussianPyramidOrb::configure(), NEGaussianPyramidOrb::configure(), PyramidInfo::init(), Pyramid::init_auto_padding(), and CLPyramid::init_auto_padding().
size_t width | ( | ) | const |
Return the width of the 0th level tensor.
Definition at line 82 of file PyramidInfo.cpp.
References Dimensions< T >::x().
Referenced by NELaplacianPyramid::configure(), CLLaplacianPyramid::configure(), NEOpticalFlow::configure(), NEGaussianPyramidHalf::configure(), CLGaussianPyramidHalf::configure(), CLOpticalFlow::configure(), CLGaussianPyramidOrb::configure(), NEGaussianPyramidOrb::configure(), Pyramid::init_auto_padding(), and CLPyramid::init_auto_padding().