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:
* {
* ImageType::IndexType m_Index;
* unsigned char m_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.
|
virtual ::itk::LightObject::Pointer | CreateAnother () const |
|
virtual const char * | GetNameOfClass () const |
|
NeighborhoodAccessorFunctorType | GetNeighborhoodAccessor () |
|
const
NeighborhoodAccessorFunctorType | GetNeighborhoodAccessor () const |
|
NodeListType * | GetNodeList () |
|
virtual void | Initialize () override |
|
|
NodeType * | AddNode (const IndexType &index) |
|
virtual void | Allocate (bool initializePixels=false) override |
|
virtual ::itk::LightObject::Pointer | CreateAnother () const |
|
void | FillBuffer (const TNode *&value) |
|
NeighborhoodAccessorFunctorType | GetNeighborhoodAccessor () |
|
const
NeighborhoodAccessorFunctorType | GetNeighborhoodAccessor () const |
|
virtual unsigned int | GetNumberOfComponentsPerPixel () const override |
|
const TNode *& | GetPixel (const IndexType &index) const |
|
TNode *& | GetPixel (const IndexType &index) |
|
AccessorType | GetPixelAccessor (void) |
|
const AccessorType | GetPixelAccessor (void) const |
|
PixelContainer * | GetPixelContainer () |
|
const PixelContainer * | GetPixelContainer () const |
|
virtual void | Graft (const Self *data) |
|
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 |
|
OffsetValueType | ComputeOffset (const IndexType &ind) const |
|
virtual void | CopyInformation (const DataObject *data) override |
|
virtual ::itk::LightObject::Pointer | CreateAnother () const |
|
virtual const RegionType & | GetBufferedRegion () const |
|
virtual const DirectionType & | GetDirection () const |
|
virtual const DirectionType & | GetInverseDirection () const |
|
virtual const RegionType & | GetLargestPossibleRegion () const |
|
virtual const PointType & | GetOrigin () const |
|
virtual const RegionType & | GetRequestedRegion () const |
|
virtual const SpacingType & | GetSpacing () const |
|
virtual bool | RequestedRegionIsOutsideOfTheBufferedRegion () override |
|
virtual void | SetBufferedRegion (const RegionType ®ion) |
|
virtual void | SetDirection (const DirectionType &direction) |
|
virtual void | SetLargestPossibleRegion (const RegionType ®ion) |
|
virtual void | SetRegions (const SizeType &size) |
|
virtual void | SetRequestedRegion (const RegionType ®ion) |
|
virtual void | SetRequestedRegion (const DataObject *data) override |
|
virtual void | SetRequestedRegionToLargestPossibleRegion () override |
|
template<typename TCoordRep > |
void | TransformLocalVectorToPhysicalVector (const FixedArray< TCoordRep, VImageDimension > &inputGradient, FixedArray< TCoordRep, VImageDimension > &outputGradient) const |
|
template<typename TCoordRep , typename TIndexRep > |
bool | TransformPhysicalPointToContinuousIndex (const Point< TCoordRep, VImageDimension > &point, ContinuousIndex< TIndexRep, VImageDimension > &index) const |
|
template<typename TCoordRep > |
bool | TransformPhysicalPointToIndex (const Point< TCoordRep, VImageDimension > &point, IndexType &index) const |
|
template<typename TCoordRep > |
void | TransformPhysicalVectorToLocalVector (const FixedArray< TCoordRep, VImageDimension > &inputGradient, FixedArray< TCoordRep, VImageDimension > &outputGradient) const |
|
virtual void | UpdateOutputData () override |
|
virtual void | UpdateOutputInformation () override |
|
virtual bool | VerifyRequestedRegion () override |
|
virtual void | SetOrigin (PointType _arg) |
|
virtual void | SetOrigin (const double origin[VImageDimension]) |
|
virtual void | SetOrigin (const float origin[VImageDimension]) |
|
virtual void | SetRegions (const RegionType ®ion) |
|
const OffsetValueType * | GetOffsetTable () 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]) |
|
template<typename TCoordRep , typename TIndexRep > |
void | TransformContinuousIndexToPhysicalPoint (const ContinuousIndex< TIndexRep, VImageDimension > &index, Point< TCoordRep, VImageDimension > &point) const |
|
template<typename TCoordRep > |
void | TransformIndexToPhysicalPoint (const IndexType &index, Point< TCoordRep, VImageDimension > &point) const |
|
virtual void | SetNumberOfComponentsPerPixel (unsigned int) |
|