|
VMTK
|
Split a centerline into tracts which can be used to mark endpoints of the centerline. More...
#include <vtkvmtkCenterlineEndpointExtractor.h>
Public Types | |
| typedef vtkvmtkCenterlineSplittingAndGroupingFilter | Superclass |
| Public Types inherited from vtkvmtkCenterlineSplittingAndGroupingFilter | |
| enum | { FIRSTPOINT , LASTPOINT , POINTINTUBE } |
| typedef vtkPolyDataAlgorithm | Superclass |
Static Public Member Functions | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkCenterlineEndpointExtractor * | SafeDownCast (vtkObjectBase *o) |
| static vtkvmtkCenterlineEndpointExtractor * | New () |
| Static Public Member Functions inherited from vtkvmtkCenterlineSplittingAndGroupingFilter | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkCenterlineSplittingAndGroupingFilter * | SafeDownCast (vtkObjectBase *o) |
Protected Types | |
| enum | { VTK_VMTK_FIRST_ENDPOINT , VTK_VMTK_LAST_ENDPOINT , VTK_VMTK_BOTH_ENDPOINTS } |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkvmtkCenterlineEndpointExtractor () | |
| ~vtkvmtkCenterlineEndpointExtractor () | |
| virtual void | ComputeCenterlineSplitting (vtkPolyData *input, vtkIdType cellId) override |
| Protected Member Functions inherited from vtkvmtkCenterlineSplittingAndGroupingFilter | |
| vtkvmtkCenterlineSplittingAndGroupingFilter () | |
| ~vtkvmtkCenterlineSplittingAndGroupingFilter () | |
| virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) override |
| virtual void | GroupTracts (vtkPolyData *input, vtkPolyData *centerlineTracts) |
| void | CoincidentExtremePointGroupTracts (vtkPolyData *input, vtkPolyData *centerlineTracts, bool first=true) |
| void | PointInTubeGroupTracts (vtkPolyData *input, vtkPolyData *centerlineTracts) |
| virtual void | MergeTracts (vtkPolyData *centerlineTracts) |
| void | SplitCenterline (vtkPolyData *input, vtkIdType cellId, int numberOfSplittingPoints, const vtkIdType *subIds, const double *pcoords, const int *tractBlanking, vtkPolyData *splitCenterline) |
| void | MakeGroupIdsAdjacent (vtkPolyData *centerlineTracts) |
| void | MakeTractIdsAdjacent (vtkPolyData *centerlineTracts) |
Protected Attributes | |
| int | NumberOfEndpointSpheres |
| int | NumberOfGapSpheres |
| int | ExtractionMode |
| Protected Attributes inherited from vtkvmtkCenterlineSplittingAndGroupingFilter | |
| char * | RadiusArrayName |
| char * | GroupIdsArrayName |
| char * | CenterlineIdsArrayName |
| char * | BlankingArrayName |
| char * | TractIdsArrayName |
| int | NumberOfSplittingPoints |
| vtkIdType * | SubIds |
| double * | PCoords |
| int * | TractBlanking |
| int | GroupingMode |
Split a centerline into tracts which can be used to mark endpoints of the centerline.
The methods employed here are similar to those in CenterlineBranchExtractor. Starting at (both) terminal end points of a centerline generate two, one sphere long, tracts (for four in total, two from each end of the centerline), and a single tract (n-sphere long) composed of points on the centerline connecting the "second" tracts internal endpoint (as you move the endpoint of the second tract if you moved inwards from terminal points on the centerline). The second internal tract on each side of the centerline is Blanked.
This is the filter behind the vmtkendpointextractor pype script, typically run right after splitting/grouping centerlines to additionally mark the free (non-bifurcating) ends of the tree.
Definition at line 38 of file vtkvmtkCenterlineEndpointExtractor.h.
Definition at line 41 of file vtkvmtkCenterlineEndpointExtractor.h.
|
protected |
| Enumerator | |
|---|---|
| VTK_VMTK_FIRST_ENDPOINT | |
| VTK_VMTK_LAST_ENDPOINT | |
| VTK_VMTK_BOTH_ENDPOINTS | |
Definition at line 103 of file vtkvmtkCenterlineEndpointExtractor.h.
|
protected |
Definition at line 31 of file vtkvmtkCenterlineEndpointExtractor.cxx.
|
protected |
Definition at line 38 of file vtkvmtkCenterlineEndpointExtractor.cxx.
|
static |
|
virtual |
Reimplemented from vtkvmtkCenterlineSplittingAndGroupingFilter.
|
static |
|
protectedvirtual |
Reimplemented from vtkvmtkCenterlineSplittingAndGroupingFilter.
| vtkvmtkCenterlineEndpointExtractor * vtkvmtkCenterlineEndpointExtractor::NewInstance | ( | ) | const |
|
override |
Definition at line 135 of file vtkvmtkCenterlineEndpointExtractor.cxx.
|
static |
|
virtual |
Set/Get the number of maximum-inscribed-sphere-long tracts extracted at each extracted endpoint. Default: 2.
|
virtual |
Set/Get the number of maximum-inscribed-sphere-long tracts extracted at each extracted endpoint. Default: 2.
|
virtual |
Set/Get the number of spheres separating the endpoint tracts from the (blanked) internal gap tract that connects them. Default: 1.
|
virtual |
Set/Get the number of spheres separating the endpoint tracts from the (blanked) internal gap tract that connects them. Default: 1.
|
virtual |
Set/Get which terminal end(s) of each input centerline are processed: VTK_VMTK_FIRST_ENDPOINT, VTK_VMTK_LAST_ENDPOINT, or VTK_VMTK_BOTH_ENDPOINTS (default). See also SetExtractionModeToFirstEndpoint / SetExtractionModeToLastEndpoint / SetExtractionModeToBothEndpoints.
|
virtual |
Set/Get which terminal end(s) of each input centerline are processed: VTK_VMTK_FIRST_ENDPOINT, VTK_VMTK_LAST_ENDPOINT, or VTK_VMTK_BOTH_ENDPOINTS (default). See also SetExtractionModeToFirstEndpoint / SetExtractionModeToLastEndpoint / SetExtractionModeToBothEndpoints.
|
inline |
Convenience method: set ExtractionMode to only process the first endpoint of each centerline.
Definition at line 77 of file vtkvmtkCenterlineEndpointExtractor.h.
|
inline |
Convenience method: set ExtractionMode to only process the last endpoint of each centerline.
Definition at line 83 of file vtkvmtkCenterlineEndpointExtractor.h.
|
inline |
Convenience method: set ExtractionMode to process both endpoints of each centerline (default).
Definition at line 89 of file vtkvmtkCenterlineEndpointExtractor.h.
|
overrideprotectedvirtual |
Implements vtkvmtkCenterlineSplittingAndGroupingFilter.
Definition at line 42 of file vtkvmtkCenterlineEndpointExtractor.cxx.
|
protected |
Definition at line 98 of file vtkvmtkCenterlineEndpointExtractor.h.
|
protected |
Definition at line 99 of file vtkvmtkCenterlineEndpointExtractor.h.
|
protected |
Definition at line 100 of file vtkvmtkCenterlineEndpointExtractor.h.