Compute Library
 21.02
BoundingBoxTransformInfo Class Referencefinal

Bounding Box Transform information class. More...

#include <Types.h>

Public Member Functions

 BoundingBoxTransformInfo (float img_width, float img_height, float scale, bool apply_scale=false, const std::array< float, 4 > weights={ { 1.f, 1.f, 1.f, 1.f } }, bool correct_transform_coords=false, float bbox_xform_clip=4.135166556742356f)
 Constructor. More...
 
std::array< float, 4 > weights () const
 
float bbox_xform_clip () const
 
float img_height () const
 
float img_width () const
 
float scale () const
 
bool apply_scale () const
 
bool correct_transform_coords () const
 

Detailed Description

Bounding Box Transform information class.

Definition at line 1483 of file Types.h.

Constructor & Destructor Documentation

◆ BoundingBoxTransformInfo()

BoundingBoxTransformInfo ( float  img_width,
float  img_height,
float  scale,
bool  apply_scale = false,
const std::array< float, 4 >  weights = { { 1.f, 1.f, 1.f, 1.f } },
bool  correct_transform_coords = false,
float  bbox_xform_clip = 4.135166556742356f 
)
inline

Constructor.

Parameters
[in]img_widthWidth of the original image
[in]img_heightHeight, of the original image
[in]scaleScale of the original image
[in]apply_scale(Optional)Re-apply scaling after transforming the boxes. Defaults to false
[in]weights(Optional)Weights [wx, wy, ww, wh] for the deltas. Defaults to all ones
[in]correct_transform_coords(Optional)Correct bounding box transform coordinates. Defaults to false
[in]bbox_xform_clip(Optional)Minimum bounding box width and height after bounding box transformation in log-space. Defaults to log(1000/16)

Definition at line 1496 of file Types.h.

1496  { { 1.f, 1.f, 1.f, 1.f } }, bool correct_transform_coords =
1497  false,
1498  float bbox_xform_clip =
1499  4.135166556742356f)
1500  : _img_width(img_width), _img_height(img_height), _scale(scale), _apply_scale(apply_scale), _correct_transform_coords(correct_transform_coords), _weights(weights), _bbox_xform_clip(bbox_xform_clip)
1501  {
1502  }
std::array< float, 4 > weights() const
Definition: Types.h:1504

Member Function Documentation

◆ apply_scale()

bool apply_scale ( ) const
inline

◆ bbox_xform_clip()

float bbox_xform_clip ( ) const
inline

◆ correct_transform_coords()

bool correct_transform_coords ( ) const
inline

Definition at line 1534 of file Types.h.

Referenced by arm_compute::test::validation::reference::bounding_box_transform(), CLBoundingBoxTransformKernel::configure(), and NEBoundingBoxTransformKernel::validate().

1535  {
1536  return _correct_transform_coords;
1537  }

◆ img_height()

float img_height ( ) const
inline

◆ img_width()

float img_width ( ) const
inline

◆ scale()

float scale ( ) const
inline

◆ weights()

std::array<float, 4> weights ( ) const
inline

The documentation for this class was generated from the following file: