ITK  5.1.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members

#include <itkLevelSetNeighborhoodExtractor.h>

+ Inheritance diagram for itk::LevelSetNeighborhoodExtractor< TLevelSet >:
+ Collaboration diagram for itk::LevelSetNeighborhoodExtractor< TLevelSet >:

Public Types

using ConstPointer = SmartPointer< const Self >
 
using IndexType = Index< Self::SetDimension >
 
using LevelSetConstPointer = typename LevelSetType::LevelSetConstPointer
 
using LevelSetImageType = typename LevelSetType::LevelSetImageType
 
using LevelSetPointer = typename LevelSetType::LevelSetPointer
 
using LevelSetType = LevelSetTypeDefault< TLevelSet >
 
using NodeContainer = typename LevelSetType::NodeContainer
 
using NodeContainerPointer = typename LevelSetType::NodeContainerPointer
 
using NodeType = typename LevelSetType::NodeType
 
using PixelType = typename LevelSetType::PixelType
 
using Pointer = SmartPointer< Self >
 
using Self = LevelSetNeighborhoodExtractor
 
using Superclass = LightProcessObject
 
- Public Types inherited from itk::LightProcessObject
using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = LightProcessObject
 
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 ::itk::LightObject::Pointer CreateAnother () const
 
virtual const char * GetNameOfClass () const
 
- Public Member Functions inherited from itk::LightProcessObject
virtual void AbortGenerateDataOff ()
 
virtual void AbortGenerateDataOn ()
 
virtual const bool & GetAbortGenerateData () const
 
virtual void SetAbortGenerateData (bool _arg)
 
virtual void SetProgress (float _arg)
 
virtual const float & GetProgress () const
 
void UpdateProgress (float amount)
 
virtual void UpdateOutputData ()
 
- 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 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
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::LightProcessObject
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 SetDimension = LevelSetType::SetDimension
 
double m_LevelSetValue { 0.0 }
 
NodeContainerPointer m_InsidePoints
 
NodeContainerPointer m_OutsidePoints
 
LevelSetConstPointer m_InputLevelSet
 
bool m_NarrowBanding { false }
 
double m_NarrowBandwidth { 12.0 }
 
NodeContainerPointer m_InputNarrowBand
 
LevelSetImageType::RegionType m_ImageRegion
 
LevelSetImageType::PixelType m_LargeValue
 
std::vector< NodeTypem_NodesUsed
 
bool m_LastPointIsInside { false }
 
virtual void SetInputLevelSet (const LevelSetImageType *_arg)
 
virtual const LevelSetImageTypeGetInputLevelSet () const
 
virtual void SetLevelSetValue (double _arg)
 
virtual double GetLevelSetValue () const
 
virtual void SetNarrowBandwidth (double _arg)
 
virtual double GetNarrowBandwidth () const
 
virtual void SetNarrowBanding (bool _arg)
 
virtual bool GetNarrowBanding () const
 
virtual void NarrowBandingOn ()
 
virtual void NarrowBandingOff ()
 
void SetInputNarrowBand (NodeContainer *ptr)
 
virtual NodeContainerGetModifiableInputNarrowBand ()
 
virtual const NodeContainerGetInputNarrowBand () const
 
NodeContainerPointer GetInsidePoints ()
 
NodeContainerPointer GetOutsidePoints ()
 
void Locate ()
 
 LevelSetNeighborhoodExtractor ()
 
 ~LevelSetNeighborhoodExtractor () override=default
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
LevelSetImageType::PixelType GetLargeValue () const
 
const NodeTypeGetNodeUsedInCalculation (unsigned int idx) const
 
virtual void Initialize ()
 
virtual double CalculateDistance (IndexType &index)
 
void GenerateData () override
 
bool GetLastPointIsInside () const
 
void GenerateDataFull ()
 
void GenerateDataNarrowBand ()
 

Additional Inherited Members

- Protected Member Functions inherited from itk::LightProcessObject
 LightProcessObject ()
 
 ~LightProcessObject () override
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
 ~Object () override
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &time)
 
- 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 inherited from itk::LightObject
std::atomic< int > m_ReferenceCount
 

Detailed Description

template<typename TLevelSet>
class itk::LevelSetNeighborhoodExtractor< TLevelSet >

Locate pixels of a particular level set.

LevelSetNeighborhoodExtractor locates a particular level set in the input level set. Specifically, the method Locate() fills two containers: one containing pixels immediately inside the contour defined by the level set and the other containing pixels immediately outside. For each located pixel, an estimated distance to the particular level set is also calculated.

The containers InsidePoints and OutsidePoints can then be used in FastMarchingImageFilter to produce a signed distance map from the specified level set.

This class is templated over the image type representing the level set.

This class supports narrowbanding. If a input narrowband is provided, the alogrithm will only search pixels within the narrowband.

Implementation of this class is based on Chapter 11 of "Level Set Methods and Fast Marching Methods", J.A. Sethian, Cambridge Press, Second edition, 1999.

Definition at line 57 of file itkLevelSetNeighborhoodExtractor.h.

Member Typedef Documentation

◆ ConstPointer

template<typename TLevelSet >
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::ConstPointer = SmartPointer<const Self>

Definition at line 66 of file itkLevelSetNeighborhoodExtractor.h.

◆ IndexType

template<typename TLevelSet >
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::IndexType = Index<Self::SetDimension>

Index type alias support

Definition at line 88 of file itkLevelSetNeighborhoodExtractor.h.

◆ LevelSetConstPointer

template<typename TLevelSet >
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::LevelSetConstPointer = typename LevelSetType::LevelSetConstPointer

Definition at line 78 of file itkLevelSetNeighborhoodExtractor.h.

◆ LevelSetImageType

template<typename TLevelSet >
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::LevelSetImageType = typename LevelSetType::LevelSetImageType

Definition at line 76 of file itkLevelSetNeighborhoodExtractor.h.

◆ LevelSetPointer

template<typename TLevelSet >
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::LevelSetPointer = typename LevelSetType::LevelSetPointer

Definition at line 77 of file itkLevelSetNeighborhoodExtractor.h.

◆ LevelSetType

template<typename TLevelSet >
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::LevelSetType = LevelSetTypeDefault<TLevelSet>

LevelSetType type alias support

Definition at line 75 of file itkLevelSetNeighborhoodExtractor.h.

◆ NodeContainer

template<typename TLevelSet >
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::NodeContainer = typename LevelSetType::NodeContainer

Definition at line 81 of file itkLevelSetNeighborhoodExtractor.h.

◆ NodeContainerPointer

template<typename TLevelSet >
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::NodeContainerPointer = typename LevelSetType::NodeContainerPointer

Definition at line 82 of file itkLevelSetNeighborhoodExtractor.h.

◆ NodeType

template<typename TLevelSet >
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::NodeType = typename LevelSetType::NodeType

Definition at line 80 of file itkLevelSetNeighborhoodExtractor.h.

◆ PixelType

template<typename TLevelSet >
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::PixelType = typename LevelSetType::PixelType

Definition at line 79 of file itkLevelSetNeighborhoodExtractor.h.

◆ Pointer

template<typename TLevelSet >
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::Pointer = SmartPointer<Self>

Definition at line 65 of file itkLevelSetNeighborhoodExtractor.h.

◆ Self

template<typename TLevelSet >
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::Self = LevelSetNeighborhoodExtractor

Standard class typdedefs.

Definition at line 63 of file itkLevelSetNeighborhoodExtractor.h.

◆ Superclass

template<typename TLevelSet >
using itk::LevelSetNeighborhoodExtractor< TLevelSet >::Superclass = LightProcessObject

Definition at line 64 of file itkLevelSetNeighborhoodExtractor.h.

Constructor & Destructor Documentation

◆ LevelSetNeighborhoodExtractor()

template<typename TLevelSet >
itk::LevelSetNeighborhoodExtractor< TLevelSet >::LevelSetNeighborhoodExtractor ( )
protected

Get/Set the input level set.

◆ ~LevelSetNeighborhoodExtractor()

template<typename TLevelSet >
itk::LevelSetNeighborhoodExtractor< TLevelSet >::~LevelSetNeighborhoodExtractor ( )
overrideprotecteddefault

Get/Set the input level set.

Member Function Documentation

◆ CalculateDistance()

template<typename TLevelSet >
virtual double itk::LevelSetNeighborhoodExtractor< TLevelSet >::CalculateDistance ( IndexType index)
protectedvirtual

◆ CreateAnother()

template<typename TLevelSet >
virtual::itk::LightObject::Pointer itk::LevelSetNeighborhoodExtractor< TLevelSet >::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::LightProcessObject.

Reimplemented in itk::LevelSetVelocityNeighborhoodExtractor< TLevelSet, TAuxValue, VAuxDimension >.

◆ GenerateData()

template<typename TLevelSet >
void itk::LevelSetNeighborhoodExtractor< TLevelSet >::GenerateData ( )
overrideprotectedvirtual

Get/Set the input level set.

Reimplemented from itk::LightProcessObject.

◆ GenerateDataFull()

template<typename TLevelSet >
void itk::LevelSetNeighborhoodExtractor< TLevelSet >::GenerateDataFull ( )
private

Get/Set the input level set.

◆ GenerateDataNarrowBand()

template<typename TLevelSet >
void itk::LevelSetNeighborhoodExtractor< TLevelSet >::GenerateDataNarrowBand ( )
private

Get/Set the input level set.

◆ GetInputLevelSet()

template<typename TLevelSet >
virtual const LevelSetImageType* itk::LevelSetNeighborhoodExtractor< TLevelSet >::GetInputLevelSet ( ) const
virtual

Get/Set the input level set.

◆ GetInputNarrowBand()

template<typename TLevelSet >
virtual const NodeContainer* itk::LevelSetNeighborhoodExtractor< TLevelSet >::GetInputNarrowBand ( ) const
virtual

Get/Set the input level set.

◆ GetInsidePoints()

template<typename TLevelSet >
NodeContainerPointer itk::LevelSetNeighborhoodExtractor< TLevelSet >::GetInsidePoints ( )
inline

Get the container of inside points. The inside points are stored in a VectorContainer of LevelSetNodes.

Definition at line 125 of file itkLevelSetNeighborhoodExtractor.h.

◆ GetLargeValue()

template<typename TLevelSet >
LevelSetImageType::PixelType itk::LevelSetNeighborhoodExtractor< TLevelSet >::GetLargeValue ( ) const
inlineprotected

Get/Set the input level set.

Definition at line 150 of file itkLevelSetNeighborhoodExtractor.h.

◆ GetLastPointIsInside()

template<typename TLevelSet >
bool itk::LevelSetNeighborhoodExtractor< TLevelSet >::GetLastPointIsInside ( ) const
inlineprotected

Get/Set the input level set.

Definition at line 171 of file itkLevelSetNeighborhoodExtractor.h.

◆ GetLevelSetValue()

template<typename TLevelSet >
virtual double itk::LevelSetNeighborhoodExtractor< TLevelSet >::GetLevelSetValue ( ) const
virtual

Get the value of the level set to be located.

◆ GetModifiableInputNarrowBand()

template<typename TLevelSet >
virtual NodeContainer* itk::LevelSetNeighborhoodExtractor< TLevelSet >::GetModifiableInputNarrowBand ( )
virtual

Get/Set the input level set.

◆ GetNameOfClass()

template<typename TLevelSet >
virtual const char* itk::LevelSetNeighborhoodExtractor< TLevelSet >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::LightProcessObject.

Reimplemented in itk::LevelSetVelocityNeighborhoodExtractor< TLevelSet, TAuxValue, VAuxDimension >.

◆ GetNarrowBanding()

template<typename TLevelSet >
virtual bool itk::LevelSetNeighborhoodExtractor< TLevelSet >::GetNarrowBanding ( ) const
virtual

Get the narrowbanding flag.

◆ GetNarrowBandwidth()

template<typename TLevelSet >
virtual double itk::LevelSetNeighborhoodExtractor< TLevelSet >::GetNarrowBandwidth ( ) const
virtual

Get the narrow band width.

◆ GetNodeUsedInCalculation()

template<typename TLevelSet >
const NodeType& itk::LevelSetNeighborhoodExtractor< TLevelSet >::GetNodeUsedInCalculation ( unsigned int  idx) const
inlineprotected

Get/Set the input level set.

Definition at line 156 of file itkLevelSetNeighborhoodExtractor.h.

◆ GetOutsidePoints()

template<typename TLevelSet >
NodeContainerPointer itk::LevelSetNeighborhoodExtractor< TLevelSet >::GetOutsidePoints ( )
inline

Get the container of outside points. The outside points are stored in a VectorContainer of LevelSetNodes.

Definition at line 133 of file itkLevelSetNeighborhoodExtractor.h.

◆ Initialize()

template<typename TLevelSet >
virtual void itk::LevelSetNeighborhoodExtractor< TLevelSet >::Initialize ( )
protectedvirtual

◆ Locate()

template<typename TLevelSet >
void itk::LevelSetNeighborhoodExtractor< TLevelSet >::Locate ( )

Locate the level set. This method evokes the level set location algorithm.

◆ NarrowBandingOff()

template<typename TLevelSet >
virtual void itk::LevelSetNeighborhoodExtractor< TLevelSet >::NarrowBandingOff ( )
virtual

Get/Set the input level set.

◆ NarrowBandingOn()

template<typename TLevelSet >
virtual void itk::LevelSetNeighborhoodExtractor< TLevelSet >::NarrowBandingOn ( )
virtual

Get/Set the input level set.

◆ New()

template<typename TLevelSet >
static Pointer itk::LevelSetNeighborhoodExtractor< TLevelSet >::New ( )
static

Method for creation through the object factory.

◆ PrintSelf()

template<typename TLevelSet >
void itk::LevelSetNeighborhoodExtractor< TLevelSet >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotectedvirtual

Get/Set the input level set.

Reimplemented from itk::LightProcessObject.

Reimplemented in itk::LevelSetVelocityNeighborhoodExtractor< TLevelSet, TAuxValue, VAuxDimension >.

◆ SetInputLevelSet()

template<typename TLevelSet >
virtual void itk::LevelSetNeighborhoodExtractor< TLevelSet >::SetInputLevelSet ( const LevelSetImageType _arg)
virtual

Get/Set the input level set.

◆ SetInputNarrowBand()

template<typename TLevelSet >
void itk::LevelSetNeighborhoodExtractor< TLevelSet >::SetInputNarrowBand ( NodeContainer ptr)

Set/Get the input narrowband. A narrowband is represented as a VectorContainer of LevelSetNodes.

◆ SetLevelSetValue()

template<typename TLevelSet >
virtual void itk::LevelSetNeighborhoodExtractor< TLevelSet >::SetLevelSetValue ( double  _arg)
virtual

Set the value of the level set to be located. Default is 0.

◆ SetNarrowBanding()

template<typename TLevelSet >
virtual void itk::LevelSetNeighborhoodExtractor< TLevelSet >::SetNarrowBanding ( bool  _arg)
virtual

Set the narrowbanding flag.

◆ SetNarrowBandwidth()

template<typename TLevelSet >
virtual void itk::LevelSetNeighborhoodExtractor< TLevelSet >::SetNarrowBandwidth ( double  _arg)
virtual

Set the narrow band width. Default is 12.

Member Data Documentation

◆ m_ImageRegion

template<typename TLevelSet >
LevelSetImageType::RegionType itk::LevelSetNeighborhoodExtractor< TLevelSet >::m_ImageRegion
private

Get/Set the input level set.

Definition at line 194 of file itkLevelSetNeighborhoodExtractor.h.

◆ m_InputLevelSet

template<typename TLevelSet >
LevelSetConstPointer itk::LevelSetNeighborhoodExtractor< TLevelSet >::m_InputLevelSet
private

Get/Set the input level set.

Definition at line 188 of file itkLevelSetNeighborhoodExtractor.h.

◆ m_InputNarrowBand

template<typename TLevelSet >
NodeContainerPointer itk::LevelSetNeighborhoodExtractor< TLevelSet >::m_InputNarrowBand
private

Get/Set the input level set.

Definition at line 192 of file itkLevelSetNeighborhoodExtractor.h.

◆ m_InsidePoints

template<typename TLevelSet >
NodeContainerPointer itk::LevelSetNeighborhoodExtractor< TLevelSet >::m_InsidePoints
private

Get/Set the input level set.

Definition at line 185 of file itkLevelSetNeighborhoodExtractor.h.

◆ m_LargeValue

template<typename TLevelSet >
LevelSetImageType::PixelType itk::LevelSetNeighborhoodExtractor< TLevelSet >::m_LargeValue
private

Get/Set the input level set.

Definition at line 195 of file itkLevelSetNeighborhoodExtractor.h.

◆ m_LastPointIsInside

template<typename TLevelSet >
bool itk::LevelSetNeighborhoodExtractor< TLevelSet >::m_LastPointIsInside { false }
private

Get/Set the input level set.

Definition at line 199 of file itkLevelSetNeighborhoodExtractor.h.

◆ m_LevelSetValue

template<typename TLevelSet >
double itk::LevelSetNeighborhoodExtractor< TLevelSet >::m_LevelSetValue { 0.0 }
private

Get/Set the input level set.

Definition at line 183 of file itkLevelSetNeighborhoodExtractor.h.

◆ m_NarrowBanding

template<typename TLevelSet >
bool itk::LevelSetNeighborhoodExtractor< TLevelSet >::m_NarrowBanding { false }
private

Get/Set the input level set.

Definition at line 190 of file itkLevelSetNeighborhoodExtractor.h.

◆ m_NarrowBandwidth

template<typename TLevelSet >
double itk::LevelSetNeighborhoodExtractor< TLevelSet >::m_NarrowBandwidth { 12.0 }
private

Get/Set the input level set.

Definition at line 191 of file itkLevelSetNeighborhoodExtractor.h.

◆ m_NodesUsed

template<typename TLevelSet >
std::vector<NodeType> itk::LevelSetNeighborhoodExtractor< TLevelSet >::m_NodesUsed
private

Get/Set the input level set.

Definition at line 197 of file itkLevelSetNeighborhoodExtractor.h.

◆ m_OutsidePoints

template<typename TLevelSet >
NodeContainerPointer itk::LevelSetNeighborhoodExtractor< TLevelSet >::m_OutsidePoints
private

Get/Set the input level set.

Definition at line 186 of file itkLevelSetNeighborhoodExtractor.h.

◆ SetDimension

template<typename TLevelSet >
constexpr unsigned int itk::LevelSetNeighborhoodExtractor< TLevelSet >::SetDimension = LevelSetType::SetDimension
staticconstexpr

SetDimension enumeration.

Definition at line 85 of file itkLevelSetNeighborhoodExtractor.h.


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