3#include <pcl/PointIndices.h>
4#include <pcl/point_cloud.h>
6#include <SimoxUtility/shapes/AxisAlignedBoundingBox.h>
8#include <VisionX/interface/core/DataTypes.h>
14 BoundingBox3D
toBoundingBox3D(
const simox::AxisAlignedBoundingBox& aabb);
16 simox::AxisAlignedBoundingBox
toAABB(
const BoundingBox3D& boundingBox);
24 template <
typename Po
intCloudT>
25 simox::AxisAlignedBoundingBox
26 getAABB(
const PointCloudT& pointCloud,
const pcl::PointIndices& indices = {})
28 simox::AxisAlignedBoundingBox aabb(
29 Eigen::Vector3f::Constant(std::numeric_limits<float>::max()),
30 Eigen::Vector3f::Constant(std::numeric_limits<float>::min()));
32 if (indices.indices.empty())
35 for (
const auto& p : pointCloud)
45 aabb.expand_to(pointCloud.at(
static_cast<std::size_t
>(i)));
52 template <
class Po
intCloudT>
53 simox::AxisAlignedBoundingBox
54 getAABB(
const PointCloudT& pointCloud,
const pcl::PointIndices::Ptr& indices)
56 return getAABB(pointCloud, indices ? *indices : pcl::PointIndices());
pcl::PointIndices::Ptr indices(const PCG &g)
Retrieve the indices of the points of the point cloud stored in a point cloud graph that actually bel...