ITK  5.0.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Private Types | Private Attributes | List of all members
itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer > Class Template Reference

#include <itkUpdateShiSparseLevelSet.h>

+ Inheritance diagram for itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >:
+ Collaboration diagram for itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >:

Detailed Description

template<unsigned int VDimension, typename TEquationContainer>
class itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >

Base class for updating the Shi representation of level-set function.

Template Parameters
VDimensionDimension of the input space
TEquationContainerContainer of the system of levelset equations

Definition at line 43 of file itkUpdateShiSparseLevelSet.h.

Public Types

using ConstPointer = SmartPointer< const Self >
 
using EquationContainerPointer = typename EquationContainerType::Pointer
 
using EquationContainerType = TEquationContainer
 
using LevelSetInputType = typename LevelSetType::InputType
 
using LevelSetLabelMapPointer = typename LevelSetType::LabelMapPointer
 
using LevelSetLabelMapType = typename LevelSetType::LabelMapType
 
using LevelSetLabelObjectLengthType = typename LevelSetType::LabelObjectLengthType
 
using LevelSetLabelObjectLineType = typename LevelSetType::LabelObjectLineType
 
using LevelSetLabelObjectPointer = typename LevelSetType::LabelObjectPointer
 
using LevelSetLabelObjectType = typename LevelSetType::LabelObjectType
 
using LevelSetLayerConstIterator = typename LevelSetType::LayerConstIterator
 
using LevelSetLayerIterator = typename LevelSetType::LayerIterator
 
using LevelSetLayerMapConstIterator = typename LevelSetType::LayerMapConstIterator
 
using LevelSetLayerMapIterator = typename LevelSetType::LayerMapIterator
 
using LevelSetLayerMapType = typename LevelSetType::LayerMapType
 
using LevelSetLayerType = typename LevelSetType::LayerType
 
using LevelSetOffsetType = typename LevelSetType::OffsetType
 
using LevelSetOutputRealType = typename LevelSetType::OutputRealType
 
using LevelSetOutputType = typename LevelSetType::OutputType
 
using LevelSetPointer = typename LevelSetType::Pointer
 
using LevelSetType = ShiSparseLevelSetImage< ImageDimension >
 
using Pointer = SmartPointer< Self >
 
using Self = UpdateShiSparseLevelSet
 
using Superclass = Object
 
using TermContainerPointer = typename EquationContainerType::TermContainerPointer
 
- Public Types inherited from itk::Object
using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = Object
 
using Superclass = LightObject
 
- Public Types inherited from itk::LightObject
using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = LightObject
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother () const
 
virtual LevelSetTypeGetModifiableOutputLevelSet ()
 
virtual const char * GetNameOfClass () const
 
virtual const LevelSetTypeGetOutputLevelSet () const
 
virtual LevelSetOutputRealType GetRMSChangeAccumulator ()
 
void Update ()
 
virtual void SetInputLevelSet (LevelSetType *_arg)
 
virtual LevelSetTypeGetModifiableInputLevelSet ()
 
virtual const LevelSetTypeGetInputLevelSet () const
 
virtual void SetEquationContainer (EquationContainerType *_arg)
 
virtual EquationContainerTypeGetModifiableEquationContainer ()
 
virtual const
EquationContainerType
GetEquationContainer () const
 
virtual void SetCurrentLevelSetId (IdentifierType _arg)
 
virtual IdentifierType GetCurrentLevelSetId ()
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetReferenceCount (int) override
 
void UnRegister () const noexceptoverride
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
void SetMetaDataDictionary (MetaDataDictionary &&rrhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual const std::string & GetObjectName () const
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool flag)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Static Public Attributes

static constexpr unsigned int ImageDimension = VDimension
 

Protected Types

using LabelImagePointer = typename LabelImageType::Pointer
 
using LabelImageType = Image< int8_t, ImageDimension >
 
using NeighborhoodIteratorType = ShapedNeighborhoodIterator< LabelImageType >
 

Protected Member Functions

bool Con (const LevelSetInputType &idx, const LevelSetOutputType &currentStatus, const LevelSetOutputRealType &currentUpdate) const
 
void UpdateLayerMinusOne ()
 
void UpdateLayerPlusOne ()
 
 UpdateShiSparseLevelSet ()
 
 ~UpdateShiSparseLevelSet () override=default
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
virtual void SetTimeStamp (const TimeStamp &time)
 
 ~Object () override
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Protected Attributes

IdentifierType m_CurrentLevelSetId
 
EquationContainerPointer m_EquationContainer
 
LabelImagePointer m_InternalImage
 
LevelSetPointer m_OutputLevelSet
 
LevelSetOutputRealType m_RMSChangeAccumulator
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount
 

Private Types

using NodePairType = std::pair< LevelSetInputType, LevelSetOutputType >
 

Private Attributes

LevelSetPointer m_InputLevelSet
 
LevelSetOffsetType m_Offset
 

Member Typedef Documentation

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::ConstPointer = SmartPointer< const Self >

Definition at line 50 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::EquationContainerPointer = typename EquationContainerType::Pointer

Definition at line 85 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::EquationContainerType = TEquationContainer

Definition at line 84 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::LabelImagePointer = typename LabelImageType::Pointer
protected

Definition at line 123 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::LabelImageType = Image< int8_t, ImageDimension >
protected

Definition at line 122 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::LevelSetInputType = typename LevelSetType::InputType

Definition at line 63 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::LevelSetLabelMapPointer = typename LevelSetType::LabelMapPointer

Definition at line 68 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::LevelSetLabelMapType = typename LevelSetType::LabelMapType

Definition at line 67 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::LevelSetLabelObjectLengthType = typename LevelSetType::LabelObjectLengthType

Definition at line 72 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::LevelSetLabelObjectLineType = typename LevelSetType::LabelObjectLineType

Definition at line 73 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::LevelSetLabelObjectPointer = typename LevelSetType::LabelObjectPointer

Definition at line 71 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::LevelSetLabelObjectType = typename LevelSetType::LabelObjectType

Definition at line 70 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::LevelSetLayerConstIterator = typename LevelSetType::LayerConstIterator

Definition at line 77 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::LevelSetLayerIterator = typename LevelSetType::LayerIterator

Definition at line 76 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::LevelSetLayerMapConstIterator = typename LevelSetType::LayerMapConstIterator

Definition at line 82 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::LevelSetLayerMapIterator = typename LevelSetType::LayerMapIterator

Definition at line 81 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::LevelSetLayerMapType = typename LevelSetType::LayerMapType

Definition at line 80 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::LevelSetLayerType = typename LevelSetType::LayerType

Definition at line 75 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::LevelSetOffsetType = typename LevelSetType::OffsetType

Definition at line 65 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::LevelSetOutputRealType = typename LevelSetType::OutputRealType

Definition at line 78 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::LevelSetOutputType = typename LevelSetType::OutputType

Definition at line 64 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::LevelSetPointer = typename LevelSetType::Pointer

Definition at line 62 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::LevelSetType = ShiSparseLevelSetImage< ImageDimension >

Definition at line 61 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::NeighborhoodIteratorType = ShapedNeighborhoodIterator< LabelImageType >
protected

Definition at line 127 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::NodePairType = std::pair< LevelSetInputType, LevelSetOutputType >
private

Definition at line 148 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::Pointer = SmartPointer< Self >

Definition at line 49 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::Self = UpdateShiSparseLevelSet

Definition at line 48 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::Superclass = Object

Definition at line 51 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
using itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::TermContainerPointer = typename EquationContainerType::TermContainerPointer

Definition at line 86 of file itkUpdateShiSparseLevelSet.h.

Constructor & Destructor Documentation

template<unsigned int VDimension, typename TEquationContainer >
itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::UpdateShiSparseLevelSet ( )
protected
template<unsigned int VDimension, typename TEquationContainer >
itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::~UpdateShiSparseLevelSet ( )
overrideprotecteddefault

Member Function Documentation

template<unsigned int VDimension, typename TEquationContainer >
bool itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::Con ( const LevelSetInputType idx,
const LevelSetOutputType currentStatus,
const LevelSetOutputRealType currentUpdate 
) const
protected

Return true if there is a pixel from the opposite layer (+1 or -1) moving in the same direction

template<unsigned int VDimension, typename TEquationContainer >
virtual::itk::LightObject::Pointer itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::CreateAnother ( ) const
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::Object.

template<unsigned int VDimension, typename TEquationContainer >
virtual IdentifierType itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::GetCurrentLevelSetId ( )
virtual

Set/Get the current level set id

template<unsigned int VDimension, typename TEquationContainer >
virtual const EquationContainerType* itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::GetEquationContainer ( ) const
virtual

Set/Get the Equation container for computing the update

template<unsigned int VDimension, typename TEquationContainer >
virtual const LevelSetType* itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::GetInputLevelSet ( ) const
virtual

Set/Get the sparse levet set image

template<unsigned int VDimension, typename TEquationContainer >
virtual EquationContainerType* itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::GetModifiableEquationContainer ( )
virtual

Set/Get the Equation container for computing the update

template<unsigned int VDimension, typename TEquationContainer >
virtual LevelSetType* itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::GetModifiableInputLevelSet ( )
virtual

Set/Get the sparse levet set image

template<unsigned int VDimension, typename TEquationContainer >
virtual LevelSetType* itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::GetModifiableOutputLevelSet ( )
virtual
template<unsigned int VDimension, typename TEquationContainer >
virtual const char* itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::GetNameOfClass ( ) const
virtual

Run-time type information

Reimplemented from itk::Object.

template<unsigned int VDimension, typename TEquationContainer >
virtual const LevelSetType* itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::GetOutputLevelSet ( ) const
virtual
template<unsigned int VDimension, typename TEquationContainer >
virtual LevelSetOutputRealType itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::GetRMSChangeAccumulator ( )
virtual

Set/Get the RMS change for the update

template<unsigned int VDimension, typename TEquationContainer >
static Pointer itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::New ( )
static

Method for creation through object factory

template<unsigned int VDimension, typename TEquationContainer >
virtual void itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::SetCurrentLevelSetId ( IdentifierType  _arg)
virtual

Set/Get the current level set id

template<unsigned int VDimension, typename TEquationContainer >
virtual void itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::SetEquationContainer ( EquationContainerType _arg)
virtual

Set/Get the Equation container for computing the update

template<unsigned int VDimension, typename TEquationContainer >
virtual void itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::SetInputLevelSet ( LevelSetType _arg)
virtual

Set/Get the sparse levet set image

template<unsigned int VDimension, typename TEquationContainer >
void itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::Update ( )

Update function for initializing and computing the output level set

template<unsigned int VDimension, typename TEquationContainer >
void itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::UpdateLayerMinusOne ( )
protected

Update -1 level set layers by checking the direction of the movement towards +1

template<unsigned int VDimension, typename TEquationContainer >
void itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::UpdateLayerPlusOne ( )
protected

Update +1 level set layers by checking the direction of the movement towards -1

Member Data Documentation

template<unsigned int VDimension, typename TEquationContainer >
constexpr unsigned int itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::ImageDimension = VDimension
static

Definition at line 59 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
IdentifierType itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::m_CurrentLevelSetId
protected

Definition at line 118 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
EquationContainerPointer itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::m_EquationContainer
protected

Definition at line 120 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
LevelSetPointer itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::m_InputLevelSet
private

Definition at line 145 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
LabelImagePointer itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::m_InternalImage
protected

Definition at line 125 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
LevelSetOffsetType itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::m_Offset
private

Definition at line 146 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
LevelSetPointer itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::m_OutputLevelSet
protected

Definition at line 116 of file itkUpdateShiSparseLevelSet.h.

template<unsigned int VDimension, typename TEquationContainer >
LevelSetOutputRealType itk::UpdateShiSparseLevelSet< VDimension, TEquationContainer >::m_RMSChangeAccumulator
protected

Definition at line 119 of file itkUpdateShiSparseLevelSet.h.


The documentation for this class was generated from the following file: