PriorBox layer info.
More...
#include <Types.h>
|
| PriorBoxLayerInfo () |
| Default Constructor. More...
|
|
| PriorBoxLayerInfo (const std::vector< float > &min_sizes, const std::vector< float > &variances, float offset, bool flip=true, bool clip=false, const std::vector< float > &max_sizes={}, const std::vector< float > &aspect_ratios={}, const Coordinates2D &img_size=Coordinates2D{0, 0}, const std::array< float, 2 > &steps={{0.f, 0.f}}) |
| Constructor. More...
|
|
std::vector< float > | min_sizes () const |
| Get min sizes. More...
|
|
std::vector< float > | variances () const |
| Get min variances. More...
|
|
std::array< float, 2 > | steps () const |
| Get the step coordinates. More...
|
|
Coordinates2D | img_size () const |
| Get the image size coordinates. More...
|
|
float | offset () const |
| Get the offset. More...
|
|
bool | flip () const |
| Get the flip value. More...
|
|
bool | clip () const |
| Get the clip value. More...
|
|
std::vector< float > | max_sizes () const |
| Get max sizes. More...
|
|
std::vector< float > | aspect_ratios () const |
| Get aspect ratios. More...
|
|
PriorBox layer info.
Definition at line 647 of file Types.h.
◆ PriorBoxLayerInfo() [1/2]
Default Constructor.
Definition at line 651 of file Types.h.
◆ PriorBoxLayerInfo() [2/2]
PriorBoxLayerInfo |
( |
const std::vector< float > & |
min_sizes, |
|
|
const std::vector< float > & |
variances, |
|
|
float |
offset, |
|
|
bool |
flip = true , |
|
|
bool |
clip = false , |
|
|
const std::vector< float > & |
max_sizes = {} , |
|
|
const std::vector< float > & |
aspect_ratios = {} , |
|
|
const Coordinates2D & |
img_size = Coordinates2D{0, 0} , |
|
|
const std::array< float, 2 > & |
steps = {{0.f, 0.f}} |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
[in] | min_sizes | Min sizes vector. |
[in] | variances | Variances vector. |
[in] | offset | Offset value. |
[in] | flip | (Optional) Flip the aspect ratios. |
[in] | clip | (Optional) Clip coordinates so that they're within [0,1]. |
[in] | max_sizes | (Optional) Max sizes vector. |
[in] | aspect_ratios | (Optional) Aspect ratios of the boxes. |
[in] | img_size | (Optional) Image size. |
[in] | steps | (Optional) Step values. |
Definition at line 675 of file Types.h.
683 const std::array<float, 2> &
steps = {{0.f, 0.f}})
694 _aspect_ratios.push_back(1.);
698 bool already_exist =
false;
699 for (
auto ar_new : _aspect_ratios)
701 if (fabs(ar - ar_new) < 1e-6)
703 already_exist =
true;
709 _aspect_ratios.push_back(ar);
712 _aspect_ratios.push_back(1.f / ar);
◆ aspect_ratios()
std::vector<float> aspect_ratios |
( |
| ) |
const |
|
inline |
◆ clip()
Get the clip value.
Definition at line 748 of file Types.h.
◆ flip()
Get the flip value.
Definition at line 743 of file Types.h.
◆ img_size()
Get the image size coordinates.
Definition at line 733 of file Types.h.
◆ max_sizes()
std::vector<float> max_sizes |
( |
| ) |
const |
|
inline |
◆ min_sizes()
std::vector<float> min_sizes |
( |
| ) |
const |
|
inline |
◆ offset()
Get the offset.
Definition at line 738 of file Types.h.
◆ steps()
std::array<float, 2> steps |
( |
| ) |
const |
|
inline |
Get the step coordinates.
Definition at line 728 of file Types.h.
◆ variances()
std::vector<float> variances |
( |
| ) |
const |
|
inline |
Get min variances.
Definition at line 723 of file Types.h.
The documentation for this class was generated from the following file: