ConcaveHull (alpha shapes) using libqhull library. More...
#include <pcl/surface/concave_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 | |
| ConcaveHull () | |
| Empty constructor. | |
| void | reconstruct (PointCloud &points, std::vector< pcl::Vertices > &polygons) |
| Compute a concave hull for all points given. | |
| void | reconstruct (PointCloud &output) |
| Compute a concave hull for all points given. | |
| void | setAlpha (double alpha) |
| Set the alpha value, which limits the size of the resultant hull segments (the smaller the more detailed the hull). | |
| double | getAlpha () |
| Returns the alpha parameter, see setAlpha(). | |
| void | setVoronoiCenters (PointCloudPtr voronoi_centers) |
| If set, the voronoi cells center will be saved in _voronoi_centers_. | |
| void | setKeepInformation (bool value) |
| If keep_information_is set to true the convex hull points keep other information like rgb, normals, . | |
| int | getDim () const |
| Returns the dimensionality (2 or 3) of the calculated hull. | |
| int | getDimension () const |
| Returns the dimensionality (2 or 3) of the calculated hull. | |
| void | setDimension (int dimension) |
| Sets the dimension on the input data, 2D or 3D. | |
| 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. | |
ConcaveHull (alpha shapes) using libqhull library.
Definition at line 56 of file concave_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::ConcaveHull< PointInT >::PointCloud |
Reimplemented from pcl::PCLBase< PointInT >.
Definition at line 67 of file concave_hull.h.
| typedef PointCloud::ConstPtr pcl::ConcaveHull< PointInT >::PointCloudConstPtr |
Reimplemented from pcl::PCLBase< PointInT >.
Definition at line 69 of file concave_hull.h.
| typedef PointCloud::Ptr pcl::ConcaveHull< PointInT >::PointCloudPtr |
Reimplemented from pcl::PCLBase< PointInT >.
Definition at line 68 of file concave_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::ConcaveHull< PointInT >::ConcaveHull | ( | ) | [inline] |
Empty constructor.
Definition at line 72 of file concave_hull.h.
| double pcl::ConcaveHull< PointInT >::getAlpha | ( | ) | [inline] |
Returns the alpha parameter, see setAlpha().
Definition at line 106 of file concave_hull.h.
| int pcl::ConcaveHull< PointInT >::getDim | ( | ) | const [inline] |
Returns the dimensionality (2 or 3) of the calculated hull.
Definition at line 132 of file concave_hull.h.
| int pcl::ConcaveHull< PointInT >::getDimension | ( | ) | const [inline] |
Returns the dimensionality (2 or 3) of the calculated hull.
Definition at line 139 of file concave_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.
| 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::ConcaveHull< PointInT >::reconstruct | ( | PointCloud & | output | ) | [inline] |
Compute a concave hull for all points given.
Software License Agreement (BSD License).
| output | the resultant concave hull vertices |
Point Cloud Library (PCL) - www.pointclouds.org Copyright (c) 2010-2011, Willow Garage, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Willow Garage, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition at line 60 of file concave_hull.hpp.
| void pcl::ConcaveHull< PointInT >::reconstruct | ( | PointCloud & | points, | |
| std::vector< pcl::Vertices > & | polygons | |||
| ) | [inline] |
Compute a concave hull for all points given.
| points | the resultant points lying on the concave hull | |
| polygons | the resultant concave hull polygons, as a set of vertices. The Vertices structure contains an array of point indices. |
Definition at line 89 of file concave_hull.hpp.
| void pcl::ConcaveHull< PointInT >::setAlpha | ( | double | alpha | ) | [inline] |
Set the alpha value, which limits the size of the resultant hull segments (the smaller the more detailed the hull).
| alpha | positive, non-zero value, defining the maximum length from a vertex to the facet center (center of the voronoi cell). |
Definition at line 99 of file concave_hull.h.
| void pcl::ConcaveHull< 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 148 of file concave_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::ConcaveHull< PointInT >::setKeepInformation | ( | bool | value | ) | [inline] |
If keep_information_is set to true the convex hull points keep other information like rgb, normals, .
..
| value | where to keep the information or not, default is false |
Definition at line 125 of file concave_hull.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.
| void pcl::ConcaveHull< PointInT >::setVoronoiCenters | ( | PointCloudPtr | voronoi_centers | ) | [inline] |
If set, the voronoi cells center will be saved in _voronoi_centers_.
| voronoi_centers |
Definition at line 115 of file concave_hull.h.
1.6.1