#include <itkSparseFieldLevelSetImageFilter.h>
Inheritance diagram for itk::SparseFieldLevelSetImageFilter:
The ``sparse field'' approach to the level-set model is a logical extension of the classical narrow band technique, which seeks to minimize computational effort by restricting calculations to those pixels in a region of interest around the moving surface (the -level curve). The sparse field method uses a narrow band that is exactly the width needed to calculate changes on the level curve for the next time step. Because the band of grid points under consideration is so sparse, this approach has several advantages: the algorithm does exactly the number of calculations needed to determine the next position of the -level curve, and the distance transform around the level curve can be recomputed at each iteration.
The sparse field algorithm works by constructing a linked list of indicies that are adjacent to the -level set. These indicies are called the ``active set''. The values at these active set indicies define the position of the -level curve. The active set indicies are shifted to follow the distance transform embedding of the -level curve as their values move in and out of a fixed numerical range about . In this way, the active set is maintained as only those pixels adjacent to the evolving surface. Calculations are then done only at indicies contained in the active set.
The city-block neighborhoods of the active set indicies are maintained as separate lists called ``layers''. At each iteration, the values at the layers are reinitialized as the distance transform from the active set. The number of layers can be adjusted according to the footprint needed for the calculations on the level curve.
Briefly, the sparse field solver algorithm is as follows:
1. For each active layer index : Compute the change at , the grid point in the embedding, based on local geometry and external forces and using a stable numerical scheme.
2. For each active layer index , add the change to the grid point value and redefine the active set indicies and those of its layers based on any value changes which have moved outside of the numerical range allowed for the active set.
3. Starting with the first layers adjacent to the active set and moving outwards, reconstruct the distance transform by setting values in the layers according to their neighbors. At the very outer layers, add or remove indicies which have come into or moved out of the sparse field.
The IsoSurfaceValue indicates which value in the input represents the interface of interest. By default, this value is zero. When the solver initializes, it will subtract the IsoSurfaceValue from all values, in the input, shifting the isosurface of interest to zero in the output.
Sethian, J.A. Level Set Methods. Cambridge University Press. 1996.
Definition at line 220 of file itkSparseFieldLevelSetImageFilter.h.
|
|
Reimplemented in itk::AntiAliasBinaryImageFilter< TInputImage, TOutputImage >, and itk::SegmentationLevelSetImageFilter< TInputImage, TOutputImage >. Definition at line 243 of file itkSparseFieldLevelSetImageFilter.h. |
|
Information derived from the image types. Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >. Reimplemented in itk::AntiAliasBinaryImageFilter< TInputImage, TOutputImage >, and itk::SegmentationLevelSetImageFilter< TInputImage, TOutputImage >. Definition at line 241 of file itkSparseFieldLevelSetImageFilter.h. |
|
A type for a list of LayerPointerTypes Definition at line 259 of file itkSparseFieldLevelSetImageFilter.h. |
|
Memory pre-allocator used to manage layer nodes in a multi-threaded environment. Definition at line 271 of file itkSparseFieldLevelSetImageFilter.h. |
|
Node type used in sparse field layer lists. Definition at line 252 of file itkSparseFieldLevelSetImageFilter.h. |
|
Definition at line 256 of file itkSparseFieldLevelSetImageFilter.h. |
|
A list type used in the algorithm. Definition at line 255 of file itkSparseFieldLevelSetImageFilter.h. |
|
Some convenient typedefs. Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >. Reimplemented in itk::AntiAliasBinaryImageFilter< TInputImage, TOutputImage >, and itk::SegmentationLevelSetImageFilter< TInputImage, TOutputImage >. Definition at line 242 of file itkSparseFieldLevelSetImageFilter.h. |
|
|
Standard class typedefs Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >. Reimplemented in itk::AntiAliasBinaryImageFilter< TInputImage, TOutputImage >, itk::LaplacianSegmentationLevelSetImageFilter< TInputImage, TOutputImage >, itk::SegmentationLevelSetImageFilter< TInputImage, TOutputImage >, and itk::ThresholdSegmentationLevelSetImageFilter< TInputImage, TOutputImage >. Definition at line 226 of file itkSparseFieldLevelSetImageFilter.h. |
|
The type of the image used to index status information. Necessary for the internals of the algorithm. Definition at line 267 of file itkSparseFieldLevelSetImageFilter.h. |
|
Type used for storing status information Definition at line 262 of file itkSparseFieldLevelSetImageFilter.h. |
|
|
Typedefs from the superclass Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >. Reimplemented in itk::AntiAliasBinaryImageFilter< TInputImage, TOutputImage >, and itk::SegmentationLevelSetImageFilter< TInputImage, TOutputImage >. Definition at line 232 of file itkSparseFieldLevelSetImageFilter.h. |
|
Container type used to store updates to the active layer. Definition at line 274 of file itkSparseFieldLevelSetImageFilter.h. |
|
The data type used in numerical computations. Derived from the output image type. Reimplemented in itk::AntiAliasBinaryImageFilter< TInputImage, TOutputImage >, itk::LaplacianSegmentationLevelSetImageFilter< TInputImage, TOutputImage >, itk::SegmentationLevelSetImageFilter< TInputImage, TOutputImage >, and itk::ThresholdSegmentationLevelSetImageFilter< TInputImage, TOutputImage >. Definition at line 249 of file itkSparseFieldLevelSetImageFilter.h. |
|
|
|
|
|
Reserves memory in the update buffer. Called before each iteration. Implements itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >. |
|
Applies the update buffer values to the active layer and reconstructs the sparse field layers for the next iteration. Implements itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >. |
|
Traverses the active layer list and calculates the change at these indicies to be applied in the current iteration. Implements itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >. |
|
This function allows a subclass to override the way in which updates to output values are applied during each iteration. The default simply follows the standard finite difference scheme of scaling the change by the timestep and adding to the value of the previous iteration. Reimplemented in itk::AntiAliasBinaryImageFilter< TInputImage, TOutputImage >. Definition at line 302 of file itkSparseFieldLevelSetImageFilter.h. |
|
Constructs the active layer and initialize the first layers inside and outside of the active layer. The active layer defines the position of the zero level set by its values, which are constrained within a range around zero. |
|
Initializes a layer of the sparse field using a previously initialized layer. Builds the list of nodes in m_Layer[to] using m_Layer[from]. Marks values in the m_StatusImage. |
|
Copies the input to the output image. Processing occurs on the output image, so the data type of the output image determines the precision of the calculations (i.e. double or float). This method overrides the parent class method to do some additional processing. Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >. |
|
Run-time type information (and related methods). Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >. Reimplemented in itk::AntiAliasBinaryImageFilter< TInputImage, TOutputImage >, itk::LaplacianSegmentationLevelSetImageFilter< TInputImage, TOutputImage >, itk::SegmentationLevelSetImageFilter< TInputImage, TOutputImage >, and itk::ThresholdSegmentationLevelSetImageFilter< TInputImage, TOutputImage >. |
|
Set/Get the value of the isosurface to use in the input image. |
|
Set/Get the number of layers to use in the sparse field. Argument is the number of layers on ONE side of the active layer, so the total layers in the sparse field is 2 * NumberOfLayers +1 |
|
Get the RMS change calculated in the PREVIOUS iteration. This value is the square root of the average square of the change value of all pixels updated during the previous iteration. |
|
Constructs the sparse field layers and initializes their values. Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >. |
|
Initializes the values of the active layer set. |
|
This method pre-processes pixels inside and outside the sparse field layers. The default is to set them to positive and negative values, respectively. This is not necessary as part of the calculations, but produces a more intuitive output for the user. |
|
|
|
Method for creation through the object factory. Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. Reimplemented in itk::AntiAliasBinaryImageFilter< TInputImage, TOutputImage >, itk::LaplacianSegmentationLevelSetImageFilter< TInputImage, TOutputImage >, and itk::ThresholdSegmentationLevelSetImageFilter< TInputImage, TOutputImage >. |
|
This method packages the output(s) into a consistent format. The default implementation produces a volume with the final solution values in the sparse field, and inside and outside values elsewhere as appropriate. Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >. |
|
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >. Reimplemented in itk::AntiAliasBinaryImageFilter< TInputImage, TOutputImage >, itk::LaplacianSegmentationLevelSetImageFilter< TInputImage, TOutputImage >, itk::SegmentationLevelSetImageFilter< TInputImage, TOutputImage >, and itk::ThresholdSegmentationLevelSetImageFilter< TInputImage, TOutputImage >. |
|
|
|
|
|
Adjusts the values associated with all the index layers of the sparse field by propagating out one layer at a time from the active set. This method also takes care of deleting nodes from the layers which have been marked in the status image as having been moved to other layers. |
|
Adjusts the values in a single layer "to" using values in a neighboring layer "from". The list of indicies in "to" are traversed and assigned new values appropriately. Any indicies in "to" without neighbors in "from" are moved into the "promote" layer (or deleted if "promote" is greater than the number of layers). "InOrOut" == 1 indicates this propagation is inwards (more negative). "InOrOut" == 2 indicates this propagation is outwards (more positive). |
|
Set/Get the value of the isosurface to use in the input image. |
|
Set/Get the number of layers to use in the sparse field. Argument is the number of layers on ONE side of the active layer, so the total layers in the sparse field is 2 * NumberOfLayers +1 |
|
Updates the active layer values using m_UpdateBuffer. Also creates an "up" and "down" list for promotion/demotion of indicies leaving the active set. |
|
The constant gradient to maintain between isosurfaces in the spare-field of the level-set image. This value defaults to 1.0 Definition at line 388 of file itkSparseFieldLevelSetImageFilter.h. |
|
The value in the input which represents the isosurface of interest. Definition at line 435 of file itkSparseFieldLevelSetImageFilter.h. |
|
Storage for layer node objects. Definition at line 432 of file itkSparseFieldLevelSetImageFilter.h. |
|
An array which contains all of the layers needed in the sparse field. Layers are organized as follows: m_Layer[0] = active layer, m_Layer[i:odd] = inside layer (i+1)/2, m_Layer[i:even] = outside layer i/2 Definition at line 421 of file itkSparseFieldLevelSetImageFilter.h. |
|
Connectivity information for examining neighbor pixels. Definition at line 384 of file itkSparseFieldLevelSetImageFilter.h. |
|
The number of layers to use in the sparse field. Sparse field will consist of m_NumberOfLayers layers on both sides of a single active layer. This active layer is the interface of interest, i.e. the zero level set. Definition at line 426 of file itkSparseFieldLevelSetImageFilter.h. |
|
The RMS change calculated from each update. Can be used by a subclass to determine halting criteria. Valid only for the previous iteration, not during the current iteration. Calculated in ApplyUpdate. Definition at line 444 of file itkSparseFieldLevelSetImageFilter.h. |
|
This image is a copy of the input with m_IsoSurfaceValue subtracted from each pixel. This way we only need to consider the zero level set in our calculations. Makes the implementation easier and more efficient. Definition at line 415 of file itkSparseFieldLevelSetImageFilter.h. |
|
Special status value which indicates a pending change to a more negative sparse field. Definition at line 406 of file itkSparseFieldLevelSetImageFilter.h. |
|
Special status value which indicates a pending change to a more positive sparse field. Definition at line 402 of file itkSparseFieldLevelSetImageFilter.h. |
|
Special status value which indicates pending change to another sparse field layer. Definition at line 398 of file itkSparseFieldLevelSetImageFilter.h. |
|
An image of status values used internally by the algorithm. Definition at line 429 of file itkSparseFieldLevelSetImageFilter.h. |
|
Special status value used as a default for indicies which have no meaningful status. Definition at line 410 of file itkSparseFieldLevelSetImageFilter.h. |
|
The update buffer used to store change values computed in CalculateChange. Definition at line 439 of file itkSparseFieldLevelSetImageFilter.h. |
|
Multiplicative identity of the ValueType. Definition at line 391 of file itkSparseFieldLevelSetImageFilter.h. |
|
Additive identity of the ValueType. Definition at line 394 of file itkSparseFieldLevelSetImageFilter.h. |