40 #ifndef PCL_GEOMETRY_POLYGON_OPERATORS_H 41 #define PCL_GEOMETRY_POLYGON_OPERATORS_H 43 #include "planar_polygon.h" 44 #include <pcl/point_cloud.h> 51 template <
typename Po
intT>
52 void approximatePolygon (
const PlanarPolygon<PointT>& polygon, PlanarPolygon<PointT>& approx_polygon,
float threshold,
bool refine =
false,
bool closed =
true);
64 template <
typename Po
intT>
67 float threshold,
bool refine =
false,
bool closed =
true);
71 #include "impl/polygon_operations.hpp" 72 #endif // PCL_GEOMETRY_POLYGON_OPERATORS_H======= void approximatePolygon2D(const typename PointCloud< PointT >::VectorType &polygon, typename PointCloud< PointT >::VectorType &approx_polygon, float threshold, bool refine=false, bool closed=true)
returns an approximate polygon to given 2D contour.
void approximatePolygon(const PlanarPolygon< PointT > &polygon, PlanarPolygon< PointT > &approx_polygon, float threshold, bool refine=false, bool closed=true)
see approximatePolygon2D
std::vector< PointT, Eigen::aligned_allocator< PointT > > VectorType