Functions
polygon_filter.h File Reference
#include <pcl/point_types.h>
#include <pcl/point_cloud.h>
Include dependency graph for polygon_filter.h:
This graph shows which files directly or indirectly include this file:

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)

Function Documentation

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.

Definition at line 58 of file polygon_filter.cpp.

template<class point_type1 >
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.

template<class point_type1 >
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.

template<class point_type1 >
pcl::PointCloud<point_type1> standardCroppingPolygon2 ( float  door_radius)

Definition at line 38 of file polygon_filter.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


door_perception
Author(s): Felix Endres
autogenerated on Wed Dec 26 2012 16:03:53