21.02
|
Container for 2D border size. More...
#include <Types.h>
Public Member Functions | |
constexpr | BorderSize () |
Empty border, i.e. More... | |
constexpr | BorderSize (unsigned int size) |
Border with equal size around the 2D plane. More... | |
constexpr | BorderSize (unsigned int top_bottom, unsigned int left_right) |
Border with same size for top/bottom and left/right. More... | |
constexpr | BorderSize (unsigned int top, unsigned int right, unsigned int bottom, unsigned int left) |
Border with different sizes. More... | |
constexpr bool | empty () const |
Check if the entire border is zero. More... | |
constexpr bool | uniform () const |
Check if the border is the same size on all sides. More... | |
BorderSize & | operator*= (float scale) |
Scale this border size. More... | |
BorderSize | operator* (float scale) |
Scale a copy of this border size. More... | |
bool | operator== (const BorderSize &rhs) |
Check equality with another BorderSize struct. More... | |
bool | operator!= (const BorderSize &rhs) |
Check non-equality with another BorderSize struct. More... | |
void | limit (const BorderSize &limit) |
Limit this border size. More... | |
Data Fields | |
unsigned int | top |
top of the border More... | |
unsigned int | right |
right of the border More... | |
unsigned int | bottom |
bottom of the border More... | |
unsigned int | left |
left of the border More... | |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
Check if the entire border is zero.
Definition at line 300 of file Types.h.
Referenced by GCFillBorderKernel::configure(), CLFillBorderKernel::configure(), TensorInfo::has_padding(), RandomAccessor::RandomAccessor(), and NEFillBorderKernel::run().
|
inline |
Limit this border size.
[in] | limit | Border size to limit this border size to. |
Definition at line 367 of file Types.h.
References BorderSize::bottom, BorderSize::left, BorderSize::right, and BorderSize::top.
Referenced by GCFillBorderKernel::configure(), and CLFillBorderKernel::configure().
|
inline |
Check non-equality with another BorderSize struct.
[in] | rhs | other struct to check against |
|
inline |
Scale a copy of this border size.
[in] | scale | Scale to multiply border size by. |
Definition at line 333 of file Types.h.
References arm_compute::test::validation::scale.
|
inline |
Scale this border size.
[in] | scale | Scale to multiply border size by. |
Definition at line 317 of file Types.h.
References arm_compute::test::validation::scale.
|
inline |
Check equality with another BorderSize struct.
[in] | rhs | other struct to check against |
Definition at line 347 of file Types.h.
References BorderSize::bottom, BorderSize::left, BorderSize::right, and BorderSize::top.
|
inline |
Check if the border is the same size on all sides.
Definition at line 306 of file Types.h.
Referenced by arm_compute::test::validation::TEST_CASE().
unsigned int bottom |
bottom of the border
Definition at line 377 of file Types.h.
Referenced by TensorInfo::auto_padding(), arm_compute::cpu::bilinear_neon_scale(), arm_compute::calculate_max_enlarged_window(), arm_compute::calculate_max_window(), arm_compute::calculate_max_window_horizontal(), AccessWindowTranspose::compute_valid_region(), AccessWindowRectangle::compute_valid_region(), GCScaleKernel::configure(), CLWarpPerspectiveKernel::configure(), ClPoolingKernel::configure(), CLWarpAffineKernel::configure(), GCDepthwiseConvolutionLayer3x3Kernel::configure(), GCFillBorderKernel::configure(), INEWarpKernel::configure(), GCDirectConvolutionLayerKernel< kernel_size >::configure(), CLRemapKernel::configure(), CLFillBorderKernel::configure(), NEEdgeTraceKernel::configure(), ITensor::copy_from(), SubTensorInfo::extend_padding(), TensorInfo::extend_padding(), AssetsLibrary::fill_borders_with_garbage(), BorderSize::limit(), arm_compute::cpu::nearest_neon_scale(), arm_compute::cpu::offset_no_padding(), arm_compute::operator<<(), BorderSize::operator==(), NEFillBorderKernel::run(), CLGEMMLowpMatrixMultiplyNativeKernel::run(), CLGEMMReshapeLHSMatrixKernel::run(), CLGEMMMatrixMultiplyKernel::run(), CLGEMMLowpMatrixMultiplyReshapedKernel::run(), CLGEMMMatrixMultiplyNativeKernel::run(), CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel::run(), CLGEMMMatrixMultiplyReshapedOnlyRHSKernel::run(), CLGEMM::run(), NEGEMMConvolutionLayer::run(), NEFillBorderKernel::run_op(), arm_compute::test::shape_to_valid_region_laplacian_pyramid(), AccessWindowTranspose::update_padding_if_needed(), AccessWindowStatic::update_padding_if_needed(), AccessWindowRectangle::update_padding_if_needed(), AccessWindowRectangle::update_window_if_needed(), and arm_compute::test::validation::validate().
unsigned int left |
left of the border
Definition at line 378 of file Types.h.
Referenced by TensorInfo::auto_padding(), arm_compute::cpu::bilinear_neon_scale(), arm_compute::calculate_max_enlarged_window(), arm_compute::calculate_max_window(), arm_compute::calculate_max_window_horizontal(), AccessWindowTranspose::compute_valid_region(), AccessWindowRectangle::compute_valid_region(), GCScaleKernel::configure(), CLGaussian3x3Kernel::configure(), CLBox3x3Kernel::configure(), CLMedian3x3Kernel::configure(), CLDilateKernel::configure(), CLErodeKernel::configure(), CLWarpPerspectiveKernel::configure(), ClPoolingKernel::configure(), CLNonMaximaSuppression3x3Kernel::configure(), CLWarpAffineKernel::configure(), GCDepthwiseConvolutionLayer3x3Kernel::configure(), GCFillBorderKernel::configure(), NEDilateKernel::configure(), NEErodeKernel::configure(), NEGaussian3x3Kernel::configure(), NEGaussianPyramidHorKernel::configure(), NEMedian3x3Kernel::configure(), NEGaussian5x5HorKernel::configure(), INEWarpKernel::configure(), CLGaussianPyramidHorKernel::configure(), GCDirectConvolutionLayerKernel< kernel_size >::configure(), NEDerivativeKernel::configure(), NENonMaximaSuppression3x3Kernel::configure(), NESobel5x5HorKernel::configure(), NESobel7x7HorKernel::configure(), NEFastCornersKernel::configure(), CLNonLinearFilterKernel::configure(), NENonLinearFilterKernel::configure(), NEScaleKernel::configure(), CLRemapKernel::configure(), CLSobel3x3Kernel::configure(), CLDerivativeKernel::configure(), CLSobel5x5HorKernel::configure(), CLSobel7x7HorKernel::configure(), NEScharr3x3Kernel::configure(), NESobel3x3Kernel::configure(), GCTensorShiftKernel::configure(), CLFillBorderKernel::configure(), CLFastCornersKernel::configure(), GCIm2ColKernel::configure(), CLHarrisScoreKernel::configure(), NEConvolutionKernel< matrix_size >::configure(), CLScharr3x3Kernel::configure(), CLEdgeNonMaxSuppressionKernel::configure(), CLSeparableConvolutionHorKernel< matrix_size >::configure(), NEEdgeNonMaxSuppressionKernel::configure(), NESeparableConvolutionHorKernel< matrix_size >::configure(), NEEdgeTraceKernel::configure(), CLConvolutionRectangleKernel::configure(), NEConvolutionRectangleKernel::configure(), ITensor::copy_from(), SubTensorInfo::extend_padding(), TensorInfo::extend_padding(), AssetsLibrary::fill_borders_with_garbage(), BorderSize::limit(), arm_compute::cpu::nearest_neon_scale(), arm_compute::cpu::offset_no_padding(), arm_compute::operator<<(), BorderSize::operator==(), NEFillBorderKernel::run(), NEFillBorderKernel::run_op(), CpuPoolingAssemblyWrapperKernel::run_op(), arm_compute::test::shape_to_valid_region_laplacian_pyramid(), AccessWindowTranspose::update_padding_if_needed(), AccessWindowStatic::update_padding_if_needed(), AccessWindowRectangle::update_padding_if_needed(), AccessWindowRectangle::update_window_if_needed(), and arm_compute::test::validation::validate().
unsigned int right |
right of the border
Definition at line 376 of file Types.h.
Referenced by TensorInfo::auto_padding(), arm_compute::cpu::bilinear_neon_scale(), arm_compute::calculate_max_enlarged_window(), arm_compute::calculate_max_window(), arm_compute::calculate_max_window_horizontal(), AccessWindowTranspose::compute_valid_region(), AccessWindowRectangle::compute_valid_region(), GCScaleKernel::configure(), CLWarpPerspectiveKernel::configure(), CLScaleKernel::configure(), ClPoolingKernel::configure(), CLWarpAffineKernel::configure(), GCDepthwiseConvolutionLayer3x3Kernel::configure(), GCFillBorderKernel::configure(), INEWarpKernel::configure(), GCDirectConvolutionLayerKernel< kernel_size >::configure(), NEScaleKernel::configure(), CLRemapKernel::configure(), GCTensorShiftKernel::configure(), CLFillBorderKernel::configure(), GCIm2ColKernel::configure(), NEEdgeTraceKernel::configure(), ITensor::copy_from(), arm_compute::test::validation::DATA_TEST_CASE(), SubTensorInfo::extend_padding(), TensorInfo::extend_padding(), AssetsLibrary::fill_borders_with_garbage(), BorderSize::limit(), arm_compute::cpu::nearest_neon_scale(), arm_compute::cpu::offset_no_padding(), arm_compute::operator<<(), BorderSize::operator==(), NEFillBorderKernel::run(), NEFillBorderKernel::run_op(), arm_compute::test::shape_to_valid_region_laplacian_pyramid(), arm_compute::test::validation::TEST_CASE(), AccessWindowTranspose::update_padding_if_needed(), AccessWindowStatic::update_padding_if_needed(), AccessWindowRectangle::update_padding_if_needed(), AccessWindowRectangle::update_window_if_needed(), and arm_compute::test::validation::validate().
unsigned int top |
top of the border
Definition at line 375 of file Types.h.
Referenced by TensorInfo::auto_padding(), arm_compute::cpu::bilinear_neon_scale(), arm_compute::calculate_max_enlarged_window(), arm_compute::calculate_max_window(), arm_compute::calculate_max_window_horizontal(), AccessWindowTranspose::compute_valid_region(), AccessWindowRectangle::compute_valid_region(), GCScaleKernel::configure(), CLBox3x3Kernel::configure(), CLGaussian3x3Kernel::configure(), CLWarpPerspectiveKernel::configure(), CLDilateKernel::configure(), CLMedian3x3Kernel::configure(), CLErodeKernel::configure(), ClPoolingKernel::configure(), CLNonMaximaSuppression3x3Kernel::configure(), CLWarpAffineKernel::configure(), GCDepthwiseConvolutionLayer3x3Kernel::configure(), NEMedian3x3Kernel::configure(), GCFillBorderKernel::configure(), NEDilateKernel::configure(), NEErodeKernel::configure(), NEGaussian3x3Kernel::configure(), INEWarpKernel::configure(), GCDirectConvolutionLayerKernel< kernel_size >::configure(), NEDerivativeKernel::configure(), NENonMaximaSuppression3x3Kernel::configure(), NEFastCornersKernel::configure(), NENonLinearFilterKernel::configure(), CLNonLinearFilterKernel::configure(), CLRemapKernel::configure(), CLSobel3x3Kernel::configure(), CLDerivativeKernel::configure(), NESobel3x3Kernel::configure(), NEScharr3x3Kernel::configure(), CLFillBorderKernel::configure(), CLFastCornersKernel::configure(), CLHarrisScoreKernel::configure(), NEConvolutionKernel< matrix_size >::configure(), CLScharr3x3Kernel::configure(), NEGaussianPyramidVertKernel::configure(), NEGaussian5x5VertKernel::configure(), CLGaussianPyramidVertKernel::configure(), NESobel5x5VertKernel::configure(), CLEdgeNonMaxSuppressionKernel::configure(), NESobel7x7VertKernel::configure(), CLSobel7x7VertKernel::configure(), CLSobel5x5VertKernel::configure(), NEEdgeNonMaxSuppressionKernel::configure(), CLSeparableConvolutionVertKernel< matrix_size >::configure(), NEEdgeTraceKernel::configure(), NESeparableConvolutionVertKernel< matrix_size >::configure(), CLConvolutionRectangleKernel::configure(), NEConvolutionRectangleKernel::configure(), ITensor::copy_from(), SubTensorInfo::extend_padding(), TensorInfo::extend_padding(), AssetsLibrary::fill_borders_with_garbage(), BorderSize::limit(), arm_compute::cpu::nearest_neon_scale(), arm_compute::cpu::offset_no_padding(), arm_compute::operator<<(), BorderSize::operator==(), NEFillBorderKernel::run(), CLGEMMLowpMatrixMultiplyNativeKernel::run(), CLGEMMReshapeLHSMatrixKernel::run(), CLGEMMMatrixMultiplyKernel::run(), CLGEMMLowpMatrixMultiplyReshapedKernel::run(), CLGEMMMatrixMultiplyNativeKernel::run(), CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel::run(), CLGEMMMatrixMultiplyReshapedOnlyRHSKernel::run(), CLGEMM::run(), NEGEMMConvolutionLayer::run(), NEFillBorderKernel::run_op(), arm_compute::test::shape_to_valid_region_laplacian_pyramid(), arm_compute::test::validation::TEST_CASE(), AccessWindowTranspose::update_padding_if_needed(), AccessWindowStatic::update_padding_if_needed(), AccessWindowRectangle::update_padding_if_needed(), AccessWindowRectangle::update_window_if_needed(), and arm_compute::test::validation::validate().