ITK  5.4.0
Insight Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
itk::WhitakerSparseLevelSetImage< TOutput, VDimension > Class Template Reference

#include <itkWhitakerSparseLevelSetImage.h>

Detailed Description

template<typename TOutput, unsigned int VDimension>
class itk::WhitakerSparseLevelSetImage< TOutput, VDimension >

Derived class for the sparse-field representation of level-set function.

This representation is a "sparse" level-set function, where values are real in between [ -3, +3 ] and organized into several layers { -2, -1, 0, +1, +2 }.

Template Parameters
TOutputOutput type (float or double) of the level set function
VDimensionDimension of the input space
Examples
SphinxExamples/src/Bridge/VtkGlue/VisualizeStaticWhitaker2DLevelSetLayers/Code.cxx.

Definition at line 41 of file itkWhitakerSparseLevelSetImage.h.

+ Inheritance diagram for itk::WhitakerSparseLevelSetImage< TOutput, VDimension >:
+ Collaboration diagram for itk::WhitakerSparseLevelSetImage< TOutput, VDimension >:

Public Types

using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = WhitakerSparseLevelSetImage
 
using Superclass = LevelSetSparseImage< TOutput, VDimension >
 
- Public Types inherited from itk::LevelSetSparseImage< TOutput, VDimension >
using ConstPointer = SmartPointer< const Self >
 
using LabelMapConstPointer = typename LabelMapType::ConstPointer
 
using LabelMapPointer = typename LabelMapType::Pointer
 
using LabelMapType = LabelMap< LabelObjectType >
 
using LabelObjectLengthType = typename LabelObjectType::LengthType
 
using LabelObjectLineType = typename LabelObjectType::LineType
 
using LabelObjectPointer = typename LabelObjectType::Pointer
 
using LabelObjectType = LabelObject< LayerIdType, VDimension >
 
using LayerConstIterator = typename LayerType::const_iterator
 
using LayerIdListType = std::list< LayerIdType >
 
using LayerIdType = int8_t
 
using LayerIterator = typename LayerType::iterator
 
using LayerMapConstIterator = typename LayerMapType::const_iterator
 
using LayerMapIterator = typename LayerMapType::iterator
 
using LayerMapType = std::map< LayerIdType, LayerType >
 
using LayerType = std::map< InputType, OutputType, Functor::LexicographicCompare >
 
using Pointer = SmartPointer< Self >
 
using RegionType = typename LabelMapType::RegionType
 
using Self = LevelSetSparseImage
 
using Superclass = DiscreteLevelSetImage< TOutput, VDimension >
 
- Public Types inherited from itk::DiscreteLevelSetImage< TOutput, VDimension >
using ConstPointer = SmartPointer< const Self >
 
using IndexType = Index< VDimension >
 
using Pointer = SmartPointer< Self >
 
using Self = DiscreteLevelSetImage
 
using Superclass = LevelSetImage< IndexType, VDimension, TOutput >
 
- Public Types inherited from itk::LevelSetImage< Index< VDimension >, VDimension, TOutput >
using ConstPointer = SmartPointer< const Self >
 
using ImageBaseType = ImageBase< VDimension >
 
using OffsetType = typename ImageBaseType::OffsetType
 
using OffsetValueType = typename ImageBaseType::OffsetValueType
 
using Pointer = SmartPointer< Self >
 
using Self = LevelSetImage
 
using Superclass = LevelSetBase< Index< VDimension >, VDimension, TOutput, ImageBaseType >
 
- Public Types inherited from itk::LevelSetBase< Index< VDimension >, VDimension, TOutput, ImageBase< VDimension > >
using ConstPointer = SmartPointer< const Self >
 
using DomainType = ImageBase< VDimension >
 
using GradientType = CovariantVector< OutputRealType, VDimension >
 
using HessianType = Matrix< OutputRealType, VDimension, VDimension >
 
using InputType = Index< VDimension >
 
using OutputRealType = typename NumericTraits< OutputType >::RealType
 
using OutputType = TOutput
 
using Pointer = SmartPointer< Self >
 
using RegionType = IdentifierType
 
using Self = LevelSetBase
 
using Superclass = DataObject
 
- Public Types inherited from itk::DataObject
using ConstPointer = SmartPointer< const Self >
 
using DataObjectIdentifierType = std::string
 
using DataObjectPointerArraySizeType = std::vector< Pointer >::size_type
 
using Pointer = SmartPointer< Self >
 
using Self = DataObject
 
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

OutputType Evaluate (const InputType &inputIndex) const override
 
const char * GetNameOfClass () const override
 
template<typename TLabel >
LabelObject< TLabel, Dimension >::Pointer GetAsLabelObject ()
 
- Public Member Functions inherited from itk::LevelSetSparseImage< TOutput, VDimension >
template<typename TLabel >
LabelObject< TLabel, VDimension >::Pointer GetAsLabelObject ()
 
LayerTypeGetLayer (LayerIdType value)
 
const LayerTypeGetLayer (LayerIdType value) const
 
void Graft (const DataObject *data) override
 
void SetLayer (LayerIdType value, const LayerType &layer)
 
virtual LayerIdType Status (const InputType &inputIndex) const
 
virtual void SetLabelMap (LabelMapType *labelMap)
 
virtual LabelMapTypeGetModifiableLabelMap ()
 
- Public Member Functions inherited from itk::DiscreteLevelSetImage< TOutput, VDimension >
void Evaluate (const InputType &inputIndex, LevelSetDataType &data) const override
 
virtual GradientType EvaluateBackwardGradient (const InputType &inputIndex) const
 
void EvaluateBackwardGradient (const InputType &inputIndex, LevelSetDataType &data) const override
 
virtual GradientType EvaluateForwardGradient (const InputType &inputIndex) const
 
void EvaluateForwardGradient (const InputType &inputIndex, LevelSetDataType &data) const override
 
GradientType EvaluateGradient (const InputType &inputIndex) const override
 
void EvaluateGradient (const InputType &inputIndex, LevelSetDataType &data) const override
 
HessianType EvaluateHessian (const InputType &inputIndex) const override
 
void EvaluateHessian (const InputType &inputIndex, LevelSetDataType &data) const override
 
OutputRealType EvaluateLaplacian (const InputType &inputIndex) const override
 
void EvaluateLaplacian (const InputType &inputIndex, LevelSetDataType &data) const override
 
OutputRealType EvaluateMeanCurvature (const InputType &inputIndex) const override
 
void EvaluateMeanCurvature (const InputType &inputIndex, LevelSetDataType &data) const override
 
- Public Member Functions inherited from itk::LevelSetImage< Index< VDimension >, VDimension, TOutput >
virtual OffsetType GetDomainOffset () const
 
const char * GetNameOfClass () const override
 
virtual void SetDomainOffset (OffsetType _arg)
 
- Public Member Functions inherited from itk::LevelSetBase< Index< VDimension >, VDimension, TOutput, ImageBase< VDimension > >
virtual OutputRealType EvaluateGradientNorm (const InputType &iP) const
 
virtual void EvaluateGradientNorm (const InputType &iP, LevelSetDataType &ioData) const
 
virtual bool IsInside (const InputType &iP) const
 
virtual RegionType GetMaximumNumberOfRegions () const
 
void Initialize () override
 
void UpdateOutputInformation () override
 
void SetRequestedRegionToLargestPossibleRegion () override
 
void CopyInformation (const DataObject *data) override
 
void Graft (const DataObject *data) override
 
bool RequestedRegionIsOutsideOfTheBufferedRegion () override
 
bool VerifyRequestedRegion () override
 
void SetRequestedRegion (const DataObject *data) override
 
virtual void SetRequestedRegion (const RegionType &region)
 
virtual RegionType GetRequestedRegion () const
 
virtual void SetBufferedRegion (const RegionType &region)
 
virtual RegionType GetBufferedRegion () const
 
- Public Member Functions inherited from itk::DataObject
virtual void DataHasBeenGenerated ()
 
void DisconnectPipeline ()
 
bool GetDataReleased () const
 
virtual const bool & GetReleaseDataFlag () const
 
SmartPointer< ProcessObjectGetSource () const
 
DataObjectPointerArraySizeType GetSourceOutputIndex () const
 
const DataObjectIdentifierTypeGetSourceOutputName () const
 
virtual ModifiedTimeType GetUpdateMTime () const
 
virtual void PrepareForNewData ()
 
virtual void PropagateRequestedRegion ()
 
void ReleaseData ()
 
virtual void ReleaseDataFlagOn ()
 
virtual void ResetPipeline ()
 
void SetReleaseDataFlag (bool flag)
 
bool ShouldIReleaseData () const
 
virtual void Update ()
 
virtual void UpdateOutputData ()
 
void UpdateSource () const
 
void SetPipelineMTime (ModifiedTimeType time)
 
virtual const ModifiedTimeTypeGetPipelineMTime () const
 
virtual void SetRealTimeStamp (RealTimeStamp _arg)
 
virtual const RealTimeStampGetRealTimeStamp () const
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) 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
 
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 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 void Delete ()
 
virtual int GetReferenceCount () const
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static LayerIdType MinusOneLayer ()
 
static LayerIdType MinusThreeLayer ()
 
static LayerIdType MinusTwoLayer ()
 
static Pointer New ()
 
static LayerIdType PlusOneLayer ()
 
static LayerIdType PlusThreeLayer ()
 
static LayerIdType PlusTwoLayer ()
 
static LayerIdType ZeroLayer ()
 
- Static Public Member Functions inherited from itk::DataObject
static bool GetGlobalReleaseDataFlag ()
 
static void GlobalReleaseDataFlagOff ()
 
static void GlobalReleaseDataFlagOn ()
 
static Pointer New ()
 
static void SetGlobalReleaseDataFlag (bool val)
 
- 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 ()
 

Static Public Attributes

static constexpr unsigned int Dimension = VDimension
 
- Static Public Attributes inherited from itk::LevelSetSparseImage< TOutput, VDimension >
static constexpr unsigned int Dimension = Superclass::Dimension
 
- Static Public Attributes inherited from itk::DiscreteLevelSetImage< TOutput, VDimension >
static constexpr unsigned int Dimension = Superclass::Dimension
 
- Static Public Attributes inherited from itk::LevelSetImage< Index< VDimension >, VDimension, TOutput >
static constexpr unsigned int Dimension
 
- Static Public Attributes inherited from itk::LevelSetBase< Index< VDimension >, VDimension, TOutput, ImageBase< VDimension > >
static constexpr unsigned int Dimension
 

Protected Member Functions

void InitializeInternalLabelList () override
 
void InitializeLayers () override
 
 WhitakerSparseLevelSetImage ()
 
 ~WhitakerSparseLevelSetImage () override=default
 
- Protected Member Functions inherited from itk::LevelSetSparseImage< TOutput, VDimension >
void CopyInformation (const DataObject *data) override
 
void Initialize () override
 
bool IsInsideDomain (const InputType &inputIndex) const override
 
 LevelSetSparseImage ()=default
 
 ~LevelSetSparseImage () override=default
 
- Protected Member Functions inherited from itk::DiscreteLevelSetImage< TOutput, VDimension >
 DiscreteLevelSetImage ()=default
 
 ~DiscreteLevelSetImage () override=default
 
- Protected Member Functions inherited from itk::LevelSetImage< Index< VDimension >, VDimension, TOutput >
 LevelSetImage ()
 
 ~LevelSetImage () override=default
 
- Protected Member Functions inherited from itk::LevelSetBase< Index< VDimension >, VDimension, TOutput, ImageBase< VDimension > >
 LevelSetBase ()
 
 ~LevelSetBase () override=default
 
- Protected Member Functions inherited from itk::DataObject
 DataObject ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
virtual void PropagateResetPipeline ()
 
 ~DataObject () override
 
- 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 PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Additional Inherited Members

- Protected Types inherited from itk::LevelSetImage< Index< VDimension >, VDimension, TOutput >
using ScalingType = GradientType
 
- Protected Attributes inherited from itk::LevelSetSparseImage< TOutput, VDimension >
LayerIdListType m_InternalLabelList {}
 
LabelMapPointer m_LabelMap {}
 
LayerMapType m_Layers {}
 
- Protected Attributes inherited from itk::LevelSetImage< Index< VDimension >, VDimension, TOutput >
OffsetType m_DomainOffset
 
ScalingType m_NeighborhoodScales
 
- Protected Attributes inherited from itk::LevelSetBase< Index< VDimension >, VDimension, TOutput, ImageBase< VDimension > >
RegionType m_MaximumNumberOfRegions
 
RegionType m_NumberOfRegions
 
RegionType m_RequestedNumberOfRegions
 
RegionType m_BufferedRegion
 
RegionType m_RequestedRegion
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Member Typedef Documentation

◆ ConstPointer

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

Definition at line 48 of file itkWhitakerSparseLevelSetImage.h.

◆ Pointer

template<typename TOutput , unsigned int VDimension>
using itk::WhitakerSparseLevelSetImage< TOutput, VDimension >::Pointer = SmartPointer<Self>

Definition at line 47 of file itkWhitakerSparseLevelSetImage.h.

◆ Self

template<typename TOutput , unsigned int VDimension>
using itk::WhitakerSparseLevelSetImage< TOutput, VDimension >::Self = WhitakerSparseLevelSetImage

Definition at line 46 of file itkWhitakerSparseLevelSetImage.h.

◆ Superclass

template<typename TOutput , unsigned int VDimension>
using itk::WhitakerSparseLevelSetImage< TOutput, VDimension >::Superclass = LevelSetSparseImage<TOutput, VDimension>

Definition at line 49 of file itkWhitakerSparseLevelSetImage.h.

Constructor & Destructor Documentation

◆ WhitakerSparseLevelSetImage()

template<typename TOutput , unsigned int VDimension>
itk::WhitakerSparseLevelSetImage< TOutput, VDimension >::WhitakerSparseLevelSetImage ( )
protected

◆ ~WhitakerSparseLevelSetImage()

template<typename TOutput , unsigned int VDimension>
itk::WhitakerSparseLevelSetImage< TOutput, VDimension >::~WhitakerSparseLevelSetImage ( )
overrideprotecteddefault

Member Function Documentation

◆ Evaluate()

template<typename TOutput , unsigned int VDimension>
OutputType itk::WhitakerSparseLevelSetImage< TOutput, VDimension >::Evaluate ( const InputType inputIndex) const
overridevirtual

Returns the gradient of the level set function at a given location inputIndex

Implements itk::DiscreteLevelSetImage< TOutput, VDimension >.

◆ GetAsLabelObject()

template<typename TOutput , unsigned int VDimension>
template<typename TLabel >
LabelObject<TLabel, Dimension>::Pointer itk::WhitakerSparseLevelSetImage< TOutput, VDimension >::GetAsLabelObject ( )
inline

Return the label object pointer with a given id

Definition at line 137 of file itkWhitakerSparseLevelSetImage.h.

References New().

◆ GetNameOfClass()

template<typename TOutput , unsigned int VDimension>
const char* itk::WhitakerSparseLevelSetImage< TOutput, VDimension >::GetNameOfClass ( ) const
overridevirtual

◆ InitializeInternalLabelList()

template<typename TOutput , unsigned int VDimension>
void itk::WhitakerSparseLevelSetImage< TOutput, VDimension >::InitializeInternalLabelList ( )
overrideprotectedvirtual

◆ InitializeLayers()

template<typename TOutput , unsigned int VDimension>
void itk::WhitakerSparseLevelSetImage< TOutput, VDimension >::InitializeLayers ( )
overrideprotectedvirtual

Initialize the sparse field layers

Implements itk::LevelSetSparseImage< TOutput, VDimension >.

◆ MinusOneLayer()

template<typename TOutput , unsigned int VDimension>
static LayerIdType itk::WhitakerSparseLevelSetImage< TOutput, VDimension >::MinusOneLayer ( )
inlinestatic

Definition at line 109 of file itkWhitakerSparseLevelSetImage.h.

◆ MinusThreeLayer()

template<typename TOutput , unsigned int VDimension>
static LayerIdType itk::WhitakerSparseLevelSetImage< TOutput, VDimension >::MinusThreeLayer ( )
inlinestatic

Definition at line 99 of file itkWhitakerSparseLevelSetImage.h.

◆ MinusTwoLayer()

template<typename TOutput , unsigned int VDimension>
static LayerIdType itk::WhitakerSparseLevelSetImage< TOutput, VDimension >::MinusTwoLayer ( )
inlinestatic

Definition at line 104 of file itkWhitakerSparseLevelSetImage.h.

◆ New()

template<typename TOutput , unsigned int VDimension>
static Pointer itk::WhitakerSparseLevelSetImage< TOutput, VDimension >::New ( )
static

Method for creation through the object factory.

◆ PlusOneLayer()

template<typename TOutput , unsigned int VDimension>
static LayerIdType itk::WhitakerSparseLevelSetImage< TOutput, VDimension >::PlusOneLayer ( )
inlinestatic

Definition at line 119 of file itkWhitakerSparseLevelSetImage.h.

◆ PlusThreeLayer()

template<typename TOutput , unsigned int VDimension>
static LayerIdType itk::WhitakerSparseLevelSetImage< TOutput, VDimension >::PlusThreeLayer ( )
inlinestatic

Definition at line 129 of file itkWhitakerSparseLevelSetImage.h.

◆ PlusTwoLayer()

template<typename TOutput , unsigned int VDimension>
static LayerIdType itk::WhitakerSparseLevelSetImage< TOutput, VDimension >::PlusTwoLayer ( )
inlinestatic

Definition at line 124 of file itkWhitakerSparseLevelSetImage.h.

◆ ZeroLayer()

template<typename TOutput , unsigned int VDimension>
static LayerIdType itk::WhitakerSparseLevelSetImage< TOutput, VDimension >::ZeroLayer ( )
inlinestatic

Definition at line 114 of file itkWhitakerSparseLevelSetImage.h.

Member Data Documentation

◆ Dimension

template<typename TOutput , unsigned int VDimension>
constexpr unsigned int itk::WhitakerSparseLevelSetImage< TOutput, VDimension >::Dimension = VDimension
staticconstexpr

Definition at line 57 of file itkWhitakerSparseLevelSetImage.h.


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