18 #ifndef itkSparseImage_h
19 #define itkSparseImage_h
66 template<
typename TNode,
unsigned int VImageDimension = 2 >
84 itkStaticConstMacro(ImageDimension,
unsigned int,
85 Superclass::ImageDimension);
118 m_NodeList->PushFront( m_NodeStore->Borrow() );
119 NodeType *node = m_NodeList->Front();
120 node->m_Index = index;
121 this->SetPixel(index, node);
135 virtual void Initialize() ITK_OVERRIDE;
139 ~SparseImage() ITK_OVERRIDE {}
141 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
153 #ifndef ITK_MANUAL_INSTANTIATION
154 #include "itkSparseImage.hxx"
NodeStoreType::Pointer m_NodeStore
SparseFieldLayer< NodeType > NodeListType
WeakPointer< const Self > ConstWeakPointer
Image< TNode *, VImageDimension > Superclass
const NeighborhoodAccessorFunctorType GetNeighborhoodAccessor() const
NodeListType::Pointer m_NodeList
SmartPointer< Self > Pointer
Implements a weak reference to an object.
A storage type for sparse image data.
Superclass::IndexType IndexType
ObjectStore< NodeType > NodeStoreType
NeighborhoodAccessorFunctorType GetNeighborhoodAccessor()
Provides accessor interfaces to Get pixels and is meant to be used on pointers contained within Neigh...
SmartPointer< const Self > ConstPointer
Superclass::IOPixelType IOPixelType
NodeType * AddNode(const IndexType &index)
NeighborhoodAccessorFunctor< Self > NeighborhoodAccessorFunctorType
Control indentation during Print() invocation.
A very simple linked list that is used to manage nodes in a layer of a sparse field level-set solver...
A specialized memory management object for allocating and destroying contiguous blocks of objects...
Base class for all data objects in ITK.
Templated n-dimensional image class.
NodeListType * GetNodeList()
ImageBaseType::IndexType IndexType