#include <itkSegmentationLevelSetImageFilter.h>
A base class which defines the API for implementing a special class of image segmentation filters using level set methods.
TInputImage is the image type of the initial model you will input to the filter using SetInput() or SetInitialImage().
TFeatureImage is the image type of the image from which the filter will calculate the speed term for segmentation (see INPUTS).
TOutputPixelType is the data type used for the output image phi, the implicit level set image. This should really only ever be set as float (default) or double.
You must identify the initial front (surface) in the input image. You do this by specifying its isovalue through the method SetIsoSurfaceValue(float f). The algorithm will then initialize its solution using the front represented by value f. Note that the front is always represented by isosurface zero in the output and not the isosurface you specified for the input. This is because, for simplicity, the filter will shift your input image so that the active front has zero values.
This parameter can be safely changed as appropriate for a particular application or data set to achieve the desired behavior.
Definition at line 144 of file itkSegmentationLevelSetImageFilter.h.
Private Attributes | |
SegmentationFunctionType * | m_SegmentationFunction {} |
using itk::SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >::ConstPointer = SmartPointer<const Self> |
Definition at line 161 of file itkSegmentationLevelSetImageFilter.h.
using itk::SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >::FeatureImageType = TFeatureImage |
Local image type alias
Definition at line 170 of file itkSegmentationLevelSetImageFilter.h.
using itk::SparseFieldLevelSetImageFilter< TInputImage, OutputImageType >::IndexType |
Definition at line 264 of file itkSparseFieldLevelSetImageFilter.h.
using itk::SparseFieldLevelSetImageFilter< TInputImage, OutputImageType >::InputImageType |
Information derived from the image types.
Definition at line 262 of file itkSparseFieldLevelSetImageFilter.h.
using itk::SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >::OutputImageType = Image<TOutputPixelType, Self::InputImageDimension> |
Output image type alias
Definition at line 156 of file itkSegmentationLevelSetImageFilter.h.
using itk::SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >::Pointer = SmartPointer<Self> |
Definition at line 160 of file itkSegmentationLevelSetImageFilter.h.
using itk::SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >::SegmentationFunctionType = SegmentationLevelSetFunction<OutputImageType, FeatureImageType> |
The generic level set function type
Definition at line 173 of file itkSegmentationLevelSetImageFilter.h.
using itk::SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >::Self = SegmentationLevelSetImageFilter |
Inherited type alias from the superclass. Needs to be placed before the next macro.
Definition at line 151 of file itkSegmentationLevelSetImageFilter.h.
using itk::SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >::SpeedImageType = typename SegmentationFunctionType::ImageType |
Definition at line 177 of file itkSegmentationLevelSetImageFilter.h.
using itk::SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >::Superclass = SparseFieldLevelSetImageFilter<TInputImage, OutputImageType> |
Standard class type aliases
Definition at line 159 of file itkSegmentationLevelSetImageFilter.h.
using itk::SparseFieldLevelSetImageFilter< TInputImage, OutputImageType >::ValueType |
The data type used in numerical computations. Derived from the output image type.
Definition at line 269 of file itkSparseFieldLevelSetImageFilter.h.
using itk::SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >::VectorImageType = typename SegmentationFunctionType::VectorImageType |
The type used for the advection field
Definition at line 176 of file itkSegmentationLevelSetImageFilter.h.
|
overrideprotecteddefault |
|
protected |
|
virtual |
Turn On/Off automatic generation of Speed and Advection terms when Update is called. If set to Off, the Speed and Advection images must be set explicitly using SetSpeedImage, SetAdvectionImage OR the methods GenerateSpeedImage() and GenerateAdvectionImage() should be called prior to updating the filter.
|
virtual |
Turn On/Off automatic generation of Speed and Advection terms when Update is called. If set to Off, the Speed and Advection images must be set explicitly using SetSpeedImage, SetAdvectionImage OR the methods GenerateSpeedImage() and GenerateAdvectionImage() should be called prior to updating the filter.
void itk::SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >::GenerateAdvectionImage | ( | ) |
Allocate and calculate the advection term image in the SegmentationFunction object This method is called automatically on filter execution unless AutoGenerateSpeedAdvection is set to Off.
|
overrideprotectedvirtual |
Overridden from ProcessObject to set certain values before starting the finite difference solver and then create an appropriate output
Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, Image< float, TInputImage::ImageDimension > >.
Reimplemented in itk::ShapeDetectionLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, itk::ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, itk::ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, float >, itk::ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, and itk::ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >.
void itk::SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >::GenerateSpeedImage | ( | ) |
Allocate and calculate the speed term image in the SegmentationFunction object. This method is called automatically on filter execution unless AutoGenerateSpeedAdvection is set to Off.
|
inlinevirtual |
Return a pointer to the image sampled as the advection term of the segmentation algorithm.
Definition at line 260 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
Set/Get the scaling of the advection field. Setting the FeatureScaling parameter will override any existing value for AdvectionScaling.
Definition at line 393 of file itkSegmentationLevelSetImageFilter.h.
|
virtual |
Turn On/Off automatic generation of Speed and Advection terms when Update is called. If set to Off, the Speed and Advection images must be set explicitly using SetSpeedImage, SetAdvectionImage OR the methods GenerateSpeedImage() and GenerateAdvectionImage() should be called prior to updating the filter.
|
inline |
Set/Get the scaling of the curvature. Use this parameter to increase the influence of curvature on the movement of the surface. Higher values relative to Advection and Propagation values will give smoother surfaces.
Definition at line 415 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
Set/Get the maximum constraint for the curvature term factor in the time step calculation. Changing this value from the default is not recommended or necessary but could be used to speed up the surface evolution at the risk of creating an unstable solution.
Definition at line 491 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
Set/Get the maximum number of iterations allowed for the solver. This prevents infinite loops if a solution "bounces".
Definition at line 193 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
Set/Get the maximum constraint for the scalar/vector term factor of the time step calculation. Changing this value from the default is not recommended or necessary but could be used to speed up the surface evolution at the risk of creating an unstable solution.
Definition at line 513 of file itkSegmentationLevelSetImageFilter.h.
|
overridevirtual |
Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, Image< float, TInputImage::ImageDimension > >.
Reimplemented in itk::ShapeDetectionLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, itk::ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, itk::ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, float >, itk::ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, itk::ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, itk::ThresholdSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, and itk::VectorThresholdSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >.
|
inline |
Set/Get the scaling of the propagation speed. Setting the FeatureScaling parameter overrides any previous values set for PropagationScaling.
Definition at line 373 of file itkSegmentationLevelSetImageFilter.h.
|
virtual |
Turn On/Off the flag which determines whether Positive or Negative speed terms will cause surface expansion. If set to TRUE then negative speed terms will cause the surface to expand and positive speed terms will cause the surface to contract. If set to FALSE (default) then positive speed terms will cause the surface to expand and negative speed terms will cause the surface to contract. This method can be safely used to reverse the expansion/contraction as appropriate to a particular application or data set.
|
inlinevirtual |
Definition at line 470 of file itkSegmentationLevelSetImageFilter.h.
|
inlinevirtual |
Return a pointer to the image sampled as the speed term of the segmentation algorithm.
Definition at line 252 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
Definition at line 434 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
THIS METHOD IS DEPRECATED AND SHOULD NOT BE USED. Set/Get the value of the UseNegativeFeatures flag. This method is deprecated. Use Set/Get ReverseExpansionDirection instead.
Definition at line 304 of file itkSegmentationLevelSetImageFilter.h.
|
inlineoverrideprotectedvirtual |
Overrides parent implementation
Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, Image< float, TInputImage::ImageDimension > >.
Reimplemented in itk::ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, itk::ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, float >, itk::ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, and itk::ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >.
Definition at line 542 of file itkSegmentationLevelSetImageFilter.h.
itk::SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >::itkGetInputMacro | ( | FeatureImage | , |
FeatureImageType | ) |
Set/Get the feature image to be used for speed function of the level set equation. Equivalent to calling Set/GetInput(1, ..)
itk::SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >::itkGetInputMacro | ( | InitialImage | , |
InputImageType | ) |
Set/Get the initial level set model. Equivalent to calling SetInput(..)
itk::SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >::itkSetInputMacro | ( | InitialImage | , |
InputImageType | ) |
Set/Get the initial level set model. Equivalent to calling SetInput(..)
|
overrideprotectedvirtual |
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, Image< float, TInputImage::ImageDimension > >.
Reimplemented in itk::ShapeDetectionLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, itk::ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, itk::ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, float >, itk::ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, itk::ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, itk::ThresholdSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, and itk::VectorThresholdSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >.
|
virtual |
Turn On/Off the flag which determines whether Positive or Negative speed terms will cause surface expansion. If set to TRUE then negative speed terms will cause the surface to expand and positive speed terms will cause the surface to contract. If set to FALSE (default) then positive speed terms will cause the surface to expand and negative speed terms will cause the surface to contract. This method can be safely used to reverse the expansion/contraction as appropriate to a particular application or data set.
|
virtual |
Turn On/Off the flag which determines whether Positive or Negative speed terms will cause surface expansion. If set to TRUE then negative speed terms will cause the surface to expand and positive speed terms will cause the surface to contract. If set to FALSE (default) then positive speed terms will cause the surface to expand and negative speed terms will cause the surface to contract. This method can be safely used to reverse the expansion/contraction as appropriate to a particular application or data set.
|
inline |
This function is for advanced applications. Set the image sampled as the advection term of this segmentation method. In general, the advection image is generated automatically by a subclass of this filter.
Definition at line 244 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
Set/Get the scaling of the advection field. Setting the FeatureScaling parameter will override any existing value for AdvectionScaling.
Definition at line 383 of file itkSegmentationLevelSetImageFilter.h.
|
virtual |
Turn On/Off automatic generation of Speed and Advection terms when Update is called. If set to Off, the Speed and Advection images must be set explicitly using SetSpeedImage, SetAdvectionImage OR the methods GenerateSpeedImage() and GenerateAdvectionImage() should be called prior to updating the filter.
|
inline |
Set/Get the scaling of the curvature. Use this parameter to increase the influence of curvature on the movement of the surface. Higher values relative to Advection and Propagation values will give smoother surfaces.
Definition at line 405 of file itkSegmentationLevelSetImageFilter.h.
|
inlinevirtual |
Set/Get the feature image to be used for speed function of the level set equation. Equivalent to calling Set/GetInput(1, ..)
Definition at line 204 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
Combined scaling of the propagation and advection speed terms. You should use either this -or- Get/SetPropagationScaling and Get/SetAdvectionScaling (if appropriate). See subclasses for details on when and whether to set these parameters.
Definition at line 347 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
Set the feature image
Definition at line 226 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
Set/Get the maximum constraint for the curvature term factor in the time step calculation. Changing this value from the default is not recommended or necessary but could be used to speed up the surface evolution at the risk of creating an unstable solution.
Definition at line 481 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
Set/Get the maximum number of iterations allowed for the solver. This prevents infinite loops if a solution "bounces".
Definition at line 186 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
Set/Get the maximum constraint for the scalar/vector term factor of the time step calculation. Changing this value from the default is not recommended or necessary but could be used to speed up the surface evolution at the risk of creating an unstable solution.
Definition at line 503 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
Set/Get the scaling of the propagation speed. Setting the FeatureScaling parameter overrides any previous values set for PropagationScaling.
Definition at line 363 of file itkSegmentationLevelSetImageFilter.h.
|
virtual |
Turn On/Off the flag which determines whether Positive or Negative speed terms will cause surface expansion. If set to TRUE then negative speed terms will cause the surface to expand and positive speed terms will cause the surface to contract. If set to FALSE (default) then positive speed terms will cause the surface to expand and negative speed terms will cause the surface to contract. This method can be safely used to reverse the expansion/contraction as appropriate to a particular application or data set.
|
inlinevirtual |
Set the segmentation function. In general, this should only be called by a subclass of this object. It is made public to allow itk::Command objects access. The method is inline to avoid a problem with the gcc 2.95 compiler matching the declaration with the definition.
Definition at line 458 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
This function is for advanced applications. Set the image sampled as the speed term of this segmentation method. In general, the speed image is generated automatically by a subclass of this filter.
Definition at line 235 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
Definition at line 424 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
THIS METHOD IS DEPRECATED AND SHOULD NOT BE USED. Set/Get the value of the UseNegativeFeatures flag. This method is deprecated. Use Set/Get ReverseExpansionDirection instead.
Definition at line 290 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
THIS METHOD IS DEPRECATED AND SHOULD NOT BE USED. This method reverses the speed function direction, effectively changing inside feature values to outside feature values and vice versa.
Definition at line 278 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
THIS METHOD IS DEPRECATED AND SHOULD NOT BE USED. This method reverses the speed function direction, effectively changing inside feature values to outside feature values and vice versa.
Definition at line 270 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
Definition at line 447 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
Definition at line 441 of file itkSegmentationLevelSetImageFilter.h.
|
protected |
Flag to indicate whether Speed and Advection images are automatically generated when running the filter. Otherwise, a pointer to images must be explicitly set or GenerateSpeedImage() and/or GenerateAdvectionImage() called directly before updating the filter
Definition at line 563 of file itkSegmentationLevelSetImageFilter.h.
|
protected |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
Definition at line 557 of file itkSegmentationLevelSetImageFilter.h.
|
private |
Definition at line 566 of file itkSegmentationLevelSetImageFilter.h.