Store the Pyramid's metadata.
More...
#include <PyramidInfo.h>
|
| 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.
Allow instances of this class to be copy constructed.
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.
- Parameters
-
[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. |
Create pyramid info using TensorShape.
- Parameters
-
[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 |
Return the image format of all tensor in the pyramid.
- Returns
- The image format
Return the height of the 0th level tensor.
- Returns
- The height of the 0th level tensor
void init |
( |
size_t |
num_levels, |
|
|
float |
scale, |
|
|
size_t |
width, |
|
|
size_t |
height, |
|
|
Format |
format |
|
) |
| |
Initialize pyramid's metadata for 2D tensors.
- Parameters
-
[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. |
void init |
( |
size_t |
num_levels, |
|
|
float |
scale, |
|
|
const TensorShape & |
tensor_shape, |
|
|
Format |
format |
|
) |
| |
Initialize pyramid's metadata using TensorShape.
- Parameters
-
[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 |
size_t num_levels |
( |
| ) |
const |
Return the number of the pyramid levels.
- Returns
- The number of the pyramid levels
Allow instances of this class to be copied.
Allow instances of this class to be moved.
Return the scale factor of the pyramid.
- Returns
- Return the scale factor
Return the TensorShape of the o-th level tensor.
- Returns
Return the width of the 0th level tensor.
- Returns
- The width of the 0th level tensor
The documentation for this class was generated from the following file: