5 #include <SemanticObjectRelations/ShapeExtraction/util/SoftMinMax.h>
6 #include <SemanticObjectRelations/Shapes.h>
14 template <
class Po
intT>
18 const std::map<uint32_t, pcl::PointIndices> segmentIndices =
20 const std::map<uint32_t, AxisAlignedBoundingBox> aabbs =
29 return ::getShapesFromAABBs<pcl::PointXYZL>(pointCloud);
35 return ::getShapesFromAABBs<pcl::PointXYZRGBL>(pointCloud);
42 shapes.reserve(segmentAABBs.size());
43 for (
const auto& [label, aabb] : segmentAABBs)
45 shapes.emplace_back(
new semrel::Box(aabb, semrel::ShapeID(label)));
52 template <
class Po
intT>
56 const std::map<uint32_t, pcl::PointIndices> segmentIndices =
59 std::map<uint32_t, AxisAlignedBoundingBox> segmentAABBs;
60 for (
const auto& [label,
indices] : segmentIndices)