#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 [71].
Definition at line 68 of file itkShapeDetectionLevelSetFunction.h.
Static Public Member Functions | |
static Pointer | New () |
![]() | |
static double | GetMaximumCurvatureTimeStep () |
static double | GetMaximumPropagationTimeStep () |
static Pointer | New () |
static void | SetMaximumCurvatureTimeStep (double n) |
static void | SetMaximumPropagationTimeStep (double n) |
![]() | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = Superclass::ImageDimension |
![]() | |
static constexpr unsigned int | ImageDimension |
![]() | |
static constexpr unsigned int | ImageDimension = Superclass::ImageDimension |
![]() | |
static constexpr unsigned int | ImageDimension = ImageType::ImageDimension |
using itk::ShapeDetectionLevelSetFunction< TImageType, TFeatureImageType >::ConstPointer = SmartPointer<const Self> |
Definition at line 78 of file itkShapeDetectionLevelSetFunction.h.
using itk::ShapeDetectionLevelSetFunction< TImageType, TFeatureImageType >::FeatureImageType = TFeatureImageType |
Definition at line 79 of file itkShapeDetectionLevelSetFunction.h.
using itk::SegmentationLevelSetFunction< TImageType, TFeatureImageType >::FeatureScalarType |
Definition at line 69 of file itkSegmentationLevelSetFunction.h.
A floating point offset from an image grid location. Used for interpolation among grid values in a neighborhood.
Extract some parameters from the image type
The type of data structure that is passed to this function object to evaluate at a pixel that does not lie on a data set boundary.
using itk::ShapeDetectionLevelSetFunction< TImageType, TFeatureImageType >::Pointer = SmartPointer<Self> |
Definition at line 77 of file itkShapeDetectionLevelSetFunction.h.
Neighborhood radius type
using itk::ShapeDetectionLevelSetFunction< TImageType, TFeatureImageType >::Self = ShapeDetectionLevelSetFunction |
Standard class type aliases.
Definition at line 75 of file itkShapeDetectionLevelSetFunction.h.
using itk::ShapeDetectionLevelSetFunction< TImageType, TFeatureImageType >::Superclass = SegmentationLevelSetFunction<TImageType, TFeatureImageType> |
Definition at line 76 of file itkShapeDetectionLevelSetFunction.h.
|
inlineprotected |
Definition at line 122 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 >.
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::LevelSetFunction< TImageType >.
|
inlineoverridevirtual |
The curvature speed is same as the propagation speed.
Reimplemented from itk::LevelSetFunction< TImageType >.
Definition at line 104 of file itkShapeDetectionLevelSetFunction.h.
|
overridevirtual |
Reimplemented from itk::SegmentationLevelSetFunction< TImageType, 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::SegmentationLevelSetFunction< TImageType, TImageType >.
Definition at line 112 of file itkShapeDetectionLevelSetFunction.h.
|
static |
Method for creation through the object factory.
|
staticconstexpr |
Extract some parameters from the superclass.
Definition at line 97 of file itkShapeDetectionLevelSetFunction.h.