pcl::ConvexHull< PointInT > Class Template Reference
[Module surface]

ConvexHull using libqhull library. More...

#include <pcl/surface/convex_hull.h>

Inheritance diagram for pcl::ConvexHull< PointInT >:
Inheritance graph
[legend]
Collaboration diagram for pcl::ConvexHull< PointInT >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef pcl::PointCloud< PointInT > PointCloud
typedef PointCloud::Ptr PointCloudPtr
typedef PointCloud::ConstPtr PointCloudConstPtr
typedef pcl::search::Search
< PointInT > 
KdTree
typedef pcl::search::Search
< PointInT >::Ptr 
KdTreePtr
typedef PointIndices::Ptr PointIndicesPtr
typedef PointIndices::ConstPtr PointIndicesConstPtr

Public Member Functions

 ConvexHull ()
 Empty constructor.
void reconstruct (PointCloud &points, std::vector< pcl::Vertices > &polygons)
 Compute a convex hull for all points given.
void reconstruct (PointCloud &output)
 Compute a convex hull for all points given.
void setComputeAreaVolume (bool value)
 If set to true, the qhull library is called to compute the total area and volume of the convex hull.
double getTotalArea () const
 Returns the total area of the convex hull.
double getTotalVolume () const
 Returns the total volume of the convex hull.
void setDimension (int dimension)
 Sets the dimension on the input data, 2D or 3D.
int getDimension () const
 Returns the dimensionality (2 or 3) of the calculated hull.
virtual void reconstruct (pcl::PolygonMesh &output)
 Base method for surface reconstruction for all points given in <setInputCloud (), setIndices ()>.
virtual void reconstruct (std::vector< pcl::Vertices > &polygons)
 Base method for mesh construction for all points given in <setInputCloud (), setIndices ()>.
void setSearchMethod (const KdTreePtr &tree)
 Provide an optional pointer to a search object.
KdTreePtr getSearchMethod ()
 Get a pointer to the search method used.
virtual void setInputCloud (const PointCloudConstPtr &cloud)
 Provide a pointer to the input dataset.
PointCloudConstPtr const getInputCloud ()
 Get a pointer to the input point cloud dataset.
void setIndices (const IndicesPtr &indices)
 Provide a pointer to the vector of indices that represents the input data.
void setIndices (const IndicesConstPtr &indices)
 Provide a pointer to the vector of indices that represents the input data.
void setIndices (const PointIndicesConstPtr &indices)
 Provide a pointer to the vector of indices that represents the input data.
void setIndices (size_t row_start, size_t col_start, size_t nb_rows, size_t nb_cols)
 Set the indices for the points laying within an interest region of the point cloud.
IndicesPtr const getIndices ()
 Get a pointer to the vector of indices used.
const PointInT & operator[] (size_t pos)
 Override PointCloud operator[] to shorten code.

Detailed Description

template<typename PointInT>
class pcl::ConvexHull< PointInT >

ConvexHull using libqhull library.

Author:
Aitor Aldoma, Alex Trevor

Definition at line 72 of file convex_hull.h.


Member Typedef Documentation

template<typename PointInT>
typedef pcl::search::Search<PointInT> pcl::PCLSurfaceBase< PointInT >::KdTree [inherited]
template<typename PointInT>
typedef pcl::search::Search<PointInT>::Ptr pcl::PCLSurfaceBase< PointInT >::KdTreePtr [inherited]
template<typename PointInT>
typedef pcl::PointCloud<PointInT> pcl::ConvexHull< PointInT >::PointCloud

Reimplemented from pcl::PCLBase< PointInT >.

Definition at line 83 of file convex_hull.h.

template<typename PointInT>
typedef PointCloud::ConstPtr pcl::ConvexHull< PointInT >::PointCloudConstPtr

Reimplemented from pcl::PCLBase< PointInT >.

Definition at line 85 of file convex_hull.h.

template<typename PointInT>
typedef PointCloud::Ptr pcl::ConvexHull< PointInT >::PointCloudPtr

Reimplemented from pcl::PCLBase< PointInT >.

Definition at line 84 of file convex_hull.h.

typedef PointIndices::ConstPtr pcl::PCLBase< PointInT >::PointIndicesConstPtr [inherited]

Definition at line 79 of file pcl_base.h.

typedef PointIndices::Ptr pcl::PCLBase< PointInT >::PointIndicesPtr [inherited]

Definition at line 78 of file pcl_base.h.


Constructor & Destructor Documentation

template<typename PointInT>
pcl::ConvexHull< PointInT >::ConvexHull (  )  [inline]

Empty constructor.

Definition at line 88 of file convex_hull.h.


Member Function Documentation

template<typename PointInT>
int pcl::ConvexHull< PointInT >::getDimension (  )  const [inline]

Returns the dimensionality (2 or 3) of the calculated hull.

Definition at line 154 of file convex_hull.h.

IndicesPtr const pcl::PCLBase< PointInT >::getIndices (  )  [inline, inherited]

Get a pointer to the vector of indices used.

Definition at line 190 of file pcl_base.h.

PointCloudConstPtr const pcl::PCLBase< PointInT >::getInputCloud (  )  [inline, inherited]

Get a pointer to the input point cloud dataset.

Definition at line 107 of file pcl_base.h.

template<typename PointInT>
KdTreePtr pcl::PCLSurfaceBase< PointInT >::getSearchMethod (  )  [inline, inherited]

Get a pointer to the search method used.

Definition at line 82 of file reconstruction.h.

template<typename PointInT>
double pcl::ConvexHull< PointInT >::getTotalArea (  )  const [inline]

Returns the total area of the convex hull.

Definition at line 126 of file convex_hull.h.

template<typename PointInT>
double pcl::ConvexHull< PointInT >::getTotalVolume (  )  const [inline]

Returns the total volume of the convex hull.

Only valid for 3-dimensional sets. For 2D-sets volume is zero.

Definition at line 135 of file convex_hull.h.

const PointInT & pcl::PCLBase< PointInT >::operator[] ( size_t  pos  )  [inline, inherited]

Override PointCloud operator[] to shorten code.

Note:
this method can be called instead of (*input_)[(*indices_)[pos]] or input_->points[(*indices_)[pos]]
Parameters:
pos position in indices_ vector

Definition at line 197 of file pcl_base.h.

template<typename PointInT >
void pcl::MeshConstruction< PointInT >::reconstruct ( std::vector< pcl::Vertices > &  polygons  )  [inline, virtual, inherited]

Base method for mesh construction for all points given in <setInputCloud (), setIndices ()>.

Parameters:
[out] polygons the resultant polygons, as a set of vertices. The Vertices structure contains an array of point indices.

Definition at line 166 of file reconstruction.hpp.

template<typename PointInT >
void pcl::MeshConstruction< PointInT >::reconstruct ( pcl::PolygonMesh &  output  )  [inline, virtual, inherited]

Base method for surface reconstruction for all points given in <setInputCloud (), setIndices ()>.

Parameters:
[out] output the resultant reconstructed surface model
Note:
This method copies the input point cloud data from PointCloud<T> to PointCloud2, and is implemented here for backwards compatibility only!

NOTE: passing in boost shared pointer with * as const& should be OK here

Implements pcl::PCLSurfaceBase< PointInT >.

Definition at line 126 of file reconstruction.hpp.

template<typename PointInT >
void pcl::ConvexHull< PointInT >::reconstruct ( PointCloud &  output  )  [inline]

Compute a convex hull for all points given.

Parameters:
[out] output the resultant convex hull vertices

Definition at line 408 of file convex_hull.hpp.

template<typename PointInT >
void pcl::ConvexHull< PointInT >::reconstruct ( PointCloud &  points,
std::vector< pcl::Vertices > &  polygons 
) [inline]

Compute a convex hull for all points given.

Parameters:
[out] points the resultant points lying on the convex hull
[out] polygons the resultant convex hull polygons, as a set of vertices. The Vertices structure contains an array of point indices.

Definition at line 451 of file convex_hull.hpp.

template<typename PointInT>
void pcl::ConvexHull< PointInT >::setComputeAreaVolume ( bool  value  )  [inline]

If set to true, the qhull library is called to compute the total area and volume of the convex hull.

NOTE: When this option is activated, the qhull library produces output to the console.

Parameters:
[in] value wheter to compute the area and the volume, default is false

Definition at line 115 of file convex_hull.h.

template<typename PointInT>
void pcl::ConvexHull< PointInT >::setDimension ( int  dimension  )  [inline]

Sets the dimension on the input data, 2D or 3D.

Parameters:
[in] dimension The dimension of the input data. If not set, this will be determined automatically.

Definition at line 144 of file convex_hull.h.

void pcl::PCLBase< PointInT >::setIndices ( size_t  row_start,
size_t  col_start,
size_t  nb_rows,
size_t  nb_cols 
) [inline, inherited]

Set the indices for the points laying within an interest region of the point cloud.

Note:
you shouldn't call this method on unorganized point clouds!
Parameters:
row_start the offset on rows
col_start the offset on columns
nb_rows the number of rows to be considered row_start included
nb_cols the number of columns to be considered col_start included

Definition at line 151 of file pcl_base.h.

void pcl::PCLBase< PointInT >::setIndices ( const PointIndicesConstPtr &  indices  )  [inline, inherited]

Provide a pointer to the vector of indices that represents the input data.

Parameters:
indices a pointer to the vector of indices that represents the input data.

Definition at line 135 of file pcl_base.h.

void pcl::PCLBase< PointInT >::setIndices ( const IndicesConstPtr &  indices  )  [inline, inherited]

Provide a pointer to the vector of indices that represents the input data.

Parameters:
indices a pointer to the vector of indices that represents the input data.

Definition at line 124 of file pcl_base.h.

void pcl::PCLBase< PointInT >::setIndices ( const IndicesPtr &  indices  )  [inline, inherited]

Provide a pointer to the vector of indices that represents the input data.

Parameters:
indices a pointer to the vector of indices that represents the input data.

Definition at line 113 of file pcl_base.h.

virtual void pcl::PCLBase< PointInT >::setInputCloud ( const PointCloudConstPtr &  cloud  )  [inline, virtual, inherited]

Provide a pointer to the input dataset.

Parameters:
cloud the const boost shared pointer to a PointCloud message

Reimplemented in pcl::NormalEstimation< PointInT, pcl::Normal >.

Definition at line 103 of file pcl_base.h.

template<typename PointInT>
void pcl::PCLSurfaceBase< PointInT >::setSearchMethod ( const KdTreePtr &  tree  )  [inline, inherited]

Provide an optional pointer to a search object.

Parameters:
[in] tree a pointer to the spatial search object.

Definition at line 75 of file reconstruction.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 16 Oct 2012 for Point Cloud Library (PCL) by  doxygen 1.6.1