21.02
|
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_col2im_shape(), 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(), HOGInfo::init(), TensorInfo::init(), TensorInfo::init_auto_padding(), and arm_compute::test::validation::reference::winograd_filter_transform().
|
inline |
Definition at line 63 of file Size2D.h.
References Size2D::to_string().
|
inline |
Definition at line 58 of file Size2D.h.
References Size2D::height, and Size2D::width.
std::string to_string | ( | ) | const |
Definition at line 29 of file Size2D.cpp.
References Size2D::height, arm_compute::support::cpp11::to_string(), and Size2D::width.
Referenced by CLWinogradInputTransformKernel::configure(), CLWinogradFilterTransformKernel::configure(), CLWinogradOutputTransformKernel::configure(), and Size2D::operator!=().
|
inline |
Semantic accessor for width as x.
Definition at line 74 of file Size2D.h.
References Size2D::width.
Referenced by arm_compute::calculate_same_pad(), arm_compute::misc::shape_calculator::compute_space_to_batch_shape(), arm_compute::misc::shape_calculator::compute_upsample_shape(), GCDepthwiseConvolutionLayer3x3::configure(), GCIm2ColKernel::configure(), CLWinogradOutputTransformKernel::configure(), arm_compute::test::validation::reference::convolution_layer_nchw(), CpuPoolingAssemblyWrapperKernel::is_configured(), NEDepthwiseConvolutionAssemblyDispatch::is_optimized_supported(), NESpaceToBatchLayerKernel::run(), and arm_compute::scaled_dimensions().
|
inline |
Semantic accessor for height as y.
Definition at line 83 of file Size2D.h.
References Size2D::height.
Referenced by arm_compute::calculate_same_pad(), arm_compute::misc::shape_calculator::compute_space_to_batch_shape(), arm_compute::misc::shape_calculator::compute_upsample_shape(), GCDepthwiseConvolutionLayer3x3::configure(), GCIm2ColKernel::configure(), CLWinogradOutputTransformKernel::configure(), arm_compute::test::validation::reference::convolution_layer_nchw(), CpuPoolingAssemblyWrapperKernel::is_configured(), NEDepthwiseConvolutionAssemblyDispatch::is_optimized_supported(), NESpaceToBatchLayerKernel::run(), and arm_compute::scaled_dimensions().
size_t height = {} |
Height of the image region or rectangle.
Definition at line 90 of file Size2D.h.
Referenced by GraphBuilder::add_convolution_node(), GraphBuilder::add_deconvolution_node(), GraphBuilder::add_depthwise_convolution_node(), Size2D::area(), arm_compute::cl_winograd_convolution_layer_supported(), arm_compute::misc::shape_calculator::compute_col2im_shape(), arm_compute::misc::shape_calculator::compute_im2col_conv_shape(), PoolingLayerNode::compute_output_descriptor(), arm_compute::misc::shape_calculator::compute_pool_shape(), arm_compute::misc::shape_calculator::compute_unpool_shape(), arm_compute::compute_winograd_convolution_tiles(), 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(), CpuPoolingKernel::configure(), ClPoolingKernel::configure(), CpuPoolingAssemblyDispatch::configure(), NEHOGOrientationBinningKernel::configure(), NEHOGDetectorKernel::configure(), CLHOGOrientationBinningKernel::configure(), CpuPooling::configure(), NEHOGDescriptor::configure(), CLHOGDescriptor::configure(), NEWinogradConvolutionLayer::configure(), GCIm2ColKernel::configure(), CLHOGDetectorKernel::configure(), CLWinogradInputTransformKernel::configure(), CLWinogradFilterTransformKernel::configure(), CLWinogradOutputTransformKernel::configure(), NEIm2ColKernel::configure(), NEHOGMultiDetection::configure(), CLIm2ColKernel::configure(), CLHOGBlockNormalizationKernel::configure(), CLHOGMultiDetection::configure(), NEHOGBlockNormalizationKernel::configure(), 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(), HOGInfo::init(), TensorInfo::init(), TensorInfo::init_auto_padding(), HOGInfo::num_block_positions_per_image(), HOGInfo::num_cells_per_block(), HOGInfo::num_cells_per_block_stride(), arm_compute::operator<<(), Size2D::operator==(), arm_compute::test::validation::reference::pooling_layer_internal(), arm_compute::cpu::poolingMxN_fp32_neon_nhwc(), arm_compute::cpu::poolingMxN_q8_neon_nhwc(), CLHOGOrientationBinningKernel::run(), CLHOGBlockNormalizationKernel::run(), NEHOGBlockNormalizationKernel::run(), Size2D::to_string(), arm_compute::to_string(), CpuPoolingKernel::validate(), 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 89 of file Size2D.h.
Referenced by GraphBuilder::add_convolution_node(), GraphBuilder::add_deconvolution_node(), GraphBuilder::add_depthwise_convolution_node(), Size2D::area(), arm_compute::cl_winograd_convolution_layer_supported(), arm_compute::misc::shape_calculator::compute_col2im_shape(), arm_compute::misc::shape_calculator::compute_im2col_conv_shape(), PoolingLayerNode::compute_output_descriptor(), arm_compute::misc::shape_calculator::compute_pool_shape(), arm_compute::misc::shape_calculator::compute_unpool_shape(), arm_compute::compute_winograd_convolution_tiles(), 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(), CpuPoolingKernel::configure(), ClPoolingKernel::configure(), GCPoolingLayerKernel::configure(), CpuPoolingAssemblyDispatch::configure(), NEHOGOrientationBinningKernel::configure(), NEHOGDetectorKernel::configure(), CLHOGOrientationBinningKernel::configure(), CpuPooling::configure(), NEHOGDescriptor::configure(), CLHOGDescriptor::configure(), NEWinogradConvolutionLayer::configure(), GCIm2ColKernel::configure(), CLHOGDetectorKernel::configure(), CLWinogradInputTransformKernel::configure(), CLCol2ImKernel::configure(), CLWinogradFilterTransformKernel::configure(), CLWinogradOutputTransformKernel::configure(), NEIm2ColKernel::configure(), NEHOGMultiDetection::configure(), CLIm2ColKernel::configure(), CLHOGBlockNormalizationKernel::configure(), CLHOGMultiDetection::configure(), NEHOGBlockNormalizationKernel::configure(), 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(), HOGInfo::init(), TensorInfo::init(), TensorInfo::init_auto_padding(), HOGInfo::num_block_positions_per_image(), HOGInfo::num_cells_per_block(), HOGInfo::num_cells_per_block_stride(), arm_compute::operator<<(), Size2D::operator==(), arm_compute::test::validation::reference::pooling_layer_internal(), arm_compute::cpu::poolingMxN_fp32_neon_nhwc(), arm_compute::cpu::poolingMxN_q8_neon_nhwc(), CLHOGOrientationBinningKernel::run(), CLHOGBlockNormalizationKernel::run(), NEHOGBlockNormalizationKernel::run(), Size2D::to_string(), arm_compute::to_string(), CpuPoolingKernel::validate(), 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().