42 #include <pcl/segmentation/region_3d.h>
43 #include <pcl/geometry/planar_polygon.h>
50 template <
typename Po
intT>
87 PlanarRegion (
const Eigen::Vector3f& centroid,
const Eigen::Matrix3f& covariance,
unsigned count,
89 const Eigen::Vector4f& coefficients)
102 std::vector<bool> contour_labels_;
PlanarPolygon represents a planar (2D) polygon, potentially in a 3D space.
Eigen::Vector4f coefficients_
A list of model coefficients (a,b,c,d).
pcl::PointCloud< PointT >::VectorType contour_
A list of points on the boundary/contour of the planar region.
PlanarRegion represents a set of points that lie in a plane.
PlanarRegion()=default
Empty constructor for PlanarRegion.
PlanarRegion(const pcl::Region3D< PointT > ®ion, const pcl::PlanarPolygon< PointT > &polygon)
Constructor for Planar region from a Region3D and a PlanarPolygon.
~PlanarRegion() override=default
Destructor.
PlanarRegion(const Eigen::Vector3f ¢roid, const Eigen::Matrix3f &covariance, unsigned count, const typename pcl::PointCloud< PointT >::VectorType &contour, const Eigen::Vector4f &coefficients)
Constructor for PlanarRegion.
std::vector< PointT, Eigen::aligned_allocator< PointT > > VectorType
Region3D represents summary statistics of a 3D collection of points.
Eigen::Vector3f centroid_
The centroid of the region.
unsigned count_
The number of points in the region.
Eigen::Matrix3f covariance_
The covariance of the region.
#define PCL_MAKE_ALIGNED_OPERATOR_NEW
Macro to signal a class requires a custom allocator.
Defines functions, macros and traits for allocating and using memory.
Defines all the PCL and non-PCL macros used.