Point Cloud Library (PCL)  1.6.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions
pcl::Poisson< PointNT > Class Template Reference

The Poisson surface reconstruction algorithm. More...

#include <pcl/surface/poisson.h>

Inheritance diagram for pcl::Poisson< PointNT >:
Inheritance graph
[legend]
Collaboration diagram for pcl::Poisson< PointNT >:
Collaboration graph
[legend]

Public Types

typedef pcl::PointCloud
< PointNT >::Ptr 
PointCloudPtr
 
typedef pcl::KdTree< PointNT > KdTree
 
typedef pcl::KdTree< PointNT >::Ptr KdTreePtr
 
typedef pcl::PointCloud< PointNT > PointCloud
 
typedef PointCloud::ConstPtr PointCloudConstPtr
 
typedef PointIndices::Ptr PointIndicesPtr
 
typedef PointIndices::ConstPtr PointIndicesConstPtr
 

Public Member Functions

 Poisson ()
 Constructor that sets all the parameters to working default values. More...
 
 ~Poisson ()
 Destructor. More...
 
void performReconstruction (pcl::PolygonMesh &output)
 Create the surface. More...
 
void performReconstruction (pcl::PointCloud< PointNT > &points, std::vector< pcl::Vertices > &polygons)
 Create the surface. More...
 
void setConfidence (bool confidence)
 Set the confidence flag. More...
 
bool getConfidence ()
 Get the confidence flag. More...
 
void setManifold (bool manifold)
 Set the manifold flag. More...
 
bool getManifold ()
 Get the manifold flag. More...
 
void setOutputPolygons (bool output_polygons)
 Enabling this flag tells the reconstructor to output a polygon mesh (rather than triangulating the results of Marching Cubes). More...
 
bool getOutputPolygons ()
 Get whether the algorithm outputs a polygon mesh or a triangle mesh. More...
 
void setDepth (int depth)
 Set the maximum depth of the tree that will be used for surface reconstruction. More...
 
int getDepth ()
 Get the depth parameter. More...
 
void setSolverDivide (int solver_divide)
 Set the the depth at which a block Gauss-Seidel solver is used to solve the Laplacian equation. More...
 
int getSolverDivide ()
 Get the the depth at which a block Gauss-Seidel solver is used to solve the Laplacian equation. More...
 
void setIsoDivide (int iso_divide)
 Set the depth at which a block iso-surface extractor should be used to extract the iso-surface. More...
 
int getIsoDivide ()
 Get the depth at which a block iso-surface extractor should be used to extract the iso-surface. More...
 
void setSamplesPerNode (float samples_per_node)
 Set the minimum number of sample points that should fall within an octree node as the octree construction is adapted to sampling density. More...
 
float getSamplesPerNode ()
 Get the minimum number of sample points that should fall within an octree node as the octree construction is adapted to sampling density. More...
 
void setScale (float scale)
 Set the ratio between the diameter of the cube used for reconstruction and the diameter of the samples' bounding cube. More...
 
float getScale ()
 Get the ratio between the diameter of the cube used for reconstruction and the diameter of the samples' bounding cube. More...
 
void setDegree (int degree)
 Set the degree parameter. More...
 
int getDegree ()
 Get the degree parameter. More...
 
virtual void reconstruct (pcl::PolygonMesh &output)
 Base method for surface reconstruction for all points given in <setInputCloud (), setIndices ()> More...
 
virtual void reconstruct (pcl::PointCloud< PointNT > &points, std::vector< pcl::Vertices > &polygons)
 Base method for surface reconstruction for all points given in <setInputCloud (), setIndices ()> More...
 
void setSearchMethod (const KdTreePtr &tree)
 Provide an optional pointer to a search object. More...
 
KdTreePtr getSearchMethod ()
 Get a pointer to the search method used. More...
 
virtual void setInputCloud (const PointCloudConstPtr &cloud)
 Provide a pointer to the input dataset. More...
 
PointCloudConstPtr const getInputCloud ()
 Get a pointer to the input point cloud dataset. More...
 
void setIndices (const IndicesPtr &indices)
 Provide a pointer to the vector of indices that represents the input data. More...
 
void setIndices (const IndicesConstPtr &indices)
 Provide a pointer to the vector of indices that represents the input data. More...
 
void setIndices (const PointIndicesConstPtr &indices)
 Provide a pointer to the vector of indices that represents the input data. More...
 
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. More...
 
IndicesPtr const getIndices ()
 Get a pointer to the vector of indices used. More...
 
const PointNT & operator[] (size_t pos)
 Override PointCloud operator[] to shorten code. More...
 

Detailed Description

template<typename PointNT>
class pcl::Poisson< PointNT >

The Poisson surface reconstruction algorithm.

Note
Code adapted from Misha Kazhdan: http://www.cs.jhu.edu/~misha/Code/PoissonRecon/
Based on the paper:
  • Michael Kazhdan, Matthew Bolitho, Hugues Hoppe, "Poisson surface reconstruction", SGP '06 Proceedings of the fourth Eurographics symposium on Geometry processing
Author
Alexandru-Eugen Ichim

Definition at line 55 of file poisson.h.

Member Typedef Documentation

template<typename PointNT >
typedef pcl::KdTree<PointNT> pcl::Poisson< PointNT >::KdTree

Definition at line 63 of file poisson.h.

template<typename PointNT >
typedef pcl::KdTree<PointNT>::Ptr pcl::Poisson< PointNT >::KdTreePtr

Definition at line 64 of file poisson.h.

typedef pcl::PointCloud<PointNT > pcl::PCLBase< PointNT >::PointCloud
inherited

Definition at line 74 of file pcl_base.h.

typedef PointCloud::ConstPtr pcl::PCLBase< PointNT >::PointCloudConstPtr
inherited

Definition at line 76 of file pcl_base.h.

template<typename PointNT >
typedef pcl::PointCloud<PointNT>::Ptr pcl::Poisson< PointNT >::PointCloudPtr

Definition at line 61 of file poisson.h.

Definition at line 79 of file pcl_base.h.

typedef PointIndices::Ptr pcl::PCLBase< PointNT >::PointIndicesPtr
inherited

Definition at line 78 of file pcl_base.h.

Constructor & Destructor Documentation

template<typename PointNT >
pcl::Poisson< PointNT >::Poisson ( )

Constructor that sets all the parameters to working default values.

Definition at line 63 of file poisson.hpp.

template<typename PointNT >
pcl::Poisson< PointNT >::~Poisson ( )

Destructor.

Definition at line 83 of file poisson.hpp.

Member Function Documentation

template<typename PointNT >
bool pcl::Poisson< PointNT >::getConfidence ( )
inline

Get the confidence flag.

Definition at line 96 of file poisson.h.

template<typename PointNT >
int pcl::Poisson< PointNT >::getDegree ( )
inline

Get the degree parameter.

Definition at line 197 of file poisson.h.

template<typename PointNT >
int pcl::Poisson< PointNT >::getDepth ( )
inline

Get the depth parameter.

Definition at line 133 of file poisson.h.

IndicesPtr const pcl::PCLBase< PointNT >::getIndices ( )
inlineinherited

Get a pointer to the vector of indices used.

Definition at line 190 of file pcl_base.h.

PointCloudConstPtr const pcl::PCLBase< PointNT >::getInputCloud ( )
inlineinherited

Get a pointer to the input point cloud dataset.

Definition at line 107 of file pcl_base.h.

template<typename PointNT >
int pcl::Poisson< PointNT >::getIsoDivide ( )
inline

Get the depth at which a block iso-surface extractor should be used to extract the iso-surface.

Definition at line 159 of file poisson.h.

template<typename PointNT >
bool pcl::Poisson< PointNT >::getManifold ( )
inline

Get the manifold flag.

Definition at line 108 of file poisson.h.

template<typename PointNT >
bool pcl::Poisson< PointNT >::getOutputPolygons ( )
inline

Get whether the algorithm outputs a polygon mesh or a triangle mesh.

Definition at line 119 of file poisson.h.

template<typename PointNT >
float pcl::Poisson< PointNT >::getSamplesPerNode ( )
inline

Get the minimum number of sample points that should fall within an octree node as the octree construction is adapted to sampling density.

Definition at line 174 of file poisson.h.

template<typename PointNT >
float pcl::Poisson< PointNT >::getScale ( )
inline

Get the ratio between the diameter of the cube used for reconstruction and the diameter of the samples' bounding cube.

Definition at line 187 of file poisson.h.

KdTreePtr pcl::PCLSurfaceBase< PointNT >::getSearchMethod ( )
inlineinherited

Get a pointer to the search method used.

Definition at line 82 of file reconstruction.h.

template<typename PointNT >
int pcl::Poisson< PointNT >::getSolverDivide ( )
inline

Get the the depth at which a block Gauss-Seidel solver is used to solve the Laplacian equation.

Definition at line 146 of file poisson.h.

const PointNT & pcl::PCLBase< PointNT >::operator[] ( size_t  pos)
inlineinherited

Override PointCloud operator[] to shorten code.

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

Definition at line 197 of file pcl_base.h.

template<typename PointNT >
void pcl::Poisson< PointNT >::performReconstruction ( pcl::PolygonMesh output)
virtual

Create the surface.

Parameters
[out]outputthe resultant polygonal mesh

Write output PolygonMesh

Implements pcl::SurfaceReconstruction< PointNT >.

Definition at line 146 of file poisson.hpp.

template<typename PointNT >
void pcl::Poisson< PointNT >::performReconstruction ( pcl::PointCloud< PointNT > &  points,
std::vector< pcl::Vertices > &  polygons 
)
virtual

Create the surface.

Parameters
[out]pointsthe vertex positions of the resulting mesh
[out]polygonsthe connectivity of the resulting mesh

Implements pcl::SurfaceReconstruction< PointNT >.

Definition at line 227 of file poisson.hpp.

virtual void pcl::SurfaceReconstruction< PointNT >::reconstruct ( pcl::PolygonMesh output)
virtualinherited

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

Parameters
[out]outputthe resultant reconstructed surface model

Implements pcl::PCLSurfaceBase< PointNT >.

virtual void pcl::SurfaceReconstruction< PointNT >::reconstruct ( pcl::PointCloud< PointNT > &  points,
std::vector< pcl::Vertices > &  polygons 
)
virtualinherited

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

Parameters
[out]pointsthe resultant points lying on the new surface
[out]polygonsthe resultant polygons, as a set of vertices. The Vertices structure contains an array of point indices.
template<typename PointNT >
void pcl::Poisson< PointNT >::setConfidence ( bool  confidence)
inline

Set the confidence flag.

Note
Enabling this flag tells the reconstructor to use the size of the normals as confidence information. When the flag is not enabled, all normals are normalized to have unit-length prior to reconstruction.
Parameters
[in]confidencethe given flag

Definition at line 92 of file poisson.h.

template<typename PointNT >
void pcl::Poisson< PointNT >::setDegree ( int  degree)
inline

Set the degree parameter.

Parameters
[in]degreethe given degree

Definition at line 193 of file poisson.h.

template<typename PointNT >
void pcl::Poisson< PointNT >::setDepth ( int  depth)
inline

Set the maximum depth of the tree that will be used for surface reconstruction.

Note
Running at depth d corresponds to solving on a voxel grid whose resolution is no larger than 2^d x 2^d x 2^d. Note that since the reconstructor adapts the octree to the sampling density, the specified reconstruction depth is only an upper bound.
Parameters
[in]depththe depth parameter

Definition at line 129 of file poisson.h.

void pcl::PCLBase< PointNT >::setIndices ( const IndicesPtr indices)
inlineinherited

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

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

Definition at line 113 of file pcl_base.h.

void pcl::PCLBase< PointNT >::setIndices ( const IndicesConstPtr indices)
inlineinherited

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

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

Definition at line 124 of file pcl_base.h.

void pcl::PCLBase< PointNT >::setIndices ( const PointIndicesConstPtr indices)
inlineinherited

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

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

Definition at line 135 of file pcl_base.h.

void pcl::PCLBase< PointNT >::setIndices ( size_t  row_start,
size_t  col_start,
size_t  nb_rows,
size_t  nb_cols 
)
inlineinherited

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_startthe offset on rows
col_startthe offset on columns
nb_rowsthe number of rows to be considered row_start included
nb_colsthe number of columns to be considered col_start included

Definition at line 151 of file pcl_base.h.

virtual void pcl::PCLBase< PointNT >::setInputCloud ( const PointCloudConstPtr cloud)
inlinevirtualinherited

Provide a pointer to the input dataset.

Parameters
cloudthe const boost shared pointer to a PointCloud message

Definition at line 103 of file pcl_base.h.

template<typename PointNT >
void pcl::Poisson< PointNT >::setIsoDivide ( int  iso_divide)
inline

Set the depth at which a block iso-surface extractor should be used to extract the iso-surface.

Note
Using this parameter helps reduce the memory overhead at the cost of a small increase in extraction time. (In practice, we have found that for reconstructions of depth 9 or higher a subdivide depth of 7 or 8 can greatly reduce the memory usage.)
Parameters
[in]iso_dividethe given parameter value

Definition at line 155 of file poisson.h.

template<typename PointNT >
void pcl::Poisson< PointNT >::setManifold ( bool  manifold)
inline

Set the manifold flag.

Note
Enabling this flag tells the reconstructor to add the polygon barycenter when triangulating polygons with more than three vertices.
Parameters
[in]manifoldthe given flag

Definition at line 104 of file poisson.h.

template<typename PointNT >
void pcl::Poisson< PointNT >::setOutputPolygons ( bool  output_polygons)
inline

Enabling this flag tells the reconstructor to output a polygon mesh (rather than triangulating the results of Marching Cubes).

Parameters
[in]output_polygonsthe given flag

Definition at line 115 of file poisson.h.

template<typename PointNT >
void pcl::Poisson< PointNT >::setSamplesPerNode ( float  samples_per_node)
inline

Set the minimum number of sample points that should fall within an octree node as the octree construction is adapted to sampling density.

Note
For noise-free samples, small values in the range [1.0 - 5.0] can be used. For more noisy samples, larger values in the range [15.0 - 20.0] may be needed to provide a smoother, noise-reduced, reconstruction.
Parameters
[in]samples_per_nodethe given parameter value

Definition at line 168 of file poisson.h.

template<typename PointNT >
void pcl::Poisson< PointNT >::setScale ( float  scale)
inline

Set the ratio between the diameter of the cube used for reconstruction and the diameter of the samples' bounding cube.

Parameters
[in]scalethe given parameter value

Definition at line 181 of file poisson.h.

void pcl::PCLSurfaceBase< PointNT >::setSearchMethod ( const KdTreePtr tree)
inlineinherited

Provide an optional pointer to a search object.

Parameters
[in]treea pointer to the spatial search object.

Definition at line 75 of file reconstruction.h.

template<typename PointNT >
void pcl::Poisson< PointNT >::setSolverDivide ( int  solver_divide)
inline

Set the the depth at which a block Gauss-Seidel solver is used to solve the Laplacian equation.

Note
Using this parameter helps reduce the memory overhead at the cost of a small increase in reconstruction time. (In practice, we have found that for reconstructions of depth 9 or higher a subdivide depth of 7 or 8 can greatly reduce the memory usage.)
Parameters
[in]solver_dividethe given parameter value

Definition at line 142 of file poisson.h.


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