|
Point Cloud Library (PCL)
1.4.0
|
VTKSmoother is a wrapper around some subdivision and filter methods from VTK. More...
#include <pcl/surface/vtk_smoother.h>
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. | |
VTKSmoother is a wrapper around some subdivision and filter methods from VTK.
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?
Definition at line 59 of file vtk_smoother.h.
| 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.
| void pcl::surface::VTKSmoother::convertToPCL | ( | pcl::PolygonMesh & | triangles | ) |
Convert the vtkPolyData object back to PolygonMesh.
| [out] | triangles | the PolygonMesh to store the vtkPolyData in. |
| int pcl::surface::VTKSmoother::convertToVTK | ( | const pcl::PolygonMesh & | triangles | ) |
Convert a PCL PolygonMesh to a VTK vtkPolyData.
| [in] | triangles | PolygonMesh 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.
| [in] | feature_angle | the 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.
| [in] | num_iter | the 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.
| [in] | pass_band | value 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.
| [in] | subdivision_filter | the number of the desired subdivision filter. |
Definition at line 104 of file vtk_smoother.h.
Perform smoothing on the mesh using the laplacian algorithm.
Perform smoothing on the mesh using the windowed sinc algorithm.
Subdivision using a given filter.
TODO: make ENUM for all implemented filters.
1.7.6.1