|
pcod-common v1.0.0
Shared preprocessing and postprocessing for point-cloud object detection
|
#include <bounding_box.hpp>
Public Member Functions | |
| bool | overlaps (const BoundingBox &other, float iou_threshold) const |
| float | intersection_area (const BoundingBox &other) const |
| std::vector< BoundingBoxVertex > | rectangle_vertices () const |
Public Attributes | |
| std::array< float, 2 > | center |
| XY center in metres. | |
| float | z = 0.0f |
| Z center in metres. | |
| float | length = 0.0f |
| Length along the local X axis. | |
| float | width = 0.0f |
| Width along the local Y axis. | |
| float | height = 0.0f |
| Height along the Z axis. | |
| float | yaw = 0.0f |
| Heading in radians. | |
| float | existence_probability = 0.0f |
| Detection confidence. | |
| std::vector< ClassificationEntry > | classification |
| Ranked semantic predictions. | |
| bool | has_velocity = false |
| Whether velocity components are valid. | |
| float | v_x = 0.0f |
| X velocity when has_velocity is true. | |
| float | v_y = 0.0f |
| Y velocity when has_velocity is true. | |
Oriented three-dimensional detection box and its semantic attributes.
Definition at line 63 of file bounding_box.hpp.
| float pcod_common::BoundingBox::intersection_area | ( | const BoundingBox & | other | ) | const |
| other | Box to compare. |
Definition at line 11 of file bounding_box.cpp.
References pcod_common::BoundingBoxVertex::cross(), pcod_common::Line::intersection(), and rectangle_vertices().
Referenced by main(), and overlaps().
| bool pcod_common::BoundingBox::overlaps | ( | const BoundingBox & | other, |
| float | iou_threshold ) const |
| other | Box to compare. |
| iou_threshold | Required IoU. |
Definition at line 63 of file bounding_box.cpp.
References intersection_area(), length, and width.
Referenced by main().
| std::vector< BoundingBoxVertex > pcod_common::BoundingBox::rectangle_vertices | ( | ) | const |
Return the four XY vertices in rectangle order.
Definition at line 70 of file bounding_box.cpp.
References center, length, width, and yaw.
Referenced by intersection_area().
| std::array<float, 2> pcod_common::BoundingBox::center |
XY center in metres.
Definition at line 64 of file bounding_box.hpp.
Referenced by pcod_common::DecodePbod(), main(), and rectangle_vertices().
| std::vector<ClassificationEntry> pcod_common::BoundingBox::classification |
Ranked semantic predictions.
Definition at line 71 of file bounding_box.hpp.
Referenced by pcod_common::DecodePbod(), and main().
| float pcod_common::BoundingBox::existence_probability = 0.0f |
Detection confidence.
Definition at line 70 of file bounding_box.hpp.
Referenced by pcod_common::DecodePbod(), and main().
| bool pcod_common::BoundingBox::has_velocity = false |
Whether velocity components are valid.
Definition at line 72 of file bounding_box.hpp.
| float pcod_common::BoundingBox::height = 0.0f |
Height along the Z axis.
Definition at line 68 of file bounding_box.hpp.
Referenced by pcod_common::DecodePbod().
| float pcod_common::BoundingBox::length = 0.0f |
Length along the local X axis.
Definition at line 66 of file bounding_box.hpp.
Referenced by pcod_common::DecodePbod(), main(), overlaps(), and rectangle_vertices().
| float pcod_common::BoundingBox::v_x = 0.0f |
X velocity when has_velocity is true.
Definition at line 73 of file bounding_box.hpp.
| float pcod_common::BoundingBox::v_y = 0.0f |
Y velocity when has_velocity is true.
Definition at line 74 of file bounding_box.hpp.
| float pcod_common::BoundingBox::width = 0.0f |
Width along the local Y axis.
Definition at line 67 of file bounding_box.hpp.
Referenced by pcod_common::DecodePbod(), main(), overlaps(), and rectangle_vertices().
| float pcod_common::BoundingBox::yaw = 0.0f |
Heading in radians.
Definition at line 69 of file bounding_box.hpp.
Referenced by pcod_common::DecodePbod(), and rectangle_vertices().
| float pcod_common::BoundingBox::z = 0.0f |
Z center in metres.
Definition at line 65 of file bounding_box.hpp.
Referenced by pcod_common::DecodePbod().