|
VMTK
|
Implements an implicit function that interpolates a scalar value at a scattered set of points using radial basis functions. More...
#include <vtkvmtkRBFInterpolation.h>
Public Types | |
| enum | { THIN_PLATE_SPLINE , BIHARMONIC , TRIHARMONIC } |
| typedef vtkImplicitFunction | Superclass |
Public Member Functions | |
| virtual int | IsA (const char *type) |
| vtkvmtkRBFInterpolation * | NewInstance () const |
| void | PrintSelf (std::ostream &os, vtkIndent indent) override |
| void | EvaluateGradient (double x[3], double n[3]) override |
| void | ComputeCoefficients () |
| vtkMTimeType | GetMTime () override |
| double | EvaluateFunction (double x[3]) override |
| double | EvaluateFunction (double x, double y, double z) override |
| virtual void | SetSource (vtkPolyData *) |
| virtual vtkPolyData * | GetSource () |
| virtual void | SetRBFType (int) |
| virtual int | GetRBFType () |
| void | SetRBFTypeToThinPlateSpline () |
| void | SetRBFTypeToBiharmonic () |
| void | SetRBFTypeToTriharmonic () |
Static Public Member Functions | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkRBFInterpolation * | SafeDownCast (vtkObjectBase *o) |
| static vtkvmtkRBFInterpolation * | New () |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkvmtkRBFInterpolation () | |
| ~vtkvmtkRBFInterpolation () | |
| double | EvaluateRBF (double c[3], double x[3]) |
Protected Attributes | |
| vtkPolyData * | Source |
| int | RBFType |
| vtkDoubleArray * | Coefficients |
| double | RBFInterpolationValue |
Implements an implicit function that interpolates a scalar value at a scattered set of points using radial basis functions.
vtkvmtkRBFInterpolation builds a radial basis function (RBF) interpolant that takes the value RBFInterpolationValue at every point of Source, and evaluates that interpolant as an implicit function anywhere in space. The interpolation weights are found by solving the dense linear system obtained by requiring the RBF sum to match RBFInterpolationValue at each source point (see ComputeCoefficients); RBFType selects the radial kernel (thin-plate spline, biharmonic, or triharmonic). Since all source points share the same target value, this does not directly reconstruct a signed-distance-like implicit surface from on/off-surface samples; instead it is used to build a smooth scalar field seeded at a set of points, e.g. by vmtkrbfinterpolation to resample a set of seed points onto a regular image grid via vtkSampleFunction.
Definition at line 43 of file vtkvmtkRBFInterpolation.h.
| typedef vtkImplicitFunction vtkvmtkRBFInterpolation::Superclass |
Definition at line 46 of file vtkvmtkRBFInterpolation.h.
| anonymous enum |
| Enumerator | |
|---|---|
| THIN_PLATE_SPLINE | |
| BIHARMONIC | |
| TRIHARMONIC | |
Definition at line 98 of file vtkvmtkRBFInterpolation.h.
|
protected |
Definition at line 31 of file vtkvmtkRBFInterpolation.cxx.
|
protected |
Definition at line 39 of file vtkvmtkRBFInterpolation.cxx.
|
static |
|
virtual |
|
static |
|
protectedvirtual |
| vtkvmtkRBFInterpolation * vtkvmtkRBFInterpolation::NewInstance | ( | ) | const |
|
override |
Definition at line 200 of file vtkvmtkRBFInterpolation.cxx.
|
static |
|
override |
Evaluate polyball.
Definition at line 146 of file vtkvmtkRBFInterpolation.cxx.
|
inlineoverride |
Evaluate polyball.
Definition at line 56 of file vtkvmtkRBFInterpolation.h.
|
override |
Evaluate polyball gradient.
Definition at line 181 of file vtkvmtkRBFInterpolation.cxx.
| void vtkvmtkRBFInterpolation::ComputeCoefficients | ( | ) |
Solve for the RBF interpolation weights (Coefficients) so that the interpolant evaluates to RBFInterpolationValue at every point of Source, using the kernel selected by RBFType. Called automatically by EvaluateFunction the first time it runs if Coefficients has not been computed yet; can also be called explicitly beforehand.
Definition at line 80 of file vtkvmtkRBFInterpolation.cxx.
|
virtual |
Set / get source poly data.
|
virtual |
Set / get source poly data.
|
virtual |
Set/Get the radial basis kernel used to build the interpolant, one of the THIN_PLATE_SPLINE, BIHARMONIC, or TRIHARMONIC enum values (equivalently set through the SetRBFTypeTo... methods below). Default: THIN_PLATE_SPLINE.
|
virtual |
Set/Get the radial basis kernel used to build the interpolant, one of the THIN_PLATE_SPLINE, BIHARMONIC, or TRIHARMONIC enum values (equivalently set through the SetRBFTypeTo... methods below). Default: THIN_PLATE_SPLINE.
|
inline |
Set/Get the radial basis kernel used to build the interpolant, one of the THIN_PLATE_SPLINE, BIHARMONIC, or TRIHARMONIC enum values (equivalently set through the SetRBFTypeTo... methods below). Default: THIN_PLATE_SPLINE.
Definition at line 89 of file vtkvmtkRBFInterpolation.h.
|
inline |
Set/Get the radial basis kernel used to build the interpolant, one of the THIN_PLATE_SPLINE, BIHARMONIC, or TRIHARMONIC enum values (equivalently set through the SetRBFTypeTo... methods below). Default: THIN_PLATE_SPLINE.
Definition at line 91 of file vtkvmtkRBFInterpolation.h.
|
inline |
Set/Get the radial basis kernel used to build the interpolant, one of the THIN_PLATE_SPLINE, BIHARMONIC, or TRIHARMONIC enum values (equivalently set through the SetRBFTypeTo... methods below). Default: THIN_PLATE_SPLINE.
Definition at line 93 of file vtkvmtkRBFInterpolation.h.
|
override |
Definition at line 186 of file vtkvmtkRBFInterpolation.cxx.
|
protected |
Definition at line 54 of file vtkvmtkRBFInterpolation.cxx.
|
protected |
Definition at line 114 of file vtkvmtkRBFInterpolation.h.
|
protected |
Definition at line 115 of file vtkvmtkRBFInterpolation.h.
|
protected |
Definition at line 117 of file vtkvmtkRBFInterpolation.h.
|
protected |
Definition at line 118 of file vtkvmtkRBFInterpolation.h.