|
VMTK
|
Create an explicitly deformable model which evolves a surface to gradient magnitudes of an input image. More...
#include <vtkvmtkPolyDataPotentialFit.h>
Public Types | |
| typedef vtkPolyDataAlgorithm | Superclass |
Public Member Functions | |
| virtual int | IsA (const char *type) |
| vtkvmtkPolyDataPotentialFit * | NewInstance () const |
| void | PrintSelf (std::ostream &os, vtkIndent indent) override |
| virtual void | SetPotentialImage (vtkImageData *) |
| virtual vtkImageData * | GetPotentialImage () |
| virtual void | SetInflationImage (vtkImageData *) |
| virtual vtkImageData * | GetInflationImage () |
| virtual void | SetInflationThreshold (double) |
| virtual double | GetInflationThreshold () |
| virtual void | SetNumberOfIterations (int) |
| virtual int | GetNumberOfIterations () |
| virtual void | SetNumberOfStiffnessSubIterations (int) |
| virtual int | GetNumberOfStiffnessSubIterations () |
| virtual void | SetNumberOfInflationSubIterations (int) |
| virtual int | GetNumberOfInflationSubIterations () |
| virtual void | SetRelaxation (double) |
| virtual double | GetRelaxation () |
| virtual void | SetPotentialWeight (double) |
| virtual double | GetPotentialWeight () |
| virtual void | SetStiffnessWeight (double) |
| virtual double | GetStiffnessWeight () |
| virtual void | SetInflationWeight (double) |
| virtual double | GetInflationWeight () |
| virtual void | SetConvergence (double) |
| virtual double | GetConvergence () |
| virtual void | SetMaxTimeStep (double) |
| virtual double | GetMaxTimeStep () |
| virtual void | SetTimeStep (double) |
| virtual double | GetTimeStep () |
| virtual void | SetAdaptiveTimeStep (int) |
| virtual int | GetAdaptiveTimeStep () |
| virtual void | AdaptiveTimeStepOn () |
| virtual void | AdaptiveTimeStepOff () |
| virtual void | SetFlipNormals (int) |
| virtual int | GetFlipNormals () |
| virtual void | FlipNormalsOn () |
| virtual void | FlipNormalsOff () |
| virtual void | SetUsePotentialInInflation (int) |
| virtual int | GetUsePotentialInInflation () |
| virtual void | UsePotentialInInflationOn () |
| virtual void | UsePotentialInInflationOff () |
| virtual void | SetDimensionality (int) |
| virtual int | GetDimensionality () |
Static Public Member Functions | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkPolyDataPotentialFit * | SafeDownCast (vtkObjectBase *o) |
| static vtkvmtkPolyDataPotentialFit * | New () |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkvmtkPolyDataPotentialFit () | |
| ~vtkvmtkPolyDataPotentialFit () | |
| virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) override |
| void | EvaluateForce (double point[3], double force[3], bool normalize=true) |
| double | EvaluatePotential (double point[3]) |
| double | EvaluateInflation (double point[3]) |
| void | ComputeDisplacements (bool potential, bool stiffness, bool inflation) |
| void | ComputePotentialDisplacement (vtkIdType pointId, double potentialDisplacement[3]) |
| void | ComputeStiffnessDisplacement (vtkIdType pointId, double stiffnessDisplacement[3]) |
| void | ComputeInflationDisplacement (vtkIdType pointId, double inflationDisplacement[3]) |
| void | ComputeTimeStep () |
| void | ApplyDisplacements () |
| int | TestConvergence () |
Static Protected Member Functions | |
| static double | ComputeMinSpacing (double spacing[3]) |
| static bool | IsInExtent (vtkIdType extent[6], int ijk[3], vtkIdType border) |
| static bool | IsCellInExtent (int extent[6], int ijk[3], vtkIdType border) |
Protected Attributes | |
| vtkImageData * | PotentialImage |
| vtkImageData * | InflationImage |
| vtkImageData * | PotentialGradientImage |
| int | NumberOfIterations |
| int | NumberOfStiffnessSubIterations |
| int | NumberOfInflationSubIterations |
| double | TimeStep |
| double | Relaxation |
| double | MaxDisplacementNorm |
| double | MinEdgeLength |
| double | MinPotentialSpacing |
| double | Convergence |
| double | PotentialWeight |
| double | StiffnessWeight |
| double | InflationWeight |
| double | InflationThreshold |
| double | PotentialMaxNorm |
| int | UsePotentialInInflation |
| double | MaxTimeStep |
| int | AdaptiveTimeStep |
| int | FlipNormals |
| int | Dimensionality |
| vtkDoubleArray * | Displacements |
| vtkvmtkNeighborhoods * | Neighborhoods |
| vtkDataArray * | Normals |
Create an explicitly deformable model which evolves a surface to gradient magnitudes of an input image.
vtkvmtkPolyDataPotentialFit implements an explicit (mesh-based) deformable model ("snake") that iteratively displaces the points of an input surface under three combined forces: a potential force that pulls points towards local maxima of PotentialImage's gradient magnitude (typically an edge/gradient-magnitude image derived from the volume being segmented), a stiffness (Laplacian-smoothing) force that regularizes the surface by pulling each point towards the centroid of its one-ring neighbors, and an inflation force that expands/contracts the surface along its normal based on InflationImage. This is the filter behind the vmtkpotentialfit pype script, used e.g. to snap a coarse initial surface onto image edges. At each of NumberOfIterations outer iterations, the filter alternates NumberOfStiffnessSubIterations pure-stiffness relaxation steps, NumberOfInflationSubIterations pure-inflation steps, and one combined potential+stiffness+inflation step, adaptively choosing the time step (see AdaptiveTimeStep) so that the largest point displacement does not exceed one voxel; iteration stops early once the scaled maximum displacement falls below Convergence.
Definition at line 51 of file vtkvmtkPolyDataPotentialFit.h.
| typedef vtkPolyDataAlgorithm vtkvmtkPolyDataPotentialFit::Superclass |
Definition at line 54 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 49 of file vtkvmtkPolyDataPotentialFit.cxx.
|
protected |
Definition at line 81 of file vtkvmtkPolyDataPotentialFit.cxx.
|
static |
|
virtual |
|
static |
|
protectedvirtual |
| vtkvmtkPolyDataPotentialFit * vtkvmtkPolyDataPotentialFit::NewInstance | ( | ) | const |
|
override |
Definition at line 636 of file vtkvmtkPolyDataPotentialFit.cxx.
|
static |
|
virtual |
Set/get the scalar image (typically a gradient-magnitude/edge image) whose spatial gradient defines the potential force that attracts surface points towards image edges. Required; its gradient is (re)computed internally at the start of RequestData.
|
virtual |
Set/get the scalar image (typically a gradient-magnitude/edge image) whose spatial gradient defines the potential force that attracts surface points towards image edges. Required; its gradient is (re)computed internally at the start of RequestData.
|
virtual |
Set/get the scalar image sampled (relative to InflationThreshold) to drive the inflation force; if not set, EvaluateInflation returns a constant 1.0 everywhere (uniform inflation).
|
virtual |
Set/get the scalar image sampled (relative to InflationThreshold) to drive the inflation force; if not set, EvaluateInflation returns a constant 1.0 everywhere (uniform inflation).
|
virtual |
Set/get the value subtracted from InflationImage samples when evaluating the inflation force, effectively the iso-value at which the inflation force changes sign. Default: 0.0.
|
virtual |
Set/get the value subtracted from InflationImage samples when evaluating the inflation force, effectively the iso-value at which the inflation force changes sign. Default: 0.0.
|
virtual |
Set/get the maximum number of outer deformation iterations to perform (evolution may stop earlier once TestConvergence succeeds). Default: VTK_VMTK_LARGE_INTEGER.
|
virtual |
Set/get the maximum number of outer deformation iterations to perform (evolution may stop earlier once TestConvergence succeeds). Default: VTK_VMTK_LARGE_INTEGER.
|
virtual |
Set/get the number of pure-stiffness (Laplacian smoothing) sub-iterations performed at the start of each outer iteration, before the combined potential+stiffness+inflation step. Default: 5.
|
virtual |
Set/get the number of pure-stiffness (Laplacian smoothing) sub-iterations performed at the start of each outer iteration, before the combined potential+stiffness+inflation step. Default: 5.
|
virtual |
Set/get the number of pure-inflation sub-iterations performed at the start of each outer iteration, before the combined potential+stiffness+inflation step. Default: 0.
|
virtual |
Set/get the number of pure-inflation sub-iterations performed at the start of each outer iteration, before the combined potential+stiffness+inflation step. Default: 0.
|
virtual |
Set/get the relaxation factor applied to the total displacement at each sub-step (a fraction in (0,1] used to damp the update). Default: 1.0.
|
virtual |
Set/get the relaxation factor applied to the total displacement at each sub-step (a fraction in (0,1] used to damp the update). Default: 1.0.
|
virtual |
Set/get the weight of the potential (image-gradient-attraction) force in the combined displacement. Default: 0.0.
|
virtual |
Set/get the weight of the potential (image-gradient-attraction) force in the combined displacement. Default: 0.0.
|
virtual |
Set/get the weight of the stiffness (Laplacian smoothing) force in the combined displacement. Default: 0.0.
|
virtual |
Set/get the weight of the stiffness (Laplacian smoothing) force in the combined displacement. Default: 0.0.
|
virtual |
Set/get the weight of the inflation (normal expansion/contraction) force in the combined displacement. Default: 0.0.
|
virtual |
Set/get the weight of the inflation (normal expansion/contraction) force in the combined displacement. Default: 0.0.
|
virtual |
Set/get the convergence threshold: iteration stops once TimeStep times the maximum point displacement norm drops below this value. Default: 1E-1.
|
virtual |
Set/get the convergence threshold: iteration stops once TimeStep times the maximum point displacement norm drops below this value. Default: 1E-1.
|
virtual |
Set/get the upper bound on the (possibly adaptive) time step, expressed in pixels per time step. Default: 1.0.
|
virtual |
Set/get the upper bound on the (possibly adaptive) time step, expressed in pixels per time step. Default: 1.0.
|
virtual |
Set/get the time step used to scale point displacements at each sub-step. Overwritten every sub-step when AdaptiveTimeStep is on; used as a fixed value otherwise. Default: 0.0.
|
virtual |
Set/get the time step used to scale point displacements at each sub-step. Overwritten every sub-step when AdaptiveTimeStep is on; used as a fixed value otherwise. Default: 0.0.
|
virtual |
Toggle automatic time step selection: when on, TimeStep is recomputed at every sub-step as the minimum potential image spacing divided by the maximum displacement norm (capped at MaxTimeStep), keeping point motion below about one voxel per step. Default: on.
|
virtual |
Toggle automatic time step selection: when on, TimeStep is recomputed at every sub-step as the minimum potential image spacing divided by the maximum displacement norm (capped at MaxTimeStep), keeping point motion below about one voxel per step. Default: on.
|
virtual |
Toggle automatic time step selection: when on, TimeStep is recomputed at every sub-step as the minimum potential image spacing divided by the maximum displacement norm (capped at MaxTimeStep), keeping point motion below about one voxel per step. Default: on.
|
virtual |
Toggle automatic time step selection: when on, TimeStep is recomputed at every sub-step as the minimum potential image spacing divided by the maximum displacement norm (capped at MaxTimeStep), keeping point motion below about one voxel per step. Default: on.
|
virtual |
Toggle flipping of the computed surface normals used for the inflation force direction (passed through to the internal vtkPolyDataNormals as FlipNormals). Default: off.
|
virtual |
Toggle flipping of the computed surface normals used for the inflation force direction (passed through to the internal vtkPolyDataNormals as FlipNormals). Default: off.
|
virtual |
Toggle flipping of the computed surface normals used for the inflation force direction (passed through to the internal vtkPolyDataNormals as FlipNormals). Default: off.
|
virtual |
Toggle flipping of the computed surface normals used for the inflation force direction (passed through to the internal vtkPolyDataNormals as FlipNormals). Default: off.
|
virtual |
Toggle whether the inflation force is additionally modulated by the local potential value (EvaluatePotential), so that inflation slows down near strong image edges. Default: on.
|
virtual |
Toggle whether the inflation force is additionally modulated by the local potential value (EvaluatePotential), so that inflation slows down near strong image edges. Default: on.
|
virtual |
Toggle whether the inflation force is additionally modulated by the local potential value (EvaluatePotential), so that inflation slows down near strong image edges. Default: on.
|
virtual |
Toggle whether the inflation force is additionally modulated by the local potential value (EvaluatePotential), so that inflation slows down near strong image edges. Default: on.
|
virtual |
Set/get the spatial dimensionality (2 or 3) used when computing the gradient of PotentialImage. Default: 3.
|
virtual |
Set/get the spatial dimensionality (2 or 3) used when computing the gradient of PotentialImage. Default: 3.
|
overrideprotectedvirtual |
Definition at line 510 of file vtkvmtkPolyDataPotentialFit.cxx.
|
protected |
Definition at line 117 of file vtkvmtkPolyDataPotentialFit.cxx.
|
protected |
Definition at line 176 of file vtkvmtkPolyDataPotentialFit.cxx.
|
protected |
Definition at line 224 of file vtkvmtkPolyDataPotentialFit.cxx.
|
protected |
Definition at line 404 of file vtkvmtkPolyDataPotentialFit.cxx.
|
protected |
Definition at line 276 of file vtkvmtkPolyDataPotentialFit.cxx.
|
protected |
Definition at line 287 of file vtkvmtkPolyDataPotentialFit.cxx.
|
protected |
Definition at line 335 of file vtkvmtkPolyDataPotentialFit.cxx.
|
protected |
Definition at line 456 of file vtkvmtkPolyDataPotentialFit.cxx.
|
protected |
Definition at line 477 of file vtkvmtkPolyDataPotentialFit.cxx.
|
protected |
Definition at line 505 of file vtkvmtkPolyDataPotentialFit.cxx.
|
staticprotected |
Definition at line 498 of file vtkvmtkPolyDataPotentialFit.cxx.
|
inlinestaticprotected |
Definition at line 238 of file vtkvmtkPolyDataPotentialFit.h.
|
inlinestaticprotected |
Definition at line 243 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 248 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 249 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 250 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 252 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 254 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 255 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 257 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 258 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 259 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 260 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 261 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 262 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 264 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 265 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 266 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 268 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 269 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 270 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 272 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 273 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 275 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 277 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 279 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 281 of file vtkvmtkPolyDataPotentialFit.h.
|
protected |
Definition at line 282 of file vtkvmtkPolyDataPotentialFit.h.