Public Member Functions | Public Attributes | Private Attributes
ObjectSelection< PointT > Class Template Reference

List of all members.

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 > &region, 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_

Detailed Description

template<typename PointT>
class ObjectSelection< PointT >

Definition at line 76 of file pcd_select_object_plane.cpp.


Constructor & Destructor Documentation

template<typename PointT>
ObjectSelection< PointT >::ObjectSelection ( ) [inline]

Definition at line 79 of file pcd_select_object_plane.cpp.

template<typename PointT>
virtual ObjectSelection< PointT >::~ObjectSelection ( ) [inline, virtual]

Definition at line 88 of file pcd_select_object_plane.cpp.


Member Function Documentation

template<typename PointT>
void ObjectSelection< PointT >::compute ( ) [inline]

Definition at line 499 of file pcd_select_object_plane.cpp.

template<typename PointT>
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.

template<typename PointT>
void ObjectSelection< PointT >::initGUI ( ) [inline]

Definition at line 525 of file pcd_select_object_plane.cpp.

template<typename PointT>
void ObjectSelection< PointT >::keyboard_callback ( const visualization::KeyboardEvent ,
void *   
) [inline]

Definition at line 126 of file pcd_select_object_plane.cpp.

template<typename PointT>
bool ObjectSelection< PointT >::load ( const std::string file) [inline]

Definition at line 574 of file pcd_select_object_plane.cpp.

template<typename PointT>
void ObjectSelection< PointT >::mouse_callback ( const visualization::MouseEvent mouse_event,
void *   
) [inline]

Definition at line 140 of file pcd_select_object_plane.cpp.

template<typename PointT>
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.

Parameters:
[in]eventthe event that triggered the call

Definition at line 409 of file pcd_select_object_plane.cpp.

template<typename PointT>
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.

template<typename PointT>
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.

template<typename PointT>
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.

Parameters:
[in]picked_idxthe index of a point on the object
[in]cloudthe full point cloud dataset
[in]plane_indicesa set of indices representing the plane supporting the object of interest
[out]objectthe segmented resultant object

Definition at line 158 of file pcd_select_object_plane.cpp.


Member Data Documentation

template<typename PointT>
PointCloud<PointT>::Ptr ObjectSelection< PointT >::cloud_

Definition at line 615 of file pcd_select_object_plane.cpp.

template<typename PointT>
boost::shared_ptr<visualization::PCLVisualizer> ObjectSelection< PointT >::cloud_viewer_

Definition at line 612 of file pcd_select_object_plane.cpp.

template<typename PointT>
std::vector<float> ObjectSelection< PointT >::distance_map_ [private]

Definition at line 622 of file pcd_select_object_plane.cpp.

template<typename PointT>
boost::shared_ptr<visualization::ImageViewer> ObjectSelection< PointT >::image_viewer_

Definition at line 613 of file pcd_select_object_plane.cpp.

template<typename PointT>
PointCloud<PointT>::Ptr ObjectSelection< PointT >::object_ [private]

Definition at line 626 of file pcd_select_object_plane.cpp.

template<typename PointT>
PointCloud<PointT>::Ptr ObjectSelection< PointT >::plane_ [private]

Definition at line 625 of file pcd_select_object_plane.cpp.

template<typename PointT>
EdgeAwarePlaneComparator<PointT, Normal>::Ptr ObjectSelection< PointT >::plane_comparator_ [private]

Definition at line 619 of file pcd_select_object_plane.cpp.

template<typename PointT>
PointIndices::Ptr ObjectSelection< PointT >::plane_indices_ [private]

Definition at line 620 of file pcd_select_object_plane.cpp.

template<typename PointT>
unsigned char* ObjectSelection< PointT >::rgb_data_ [private]

Definition at line 621 of file pcd_select_object_plane.cpp.

template<typename PointT>
search::Search<PointT>::Ptr ObjectSelection< PointT >::search_

Definition at line 616 of file pcd_select_object_plane.cpp.


The documentation for this class was generated from the following file:


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:38:50