34 : _num_levels(0), _tensor_shape(), _format(
Format::
UNKNOWN), _scale(0.0f)
41 init(num_levels, scale, width, height, format);
47 init(num_levels, scale, tensor_shape, format);
84 return _tensor_shape.
x();
89 return _tensor_shape.
y();
const TensorShape & tensor_shape() const
Return the TensorShape of the o-th level tensor.
A single plane of 32-bit macro pixel of U0, Y0, V0, Y1 byte.
void init(size_t num_levels, float scale, size_t width, size_t height, Format format)
Initialize pyramid's metadata for 2D tensors.
Format format() const
Return the image format of all tensor in the pyramid.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
A 2 plane YUV format of Luma (Y) and interleaved UV data at 4:2:0 sampling.
A 2 plane YUV format of Luma (Y) and interleaved VU data at 4:2:0 sampling.
Copyright (c) 2017-2021 Arm Limited.
T x() const
Alias to access the size of the first dimension.
Format
Image colour formats.
#define ARM_COMPUTE_ERROR_ON_MSG(cond, msg)
A 3 plane of 8 bit 4:4:4 sampled Y, U, V planes.
float scale() const
Return the scale factor of the pyramid.
Store the Pyramid's metadata.
A 3 plane of 8-bit 4:2:0 sampled Y, U, V planes.
T y() const
Alias to access the size of the second dimension.
size_t width() const
Return the width of the 0th level tensor.
size_t num_levels() const
Return the number of the pyramid levels.
PyramidInfo()
Default constructor.
A single plane of 32-bit macro pixel of Y0, U0, Y1, V0 bytes.
size_t height() const
Return the height of the 0th level tensor.