|
VMTK
|
Iteratively smooth a centerline with a Laplacian kernel. More...
#include <vtkvmtkCenterlineSmoothing.h>
Public Types | |
| typedef vtkPolyDataAlgorithm | Superclass |
Public Member Functions | |
| virtual int | IsA (const char *type) |
| vtkvmtkCenterlineSmoothing * | NewInstance () const |
| void | PrintSelf (std::ostream &os, vtkIndent indent) override |
| virtual void | SetSmoothingFactor (double) |
| virtual double | GetSmoothingFactor () |
| virtual void | SetNumberOfSmoothingIterations (int) |
| virtual int | GetNumberOfSmoothingIterations () |
Static Public Member Functions | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkCenterlineSmoothing * | SafeDownCast (vtkObjectBase *o) |
| static vtkvmtkCenterlineSmoothing * | New () |
| static void | SmoothLine (vtkPoints *linePoints, vtkPoints *smoothLinePoints, int numberOfIterations=10, double relaxation=0.1) |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkvmtkCenterlineSmoothing () | |
| ~vtkvmtkCenterlineSmoothing () | |
| virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) override |
Protected Attributes | |
| double | SmoothingFactor |
| int | NumberOfSmoothingIterations |
Iteratively smooth a centerline with a Laplacian kernel.
Applies Laplacian (moving-average) smoothing to the points of every line/polyline cell of the input centerlines, independently for each cell: each point is repeatedly nudged towards the midpoint of its two neighbors by a fraction (SmoothingFactor) of the difference, repeated NumberOfSmoothingIterations times. This is the filter behind the vmtkcenterlinesmoothing pype script; it's commonly used before differential-geometry computations (curvature, torsion) which are sensitive to point-to-point noise.
Definition at line 42 of file vtkvmtkCenterlineSmoothing.h.
| typedef vtkPolyDataAlgorithm vtkvmtkCenterlineSmoothing::Superclass |
Definition at line 45 of file vtkvmtkCenterlineSmoothing.h.
|
protected |
Definition at line 35 of file vtkvmtkCenterlineSmoothing.cxx.
|
protected |
Definition at line 41 of file vtkvmtkCenterlineSmoothing.cxx.
|
static |
|
virtual |
|
static |
|
protectedvirtual |
| vtkvmtkCenterlineSmoothing * vtkvmtkCenterlineSmoothing::NewInstance | ( | ) | const |
|
override |
Definition at line 114 of file vtkvmtkCenterlineSmoothing.cxx.
|
static |
|
virtual |
Set/Get the relaxation factor applied at each smoothing iteration: at each step, every point moves this fraction of the way towards the midpoint of its two neighbors. Default: 0.01.
|
virtual |
Set/Get the relaxation factor applied at each smoothing iteration: at each step, every point moves this fraction of the way towards the midpoint of its two neighbors. Default: 0.01.
|
virtual |
Set/Get the number of Laplacian smoothing iterations applied to each line. Default: 100.
|
virtual |
Set/Get the number of Laplacian smoothing iterations applied to each line. Default: 100.
|
static |
Apply Laplacian smoothing to a single polyline, given as an ordered set of points, storing the result in smoothLinePoints (resized/filled by this call). Static utility usable standalone, also used internally by RequestData.
Definition at line 87 of file vtkvmtkCenterlineSmoothing.cxx.
|
overrideprotectedvirtual |
Definition at line 45 of file vtkvmtkCenterlineSmoothing.cxx.
|
protected |
Definition at line 80 of file vtkvmtkCenterlineSmoothing.h.
|
protected |
Definition at line 81 of file vtkvmtkCenterlineSmoothing.h.