|
VMTK
|
Compute centerlines from surface. More...
#include <vtkvmtkPolyDataCenterlines.h>
Public Types | |
| typedef vtkPolyDataAlgorithm | Superclass |
Public Member Functions | |
| virtual int | IsA (const char *type) |
| vtkvmtkPolyDataCenterlines * | NewInstance () const |
| void | PrintSelf (std::ostream &os, vtkIndent indent) override |
| virtual void | SetSourceSeedIds (vtkIdList *) |
| virtual vtkIdList * | GetSourceSeedIds () |
| virtual void | SetTargetSeedIds (vtkIdList *) |
| virtual vtkIdList * | GetTargetSeedIds () |
| virtual void | SetCapCenterIds (vtkIdList *) |
| virtual vtkIdList * | GetCapCenterIds () |
| virtual void | SetDelaunayTessellation (vtkUnstructuredGrid *) |
| virtual vtkUnstructuredGrid * | GetDelaunayTessellation () |
| virtual void | SetVoronoiDiagram (vtkPolyData *) |
| virtual vtkPolyData * | GetVoronoiDiagram () |
| virtual void | SetPoleIds (vtkIdList *) |
| virtual vtkIdList * | GetPoleIds () |
| virtual void | SetRadiusArrayName (const char *) |
| virtual char * | GetRadiusArrayName () |
| virtual void | SetCostFunction (const char *) |
| virtual char * | GetCostFunction () |
| virtual void | SetEikonalSolutionArrayName (const char *) |
| virtual char * | GetEikonalSolutionArrayName () |
| virtual void | SetEdgeArrayName (const char *) |
| virtual char * | GetEdgeArrayName () |
| virtual void | SetEdgePCoordArrayName (const char *) |
| virtual char * | GetEdgePCoordArrayName () |
| virtual void | SetCostFunctionArrayName (const char *) |
| virtual char * | GetCostFunctionArrayName () |
| virtual void | SetFlipNormals (int) |
| virtual int | GetFlipNormals () |
| virtual void | FlipNormalsOn () |
| virtual void | FlipNormalsOff () |
| virtual void | SetSimplifyVoronoi (int) |
| virtual int | GetSimplifyVoronoi () |
| virtual void | SimplifyVoronoiOn () |
| virtual void | SimplifyVoronoiOff () |
| virtual void | SetCenterlineResampling (int) |
| virtual int | GetCenterlineResampling () |
| virtual void | CenterlineResamplingOn () |
| virtual void | CenterlineResamplingOff () |
| virtual void | SetResamplingStepLength (double) |
| virtual double | GetResamplingStepLength () |
| virtual void | SetAppendEndPointsToCenterlines (int) |
| virtual int | GetAppendEndPointsToCenterlines () |
| virtual void | AppendEndPointsToCenterlinesOn () |
| virtual void | AppendEndPointsToCenterlinesOff () |
| virtual void | SetGenerateDelaunayTessellation (int) |
| virtual int | GetGenerateDelaunayTessellation () |
| virtual void | GenerateDelaunayTessellationOn () |
| virtual void | GenerateDelaunayTessellationOff () |
| virtual void | SetGenerateVoronoiDiagram (int) |
| virtual int | GetGenerateVoronoiDiagram () |
| virtual void | GenerateVoronoiDiagramOn () |
| virtual void | GenerateVoronoiDiagramOff () |
| virtual void | SetStopFastMarchingOnReachingTarget (int) |
| virtual int | GetStopFastMarchingOnReachingTarget () |
| virtual void | StopFastMarchingOnReachingTargetOn () |
| virtual void | StopFastMarchingOnReachingTargetOff () |
| virtual void | SetDelaunayTolerance (double) |
| virtual double | GetDelaunayTolerance () |
Static Public Member Functions | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkPolyDataCenterlines * | SafeDownCast (vtkObjectBase *o) |
| static vtkvmtkPolyDataCenterlines * | New () |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkvmtkPolyDataCenterlines () | |
| ~vtkvmtkPolyDataCenterlines () | |
| virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) override |
| void | FindVoronoiSeeds (vtkUnstructuredGrid *delaunay, vtkIdList *boundaryBaricenterIds, vtkDataArray *normals, vtkIdList *seedIds) |
| void | AppendEndPoints (vtkPoints *endPointPairs) |
| void | ResampleCenterlines () |
| void | ReverseCenterlines () |
Protected Attributes | |
| vtkIdList * | SourceSeedIds |
| vtkIdList * | TargetSeedIds |
| vtkIdList * | CapCenterIds |
| vtkUnstructuredGrid * | DelaunayTessellation |
| vtkPolyData * | VoronoiDiagram |
| vtkIdList * | PoleIds |
| char * | RadiusArrayName |
| char * | CostFunction |
| char * | EikonalSolutionArrayName |
| char * | EdgeArrayName |
| char * | EdgePCoordArrayName |
| char * | CostFunctionArrayName |
| int | FlipNormals |
| int | SimplifyVoronoi |
| int | AppendEndPointsToCenterlines |
| int | CenterlineResampling |
| double | ResamplingStepLength |
| int | GenerateVoronoiDiagram |
| int | StopFastMarchingOnReachingTarget |
| int | GenerateDelaunayTessellation |
| double | DelaunayTolerance |
Compute centerlines from surface.
Computes centerlines (with a maximum inscribed sphere radius at each point) between a set of source and target boundary points on a closed surface, using the Voronoi-diagram-based method of Antiga & Steinman: the surface is first Delaunay-tessellated (unless a precomputed DelaunayTessellation is supplied), then its Voronoi diagram is extracted – the Voronoi diagram of points on a tubular surface approximates its medial axis, with the distance to the surface giving the local maximum inscribed sphere radius. A single-source shortest-path search (Fast Marching / Dijkstra-like propagation, weighted by CostFunction, typically favoring paths through the widest part of the vessel) is then run on the Voronoi diagram from the source seed(s) to each target seed, and the resulting paths become the output centerlines. This is the filter behind the vmtkcenterlines pype script, the foundation of most other centerline-based analysis in vmtk.
Definition at line 51 of file vtkvmtkPolyDataCenterlines.h.
| typedef vtkPolyDataAlgorithm vtkvmtkPolyDataCenterlines::Superclass |
Definition at line 54 of file vtkvmtkPolyDataCenterlines.h.
|
protected |
Definition at line 50 of file vtkvmtkPolyDataCenterlines.cxx.
|
protected |
Definition at line 90 of file vtkvmtkPolyDataCenterlines.cxx.
|
static |
|
virtual |
|
static |
|
protectedvirtual |
| vtkvmtkPolyDataCenterlines * vtkvmtkPolyDataCenterlines::NewInstance | ( | ) | const |
|
override |
Definition at line 708 of file vtkvmtkPolyDataCenterlines.cxx.
|
static |
|
virtual |
Set/Get the ids, on the input surface, of the point(s) from which the centerline search starts. Required input.
|
virtual |
Set/Get the ids, on the input surface, of the point(s) from which the centerline search starts. Required input.
|
virtual |
Set/Get the ids, on the input surface, of the point(s) that a centerline is computed to from each source seed. Required input.
|
virtual |
Set/Get the ids, on the input surface, of the point(s) that a centerline is computed to from each source seed. Required input.
|
virtual |
Set/Get the ids of cap-center points (e.g. as produced by vtkvmtkCapPolyData) on the input surface. When set, these points are used to seed the Voronoi diagram computation more robustly near capped boundaries.
|
virtual |
Set/Get the ids of cap-center points (e.g. as produced by vtkvmtkCapPolyData) on the input surface. When set, these points are used to seed the Voronoi diagram computation more robustly near capped boundaries.
|
virtual |
Set/Get a precomputed Delaunay tessellation of the input surface to use instead of computing one internally (see GenerateDelaunayTessellation). After Update(), also usable to retrieve the (possibly internally computed) tessellation.
|
virtual |
Set/Get a precomputed Delaunay tessellation of the input surface to use instead of computing one internally (see GenerateDelaunayTessellation). After Update(), also usable to retrieve the (possibly internally computed) tessellation.
|
virtual |
Set/Get a precomputed Voronoi diagram of the input surface to use instead of computing one internally (see GenerateVoronoiDiagram; also requires PoleIds to be set). After Update(), also usable to retrieve the (possibly internally computed) diagram.
|
virtual |
Set/Get a precomputed Voronoi diagram of the input surface to use instead of computing one internally (see GenerateVoronoiDiagram; also requires PoleIds to be set). After Update(), also usable to retrieve the (possibly internally computed) diagram.
|
virtual |
Set/Get the "pole" ids of the Delaunay tessellation (points of the tessellation that are vertices of the Voronoi diagram); required together with VoronoiDiagram when supplying a precomputed diagram. After Update(), also usable to retrieve the internally computed pole ids.
|
virtual |
Set/Get the "pole" ids of the Delaunay tessellation (points of the tessellation that are vertices of the Voronoi diagram); required together with VoronoiDiagram when supplying a precomputed diagram. After Update(), also usable to retrieve the internally computed pole ids.
|
virtual |
Set/Get the name of the point data array where the maximum inscribed sphere radius is stored, on both the output centerlines and the Voronoi diagram. Default: "MaximumInscribedSphereRadius".
|
virtual |
Set/Get the name of the point data array where the maximum inscribed sphere radius is stored, on both the output centerlines and the Voronoi diagram. Default: "MaximumInscribedSphereRadius".
|
virtual |
Set/Get the cost function used to weight the shortest-path search on the Voronoi diagram, expressed as a string in terms of R (the local maximum inscribed sphere radius); e.g. the default "1/R" biases the path towards the widest part of the vessel (favoring centeredness), a larger exponent such as "1/R2" biases it even more strongly, and "1" reduces to a plain geodesic (shortest Euclidean path).
|
virtual |
Set/Get the cost function used to weight the shortest-path search on the Voronoi diagram, expressed as a string in terms of R (the local maximum inscribed sphere radius); e.g. the default "1/R" biases the path towards the widest part of the vessel (favoring centeredness), a larger exponent such as "1/R2" biases it even more strongly, and "1" reduces to a plain geodesic (shortest Euclidean path).
|
virtual |
Set/Get the name of the point data array of the Voronoi diagram where the Eikonal (shortest-path travel time) solution is stored. Commonly named "EikonalSolution".
|
virtual |
Set/Get the name of the point data array of the Voronoi diagram where the Eikonal (shortest-path travel time) solution is stored. Commonly named "EikonalSolution".
|
virtual |
Set/Get the name of the point data array of the Voronoi diagram used internally to track, for each point, the edge of the shortest-path tree it was reached through. Commonly named "EdgeArray".
|
virtual |
Set/Get the name of the point data array of the Voronoi diagram used internally to track, for each point, the edge of the shortest-path tree it was reached through. Commonly named "EdgeArray".
|
virtual |
Set/Get the name of the point data array of the Voronoi diagram used internally to store the parametric coordinate along the shortest-path tree edge (see EdgeArrayName) at which each point was reached. Commonly named "EdgePCoordArray".
|
virtual |
Set/Get the name of the point data array of the Voronoi diagram used internally to store the parametric coordinate along the shortest-path tree edge (see EdgeArrayName) at which each point was reached. Commonly named "EdgePCoordArray".
|
virtual |
Set/Get the name of the point data array of the Voronoi diagram where the evaluated CostFunction value is stored at each point. Commonly named "CostFunctionArray".
|
virtual |
Set/Get the name of the point data array of the Voronoi diagram where the evaluated CostFunction value is stored at each point. Commonly named "CostFunctionArray".
|
virtual |
Toggle flipping the orientation of the surface normals used when computing the Voronoi diagram. Turn on if the resulting centerlines look degenerate/incorrect, which can indicate the input surface has inward-pointing normals. Default: off.
|
virtual |
Toggle flipping the orientation of the surface normals used when computing the Voronoi diagram. Turn on if the resulting centerlines look degenerate/incorrect, which can indicate the input surface has inward-pointing normals. Default: off.
|
virtual |
Toggle flipping the orientation of the surface normals used when computing the Voronoi diagram. Turn on if the resulting centerlines look degenerate/incorrect, which can indicate the input surface has inward-pointing normals. Default: off.
|
virtual |
Toggle flipping the orientation of the surface normals used when computing the Voronoi diagram. Turn on if the resulting centerlines look degenerate/incorrect, which can indicate the input surface has inward-pointing normals. Default: off.
|
virtual |
Toggle simplifying the Voronoi diagram before the shortest-path search, discarding points/cells that don't contribute to the medial axis (see vtkvmtkSimplifyVoronoiDiagram). Speeds up processing of large models at a small accuracy cost. Default: off.
|
virtual |
Toggle simplifying the Voronoi diagram before the shortest-path search, discarding points/cells that don't contribute to the medial axis (see vtkvmtkSimplifyVoronoiDiagram). Speeds up processing of large models at a small accuracy cost. Default: off.
|
virtual |
Toggle simplifying the Voronoi diagram before the shortest-path search, discarding points/cells that don't contribute to the medial axis (see vtkvmtkSimplifyVoronoiDiagram). Speeds up processing of large models at a small accuracy cost. Default: off.
|
virtual |
Toggle simplifying the Voronoi diagram before the shortest-path search, discarding points/cells that don't contribute to the medial axis (see vtkvmtkSimplifyVoronoiDiagram). Speeds up processing of large models at a small accuracy cost. Default: off.
|
virtual |
Toggle resampling the output centerlines to a uniform point spacing of ResamplingStepLength. Default: off.
|
virtual |
Toggle resampling the output centerlines to a uniform point spacing of ResamplingStepLength. Default: off.
|
virtual |
Toggle resampling the output centerlines to a uniform point spacing of ResamplingStepLength. Default: off.
|
virtual |
Toggle resampling the output centerlines to a uniform point spacing of ResamplingStepLength. Default: off.
|
virtual |
Set/Get the point spacing used to resample the output centerlines when CenterlineResampling is on. Default: 1.0.
|
virtual |
Set/Get the point spacing used to resample the output centerlines when CenterlineResampling is on. Default: 1.0.
|
virtual |
Toggle appending a short straight segment at each free end of the output centerlines, from the seed point on the surface to the corresponding source/target seed's cap center (requires CapCenterIds to be set). Default: off.
|
virtual |
Toggle appending a short straight segment at each free end of the output centerlines, from the seed point on the surface to the corresponding source/target seed's cap center (requires CapCenterIds to be set). Default: off.
|
virtual |
Toggle appending a short straight segment at each free end of the output centerlines, from the seed point on the surface to the corresponding source/target seed's cap center (requires CapCenterIds to be set). Default: off.
|
virtual |
Toggle appending a short straight segment at each free end of the output centerlines, from the seed point on the surface to the corresponding source/target seed's cap center (requires CapCenterIds to be set). Default: off.
|
virtual |
Toggle computing the Delaunay tessellation internally from the input surface. Turn off and supply DelaunayTessellation directly to reuse a tessellation computed elsewhere (e.g. to speed up repeated centerline extractions on the same surface). Default: on.
|
virtual |
Toggle computing the Delaunay tessellation internally from the input surface. Turn off and supply DelaunayTessellation directly to reuse a tessellation computed elsewhere (e.g. to speed up repeated centerline extractions on the same surface). Default: on.
|
virtual |
Toggle computing the Delaunay tessellation internally from the input surface. Turn off and supply DelaunayTessellation directly to reuse a tessellation computed elsewhere (e.g. to speed up repeated centerline extractions on the same surface). Default: on.
|
virtual |
Toggle computing the Delaunay tessellation internally from the input surface. Turn off and supply DelaunayTessellation directly to reuse a tessellation computed elsewhere (e.g. to speed up repeated centerline extractions on the same surface). Default: on.
|
virtual |
Toggle computing the Voronoi diagram internally from the Delaunay tessellation. Turn off and supply VoronoiDiagram and PoleIds directly to reuse a diagram computed elsewhere. Default: on.
|
virtual |
Toggle computing the Voronoi diagram internally from the Delaunay tessellation. Turn off and supply VoronoiDiagram and PoleIds directly to reuse a diagram computed elsewhere. Default: on.
|
virtual |
Toggle computing the Voronoi diagram internally from the Delaunay tessellation. Turn off and supply VoronoiDiagram and PoleIds directly to reuse a diagram computed elsewhere. Default: on.
|
virtual |
Toggle computing the Voronoi diagram internally from the Delaunay tessellation. Turn off and supply VoronoiDiagram and PoleIds directly to reuse a diagram computed elsewhere. Default: on.
|
virtual |
Toggle stopping the shortest-path propagation as soon as all target seeds have been reached, rather than continuing until the whole Voronoi diagram is visited. Speeds up processing when only a few targets are needed out of a large model. Default: off.
|
virtual |
Toggle stopping the shortest-path propagation as soon as all target seeds have been reached, rather than continuing until the whole Voronoi diagram is visited. Speeds up processing when only a few targets are needed out of a large model. Default: off.
|
virtual |
Toggle stopping the shortest-path propagation as soon as all target seeds have been reached, rather than continuing until the whole Voronoi diagram is visited. Speeds up processing when only a few targets are needed out of a large model. Default: off.
|
virtual |
Toggle stopping the shortest-path propagation as soon as all target seeds have been reached, rather than continuing until the whole Voronoi diagram is visited. Speeds up processing when only a few targets are needed out of a large model. Default: off.
|
virtual |
Set/Get the numerical tolerance used when computing the Delaunay tessellation (points closer together than this are merged). Default: 1E-3.
|
virtual |
Set/Get the numerical tolerance used when computing the Delaunay tessellation (points closer together than this are merged). Default: 1E-3.
|
overrideprotectedvirtual |
Definition at line 166 of file vtkvmtkPolyDataCenterlines.cxx.
|
protected |
Definition at line 441 of file vtkvmtkPolyDataCenterlines.cxx.
|
protected |
Definition at line 538 of file vtkvmtkPolyDataCenterlines.cxx.
|
protected |
Definition at line 591 of file vtkvmtkPolyDataCenterlines.cxx.
|
protected |
Definition at line 679 of file vtkvmtkPolyDataCenterlines.cxx.
|
protected |
Definition at line 284 of file vtkvmtkPolyDataCenterlines.h.
|
protected |
Definition at line 285 of file vtkvmtkPolyDataCenterlines.h.
|
protected |
Definition at line 287 of file vtkvmtkPolyDataCenterlines.h.
|
protected |
Definition at line 289 of file vtkvmtkPolyDataCenterlines.h.
|
protected |
Definition at line 291 of file vtkvmtkPolyDataCenterlines.h.
|
protected |
Definition at line 293 of file vtkvmtkPolyDataCenterlines.h.
|
protected |
Definition at line 295 of file vtkvmtkPolyDataCenterlines.h.
|
protected |
Definition at line 296 of file vtkvmtkPolyDataCenterlines.h.
|
protected |
Definition at line 297 of file vtkvmtkPolyDataCenterlines.h.
|
protected |
Definition at line 298 of file vtkvmtkPolyDataCenterlines.h.
|
protected |
Definition at line 299 of file vtkvmtkPolyDataCenterlines.h.
|
protected |
Definition at line 300 of file vtkvmtkPolyDataCenterlines.h.
|
protected |
Definition at line 302 of file vtkvmtkPolyDataCenterlines.h.
|
protected |
Definition at line 303 of file vtkvmtkPolyDataCenterlines.h.
|
protected |
Definition at line 304 of file vtkvmtkPolyDataCenterlines.h.
|
protected |
Definition at line 305 of file vtkvmtkPolyDataCenterlines.h.
|
protected |
Definition at line 307 of file vtkvmtkPolyDataCenterlines.h.
|
protected |
Definition at line 309 of file vtkvmtkPolyDataCenterlines.h.
|
protected |
Definition at line 310 of file vtkvmtkPolyDataCenterlines.h.
|
protected |
Definition at line 311 of file vtkvmtkPolyDataCenterlines.h.
|
protected |
Definition at line 312 of file vtkvmtkPolyDataCenterlines.h.