ITK  5.0.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer > Class Template Reference

#include <itkLevelSetEquationChanAndVeseInternalTerm.h>

+ Inheritance diagram for itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >:
+ Collaboration diagram for itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >:

Detailed Description

template<typename TInput, typename TLevelSetContainer>
class itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >

Class to represent the internal energy Chan And Vese term.

\[ \delta_{\epsilon}\left( \phi_{k} \left( p \right) \right) \cdot \left\| I\left( p \right) - \mu_{in} \right\|^2 \cdot \]

Template Parameters
TInputInput Image Type
TLevelSetContainerLevel set function container type
Examples:
SphinxExamples/src/Segmentation/LevelSetsv4Visualization/VisualizeEvolvingDense2DLevelSetAsElevationMap/Code.cxx, and SphinxExamples/src/Segmentation/LevelSetsv4Visualization/VisualizeEvolvingDense2DLevelSetZeroSet/Code.cxx.

Definition at line 48 of file itkLevelSetEquationChanAndVeseInternalTerm.h.

Public Types

using CacheImageType = typename Superclass::CacheImageType
 
using ConstPointer = SmartPointer< const Self >
 
using DomainMapImageFilterType = typename Superclass::DomainMapImageFilterType
 
using HeavisideConstPointer = typename Superclass::HeavisideConstPointer
 
using HeavisideType = typename Superclass::HeavisideType
 
using InputImagePointer = typename Superclass::InputImagePointer
 
using InputImageType = typename Superclass::InputImageType
 
using InputPixelRealType = typename Superclass::InputPixelRealType
 
using InputPixelType = typename Superclass::InputPixelType
 
using LevelSetContainerPointer = typename Superclass::LevelSetContainerPointer
 
using LevelSetContainerType = typename Superclass::LevelSetContainerType
 
using LevelSetDataType = typename Superclass::LevelSetDataType
 
using LevelSetGradientType = typename Superclass::LevelSetGradientType
 
using LevelSetHessianType = typename Superclass::LevelSetHessianType
 
using LevelSetIdentifierType = typename Superclass::LevelSetIdentifierType
 
using LevelSetInputIndexType = typename Superclass::LevelSetInputIndexType
 
using LevelSetOutputPixelType = typename Superclass::LevelSetOutputPixelType
 
using LevelSetOutputRealType = typename Superclass::LevelSetOutputRealType
 
using LevelSetPointer = typename Superclass::LevelSetPointer
 
using LevelSetType = typename Superclass::LevelSetType
 
using Pointer = SmartPointer< Self >
 
using Self = LevelSetEquationChanAndVeseInternalTerm
 
using Superclass = LevelSetEquationTermBase< TInput, TLevelSetContainer >
 
- Public Types inherited from itk::LevelSetEquationTermBase< TInput, TLevelSetContainer >
using CacheImageType = typename LevelSetContainerType::CacheImageType
 
using ConstPointer = SmartPointer< const Self >
 
using DomainMapImageFilterType = typename LevelSetContainerType::DomainMapImageFilterType
 
using HeavisideConstPointer = typename HeavisideType::ConstPointer
 
using HeavisideType = HeavisideStepFunctionBase< LevelSetOutputRealType, LevelSetOutputRealType >
 
using InputImagePointer = typename InputImageType::Pointer
 
using InputImageType = TInput
 
using InputPixelRealType = typename NumericTraits< InputPixelType >::RealType
 
using InputPixelType = typename InputImageType::PixelType
 
using LevelSetContainerPointer = typename LevelSetContainerType::Pointer
 
using LevelSetContainerType = TLevelSetContainer
 
using LevelSetDataType = typename LevelSetContainerType::LevelSetDataType
 
using LevelSetGradientType = typename LevelSetContainerType::GradientType
 
using LevelSetHessianType = typename LevelSetContainerType::HessianType
 
using LevelSetIdentifierType = typename LevelSetContainerType::LevelSetIdentifierType
 
using LevelSetInputIndexType = typename LevelSetContainerType::InputIndexType
 
using LevelSetOutputPixelType = typename LevelSetContainerType::OutputType
 
using LevelSetOutputRealType = typename LevelSetContainerType::OutputRealType
 
using LevelSetPointer = typename LevelSetContainerType::LevelSetPointer
 
using LevelSetType = typename LevelSetContainerType::LevelSetType
 
using Pointer = SmartPointer< Self >
 
using RequiredDataType = itksys::hash_set< std::string >
 
using Self = LevelSetEquationTermBase
 
using Superclass = Object
 
- 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 void ComputeProduct (const LevelSetInputIndexType &inputPixel, LevelSetOutputRealType &prod)
 
virtual void ComputeProductTerm (const LevelSetInputIndexType &, LevelSetOutputRealType &)
 
virtual ::itk::LightObject::Pointer CreateAnother () const
 
virtual InputPixelRealType GetMean ()
 
virtual const char * GetNameOfClass () const
 
void Initialize (const LevelSetInputIndexType &inputIndex) override
 
void InitializeParameters () override
 
virtual void SetMean (InputPixelRealType _arg)
 
void Update () override
 
void UpdatePixel (const LevelSetInputIndexType &inputPixel, const LevelSetOutputRealType &oldValue, const LevelSetOutputRealType &newValue) override
 
- Public Member Functions inherited from itk::LevelSetEquationTermBase< TInput, TLevelSetContainer >
virtual LevelSetOutputRealType Evaluate (const LevelSetInputIndexType &iP)
 
virtual LevelSetOutputRealType Evaluate (const LevelSetInputIndexType &iP, const LevelSetDataType &iData)
 
virtual LevelSetOutputRealType GetCFLContribution () const
 
virtual LevelSetOutputRealType GetCoefficient ()
 
virtual LevelSetIdentifierType GetCurrentLevelSetId ()
 
virtual const LevelSetTypeGetCurrentLevelSetPointer () const
 
virtual const
LevelSetContainerType
GetLevelSetContainer () const
 
virtual LevelSetTypeGetModifiableCurrentLevelSetPointer ()
 
virtual LevelSetContainerTypeGetModifiableLevelSetContainer ()
 
const RequiredDataTypeGetRequiredData () const
 
virtual void Initialize (const LevelSetInputIndexType &iP)=0
 
virtual void SetCoefficient (LevelSetOutputRealType _arg)
 
virtual void SetCurrentLevelSetId (LevelSetIdentifierType _arg)
 
virtual void SetLevelSetContainer (LevelSetContainerType *ptr)
 
virtual void UpdatePixel (const LevelSetInputIndexType &iP, const LevelSetOutputRealType &oldValue, const LevelSetOutputRealType &newValue)=0
 
virtual void SetInput (InputImageType *_arg)
 
virtual InputImageTypeGetModifiableInput ()
 
virtual const InputImageTypeGetInput () const
 
virtual void SetTermName (const char *_arg)
 
virtual const char * GetTermName () const
 
- 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 ()
 

Protected Member Functions

void Accumulate (const InputPixelType &inputPixel, const LevelSetOutputRealType &heavisideValue)
 
 LevelSetEquationChanAndVeseInternalTerm ()
 
LevelSetOutputRealType Value (const LevelSetInputIndexType &inputPixel) override
 
LevelSetOutputRealType Value (const LevelSetInputIndexType &inputPixel, const LevelSetDataType &data) override
 
 ~LevelSetEquationChanAndVeseInternalTerm () override=default
 
- Protected Member Functions inherited from itk::LevelSetEquationTermBase< TInput, TLevelSetContainer >
 LevelSetEquationTermBase ()
 
void SetUp ()
 
virtual LevelSetOutputRealType Value (const LevelSetInputIndexType &iP)=0
 
virtual LevelSetOutputRealType Value (const LevelSetInputIndexType &iP, const LevelSetDataType &iData)=0
 
 ~LevelSetEquationTermBase () 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

InputPixelRealType m_Mean
 
LevelSetOutputRealType m_TotalH
 
InputPixelRealType m_TotalValue
 
- Protected Attributes inherited from itk::LevelSetEquationTermBase< TInput, TLevelSetContainer >
LevelSetOutputRealType m_CFLContribution
 
LevelSetOutputRealType m_Coefficient
 
LevelSetIdentifierType m_CurrentLevelSetId
 
LevelSetPointer m_CurrentLevelSetPointer
 
HeavisideConstPointer m_Heaviside
 
InputImagePointer m_Input
 
LevelSetContainerPointer m_LevelSetContainer
 
RequiredDataType m_RequiredData
 
std::string m_TermName
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount
 

Member Typedef Documentation

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::CacheImageType = typename Superclass::CacheImageType

Definition at line 90 of file itkLevelSetEquationChanAndVeseInternalTerm.h.

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::ConstPointer = SmartPointer< const Self >

Definition at line 57 of file itkLevelSetEquationChanAndVeseInternalTerm.h.

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::DomainMapImageFilterType = typename Superclass::DomainMapImageFilterType

Definition at line 89 of file itkLevelSetEquationChanAndVeseInternalTerm.h.

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::HeavisideConstPointer = typename Superclass::HeavisideConstPointer

Definition at line 85 of file itkLevelSetEquationChanAndVeseInternalTerm.h.

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::HeavisideType = typename Superclass::HeavisideType

Definition at line 84 of file itkLevelSetEquationChanAndVeseInternalTerm.h.

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::InputImagePointer = typename Superclass::InputImagePointer

Definition at line 69 of file itkLevelSetEquationChanAndVeseInternalTerm.h.

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::InputImageType = typename Superclass::InputImageType

Definition at line 68 of file itkLevelSetEquationChanAndVeseInternalTerm.h.

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::InputPixelRealType = typename Superclass::InputPixelRealType

Definition at line 71 of file itkLevelSetEquationChanAndVeseInternalTerm.h.

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::InputPixelType = typename Superclass::InputPixelType

Definition at line 70 of file itkLevelSetEquationChanAndVeseInternalTerm.h.

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::LevelSetContainerPointer = typename Superclass::LevelSetContainerPointer

Definition at line 74 of file itkLevelSetEquationChanAndVeseInternalTerm.h.

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::LevelSetContainerType = typename Superclass::LevelSetContainerType

Definition at line 73 of file itkLevelSetEquationChanAndVeseInternalTerm.h.

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::LevelSetDataType = typename Superclass::LevelSetDataType

Definition at line 87 of file itkLevelSetEquationChanAndVeseInternalTerm.h.

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::LevelSetGradientType = typename Superclass::LevelSetGradientType

Definition at line 80 of file itkLevelSetEquationChanAndVeseInternalTerm.h.

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::LevelSetHessianType = typename Superclass::LevelSetHessianType

Definition at line 81 of file itkLevelSetEquationChanAndVeseInternalTerm.h.

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::LevelSetIdentifierType = typename Superclass::LevelSetIdentifierType

Definition at line 82 of file itkLevelSetEquationChanAndVeseInternalTerm.h.

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::LevelSetInputIndexType = typename Superclass::LevelSetInputIndexType

Definition at line 79 of file itkLevelSetEquationChanAndVeseInternalTerm.h.

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::LevelSetOutputPixelType = typename Superclass::LevelSetOutputPixelType

Definition at line 77 of file itkLevelSetEquationChanAndVeseInternalTerm.h.

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::LevelSetOutputRealType = typename Superclass::LevelSetOutputRealType

Definition at line 78 of file itkLevelSetEquationChanAndVeseInternalTerm.h.

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::LevelSetPointer = typename Superclass::LevelSetPointer

Definition at line 76 of file itkLevelSetEquationChanAndVeseInternalTerm.h.

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::LevelSetType = typename Superclass::LevelSetType

Definition at line 75 of file itkLevelSetEquationChanAndVeseInternalTerm.h.

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::Pointer = SmartPointer< Self >

Definition at line 56 of file itkLevelSetEquationChanAndVeseInternalTerm.h.

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::Self = LevelSetEquationChanAndVeseInternalTerm

Definition at line 55 of file itkLevelSetEquationChanAndVeseInternalTerm.h.

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::Superclass = LevelSetEquationTermBase< TInput, TLevelSetContainer >

Definition at line 59 of file itkLevelSetEquationChanAndVeseInternalTerm.h.

Constructor & Destructor Documentation

template<typename TInput , typename TLevelSetContainer >
itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::LevelSetEquationChanAndVeseInternalTerm ( )
protected
template<typename TInput , typename TLevelSetContainer >
itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::~LevelSetEquationChanAndVeseInternalTerm ( )
overrideprotecteddefault

Member Function Documentation

template<typename TInput , typename TLevelSetContainer >
void itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::Accumulate ( const InputPixelType inputPixel,
const LevelSetOutputRealType heavisideValue 
)
protected

Accumulate contribution to term parameters from a given pixel

template<typename TInput , typename TLevelSetContainer >
virtual void itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::ComputeProduct ( const LevelSetInputIndexType inputPixel,
LevelSetOutputRealType prod 
)
virtual

Compute the product of Heaviside functions in the multi-levelset cases

Reimplemented in itk::LevelSetEquationChanAndVeseExternalTerm< TInput, TLevelSetContainer >.

template<typename TInput , typename TLevelSetContainer >
virtual void itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::ComputeProductTerm ( const LevelSetInputIndexType ,
LevelSetOutputRealType  
)
inlinevirtual

Compute the product of Heaviside functions in the multi-levelset cases except the current levelset

Reimplemented in itk::LevelSetEquationChanAndVeseExternalTerm< TInput, TLevelSetContainer >.

Definition at line 110 of file itkLevelSetEquationChanAndVeseInternalTerm.h.

template<typename TInput , typename TLevelSetContainer >
virtual::itk::LightObject::Pointer itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::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<typename TInput , typename TLevelSetContainer >
virtual InputPixelRealType itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::GetMean ( )
virtual
template<typename TInput , typename TLevelSetContainer >
virtual const char* itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::GetNameOfClass ( ) const
virtual
template<typename TInput , typename TLevelSetContainer >
void itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::Initialize ( const LevelSetInputIndexType inputIndex)
override

Initialize term parameters in the dense case by computing for each pixel location

template<typename TInput , typename TLevelSetContainer >
void itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::InitializeParameters ( )
overridevirtual

Initialize parameters in the terms prior to an iteration

Implements itk::LevelSetEquationTermBase< TInput, TLevelSetContainer >.

template<typename TInput , typename TLevelSetContainer >
static Pointer itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::New ( )
static

Method for creation through object factory

template<typename TInput , typename TLevelSetContainer >
virtual void itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::SetMean ( InputPixelRealType  _arg)
virtual
template<typename TInput , typename TLevelSetContainer >
void itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::Update ( )
overridevirtual

Update the term parameter values at end of iteration

Implements itk::LevelSetEquationTermBase< TInput, TLevelSetContainer >.

template<typename TInput , typename TLevelSetContainer >
void itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::UpdatePixel ( const LevelSetInputIndexType inputPixel,
const LevelSetOutputRealType oldValue,
const LevelSetOutputRealType newValue 
)
override

Supply updates at pixels to keep the term parameters always updated

template<typename TInput , typename TLevelSetContainer >
LevelSetOutputRealType itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::Value ( const LevelSetInputIndexType inputPixel)
overrideprotected

Returns the term contribution for a given location inputPixel, i.e. $ \omega_i( p ) $.

template<typename TInput , typename TLevelSetContainer >
LevelSetOutputRealType itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::Value ( const LevelSetInputIndexType inputPixel,
const LevelSetDataType data 
)
overrideprotected

Returns the term contribution for a given location inputPixel, i.e. $ \omega_i( p ) $.

Member Data Documentation

template<typename TInput , typename TLevelSetContainer >
InputPixelRealType itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::m_Mean
protected
template<typename TInput , typename TLevelSetContainer >
LevelSetOutputRealType itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::m_TotalH
protected
template<typename TInput , typename TLevelSetContainer >
InputPixelRealType itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >::m_TotalValue
protected

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