ITK
6.0.0
Insight Toolkit
|
#include <itkShapeDetectionLevelSetFunction.h>
This function is used in the ShapeDetectionLevelSetImageFilter to segment structures in an image based on a user supplied edge potential map.
ShapeDetectionLevelSetFunction is a subclass of the generic LevelSetFunction. It is used to segment structures in an image based on a user supplied edge potential map \( g(I) \), which has values close to zero in regions near edges (or high image gradient) and values close to one in regions with relatively constant intensity. Typically, the edge potential map is a function of the image gradient, for example:
\[ g(I) = 1 / ( 1 + | (\nabla * G)(I)| ) \]
\[ g(I) = \exp^{-|(\nabla * G)(I)|} \]
where \( I \) is image intensity and \( (\nabla * G) \) is the derivative of Gaussian operator.
The edge potential image is set via the SetFeatureImage() method.
In this function both the propagation term \( P(\mathbf{x}) \) and the curvature spatial modifier term \( Z(\mathbf{x}) \) are taken directly from the edge potential image such that:
\[ P(\mathbf{x}) = g(\mathbf{x}) \]
\[ Z(\mathbf{x}) = g(\mathbf{x}) \]
Note that there is no advection term in this function.
This implementation is based on: "Shape Modeling with Front Propagation: A Level Set Approach", R. Malladi, J. A. Sethian and B. C. Vermuri. IEEE Trans. on Pattern Analysis and Machine Intelligence, Vol 17, No. 2, pp 158-174, February 1995
Definition at line 72 of file itkShapeDetectionLevelSetFunction.h.
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::LevelSetFunction< TImageType > | |
static double | GetMaximumCurvatureTimeStep () |
static double | GetMaximumPropagationTimeStep () |
static Pointer | New () |
static void | SetMaximumCurvatureTimeStep (double n) |
static void | SetMaximumPropagationTimeStep (double n) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = Superclass::ImageDimension |
Static Public Attributes inherited from itk::SegmentationLevelSetFunction< TImageType, TImageType > | |
static constexpr unsigned int | ImageDimension |
Static Public Attributes inherited from itk::LevelSetFunction< TImageType > | |
static constexpr unsigned int | ImageDimension = Superclass::ImageDimension |
Static Public Attributes inherited from itk::FiniteDifferenceFunction< TImageType > | |
static constexpr unsigned int | ImageDimension = ImageType::ImageDimension |
Protected Member Functions | |
ShapeDetectionLevelSetFunction () | |
~ShapeDetectionLevelSetFunction () override=default | |
Protected Member Functions inherited from itk::SegmentationLevelSetFunction< TImageType, TImageType > | |
VectorType | AdvectionField (const NeighborhoodType &, const FloatOffsetType &, GlobalDataStruct *gd) const override |
ScalarValueType | PropagationSpeed (const NeighborhoodType &, const FloatOffsetType &, GlobalDataStruct *gd) const override |
SegmentationLevelSetFunction () | |
~SegmentationLevelSetFunction () override=default | |
Protected Member Functions inherited from itk::LevelSetFunction< TImageType > | |
LevelSetFunction () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~LevelSetFunction () override=default | |
Protected Member Functions inherited from itk::FiniteDifferenceFunction< TImageType > | |
FiniteDifferenceFunction () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~FiniteDifferenceFunction () override=default | |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
using itk::ShapeDetectionLevelSetFunction< TImageType, TFeatureImageType >::ConstPointer = SmartPointer<const Self> |
Definition at line 82 of file itkShapeDetectionLevelSetFunction.h.
using itk::ShapeDetectionLevelSetFunction< TImageType, TFeatureImageType >::FeatureImageType = TFeatureImageType |
Definition at line 83 of file itkShapeDetectionLevelSetFunction.h.
using itk::ShapeDetectionLevelSetFunction< TImageType, TFeatureImageType >::Pointer = SmartPointer<Self> |
Definition at line 81 of file itkShapeDetectionLevelSetFunction.h.
using itk::ShapeDetectionLevelSetFunction< TImageType, TFeatureImageType >::Self = ShapeDetectionLevelSetFunction |
Standard class type aliases.
Definition at line 79 of file itkShapeDetectionLevelSetFunction.h.
using itk::ShapeDetectionLevelSetFunction< TImageType, TFeatureImageType >::Superclass = SegmentationLevelSetFunction<TImageType, TFeatureImageType> |
Definition at line 80 of file itkShapeDetectionLevelSetFunction.h.
|
inlineprotected |
Definition at line 126 of file itkShapeDetectionLevelSetFunction.h.
|
overrideprotecteddefault |
|
overridevirtual |
This method must be defined in a subclass to implement a working function object. This method is called before the solver begins its work to produce the speed image used as the level set function's Propagation speed term. See LevelSetFunction for more information.
Reimplemented from itk::SegmentationLevelSetFunction< TImageType, TImageType >.
|
inlineoverridevirtual |
The curvature speed is same as the propagation speed.
Reimplemented from itk::LevelSetFunction< TImageType >.
Definition at line 108 of file itkShapeDetectionLevelSetFunction.h.
|
overridevirtual |
Reimplemented from itk::LevelSetFunction< TImageType >.
|
inlineoverridevirtual |
This method creates the appropriate member variable operators for the level-set calculations. The argument to this function is a the radius necessary for performing the level-set calculations.
Reimplemented from itk::LevelSetFunction< TImageType >.
Definition at line 116 of file itkShapeDetectionLevelSetFunction.h.
|
static |
Method for creation through the object factory.
|
staticconstexpr |
Extract some parameters from the superclass.
Definition at line 101 of file itkShapeDetectionLevelSetFunction.h.