|
VMTK
|
Compute length, curvature, torsion, tortuosity, and frenet frames for individual centerlines. More...
#include <vtkvmtkCenterlineGeometry.h>
Public Types | |
| typedef vtkPolyDataAlgorithm | Superclass |
Public Member Functions | |
| virtual int | IsA (const char *type) |
| vtkvmtkCenterlineGeometry * | NewInstance () const |
| void | PrintSelf (std::ostream &os, vtkIndent indent) override |
| virtual void | SetLengthArrayName (const char *) |
| virtual char * | GetLengthArrayName () |
| virtual void | SetCurvatureArrayName (const char *) |
| virtual char * | GetCurvatureArrayName () |
| virtual void | SetTorsionArrayName (const char *) |
| virtual char * | GetTorsionArrayName () |
| virtual void | SetTortuosityArrayName (const char *) |
| virtual char * | GetTortuosityArrayName () |
| virtual void | SetFrenetTangentArrayName (const char *) |
| virtual char * | GetFrenetTangentArrayName () |
| virtual void | SetFrenetNormalArrayName (const char *) |
| virtual char * | GetFrenetNormalArrayName () |
| virtual void | SetFrenetBinormalArrayName (const char *) |
| virtual char * | GetFrenetBinormalArrayName () |
| virtual void | SetSmoothingFactor (double) |
| virtual double | GetSmoothingFactor () |
| virtual void | SetNumberOfSmoothingIterations (int) |
| virtual int | GetNumberOfSmoothingIterations () |
| virtual void | SetLineSmoothing (int) |
| virtual int | GetLineSmoothing () |
| virtual void | LineSmoothingOn () |
| virtual void | LineSmoothingOff () |
| virtual void | SetOutputSmoothedLines (int) |
| virtual int | GetOutputSmoothedLines () |
| virtual void | OutputSmoothedLinesOn () |
| virtual void | OutputSmoothedLinesOff () |
Static Public Member Functions | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkCenterlineGeometry * | SafeDownCast (vtkObjectBase *o) |
| static vtkvmtkCenterlineGeometry * | New () |
| static double | ComputeLineCurvature (vtkPoints *linePoints, vtkDoubleArray *curvatureArray) |
| static double | ComputeLineTorsion (vtkPoints *linePoints, vtkDoubleArray *torsionArray) |
| static void | ComputeLineFrenetReferenceSystem (vtkPoints *linePoints, vtkDoubleArray *lineTangentArray, vtkDoubleArray *lineNormalArray, vtkDoubleArray *lineBinormalArray) |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkvmtkCenterlineGeometry () | |
| ~vtkvmtkCenterlineGeometry () | |
| virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) override |
Protected Attributes | |
| char * | LengthArrayName |
| char * | CurvatureArrayName |
| char * | TorsionArrayName |
| char * | TortuosityArrayName |
| char * | FrenetTangentArrayName |
| char * | FrenetNormalArrayName |
| char * | FrenetBinormalArrayName |
| int | LineSmoothing |
| int | OutputSmoothedLines |
| double | SmoothingFactor |
| int | NumberOfSmoothingIterations |
Compute length, curvature, torsion, tortuosity, and frenet frames for individual centerlines.
vtkvmtkCenterlineGeometry takes a vtkPolyData composed of polyline (or line) cells representing centerlines – typically the output of vtkvmtkCenterlineBranchExtractor / vtkvmtkCenterlineSplittingAndGroupingFilter after splitting and grouping, so that each cell is a single, non-branching tract – and computes, for every cell, its arc length and Frenet-frame differential geometry (curvature, torsion, tortuosity, tangent/normal/binormal vectors). This is the filter behind the vmtkcenterlinegeometry pype script, and its output is commonly used to characterize vessel curvature/torsion (e.g. for tortuosity indices) or to build a local reference frame for stent/graft deployment analysis.
The length, curvature, torsion, and tortuosity metrics are scalar quantities which are identical for each point / tract that makes up a cell. They are cell data which are attached to the centerline (which should only consist of one cell, as it has not been split or grouped).
The frenet reference frame is composed of three orthogonal vectors (tangent, normal, and binormal) unique to their parameterization along the centerline. Three vectors are stored as point data for each point making up the centerline.
A laplacian smoothing filter can be applied to the line if the computation appears to be unstable (as we are using second derivatives and such here).
Definition at line 53 of file vtkvmtkCenterlineGeometry.h.
| typedef vtkPolyDataAlgorithm vtkvmtkCenterlineGeometry::Superclass |
Definition at line 56 of file vtkvmtkCenterlineGeometry.h.
|
protected |
Definition at line 39 of file vtkvmtkCenterlineGeometry.cxx.
|
protected |
Definition at line 56 of file vtkvmtkCenterlineGeometry.cxx.
|
static |
|
virtual |
|
static |
|
protectedvirtual |
| vtkvmtkCenterlineGeometry * vtkvmtkCenterlineGeometry::NewInstance | ( | ) | const |
|
override |
Definition at line 606 of file vtkvmtkCenterlineGeometry.cxx.
|
static |
|
virtual |
Set/get the name of the cell data array (one value per centerline cell) where the arc length of each line is stored. Must be specified before Update() is called. Commonly named "Length".
|
virtual |
Set/get the name of the cell data array (one value per centerline cell) where the arc length of each line is stored. Must be specified before Update() is called. Commonly named "Length".
|
virtual |
Set/get the name of the point data array (one value per centerline point) where the local curvature, estimated from finite differences of the discrete Frenet frame, is stored. Must be specified before Update() is called. Commonly named "Curvature".
|
virtual |
Set/get the name of the point data array (one value per centerline point) where the local curvature, estimated from finite differences of the discrete Frenet frame, is stored. Must be specified before Update() is called. Commonly named "Curvature".
|
virtual |
Set/get the name of the point data array (one value per centerline point) where the local torsion, estimated from finite differences of the discrete Frenet frame, is stored. Must be specified before Update() is called. Commonly named "Torsion".
|
virtual |
Set/get the name of the point data array (one value per centerline point) where the local torsion, estimated from finite differences of the discrete Frenet frame, is stored. Must be specified before Update() is called. Commonly named "Torsion".
|
virtual |
Set/get the name of the cell data array (one value per centerline cell) where the tortuosity of each line is stored, computed as (arc length / chord length) - 1, where the chord is the straight-line distance between the first and last point of the cell. Must be specified before Update() is called. Commonly named "Tortuosity".
|
virtual |
Set/get the name of the cell data array (one value per centerline cell) where the tortuosity of each line is stored, computed as (arc length / chord length) - 1, where the chord is the straight-line distance between the first and last point of the cell. Must be specified before Update() is called. Commonly named "Tortuosity".
|
virtual |
Set/get the name of the 3-component point data array where the Frenet tangent unit vector (direction of travel along the centerline) is stored for each point. Must be specified before Update() is called. Commonly named "FrenetTangent".
|
virtual |
Set/get the name of the 3-component point data array where the Frenet tangent unit vector (direction of travel along the centerline) is stored for each point. Must be specified before Update() is called. Commonly named "FrenetTangent".
|
virtual |
Set/get the name of the 3-component point data array where the Frenet normal unit vector (points towards the local center of curvature) is stored for each point. Must be specified before Update() is called. Commonly named "FrenetNormal".
|
virtual |
Set/get the name of the 3-component point data array where the Frenet normal unit vector (points towards the local center of curvature) is stored for each point. Must be specified before Update() is called. Commonly named "FrenetNormal".
|
virtual |
Set/get the name of the 3-component point data array where the Frenet binormal unit vector (tangent cross normal, completing the right-handed frame) is stored for each point. Must be specified before Update() is called. Commonly named "FrenetBinormal".
|
virtual |
Set/get the name of the 3-component point data array where the Frenet binormal unit vector (tangent cross normal, completing the right-handed frame) is stored for each point. Must be specified before Update() is called. Commonly named "FrenetBinormal".
|
virtual |
Set/get the relaxation factor used by the optional Laplacian smoothing pass applied to each line's points before curvature/torsion are computed (see LineSmoothing). Higher values smooth more aggressively per iteration. Default: 0.01.
|
virtual |
Set/get the relaxation factor used by the optional Laplacian smoothing pass applied to each line's points before curvature/torsion are computed (see LineSmoothing). Higher values smooth more aggressively per iteration. Default: 0.01.
|
virtual |
Set/get the number of Laplacian smoothing iterations applied to each line's points before curvature/torsion are computed (see LineSmoothing). Default: 100.
|
virtual |
Set/get the number of Laplacian smoothing iterations applied to each line's points before curvature/torsion are computed (see LineSmoothing). Default: 100.
|
virtual |
Toggle Laplacian smoothing of each line's points prior to computing curvature, torsion, and the Frenet frame. Since these quantities involve second derivatives of the line geometry, smoothing can stabilize the computation on noisy or piecewise-linear centerlines. The output geometry arrays (points) are only replaced with the smoothed coordinates if OutputSmoothedLines is also on. Default: off.
|
virtual |
Toggle Laplacian smoothing of each line's points prior to computing curvature, torsion, and the Frenet frame. Since these quantities involve second derivatives of the line geometry, smoothing can stabilize the computation on noisy or piecewise-linear centerlines. The output geometry arrays (points) are only replaced with the smoothed coordinates if OutputSmoothedLines is also on. Default: off.
|
virtual |
Toggle Laplacian smoothing of each line's points prior to computing curvature, torsion, and the Frenet frame. Since these quantities involve second derivatives of the line geometry, smoothing can stabilize the computation on noisy or piecewise-linear centerlines. The output geometry arrays (points) are only replaced with the smoothed coordinates if OutputSmoothedLines is also on. Default: off.
|
virtual |
Toggle Laplacian smoothing of each line's points prior to computing curvature, torsion, and the Frenet frame. Since these quantities involve second derivatives of the line geometry, smoothing can stabilize the computation on noisy or piecewise-linear centerlines. The output geometry arrays (points) are only replaced with the smoothed coordinates if OutputSmoothedLines is also on. Default: off.
|
virtual |
Toggle whether the output centerline points are replaced by the smoothed points used internally for the differential geometry computation (only relevant when LineSmoothing is on). When off, the output retains the original input point coordinates and only the computed arrays change. Default: off.
|
virtual |
Toggle whether the output centerline points are replaced by the smoothed points used internally for the differential geometry computation (only relevant when LineSmoothing is on). When off, the output retains the original input point coordinates and only the computed arrays change. Default: off.
|
virtual |
Toggle whether the output centerline points are replaced by the smoothed points used internally for the differential geometry computation (only relevant when LineSmoothing is on). When off, the output retains the original input point coordinates and only the computed arrays change. Default: off.
|
virtual |
Toggle whether the output centerline points are replaced by the smoothed points used internally for the differential geometry computation (only relevant when LineSmoothing is on). When off, the output retains the original input point coordinates and only the computed arrays change. Default: off.
|
static |
Compute the discrete curvature at every point of a single polyline, given as an ordered set of points, and store the per-point values in curvatureArray (resized/filled by this call). Returns the length-weighted average curvature over the line. Used internally by RequestData, but also usable standalone on an arbitrary vtkPoints polyline.
Definition at line 409 of file vtkvmtkCenterlineGeometry.cxx.
|
static |
Compute the discrete torsion at every point of a single polyline, given as an ordered set of points, and store the per-point values in torsionArray (resized/filled by this call). Returns the length-weighted average torsion over the line. Used internally by RequestData, but also usable standalone on an arbitrary vtkPoints polyline.
Definition at line 480 of file vtkvmtkCenterlineGeometry.cxx.
|
static |
Compute the discrete Frenet reference frame (tangent, normal, binormal unit vectors) at every point of a single polyline, given as an ordered set of points, and store the per-point vectors in the three supplied 3-component arrays (resized/filled by this call). Used internally by RequestData, but also usable standalone on an arbitrary vtkPoints polyline.
Definition at line 308 of file vtkvmtkCenterlineGeometry.cxx.
|
overrideprotectedvirtual |
Definition at line 101 of file vtkvmtkCenterlineGeometry.cxx.
|
protected |
Definition at line 191 of file vtkvmtkCenterlineGeometry.h.
|
protected |
Definition at line 192 of file vtkvmtkCenterlineGeometry.h.
|
protected |
Definition at line 193 of file vtkvmtkCenterlineGeometry.h.
|
protected |
Definition at line 194 of file vtkvmtkCenterlineGeometry.h.
|
protected |
Definition at line 195 of file vtkvmtkCenterlineGeometry.h.
|
protected |
Definition at line 196 of file vtkvmtkCenterlineGeometry.h.
|
protected |
Definition at line 197 of file vtkvmtkCenterlineGeometry.h.
|
protected |
Definition at line 199 of file vtkvmtkCenterlineGeometry.h.
|
protected |
Definition at line 200 of file vtkvmtkCenterlineGeometry.h.
|
protected |
Definition at line 201 of file vtkvmtkCenterlineGeometry.h.
|
protected |
Definition at line 202 of file vtkvmtkCenterlineGeometry.h.