ITK  6.0.0
Insight Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
itk::LevelSetEquationChanAndVeseExternalTerm< TInput, TLevelSetContainer > Class Template Reference

#include <itkLevelSetEquationChanAndVeseExternalTerm.h>

Detailed Description

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

Class to represent the external energy Chan And Vese term.

\[ \delta_{\epsilon}\left( \phi_{k}\left( p \right) \right) \cdot \prod_{i = 1, i \neq k}^{N} \left( 1 - H_{\epsilon} \left( \phi_i\left( p \right) \right) \right) \cdot \left\| I(p) - \mu_{out} \right\|^2 \]

Template Parameters
TInputInput Image Type
TLevelSetContainerLevel set function container type

Definition at line 50 of file itkLevelSetEquationChanAndVeseExternalTerm.h.

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

Public Types

using ConstPointer = SmartPointer< const Self >
 
using DomainIteratorType = typename DomainMapImageFilterType::DomainMapType::const_iterator
 
using IdListConstIterator = typename LevelSetContainerType::IdListConstIterator
 
using IdListIterator = typename LevelSetContainerType::IdListIterator
 
using IdListType = typename LevelSetContainerType::IdListType
 
using Pointer = SmartPointer< Self >
 
using Self = LevelSetEquationChanAndVeseExternalTerm
 
using Superclass = LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >
 
- Public Types inherited from itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >
using ConstPointer = SmartPointer< const Self >
 
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 = std::unordered_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

void ComputeProduct (const LevelSetInputIndexType &iP, LevelSetOutputRealType &prod) override
 
void ComputeProductTerm (const LevelSetInputIndexType &iP, LevelSetOutputRealType &prod) override
 
const char * GetNameOfClass () const override
 
void UpdatePixel (const LevelSetInputIndexType &iP, const LevelSetOutputRealType &oldValue, const LevelSetOutputRealType &newValue) override
 
- Public Member Functions inherited from itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >
virtual void ComputeProduct (const LevelSetInputIndexType &inputIndex, LevelSetOutputRealType &prod)
 
virtual void ComputeProductTerm (const LevelSetInputIndexType &, LevelSetOutputRealType &)
 
virtual InputPixelRealType GetMean ()
 
const char * GetNameOfClass () const override
 
void Initialize (const LevelSetInputIndexType &inputIndex) override
 
void InitializeParameters () override
 
virtual void SetMean (InputPixelRealType _arg)
 
void Update () override
 
void UpdatePixel (const LevelSetInputIndexType &inputIndex, 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 LevelSetTypeGetModifiableCurrentLevelSetPointer ()
 
virtual LevelSetContainerTypeGetModifiableLevelSetContainer ()
 
const char * GetNameOfClass () const override
 
const RequiredDataTypeGetRequiredData () const
 
virtual void Initialize (const LevelSetInputIndexType &iP)=0
 
virtual void InitializeParameters ()=0
 
virtual void SetCoefficient (LevelSetOutputRealType _arg)
 
virtual void SetCurrentLevelSetId (LevelSetIdentifierType _arg)
 
virtual void SetLevelSetContainer (LevelSetContainerType *iContainer)
 
virtual void Update ()=0
 
virtual void UpdatePixel (const LevelSetInputIndexType &iP, const LevelSetOutputRealType &oldValue, const LevelSetOutputRealType &newValue)=0
 
virtual void SetInput (InputImageType *_arg)
 
virtual InputImageTypeGetModifiableInput ()
 
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 *cmd) const
 
unsigned long AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const
 
LightObject::Pointer CreateAnother () const override
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
virtual ModifiedTimeType GetMTime () const
 
const char * GetNameOfClass () const override
 
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) const
 
void SetDebug (bool debugFlag) const
 
void SetReferenceCount (int) override
 
void UnRegister () const noexcept override
 
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
Pointer Clone () const
 
virtual Pointer CreateAnother () const
 
virtual void Delete ()
 
virtual const char * GetNameOfClass () const
 
virtual int GetReferenceCount () const
 
void Print (std::ostream &os, Indent indent=0) const
 
virtual void Register () const
 
virtual void SetReferenceCount (int)
 
virtual void UnRegister () const noexcept
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >
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 val)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Protected Member Functions

 LevelSetEquationChanAndVeseExternalTerm ()
 
 ~LevelSetEquationChanAndVeseExternalTerm () override=default
 
- Protected Member Functions inherited from itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >
void Accumulate (const InputPixelType &inputPixel, const LevelSetOutputRealType &heavisideValue)
 
 LevelSetEquationChanAndVeseInternalTerm ()
 
LevelSetOutputRealType Value (const LevelSetInputIndexType &inputIndex) override
 
LevelSetOutputRealType Value (const LevelSetInputIndexType &inputIndex, 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 &timeStamp)
 
 ~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 PrintSelf (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Attributes

CacheImageTypem_CacheImage {}
 
DomainMapImageFilterTypem_DomainMapImageFilter {}
 

Additional Inherited Members

- Protected Attributes inherited from itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >
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

◆ ConstPointer

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

Definition at line 59 of file itkLevelSetEquationChanAndVeseExternalTerm.h.

◆ DomainIteratorType

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseExternalTerm< TInput, TLevelSetContainer >::DomainIteratorType = typename DomainMapImageFilterType::DomainMapType::const_iterator

Definition at line 87 of file itkLevelSetEquationChanAndVeseExternalTerm.h.

◆ IdListConstIterator

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseExternalTerm< TInput, TLevelSetContainer >::IdListConstIterator = typename LevelSetContainerType::IdListConstIterator

Definition at line 91 of file itkLevelSetEquationChanAndVeseExternalTerm.h.

◆ IdListIterator

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseExternalTerm< TInput, TLevelSetContainer >::IdListIterator = typename LevelSetContainerType::IdListIterator

Definition at line 90 of file itkLevelSetEquationChanAndVeseExternalTerm.h.

◆ IdListType

template<typename TInput , typename TLevelSetContainer >
using itk::LevelSetEquationChanAndVeseExternalTerm< TInput, TLevelSetContainer >::IdListType = typename LevelSetContainerType::IdListType

Definition at line 89 of file itkLevelSetEquationChanAndVeseExternalTerm.h.

◆ Pointer

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

Definition at line 58 of file itkLevelSetEquationChanAndVeseExternalTerm.h.

◆ Self

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

Definition at line 57 of file itkLevelSetEquationChanAndVeseExternalTerm.h.

◆ Superclass

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

Definition at line 60 of file itkLevelSetEquationChanAndVeseExternalTerm.h.

Constructor & Destructor Documentation

◆ LevelSetEquationChanAndVeseExternalTerm()

template<typename TInput , typename TLevelSetContainer >
itk::LevelSetEquationChanAndVeseExternalTerm< TInput, TLevelSetContainer >::LevelSetEquationChanAndVeseExternalTerm ( )
protected

◆ ~LevelSetEquationChanAndVeseExternalTerm()

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

Member Function Documentation

◆ ComputeProduct()

template<typename TInput , typename TLevelSetContainer >
void itk::LevelSetEquationChanAndVeseExternalTerm< TInput, TLevelSetContainer >::ComputeProduct ( const LevelSetInputIndexType iP,
LevelSetOutputRealType prod 
)
overridevirtual

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

Reimplemented from itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >.

◆ ComputeProductTerm()

template<typename TInput , typename TLevelSetContainer >
void itk::LevelSetEquationChanAndVeseExternalTerm< TInput, TLevelSetContainer >::ComputeProductTerm ( const LevelSetInputIndexType iP,
LevelSetOutputRealType prod 
)
overridevirtual

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

Reimplemented from itk::LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >.

◆ GetNameOfClass()

template<typename TInput , typename TLevelSetContainer >
const char * itk::LevelSetEquationChanAndVeseExternalTerm< TInput, TLevelSetContainer >::GetNameOfClass ( ) const
overridevirtual
See also
LightObject::GetNameOfClass()

Reimplemented from itk::Object.

◆ New()

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

Method for creation through object factory

◆ UpdatePixel()

template<typename TInput , typename TLevelSetContainer >
void itk::LevelSetEquationChanAndVeseExternalTerm< TInput, TLevelSetContainer >::UpdatePixel ( const LevelSetInputIndexType iP,
const LevelSetOutputRealType oldValue,
const LevelSetOutputRealType newValue 
)
overridevirtual

Supply updates at pixels to keep the term parameters always updated

Implements itk::LevelSetEquationTermBase< TInput, TLevelSetContainer >.

Member Data Documentation

◆ m_CacheImage

template<typename TInput , typename TLevelSetContainer >
CacheImageType* itk::LevelSetEquationChanAndVeseExternalTerm< TInput, TLevelSetContainer >::m_CacheImage {}
private

◆ m_DomainMapImageFilter

template<typename TInput , typename TLevelSetContainer >
DomainMapImageFilterType* itk::LevelSetEquationChanAndVeseExternalTerm< TInput, TLevelSetContainer >::m_DomainMapImageFilter {}
private

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