#include <pcl/point_types.h>
#include <pcl/point_cloud.h>
Go to the source code of this file.
Functions | |
template<class point_type1 > | |
pcl::PointCloud< point_type1 > | crop_by_polygon (const pcl::PointCloud< point_type1 > &cropping_polygon, const pcl::PointCloud< point_type1 > &cloud_to_crop, int x=0, int y=1, bool invert=false) |
Crops a pointcloud in 2D. x and y determine the dimensions to use. | |
template<class point_type1 > | |
bool | point_inside_polygon (const pcl::PointCloud< point_type1 > &cropping_polygon, const point_type1 &query_point, int x, int y) |
template<class point_type1 > | |
pcl::PointCloud< point_type1 > | standardCroppingPolygon (float door_radius) |
template<class point_type1 > | |
pcl::PointCloud< point_type1 > | standardCroppingPolygon2 (float door_radius) |
pcl::PointCloud<point_type1> crop_by_polygon | ( | const pcl::PointCloud< point_type1 > & | cropping_polygon, |
const pcl::PointCloud< point_type1 > & | cloud_to_crop, | ||
int | x = 0 , |
||
int | y = 1 , |
||
bool | invert = false |
||
) |
Crops a pointcloud in 2D. x and y determine the dimensions to use.
Definition at line 58 of file polygon_filter.cpp.
bool point_inside_polygon | ( | const pcl::PointCloud< point_type1 > & | cropping_polygon, |
const point_type1 & | query_point, | ||
int | x, | ||
int | y | ||
) |
Determines whether a point is inside a 2D polygon. x and y determine the dimensions to use This is a variation of the algorithm at http://paulbourke.net/geometry/insidepoly/ point_type2 needs only provide the data[] member, regardless of fancy stuff in point_type1
Definition at line 8 of file polygon_filter.cpp.
pcl::PointCloud<point_type1> standardCroppingPolygon | ( | float | door_radius | ) |
Append the inside radius points at front, the outside_radius points at end Results in right sequence for going inside from min_angle to max_angle and back on the outside
inefficient but easy to understand
Definition at line 15 of file polygon_filter.h.
pcl::PointCloud<point_type1> standardCroppingPolygon2 | ( | float | door_radius | ) |
Definition at line 38 of file polygon_filter.h.