ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itk::SparseImage< TNode, VImageDimension > Class Template Reference

#include <itkSparseImage.h>

Detailed Description

template<typename TNode, unsigned int VImageDimension = 2>
class itk::SparseImage< TNode, VImageDimension >

A storage type for sparse image data.

This class is derived from the Image class. It uses the base class image data for storing pointers to variables of type TNode. The node type must have a member variable m_Index. The node data is stored using the SparseFieldLayer and ObjectStore classes to allow sequential list access to the nodes. This functionality is used in filter classes that process the SparseImage class such as FiniteDifferenceSparseImageFilter. The node type must also have members NodeType* Next and NodeType* Previous. A minimal node class which could be used to create the sparse equivalent of an itk::Image<unsigned char, 2> is shown below:
struct NodeType
{
NodeType* Next;
NodeType* Previous;
ImageType::IndexType m_Index;
unsigned char m_Data;
};
using SparseImageType = itk::SparseImage<NodeType, 2>;
A storage type for sparse image data.
This class provides the method AddNode which allocates a node variable, associates it with the image pixel index (sets m_Index in the node variable) and returns the pointer to the node variable. It is suggested that the user call the FillBuffer method to initialize the image to null pointers before any calls to AddNode. This would allow the user later to distinguish between valid and non-valid pixels.

Definition at line 67 of file itkSparseImage.h.

+ Inheritance diagram for itk::SparseImage< TNode, VImageDimension >:
+ Collaboration diagram for itk::SparseImage< TNode, VImageDimension >:

Public Types

using ConstPointer = SmartPointer<const Self>
 
using ConstWeakPointer = WeakPointer<const Self>
 
typedef Index< VImageDimension > IndexType
 
using NeighborhoodAccessorFunctorType = NeighborhoodAccessorFunctor<Self>
 
using NodeListType = SparseFieldLayer<NodeType>
 
using NodeStoreType = ObjectStore<NodeType>
 
using NodeType = TNode
 
using Pointer = SmartPointer<Self>
 
using Self = SparseImage
 
using Superclass = Image<TNode *, VImageDimension>
 
- Public Types inherited from itk::Image< TNode *, 2 >
using AccessorFunctorType
 
using AccessorType
 
using ConstPointer
 
using ConstWeakPointer
 
typedef Matrix< SpacePrecisionType, VImageDimension, VImageDimension > DirectionType
 
using DirectionType
 
typedef unsigned int ImageDimensionType
 
using ImageDimensionType
 
typedef Index< VImageDimension > IndexType
 
using IndexType
 
typedef typename IndexType::IndexValueType IndexValueType
 
using IndexValueType
 
using InternalPixelType
 
using IOPixelType
 
using NeighborhoodAccessorFunctorType
 
typedef Offset< VImageDimension > OffsetType
 
using OffsetType
 
typedef typename OffsetType::OffsetValueType OffsetValueType
 
using OffsetValueType
 
using PixelContainer
 
using PixelContainerConstPointer
 
using PixelContainerPointer
 
using PixelType
 
using Pointer
 
typedef Point< PointValueType, VImageDimension > PointType
 
using PointType
 
using RebindImageType
 
typedef ImageRegion< VImageDimension > RegionType
 
using RegionType
 
using Self
 
typedef Size< VImageDimension > SizeType
 
using SizeType
 
typedef typename SizeType::SizeValueType SizeValueType
 
using SizeValueType
 
typedef Vector< SpacingValueType, VImageDimension > SpacingType
 
using SpacingType
 
typedef SpacePrecisionType SpacingValueType
 
using SpacingValueType
 
using Superclass
 
using ValueType
 
- Public Types inherited from itk::ImageBase< VImageDimension >
using ConstPointer
 
using ConstPointer
 
using DirectionType
 
using DirectionType
 
using ImageDimensionType
 
using ImageDimensionType
 
using IndexType
 
using IndexType
 
using IndexValueType
 
using IndexValueType
 
using OffsetType
 
using OffsetType
 
using OffsetValueType
 
using OffsetValueType
 
using Pointer
 
using Pointer
 
using PointType
 
using PointType
 
using PointValueType
 
using PointValueType
 
using RegionType
 
using RegionType
 
using Self
 
using Self
 
using SizeType
 
using SizeType
 
using SizeValueType
 
using SizeValueType
 
using SpacingType
 
using SpacingType
 
using SpacingValueType
 
using SpacingValueType
 
using Superclass
 
using Superclass
 
- 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

virtual::itk::LightObject::Pointer CreateAnother () const
 
const char * GetNameOfClass () const override
 
NeighborhoodAccessorFunctorType GetNeighborhoodAccessor ()
 
const NeighborhoodAccessorFunctorType GetNeighborhoodAccessor () const
 
NodeListTypeGetNodeList ()
 
void Initialize () override
 
NodeTypeAddNode (const IndexType &index)
 
- Public Member Functions inherited from itk::Image< TNode *, 2 >
void Allocate (bool initializePixels=false) override
 
void FillBuffer (const TNode *&value)
 
NeighborhoodAccessorFunctorType GetNeighborhoodAccessor ()
 
const NeighborhoodAccessorFunctorType GetNeighborhoodAccessor () const
 
unsigned int GetNumberOfComponentsPerPixel () const override
 
TNode *& GetPixel (const IndexType &index)
 
const TNode *& GetPixel (const IndexType &index) const
 
AccessorType GetPixelAccessor ()
 
const AccessorType GetPixelAccessor () const
 
PixelContainerGetPixelContainer ()
 
const PixelContainerGetPixelContainer () const
 
virtual void Graft (const Self *image)
 
TNode *& operator[] (const IndexType &index)
 
const TNode *& operator[] (const IndexType &index) const
 
void SetPixel (const IndexType &index, const TNode *&value)
 
void SetPixelContainer (PixelContainer *container)
 
virtual TNode ** GetBufferPointer ()
 
virtual const TNode ** GetBufferPointer () const
 
- Public Member Functions inherited from itk::ImageBase< VImageDimension >
void AllocateInitialized ()
 
void AllocateInitialized ()
 
OffsetValueType ComputeOffset (const IndexType &ind) const
 
OffsetValueType ComputeOffset (const IndexType &ind) const
 
void CopyInformation (const DataObject *data) override
 
void CopyInformation (const DataObject *data) override
 
virtual const RegionTypeGetBufferedRegion () const
 
virtual const RegionTypeGetBufferedRegion () const
 
virtual const DirectionTypeGetDirection () const
 
virtual const DirectionTypeGetDirection () const
 
virtual const DirectionTypeGetInverseDirection () const
 
virtual const DirectionTypeGetInverseDirection () const
 
virtual const RegionTypeGetLargestPossibleRegion () const
 
virtual const RegionTypeGetLargestPossibleRegion () const
 
virtual const PointTypeGetOrigin () const
 
virtual const PointTypeGetOrigin () const
 
virtual const RegionTypeGetRequestedRegion () const
 
virtual const RegionTypeGetRequestedRegion () const
 
virtual const SpacingTypeGetSpacing () const
 
virtual const SpacingTypeGetSpacing () const
 
bool IsCongruentImageGeometry (const ImageBase *otherImage, double coordinateTolerance, double directionTolerance) const
 
bool IsCongruentImageGeometry (const ImageBase *otherImage, double coordinateTolerance, double directionTolerance) const
 
bool IsSameImageGeometryAs (const ImageBase *otherImage, double coordinateTolerance=DefaultImageCoordinateTolerance, double directionTolerance=DefaultImageDirectionTolerance) const
 
bool IsSameImageGeometryAs (const ImageBase *otherImage, double coordinateTolerance=DefaultImageCoordinateTolerance, double directionTolerance=DefaultImageDirectionTolerance) const
 
bool RequestedRegionIsOutsideOfTheBufferedRegion () override
 
bool RequestedRegionIsOutsideOfTheBufferedRegion () override
 
virtual void SetBufferedRegion (const RegionType &region)
 
virtual void SetBufferedRegion (const RegionType &region)
 
virtual void SetDirection (const DirectionType &direction)
 
virtual void SetDirection (const DirectionType &direction)
 
virtual void SetLargestPossibleRegion (const RegionType &region)
 
virtual void SetLargestPossibleRegion (const RegionType &region)
 
virtual void SetRegions (const SizeType &size)
 
virtual void SetRegions (const SizeType &size)
 
void SetRequestedRegion (const DataObject *data) override
 
void SetRequestedRegion (const DataObject *data) override
 
virtual void SetRequestedRegion (const RegionType &region)
 
virtual void SetRequestedRegion (const RegionType &region)
 
void SetRequestedRegionToLargestPossibleRegion () override
 
void SetRequestedRegionToLargestPossibleRegion () override
 
void TransformLocalVectorToPhysicalVector (const FixedArray< TCoordinate, VImageDimension > &inputGradient, FixedArray< TCoordinate, VImageDimension > &outputGradient) const
 
void TransformLocalVectorToPhysicalVector (const FixedArray< TCoordinate, VImageDimension > &inputGradient, FixedArray< TCoordinate, VImageDimension > &outputGradient) const
 
ContinuousIndex< TIndexRep, VImageDimension > TransformPhysicalPointToContinuousIndex (const Point< TCoordinate, VImageDimension > &point) const
 
ContinuousIndex< TIndexRep, VImageDimension > TransformPhysicalPointToContinuousIndex (const Point< TCoordinate, VImageDimension > &point) const
 
bool TransformPhysicalPointToContinuousIndex (const Point< TCoordinate, VImageDimension > &point, ContinuousIndex< TIndexRep, VImageDimension > &index) const
 
bool TransformPhysicalPointToContinuousIndex (const Point< TCoordinate, VImageDimension > &point, ContinuousIndex< TIndexRep, VImageDimension > &index) const
 
bool TransformPhysicalPointToIndex (const Point< TCoordinate, VImageDimension > &point, IndexType &index) const
 
bool TransformPhysicalPointToIndex (const Point< TCoordinate, VImageDimension > &point, IndexType &index) const
 
void TransformPhysicalVectorToLocalVector (const FixedArray< TCoordinate, VImageDimension > &inputGradient, FixedArray< TCoordinate, VImageDimension > &outputGradient) const
 
void TransformPhysicalVectorToLocalVector (const FixedArray< TCoordinate, VImageDimension > &inputGradient, FixedArray< TCoordinate, VImageDimension > &outputGradient) const
 
void UpdateOutputData () override
 
void UpdateOutputData () override
 
void UpdateOutputInformation () override
 
void UpdateOutputInformation () override
 
bool VerifyRequestedRegion () override
 
bool VerifyRequestedRegion () override
 
virtual void SetOrigin (PointType _arg)
 
virtual void SetOrigin (const double origin[VImageDimension])
 
virtual void SetOrigin (const float origin[VImageDimension])
 
virtual void SetOrigin (PointType _arg)
 
virtual void SetOrigin (const double origin[VImageDimension])
 
virtual void SetOrigin (const float origin[VImageDimension])
 
virtual void SetRegions (const RegionType &region)
 
virtual void SetRegions (const RegionType &region)
 
const OffsetValueTypeGetOffsetTable () const
 
const OffsetValueTypeGetOffsetTable () const
 
IndexType ComputeIndex (OffsetValueType offset) const
 
IndexType ComputeIndex (OffsetValueType offset) const
 
virtual void SetSpacing (const SpacingType &spacing)
 
virtual void SetSpacing (const double spacing[VImageDimension])
 
virtual void SetSpacing (const float spacing[VImageDimension])
 
virtual void SetSpacing (const SpacingType &spacing)
 
virtual void SetSpacing (const double spacing[VImageDimension])
 
virtual void SetSpacing (const float spacing[VImageDimension])
 
IndexType TransformPhysicalPointToIndex (const Point< TCoordinate, VImageDimension > &point) const
 
IndexType TransformPhysicalPointToIndex (const Point< TCoordinate, VImageDimension > &point) const
 
void TransformContinuousIndexToPhysicalPoint (const ContinuousIndex< TIndexRep, VImageDimension > &index, Point< TCoordinate, VImageDimension > &point) const
 
void TransformContinuousIndexToPhysicalPoint (const ContinuousIndex< TIndexRep, VImageDimension > &index, Point< TCoordinate, VImageDimension > &point) const
 
Point< TCoordinate, VImageDimension > TransformContinuousIndexToPhysicalPoint (const ContinuousIndex< TIndexRep, VImageDimension > &index) const
 
Point< TCoordinate, VImageDimension > TransformContinuousIndexToPhysicalPoint (const ContinuousIndex< TIndexRep, VImageDimension > &index) const
 
void TransformIndexToPhysicalPoint (const IndexType &index, Point< TCoordinate, VImageDimension > &point) const
 
void TransformIndexToPhysicalPoint (const IndexType &index, Point< TCoordinate, VImageDimension > &point) const
 
Point< TCoordinate, VImageDimension > TransformIndexToPhysicalPoint (const IndexType &index) const
 
Point< TCoordinate, VImageDimension > TransformIndexToPhysicalPoint (const IndexType &index) const
 
TVector TransformLocalVectorToPhysicalVector (const TVector &inputGradient) const
 
TVector TransformLocalVectorToPhysicalVector (const TVector &inputGradient) const
 
TVector TransformPhysicalVectorToLocalVector (const TVector &inputGradient) const
 
TVector TransformPhysicalVectorToLocalVector (const TVector &inputGradient) const
 
virtual void SetNumberOfComponentsPerPixel (unsigned int)
 
virtual void SetNumberOfComponentsPerPixel (unsigned int)
 
- 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 ReleaseDataFlagOff ()
 
virtual void ReleaseDataFlagOn ()
 
virtual void ResetPipeline ()
 
void SetReleaseDataFlag (bool flag)
 
bool ShouldIReleaseData () const
 
virtual void Update ()
 
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 *cmd) const
 
unsigned long AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) 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) 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 void Delete ()
 
virtual int GetReferenceCount () const
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::Image< TNode *, 2 >
static Pointer New ()
 
- Static Public Member Functions inherited from itk::ImageBase< VImageDimension >
static constexpr unsigned int GetImageDimension ()
 
static constexpr unsigned int GetImageDimension ()
 
static Pointer New ()
 
static Pointer New ()
 
- 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 ImageDimension = Superclass::ImageDimension
 
- Static Public Attributes inherited from itk::ImageBase< VImageDimension >
static constexpr ImageDimensionType ImageDimension
 
static constexpr ImageDimensionType ImageDimension
 

Protected Member Functions

void PrintSelf (std::ostream &os, Indent indent) const override
 
 SparseImage ()=default
 
 ~SparseImage () override=default
 
- Protected Member Functions inherited from itk::Image< TNode *, 2 >
void ComputeIndexToPhysicalPointMatrices () override
 
void Graft (const DataObject *data) override
 
virtual void Graft (const Self *image)
 
virtual void Graft (const Self *image)
 
 Image ()=default
 
 ~Image () override=default
 
- Protected Member Functions inherited from itk::ImageBase< VImageDimension >
void ComputeOffsetTable ()
 
void ComputeOffsetTable ()
 
void Graft (const DataObject *data) override
 
void Graft (const DataObject *data) override
 
 ImageBase ()=default
 
 ImageBase ()=default
 
virtual void InitializeBufferedRegion ()
 
virtual void InitializeBufferedRegion ()
 
 ~ImageBase () override=default
 
 ~ImageBase () override=default
 
OffsetValueType FastComputeOffset (const IndexType &ind) const
 
OffsetValueType FastComputeOffset (const IndexType &ind) const
 
IndexType FastComputeIndex (OffsetValueType offset) const
 
IndexType FastComputeIndex (OffsetValueType offset) const
 
- Protected Member Functions inherited from itk::DataObject
 DataObject ()
 
virtual void PropagateResetPipeline ()
 
 ~DataObject () override
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
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 ()
 

Private Attributes

NodeListType::Pointer m_NodeList { NodeListType::New() }
 
NodeStoreType::Pointer m_NodeStore { NodeStoreType::New() }
 

Additional Inherited Members

- Protected Attributes inherited from itk::ImageBase< VImageDimension >
SpacingType m_Spacing
 
PointType m_Origin
 
DirectionType m_Direction
 
DirectionType m_InverseDirection
 
SpacingType m_Spacing
 
PointType m_Origin
 
DirectionType m_Direction
 
DirectionType m_InverseDirection
 
DirectionType m_IndexToPhysicalPoint
 
DirectionType m_PhysicalPointToIndex
 
DirectionType m_IndexToPhysicalPoint
 
DirectionType m_PhysicalPointToIndex
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Member Typedef Documentation

◆ ConstPointer

template<typename TNode, unsigned int VImageDimension = 2>
using itk::SparseImage< TNode, VImageDimension >::ConstPointer = SmartPointer<const Self>

Definition at line 76 of file itkSparseImage.h.

◆ ConstWeakPointer

template<typename TNode, unsigned int VImageDimension = 2>
using itk::SparseImage< TNode, VImageDimension >::ConstWeakPointer = WeakPointer<const Self>

Definition at line 77 of file itkSparseImage.h.

◆ IndexType

template<typename TNode, unsigned int VImageDimension = 2>

Index type alias support. An index is used to access pixel values.

◆ NeighborhoodAccessorFunctorType

template<typename TNode, unsigned int VImageDimension = 2>
using itk::SparseImage< TNode, VImageDimension >::NeighborhoodAccessorFunctorType = NeighborhoodAccessorFunctor<Self>

Typedef for the functor used to access a neighborhood of pixel pointers.

Definition at line 96 of file itkSparseImage.h.

◆ NodeListType

template<typename TNode, unsigned int VImageDimension = 2>
using itk::SparseImage< TNode, VImageDimension >::NodeListType = SparseFieldLayer<NodeType>

The list types for storing the active pixels.

Definition at line 101 of file itkSparseImage.h.

◆ NodeStoreType

template<typename TNode, unsigned int VImageDimension = 2>
using itk::SparseImage< TNode, VImageDimension >::NodeStoreType = ObjectStore<NodeType>

Definition at line 102 of file itkSparseImage.h.

◆ NodeType

template<typename TNode, unsigned int VImageDimension = 2>
using itk::SparseImage< TNode, VImageDimension >::NodeType = TNode

The actual sparse pixel type.

Definition at line 89 of file itkSparseImage.h.

◆ Pointer

template<typename TNode, unsigned int VImageDimension = 2>
using itk::SparseImage< TNode, VImageDimension >::Pointer = SmartPointer<Self>

Definition at line 75 of file itkSparseImage.h.

◆ Self

template<typename TNode, unsigned int VImageDimension = 2>
using itk::SparseImage< TNode, VImageDimension >::Self = SparseImage

Standard type alias.

Definition at line 73 of file itkSparseImage.h.

◆ Superclass

template<typename TNode, unsigned int VImageDimension = 2>
using itk::SparseImage< TNode, VImageDimension >::Superclass = Image<TNode *, VImageDimension>

Definition at line 74 of file itkSparseImage.h.

Constructor & Destructor Documentation

◆ SparseImage()

template<typename TNode, unsigned int VImageDimension = 2>
itk::SparseImage< TNode, VImageDimension >::SparseImage ( )
protecteddefault

◆ ~SparseImage()

template<typename TNode, unsigned int VImageDimension = 2>
itk::SparseImage< TNode, VImageDimension >::~SparseImage ( )
overrideprotecteddefault

Member Function Documentation

◆ AddNode()

template<typename TNode, unsigned int VImageDimension = 2>
NodeType * itk::SparseImage< TNode, VImageDimension >::AddNode ( const IndexType & index)
inline

This function should be used to allocate memory for a variable at the desired pixel location.

Definition at line 123 of file itkSparseImage.h.

◆ CreateAnother()

template<typename TNode, unsigned int VImageDimension = 2>
virtual::itk::LightObject::Pointer itk::SparseImage< TNode, VImageDimension >::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::Image< TNode *, 2 >.

◆ GetNameOfClass()

template<typename TNode, unsigned int VImageDimension = 2>
const char * itk::SparseImage< TNode, VImageDimension >::GetNameOfClass ( ) const
overridevirtual

◆ GetNeighborhoodAccessor() [1/2]

template<typename TNode, unsigned int VImageDimension = 2>
NeighborhoodAccessorFunctorType itk::SparseImage< TNode, VImageDimension >::GetNeighborhoodAccessor ( )
inline

Return the NeighborhoodAccessor functor. This method is called by the neighborhood iterators.

Definition at line 107 of file itkSparseImage.h.

◆ GetNeighborhoodAccessor() [2/2]

template<typename TNode, unsigned int VImageDimension = 2>
const NeighborhoodAccessorFunctorType itk::SparseImage< TNode, VImageDimension >::GetNeighborhoodAccessor ( ) const
inline

Return the NeighborhoodAccessor functor. This method is called by the neighborhood iterators.

Definition at line 115 of file itkSparseImage.h.

◆ GetNodeList()

template<typename TNode, unsigned int VImageDimension = 2>
NodeListType * itk::SparseImage< TNode, VImageDimension >::GetNodeList ( )
inline

This function returns the allocated node list which can be used to iterate through the valid nodes.

Definition at line 136 of file itkSparseImage.h.

◆ Initialize()

template<typename TNode, unsigned int VImageDimension = 2>
void itk::SparseImage< TNode, VImageDimension >::Initialize ( )
overridevirtual

This function initializes the m_NodeList and m_NodeStore variables, and calls the superclass Initialize method.

Reimplemented from itk::Image< TNode *, 2 >.

◆ New()

template<typename TNode, unsigned int VImageDimension = 2>
static Pointer itk::SparseImage< TNode, VImageDimension >::New ( )
static

Method for creation through the object factory.

◆ PrintSelf()

template<typename TNode, unsigned int VImageDimension = 2>
void itk::SparseImage< TNode, VImageDimension >::PrintSelf ( std::ostream & os,
Indent indent ) const
overrideprotectedvirtual

Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from itk::Image< TNode *, 2 >.

Member Data Documentation

◆ ImageDimension

template<typename TNode, unsigned int VImageDimension = 2>
unsigned int itk::SparseImage< TNode, VImageDimension >::ImageDimension = Superclass::ImageDimension
staticconstexpr

Dimension of the image.

Definition at line 86 of file itkSparseImage.h.

◆ m_NodeList

template<typename TNode, unsigned int VImageDimension = 2>
NodeListType::Pointer itk::SparseImage< TNode, VImageDimension >::m_NodeList { NodeListType::New() }
private

The variables for storing the node variables.

Definition at line 155 of file itkSparseImage.h.

◆ m_NodeStore

template<typename TNode, unsigned int VImageDimension = 2>
NodeStoreType::Pointer itk::SparseImage< TNode, VImageDimension >::m_NodeStore { NodeStoreType::New() }
private

Definition at line 157 of file itkSparseImage.h.


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