Compute Library
18.05
|
Class for specifying the size of an image or rectangle. More...
#include <Size2D.h>
Public Member Functions | |
Size2D ()=default | |
Default constructor. More... | |
Size2D (size_t w, size_t h) | |
Constructor. More... | |
size_t | area () const |
The area of the image or rectangle calculated as (width * height) More... | |
bool | operator== (const Size2D &other) const |
bool | operator!= (const Size2D &other) const |
std::string | to_string () const |
size_t | x () const |
Semantic accessor for width as x. More... | |
size_t | y () const |
Semantic accessor for height as y. More... | |
Data Fields | |
size_t | width = {} |
Width of the image region or rectangle. More... | |
size_t | height = {} |
Height of the image region or rectangle. More... | |
|
default |
Default constructor.
|
inline |
Constructor.
Initializes "width" and "height" respectively with "w" and "h"
[in] | w | Width of the image or rectangle |
[in] | h | Height of the image or rectangle |
Definition at line 44 of file Size2D.h.
|
inline |
The area of the image or rectangle calculated as (width * height)
Definition at line 53 of file Size2D.h.
References Size2D::height, and Size2D::width.
Referenced by arm_compute::misc::shape_calculator::compute_im2col_conv_shape(), arm_compute::misc::shape_calculator::compute_winograd_filter_transform_shape(), arm_compute::misc::shape_calculator::compute_winograd_input_transform_shape(), arm_compute::test::validation::reference::hog_block_normalization(), arm_compute::test::validation::reference::hog_detector(), and arm_compute::test::validation::reference::winograd_filter_transform().
|
inline |
|
inline |
Definition at line 58 of file Size2D.h.
References Size2D::height, and Size2D::width.
|
inline |
Definition at line 68 of file Size2D.h.
References Size2D::height, arm_compute::support::cpp11::to_string(), and Size2D::width.
|
inline |
Semantic accessor for width as x.
Definition at line 77 of file Size2D.h.
References Size2D::width.
Referenced by arm_compute::test::validation::reference::convolution_layer_nchw().
|
inline |
Semantic accessor for height as y.
Definition at line 86 of file Size2D.h.
References Size2D::height.
Referenced by arm_compute::test::validation::reference::convolution_layer_nchw().
size_t height = {} |
Height of the image region or rectangle.
Definition at line 93 of file Size2D.h.
Referenced by Size2D::area(), arm_compute::misc::shape_calculator::compute_im2col_conv_shape(), arm_compute::misc::shape_calculator::compute_pool_shape(), arm_compute::misc::shape_calculator::compute_winograd_filter_transform_shape(), arm_compute::misc::shape_calculator::compute_winograd_input_transform_shape(), arm_compute::misc::shape_calculator::compute_winograd_output_transform_shape(), arm_compute::test::validation::reference::hog_block_normalization(), arm_compute::test::validation::reference::hog_descriptor(), arm_compute::test::validation::reference::hog_detector(), arm_compute::test::validation::reference::hog_multi_detection(), arm_compute::test::validation::reference::hog_orientation_binning(), arm_compute::test::validation::reference::im2col_nchw(), arm_compute::test::validation::reference::im2col_nhwc(), arm_compute::graph::operator<<(), arm_compute::operator<<(), Size2D::operator==(), arm_compute::test::validation::reference::pooling_layer(), Size2D::to_string(), arm_compute::to_string(), arm_compute::test::validation::reference::winograd_filter_transform(), arm_compute::test::validation::reference::winograd_input_transform(), arm_compute::test::validation::reference::winograd_output_transform(), and Size2D::y().
size_t width = {} |
Width of the image region or rectangle.
Definition at line 92 of file Size2D.h.
Referenced by Size2D::area(), arm_compute::misc::shape_calculator::compute_im2col_conv_shape(), arm_compute::misc::shape_calculator::compute_pool_shape(), arm_compute::misc::shape_calculator::compute_winograd_filter_transform_shape(), arm_compute::misc::shape_calculator::compute_winograd_input_transform_shape(), arm_compute::misc::shape_calculator::compute_winograd_output_transform_shape(), arm_compute::test::validation::reference::hog_block_normalization(), arm_compute::test::validation::reference::hog_descriptor(), arm_compute::test::validation::reference::hog_detector(), arm_compute::test::validation::reference::hog_multi_detection(), arm_compute::test::validation::reference::hog_orientation_binning(), arm_compute::test::validation::reference::im2col_nchw(), arm_compute::test::validation::reference::im2col_nhwc(), arm_compute::graph::operator<<(), arm_compute::operator<<(), Size2D::operator==(), arm_compute::test::validation::reference::pooling_layer(), Size2D::to_string(), arm_compute::to_string(), arm_compute::test::validation::reference::winograd_filter_transform(), arm_compute::test::validation::reference::winograd_input_transform(), arm_compute::test::validation::reference::winograd_output_transform(), and Size2D::x().