Point Cloud Library (PCL)  1.3.1
Public Member Functions
pcl::surface::VTKSmoother Class Reference

VTKSmoother is a wrapper around some subdivision and filter methods from VTK. More...

#include <pcl/surface/vtk_smoother.h>

List of all members.

Public Member Functions

 VTKSmoother ()
 Default Constructor.
 VTKSmoother (int subdivision_filter, int num_iter, float feature_angle, float pass_band)
 Constructor.
int convertToVTK (const pcl::PolygonMesh &triangles)
 Convert a PCL PolygonMesh to a VTK vtkPolyData.
void subdivideMesh ()
 Subdivision using a given filter.
void smoothMeshWindowedSinc ()
 Perform smoothing on the mesh using the windowed sinc algorithm.
void smoothMeshLaplacian ()
 Perform smoothing on the mesh using the laplacian algorithm.
void convertToPCL (pcl::PolygonMesh &triangles)
 Convert the vtkPolyData object back to PolygonMesh.
void setSubdivisionFilter (int subdivision_filter)
 Set the subdivision filter.
void setNumIter (int num_iter)
 Set the number of iterations for the smoothing filter.
void setFeatureAngle (float feature_angle)
 Set the feature angle for sharp edge identification.
void setPassBand (float pass_band)
 Set the pass band value for windowed sinc filtering.
int getSubdivisionFilter ()
 Get the subdivision filter number.
int getNumIter ()
 Get the number of iterations.
float getFeatureAngle ()
 Get the feature angle.
float getPassBand ()
 get the pass band value.

Detailed Description

VTKSmoother is a wrapper around some subdivision and filter methods from VTK.

Author:
Greg Long, Dirk Holz

TODO: inheritance from some PCLBase-like interface for PolygonMesh TODO: wrap more vtk functionality in here TODO: Do we want to wrap any VTK functionality anyway or are we just going to provide conversion as in mesh2vtk and vtk2mesh?


Constructor & Destructor Documentation

pcl::surface::VTKSmoother::VTKSmoother ( ) [inline]

Default Constructor.

Definition at line 63 of file vtk_smoother.h.

pcl::surface::VTKSmoother::VTKSmoother ( int  subdivision_filter,
int  num_iter,
float  feature_angle,
float  pass_band 
) [inline]

Constructor.

Definition at line 70 of file vtk_smoother.h.


Member Function Documentation

void pcl::surface::VTKSmoother::convertToPCL ( pcl::PolygonMesh triangles)

Convert the vtkPolyData object back to PolygonMesh.

Parameters:
[out]trianglesthe PolygonMesh to store the vtkPolyData in.
int pcl::surface::VTKSmoother::convertToVTK ( const pcl::PolygonMesh triangles)

Convert a PCL PolygonMesh to a VTK vtkPolyData.

Parameters:
[in]trianglesPolygonMesh to be converted to vtkPolyData, stored in the object.
float pcl::surface::VTKSmoother::getFeatureAngle ( ) [inline]

Get the feature angle.

Definition at line 152 of file vtk_smoother.h.

int pcl::surface::VTKSmoother::getNumIter ( ) [inline]

Get the number of iterations.

Definition at line 145 of file vtk_smoother.h.

float pcl::surface::VTKSmoother::getPassBand ( ) [inline]

get the pass band value.

Definition at line 159 of file vtk_smoother.h.

int pcl::surface::VTKSmoother::getSubdivisionFilter ( ) [inline]

Get the subdivision filter number.

Definition at line 138 of file vtk_smoother.h.

void pcl::surface::VTKSmoother::setFeatureAngle ( float  feature_angle) [inline]

Set the feature angle for sharp edge identification.

Parameters:
[in]feature_anglethe feature angle.

Definition at line 122 of file vtk_smoother.h.

void pcl::surface::VTKSmoother::setNumIter ( int  num_iter) [inline]

Set the number of iterations for the smoothing filter.

Parameters:
[in]num_iterthe number of iterations

Definition at line 113 of file vtk_smoother.h.

void pcl::surface::VTKSmoother::setPassBand ( float  pass_band) [inline]

Set the pass band value for windowed sinc filtering.

Parameters:
[in]pass_bandvalue for the pass band.

Definition at line 131 of file vtk_smoother.h.

void pcl::surface::VTKSmoother::setSubdivisionFilter ( int  subdivision_filter) [inline]

Set the subdivision filter.

Parameters:
[in]subdivision_filterthe number of the desired subdivision filter.

Definition at line 104 of file vtk_smoother.h.

void pcl::surface::VTKSmoother::smoothMeshLaplacian ( )

Perform smoothing on the mesh using the laplacian algorithm.

void pcl::surface::VTKSmoother::smoothMeshWindowedSinc ( )

Perform smoothing on the mesh using the windowed sinc algorithm.

void pcl::surface::VTKSmoother::subdivideMesh ( )

Subdivision using a given filter.

TODO: make ENUM for all implemented filters.


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