ITK
5.2.0
Insight Toolkit
|
#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.
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::SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >::IndexType = typename Superclass::IndexType |
Definition at line 165 of file itkSegmentationLevelSetImageFilter.h.
using itk::SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >::InputImageType = typename Superclass::InputImageType |
Definition at line 167 of file itkSegmentationLevelSetImageFilter.h.
using itk::SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >::OutputImageType = Image<TOutputPixelType, Self::InputImageDimension> |
Output image type 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::SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >::TimeStepType = typename Superclass::TimeStepType |
Definition at line 166 of file itkSegmentationLevelSetImageFilter.h.
using itk::SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >::ValueType = typename Superclass::ValueType |
Inherited type alias from the superclass.
Definition at line 164 of file itkSegmentationLevelSetImageFilter.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 |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
|
protected |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
|
virtual |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
|
virtual |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
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::ProcessObject.
Reimplemented in itk::ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, and itk::ShapeDetectionLevelSetImageFilter< 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 257 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
Definition at line 388 of file itkSegmentationLevelSetImageFilter.h.
|
virtual |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
|
inline |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
Definition at line 409 of file itkSegmentationLevelSetImageFilter.h.
|
virtual |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
|
virtual |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
|
inline |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
Definition at line 484 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
Definition at line 193 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
Definition at line 505 of file itkSegmentationLevelSetImageFilter.h.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::SparseFieldLevelSetImageFilter< TInputImage, Image< TOutputPixelType, TInputImage::ImageDimension > >.
Reimplemented in itk::CannySegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, itk::GeodesicActiveContourShapePriorLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, itk::GeodesicActiveContourLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, itk::ShapeDetectionLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, itk::CurvesLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, itk::LaplacianSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, itk::VectorThresholdSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, itk::ThresholdSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, and itk::ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >.
|
inline |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
Definition at line 369 of file itkSegmentationLevelSetImageFilter.h.
|
virtual |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
|
inlinevirtual |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
Definition at line 463 of file itkSegmentationLevelSetImageFilter.h.
|
inlinevirtual |
Return a pointer to the image sampled as the speed term of the segmentation algorithm.
Definition at line 249 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
Definition at line 427 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
Definition at line 300 of file itkSegmentationLevelSetImageFilter.h.
|
inlineoverrideprotectedvirtual |
Overrides parent implementation
Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, Image< TOutputPixelType, TInputImage::ImageDimension > >.
Reimplemented in itk::ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >.
Definition at line 537 of file itkSegmentationLevelSetImageFilter.h.
|
overrideprotectedvirtual |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
Reimplemented from itk::ProcessObject.
Reimplemented in itk::ThresholdSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, itk::ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, itk::VectorThresholdSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >, and itk::ShapeDetectionLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >.
|
virtual |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
|
virtual |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
|
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 241 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 377 of file itkSegmentationLevelSetImageFilter.h.
References itk::Math::NotExactlyEquals().
|
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 398 of file itkSegmentationLevelSetImageFilter.h.
References itk::Math::NotExactlyEquals().
|
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 202 of file itkSegmentationLevelSetImageFilter.h.
References itk::ProcessObject::GetInput(), and itk::ProcessObject::SetInput().
|
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 342 of file itkSegmentationLevelSetImageFilter.h.
References itk::Math::NotExactlyEquals().
|
virtual |
Set/Get the initial level set model. Equivalent to calling SetInput(..)
|
inline |
Set the feature image
Definition at line 223 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 473 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 185 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 494 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 358 of file itkSegmentationLevelSetImageFilter.h.
References itk::Math::NotExactlyEquals().
|
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 450 of file itkSegmentationLevelSetImageFilter.h.
References itk::SegmentationLevelSetFunction< TImageType, TFeatureImageType >::Initialize().
|
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 232 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
Definition at line 416 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 285 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
Definition at line 275 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 266 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
Definition at line 439 of file itkSegmentationLevelSetImageFilter.h.
|
inline |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
Definition at line 433 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 558 of file itkSegmentationLevelSetImageFilter.h.
|
protected |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
Definition at line 552 of file itkSegmentationLevelSetImageFilter.h.
|
private |
Flag which sets the inward/outward direction of propagation speed. See SetReverseExpansionDirection for more information.
Definition at line 561 of file itkSegmentationLevelSetImageFilter.h.