template<class 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 (void) const |
|
virtual const char * | GetNameOfClass () const |
|
NeighborhoodAccessorFunctorType | GetNeighborhoodAccessor () |
|
const
NeighborhoodAccessorFunctorType | GetNeighborhoodAccessor () const |
|
NodeListType * | GetNodeList () |
|
virtual void | Initialize () |
|
|
NodeType * | AddNode (const IndexType &index) |
|
void | Allocate () |
|
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
|
void | FillBuffer (const TNode *&value) |
|
NeighborhoodAccessorFunctorType | GetNeighborhoodAccessor () |
|
const
NeighborhoodAccessorFunctorType | GetNeighborhoodAccessor () const |
|
virtual unsigned int | GetNumberOfComponentsPerPixel () const |
|
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 DataObject *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) |
|
virtual const RegionType & | GetBufferedRegion () const |
|
virtual const DirectionType & | GetDirection () |
|
virtual const DirectionType & | GetInverseDirection () |
|
virtual const RegionType & | GetLargestPossibleRegion () const |
|
virtual const PointType & | GetOrigin () |
|
virtual const RegionType & | GetRequestedRegion () const |
|
virtual const SpacingType & | GetSpacing () |
|
virtual bool | RequestedRegionIsOutsideOfTheBufferedRegion () |
|
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) |
|
virtual void | SetRequestedRegionToLargestPossibleRegion () |
|
template<class TCoordRep > |
void | TransformLocalVectorToPhysicalVector (const FixedArray< TCoordRep, VImageDimension > &inputGradient, FixedArray< TCoordRep, VImageDimension > &outputGradient) const |
|
template<class TCoordRep > |
bool | TransformPhysicalPointToContinuousIndex (const Point< TCoordRep, VImageDimension > &point, ContinuousIndex< TCoordRep, VImageDimension > &index) const |
|
template<class TCoordRep > |
bool | TransformPhysicalPointToIndex (const Point< TCoordRep, VImageDimension > &point, IndexType &index) const |
|
template<class TCoordRep > |
void | TransformPhysicalVectorToLocalVector (const FixedArray< TCoordRep, VImageDimension > &inputGradient, FixedArray< TCoordRep, VImageDimension > &outputGradient) const |
|
virtual void | UpdateOutputData () |
|
virtual void | UpdateOutputInformation () |
|
virtual bool | VerifyRequestedRegion () |
|
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<class TCoordRep > |
void | TransformContinuousIndexToPhysicalPoint (const ContinuousIndex< TCoordRep, VImageDimension > &index, Point< TCoordRep, VImageDimension > &point) const |
|
template<class TCoordRep > |
void | TransformIndexToPhysicalPoint (const IndexType &index, Point< TCoordRep, VImageDimension > &point) const |
|
virtual void | SetNumberOfComponentsPerPixel (unsigned int) |
|
virtual void | DataHasBeenGenerated () |
|
void | DisconnectPipeline () |
|
bool | GetDataReleased () const |
|
virtual const bool & | GetReleaseDataFlag () |
|
SmartPointerForwardReference
< ProcessObject > | GetSource () const |
|
DataObjectPointerArraySizeType | GetSourceOutputIndex () const |
|
const DataObjectIdentifierType & | GetSourceOutputName () 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 | SetPipelineMTime (ModifiedTimeType time) |
|
virtual const ModifiedTimeType & | GetPipelineMTime () |
|
virtual void | SetRealTimeStamp (RealTimeStamp _arg) |
|
virtual const RealTimeStamp & | GetRealTimeStamp () |
|
unsigned long | AddObserver (const EventObject &event, Command *) |
|
unsigned long | AddObserver (const EventObject &event, Command *) const |
|
virtual void | DebugOff () const |
|
virtual void | DebugOn () const |
|
Command * | GetCommand (unsigned long tag) |
|
bool | GetDebug () const |
|
MetaDataDictionary & | GetMetaDataDictionary (void) |
|
const MetaDataDictionary & | GetMetaDataDictionary (void) const |
|
virtual ModifiedTimeType | GetMTime () const |
|
virtual const TimeStamp & | GetTimeStamp () const |
|
bool | HasObserver (const EventObject &event) const |
|
void | InvokeEvent (const EventObject &) |
|
void | InvokeEvent (const EventObject &) const |
|
virtual void | Modified () const |
|
virtual void | Register () const |
|
void | RemoveAllObservers () |
|
void | RemoveObserver (unsigned long tag) |
|
void | SetDebug (bool debugFlag) const |
|
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
|
virtual void | SetReferenceCount (int) |
|
virtual void | UnRegister () const |
|
virtual void | Delete () |
|
virtual int | GetReferenceCount () const |
|
| itkCloneMacro (Self) |
|
void | Print (std::ostream &os, Indent indent=0) const |
|