ConvexHull using libqhull library. More...
#include <pcl/surface/convex_hull.h>


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. | |
ConvexHull using libqhull library.
Definition at line 72 of file convex_hull.h.
typedef pcl::search::Search<PointInT> pcl::PCLSurfaceBase< PointInT >::KdTree [inherited] |
Reimplemented in pcl::GreedyProjectionTriangulation< PointInT >, pcl::GridProjection< PointNT >, pcl::MarchingCubes< PointNT >, pcl::MarchingCubesHoppe< PointNT >, pcl::MarchingCubesRBF< PointNT >, and pcl::Poisson< PointNT >.
Definition at line 65 of file reconstruction.h.
typedef pcl::search::Search<PointInT>::Ptr pcl::PCLSurfaceBase< PointInT >::KdTreePtr [inherited] |
Reimplemented in pcl::GreedyProjectionTriangulation< PointInT >, pcl::GridProjection< PointNT >, pcl::MarchingCubes< PointNT >, pcl::MarchingCubesHoppe< PointNT >, pcl::MarchingCubesRBF< PointNT >, and pcl::Poisson< PointNT >.
Definition at line 66 of file reconstruction.h.
| typedef pcl::PointCloud<PointInT> pcl::ConvexHull< PointInT >::PointCloud |
Reimplemented from pcl::PCLBase< PointInT >.
Definition at line 83 of file convex_hull.h.
| typedef PointCloud::ConstPtr pcl::ConvexHull< PointInT >::PointCloudConstPtr |
Reimplemented from pcl::PCLBase< PointInT >.
Definition at line 85 of file convex_hull.h.
| 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.
| pcl::ConvexHull< PointInT >::ConvexHull | ( | ) | [inline] |
Empty constructor.
Definition at line 88 of file convex_hull.h.
| 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.
| KdTreePtr pcl::PCLSurfaceBase< PointInT >::getSearchMethod | ( | ) | [inline, inherited] |
Get a pointer to the search method used.
Definition at line 82 of file reconstruction.h.
| double pcl::ConvexHull< PointInT >::getTotalArea | ( | ) | const [inline] |
Returns the total area of the convex hull.
Definition at line 126 of file convex_hull.h.
| 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.
| pos | position in indices_ vector |
Definition at line 197 of file pcl_base.h.
| 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 ()>.
| [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.
| void pcl::MeshConstruction< PointInT >::reconstruct | ( | pcl::PolygonMesh & | output | ) | [inline, virtual, inherited] |
Base method for surface reconstruction for all points given in <setInputCloud (), setIndices ()>.
| [out] | output | the resultant reconstructed surface model |
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.
| void pcl::ConvexHull< PointInT >::reconstruct | ( | PointCloud & | output | ) | [inline] |
Compute a convex hull for all points given.
| [out] | output | the resultant convex hull vertices |
Definition at line 408 of file convex_hull.hpp.
| void pcl::ConvexHull< PointInT >::reconstruct | ( | PointCloud & | points, | |
| std::vector< pcl::Vertices > & | polygons | |||
| ) | [inline] |
Compute a convex hull for all points given.
| [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.
| 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.
| [in] | value | wheter to compute the area and the volume, default is false |
Definition at line 115 of file convex_hull.h.
| void pcl::ConvexHull< PointInT >::setDimension | ( | int | dimension | ) | [inline] |
Sets the dimension on the input data, 2D or 3D.
| [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.
| 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.
| 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.
| 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.
| 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.
| 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.
| void pcl::PCLSurfaceBase< PointInT >::setSearchMethod | ( | const KdTreePtr & | tree | ) | [inline, inherited] |
Provide an optional pointer to a search object.
| [in] | tree | a pointer to the spatial search object. |
Definition at line 75 of file reconstruction.h.
1.6.1