24 #ifndef __ARM_COMPUTE_TYPES_H__ 25 #define __ARM_COMPUTE_TYPES_H__ 99 : anchor{ anchor }, shape{ shape }
120 : top{ 0 }, right{ 0 }, bottom{ 0 }, left{ 0 }
126 : top{ size }, right{ size }, bottom{ size }, left{ size }
131 constexpr
BorderSize(
unsigned int top_bottom,
unsigned int left_right)
132 : top{ top_bottom }, right{ left_right }, bottom{ top_bottom }, left{ left_right }
137 constexpr
BorderSize(
unsigned int top,
unsigned int right,
unsigned int bottom,
unsigned int left)
138 : top{ top }, right{ right }, bottom{ bottom }, left{ left }
145 return top == 0 && right == 0 && bottom == 0 && left == 0;
151 return top == right && top == bottom && top == left;
246 float strength{ 0.f };
248 float orientation{ 0.f };
249 int32_t tracking_status{ 0 };
340 uint16_t height{ 0 };
341 uint16_t idx_class{ 0 };
374 unsigned int pad_x = 0,
unsigned int pad_y = 0,
376 : _stride(std::make_pair(stride_x, stride_y)),
377 _pad(std::make_pair(pad_x, pad_y)),
381 std::pair<unsigned int, unsigned int>
stride()
const 385 std::pair<unsigned int, unsigned int>
pad()
const 395 std::pair<unsigned int, unsigned int> _stride;
396 std::pair<unsigned int, unsigned int> _pad;
411 : _pool_type(pool_type), _pool_size(pool_size), _pad_stride_info(pad_stride_info)
424 return _pad_stride_info;
429 unsigned int _pool_size;
459 : _act(f), _a(a), _b(b)
494 : _type(type), _norm_size(norm_size), _alpha(alpha), _beta(beta), _kappa(kappa)
522 return (_kappa == 1.f) ? (_alpha / _norm_size) : _alpha;
554 unsigned int precision = 10,
555 bool align_columns =
true,
556 std::string element_delim =
" ",
557 std::string row_delim =
"\n")
558 : print_region(print_region),
559 precision_type(precision_type),
560 precision(precision),
561 element_delim(element_delim),
562 row_delim(row_delim),
563 align_columns(align_columns)
BorderMode
Methods available to handle borders.
constexpr float SCALE_PYRAMID_ORB
constexpr float SCALE_PYRAMID_HALF
L2-norm followed by clipping.
constexpr bool empty() const
Check if the entire border is zero.
A 3 plane of 8-bit 4:2:0 sampled Y, U, V planes.
InterpolationPolicy
Interpolation method.
Second channel (used by formats with unknown channel types).
std::pair< unsigned int, unsigned int > pad() const
Container for 2D border size.
ActivationLayerInfo(ActivationFunction f, float a=0.0f, float b=0.0f)
Default Constructor.
PhaseType
Phase calculation type.
unsigned int pool_size() const
1 channel, 1 F16 per channel
PadStrideInfo pad_stride_info() const
DimensionRoundingType
Dimension rounding type when down-scaling on CNNs.
Normalization Layer Information class.
Output values are defined by bilinear interpolation between the pixels.
ActivationFunction activation() const
NormalizationLayerInfo(NormType type, uint32_t norm_size=5, float alpha=0.0001f, float beta=0.5f, float kappa=1.f)
Default Constructor.
uint32_t norm_size() const
BilinearInterpolation
Bilinear Interpolation method used by LKTracker.
A single plane of 32-bit macro pixel of Y0, U0, Y1, V0 bytes.
constexpr uint8_t CONSTANT_BORDER_VALUE
Constant value of the border pixels when using BorderMode::CONSTANT.
ThresholdType
Threshold mode.
1 channel, 1 S16 per channel
Output values are defined to match the source pixel whose center is nearest to the sample position...
Activation Layer Information class.
ValidRegion(Coordinates anchor, TensorShape shape)
A 2 plane YUV format of Luma (Y) and interleaved UV data at 4:2:0 sampling.
constexpr BorderSize(unsigned int top_bottom, unsigned int left_right)
Border with same size for top/bottom and left/right.
ActivationFunction
Available activation functions.
1 channel, 1 U32 per channel
1 channel, 1 U16 per channel
DimensionRoundingType round() const
2 channel, 1 U8 per channel
void error(const char *function, const char *file, const int line, const char *msg,...)
Print an error message then throw an std::runtime_error.
PoolingLayerInfo(PoolingType pool_type=PoolingType::MAX, unsigned int pool_size=2, PadStrideInfo pad_stride_info=PadStrideInfo())
Default Constructor.
Third channel (used by formats with unknown channel types).
1 channel, 1 S32 per channel
Channel
Available channels.
Format
Image colour formats.
std::pair< unsigned int, unsigned int > stride() const
RoundingPolicy
Rounding method.
4 channels, 1 U8 per channel
Fourth channel (used by formats with unknown channel types).
Padding and stride information class.
Termination
Termination criteria.
constexpr BorderSize(unsigned int size)
Border with equal size around the 2D plane.
constexpr bool uniform() const
Check if the border is the same size on all sides.
1 channel, 1 U8 per channel
Output values are determined by averaging the source pixels whose areas fall under the area of the de...
float scale_coeff() const
Return the scaling factor of the normalization function.
A 2 plane YUV format of Luma (Y) and interleaved VU data at 4:2:0 sampling.
PadStrideInfo(unsigned int stride_x=1, unsigned int stride_y=1, unsigned int pad_x=0, unsigned int pad_y=0, DimensionRoundingType round=DimensionRoundingType::FLOOR)
Constructor.
3 channels, 1 U8 per channel
PoolingType
Available pooling types.
Rounds to nearest even output value.
HOGNormType
Normalization type for Histogram of Oriented Gradients (HOG)
Borders are left undefined.
Pixels outside the image are assumed to have the same value as the closest image pixel.
constexpr BorderSize()
Empty border, i.e.
PoolingType pool_type() const
Detection window used for the object detection.
uint16_t width
Width of the rectangle.
1 channel, 1 F32 per channel
Threshold with two values.
uint16_t y
Top-left y coordinate.
Pixels outside the image are assumed to have a constant value.
constexpr BorderSize(unsigned int top, unsigned int right, unsigned int bottom, unsigned int left)
Border with different sizes.
uint16_t x
Top-left x coordinate.
BorderSize operator*(float scale)
Threshold with one value.
MagnitudeType
Magnitude calculation type.
uint16_t height
Height of the rectangle.
A 3 plane of 8 bit 4:4:4 sampled Y, U, V planes.
DataType
Available data types.
Truncates the least significand values that are lost in operations.
Pooling Layer Information class.
NormType
The normalization type used for the normalization layer.
MatrixPattern
Available matrix patterns.
BorderSize & operator*=(float scale)
Any other matrix pattern.
ConvertPolicy
Policy to handle overflow.
NonLinearFilterFunction
Available non linear functions.
Non linear median filter.