35 std::shared_ptr<const base::Object> obj,
48template <
typename VectorType>
50 if (pt[0] < 0 || pt[0] > width || pt[1] < 0 || pt[1] > height) {
65template <
typename Type>
68 const Type& augmented_buffer) {
70 augmented_box1.
xmin -= augmented_buffer;
71 augmented_box1.
ymin -= augmented_buffer;
72 augmented_box1.
xmax += augmented_buffer;
73 augmented_box1.
ymax += augmented_buffer;
75 augmented_box2.
xmin -= augmented_buffer;
76 augmented_box2.
ymin -= augmented_buffer;
77 augmented_box2.
xmax += augmented_buffer;
78 augmented_box2.
ymax += augmented_buffer;
91 const Eigen::Matrix4d& world2camera_pose,
93 Eigen::Vector2d* pt2d);
100 const std::shared_ptr<const base::Object>& obj,
101 const Eigen::Matrix4d& world2camera_pose,
114 const Eigen::Affine3d& camera_sensor2world_pose,
115 double camera_ts,
double camera_max_dist,
116 bool motion_compensation,
bool all_in);
std::vector< EigenType, Eigen::aligned_allocator< EigenType > > EigenVector
Type CalculateIOUBBox(const base::BBox2D< Type > &box1, const base::BBox2D< Type > &box2)
std::shared_ptr< BaseCameraModel > BaseCameraModelPtr
std::shared_ptr< const SensorObject > SensorObjectConstPtr
bool IsObjectEightVerticesAllBehindCamera(const std::shared_ptr< const base::Object > &obj, const Eigen::Matrix4d &world2camera_pose, base::BaseCameraModelPtr camera_model)
bool Pt3dToCamera2d(const Eigen::Vector3d &pt3d, const Eigen::Matrix4d &world2camera_pose, base::BaseCameraModelPtr camera_model, Eigen::Vector2d *pt2d)
Type CalculateAugmentedIOUBBox(const base::BBox2D< Type > &box1, const base::BBox2D< Type > &box2, const Type &augmented_buffer)
Calculate augmented IOU BBox
float ObjectInCameraView(SensorObjectConstPtr sensor_object, base::BaseCameraModelPtr camera_model, const Eigen::Affine3d &camera_sensor2world_pose, double camera_ts, double camera_max_dist, bool motion_compensation, bool all_in)
void GetObjectEightVertices(std::shared_ptr< const base::Object > obj, EigenVector< Eigen::Vector3d > *vertices)
bool IsPtInFrustum(const VectorType &pt, double width, double height)
Is point lies in the frustum