Public Member Functions | |
void | compute () |
void | estimateNormals (const typename PointCloud< PointT >::ConstPtr &input, PointCloud< Normal > &normals) |
void | initGUI () |
void | keyboard_callback (const visualization::KeyboardEvent &, void *) |
bool | load (const std::string &file) |
void | mouse_callback (const visualization::MouseEvent &mouse_event, void *) |
ObjectSelection () | |
void | pp_callback (const visualization::PointPickingEvent &event, void *) |
Point picking callback. This gets called when the user selects a 3D point on screen (in the PCLVisualizer window) using Shift+click. | |
void | save (const std::string &object_file, const std::string &plane_file) |
void | segment (const PointT &picked_point, int picked_idx, PlanarRegion< PointT > ®ion, typename PointCloud< PointT >::Ptr &object) |
void | segmentObject (int picked_idx, const typename PointCloud< PointT >::ConstPtr &cloud, const PointIndices::Ptr &plane_indices, PointCloud< PointT > &object) |
Given a plane, and the set of inlier indices representing it, segment out the object of intererest supported by it. | |
virtual | ~ObjectSelection () |
Public Attributes | |
PointCloud< PointT >::Ptr | cloud_ |
boost::shared_ptr < visualization::PCLVisualizer > | cloud_viewer_ |
boost::shared_ptr < visualization::ImageViewer > | image_viewer_ |
search::Search< PointT >::Ptr | search_ |
Private Attributes | |
std::vector< float > | distance_map_ |
PointCloud< PointT >::Ptr | object_ |
PointCloud< PointT >::Ptr | plane_ |
EdgeAwarePlaneComparator < PointT, Normal >::Ptr | plane_comparator_ |
PointIndices::Ptr | plane_indices_ |
unsigned char * | rgb_data_ |
Definition at line 76 of file pcd_select_object_plane.cpp.
ObjectSelection< PointT >::ObjectSelection | ( | ) | [inline] |
Definition at line 79 of file pcd_select_object_plane.cpp.
virtual ObjectSelection< PointT >::~ObjectSelection | ( | ) | [inline, virtual] |
Definition at line 88 of file pcd_select_object_plane.cpp.
void ObjectSelection< PointT >::compute | ( | ) | [inline] |
Definition at line 499 of file pcd_select_object_plane.cpp.
void ObjectSelection< PointT >::estimateNormals | ( | const typename PointCloud< PointT >::ConstPtr & | input, |
PointCloud< Normal > & | normals | ||
) | [inline] |
Definition at line 96 of file pcd_select_object_plane.cpp.
void ObjectSelection< PointT >::initGUI | ( | ) | [inline] |
Definition at line 525 of file pcd_select_object_plane.cpp.
void ObjectSelection< PointT >::keyboard_callback | ( | const visualization::KeyboardEvent & | , |
void * | |||
) | [inline] |
Definition at line 126 of file pcd_select_object_plane.cpp.
bool ObjectSelection< PointT >::load | ( | const std::string & | file | ) | [inline] |
Definition at line 574 of file pcd_select_object_plane.cpp.
void ObjectSelection< PointT >::mouse_callback | ( | const visualization::MouseEvent & | mouse_event, |
void * | |||
) | [inline] |
Definition at line 140 of file pcd_select_object_plane.cpp.
void ObjectSelection< PointT >::pp_callback | ( | const visualization::PointPickingEvent & | event, |
void * | |||
) | [inline] |
Point picking callback. This gets called when the user selects a 3D point on screen (in the PCLVisualizer window) using Shift+click.
[in] | event | the event that triggered the call |
Definition at line 409 of file pcd_select_object_plane.cpp.
void ObjectSelection< PointT >::save | ( | const std::string & | object_file, |
const std::string & | plane_file | ||
) | [inline] |
Definition at line 601 of file pcd_select_object_plane.cpp.
void ObjectSelection< PointT >::segment | ( | const PointT & | picked_point, |
int | picked_idx, | ||
PlanarRegion< PointT > & | region, | ||
typename PointCloud< PointT >::Ptr & | object | ||
) | [inline] |
Definition at line 253 of file pcd_select_object_plane.cpp.
void ObjectSelection< PointT >::segmentObject | ( | int | picked_idx, |
const typename PointCloud< PointT >::ConstPtr & | cloud, | ||
const PointIndices::Ptr & | plane_indices, | ||
PointCloud< PointT > & | object | ||
) | [inline] |
Given a plane, and the set of inlier indices representing it, segment out the object of intererest supported by it.
[in] | picked_idx | the index of a point on the object |
[in] | cloud | the full point cloud dataset |
[in] | plane_indices | a set of indices representing the plane supporting the object of interest |
[out] | object | the segmented resultant object |
Definition at line 158 of file pcd_select_object_plane.cpp.
PointCloud<PointT>::Ptr ObjectSelection< PointT >::cloud_ |
Definition at line 615 of file pcd_select_object_plane.cpp.
boost::shared_ptr<visualization::PCLVisualizer> ObjectSelection< PointT >::cloud_viewer_ |
Definition at line 612 of file pcd_select_object_plane.cpp.
std::vector<float> ObjectSelection< PointT >::distance_map_ [private] |
Definition at line 622 of file pcd_select_object_plane.cpp.
boost::shared_ptr<visualization::ImageViewer> ObjectSelection< PointT >::image_viewer_ |
Definition at line 613 of file pcd_select_object_plane.cpp.
PointCloud<PointT>::Ptr ObjectSelection< PointT >::object_ [private] |
Definition at line 626 of file pcd_select_object_plane.cpp.
PointCloud<PointT>::Ptr ObjectSelection< PointT >::plane_ [private] |
Definition at line 625 of file pcd_select_object_plane.cpp.
EdgeAwarePlaneComparator<PointT, Normal>::Ptr ObjectSelection< PointT >::plane_comparator_ [private] |
Definition at line 619 of file pcd_select_object_plane.cpp.
PointIndices::Ptr ObjectSelection< PointT >::plane_indices_ [private] |
Definition at line 620 of file pcd_select_object_plane.cpp.
unsigned char* ObjectSelection< PointT >::rgb_data_ [private] |
Definition at line 621 of file pcd_select_object_plane.cpp.
search::Search<PointT>::Ptr ObjectSelection< PointT >::search_ |
Definition at line 616 of file pcd_select_object_plane.cpp.