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:
{
unsigned char m_Data;
};
A storage type for sparse image data.
ImageBaseType::IndexType IndexType
- 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.
|
const char * | GetNameOfClass () const override |
|
NeighborhoodAccessorFunctorType | GetNeighborhoodAccessor () |
|
const NeighborhoodAccessorFunctorType | GetNeighborhoodAccessor () const |
|
NodeListType * | GetNodeList () |
|
void | Initialize () override |
|
|
NodeType * | AddNode (const IndexType &index) |
|
void | Allocate (bool initializePixels=false) override |
|
void | FillBuffer (const TNode * &value) |
|
const char * | GetNameOfClass () const override |
|
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 |
|
PixelContainer * | GetPixelContainer () |
|
const PixelContainer * | GetPixelContainer () const |
|
virtual void | Graft (const Self *image) |
|
void | Initialize () override |
|
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 |
|
virtual void | Allocate (bool initialize=false) |
|
void | AllocateInitialized () |
|
OffsetValueType | ComputeOffset (const IndexType &ind) const |
|
void | CopyInformation (const DataObject *data) override |
|
virtual const RegionType & | GetBufferedRegion () const |
|
virtual const DirectionType & | GetDirection () const |
|
virtual const DirectionType & | GetInverseDirection () const |
|
virtual const RegionType & | GetLargestPossibleRegion () const |
|
const char * | GetNameOfClass () const override |
|
virtual const PointType & | GetOrigin () const |
|
virtual const RegionType & | GetRequestedRegion () const |
|
virtual const SpacingType & | GetSpacing () const |
|
virtual void | Graft (const Self *image) |
|
void | Initialize () override |
|
bool | IsCongruentImageGeometry (const ImageBase *otherImage, double coordinateTolerance, double directionTolerance) const |
|
bool | IsSameImageGeometryAs (const ImageBase *otherImage, double coordinateTolerance=DefaultImageCoordinateTolerance, double directionTolerance=DefaultImageDirectionTolerance) const |
|
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) |
|
void | SetRequestedRegion (const DataObject *data) override |
|
virtual void | SetRequestedRegion (const RegionType ®ion) |
|
void | SetRequestedRegionToLargestPossibleRegion () override |
|
void | TransformLocalVectorToPhysicalVector (const FixedArray< TCoordRep, VImageDimension > &inputGradient, FixedArray< TCoordRep, VImageDimension > &outputGradient) const |
|
ContinuousIndex< TIndexRep, VImageDimension > | TransformPhysicalPointToContinuousIndex (const Point< TCoordRep, VImageDimension > &point) const |
|
bool | TransformPhysicalPointToContinuousIndex (const Point< TCoordRep, VImageDimension > &point, ContinuousIndex< TIndexRep, VImageDimension > &index) const |
|
bool | TransformPhysicalPointToIndex (const Point< TCoordRep, VImageDimension > &point, IndexType &index) const |
|
void | TransformPhysicalVectorToLocalVector (const FixedArray< TCoordRep, VImageDimension > &inputGradient, FixedArray< TCoordRep, VImageDimension > &outputGradient) const |
|
void | UpdateOutputData () override |
|
void | UpdateOutputInformation () 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 | 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]) |
|
IndexType | TransformPhysicalPointToIndex (const Point< TCoordRep, VImageDimension > &point) const |
|
void | TransformContinuousIndexToPhysicalPoint (const ContinuousIndex< TIndexRep, VImageDimension > &index, Point< TCoordRep, VImageDimension > &point) const |
|
Point< TCoordRep, VImageDimension > | TransformContinuousIndexToPhysicalPoint (const ContinuousIndex< TIndexRep, VImageDimension > &index) const |
|
void | TransformIndexToPhysicalPoint (const IndexType &index, Point< TCoordRep, VImageDimension > &point) const |
|
Point< TCoordRep, VImageDimension > | TransformIndexToPhysicalPoint (const IndexType &index) const |
|
TVector | TransformLocalVectorToPhysicalVector (const TVector &inputGradient) const |
|
TVector | TransformPhysicalVectorToLocalVector (const TVector &inputGradient) const |
|
virtual void | SetNumberOfComponentsPerPixel (unsigned int) |
|
virtual void | CopyInformation (const DataObject *) |
|
virtual void | DataHasBeenGenerated () |
|
void | DisconnectPipeline () |
|
bool | GetDataReleased () const |
|
const char * | GetNameOfClass () const override |
|
virtual const bool & | GetReleaseDataFlag () const |
|
SmartPointer< ProcessObject > | GetSource () const |
|
DataObjectPointerArraySizeType | GetSourceOutputIndex () const |
|
const DataObjectIdentifierType & | GetSourceOutputName () const |
|
virtual ModifiedTimeType | GetUpdateMTime () const |
|
virtual void | Graft (const DataObject *) |
|
virtual void | Initialize () |
|
virtual void | PrepareForNewData () |
|
virtual void | PropagateRequestedRegion () |
|
void | ReleaseData () |
|
virtual void | ReleaseDataFlagOn () |
|
virtual bool | RequestedRegionIsOutsideOfTheBufferedRegion () |
|
virtual void | ResetPipeline () |
|
void | SetReleaseDataFlag (bool flag) |
|
virtual void | SetRequestedRegion (const DataObject *) |
|
virtual void | SetRequestedRegionToLargestPossibleRegion () |
|
bool | ShouldIReleaseData () const |
|
virtual void | Update () |
|
virtual void | UpdateOutputData () |
|
virtual void | UpdateOutputInformation () |
|
void | UpdateSource () const |
|
virtual bool | VerifyRequestedRegion () |
|
void | SetPipelineMTime (ModifiedTimeType time) |
|
virtual const ModifiedTimeType & | GetPipelineMTime () const |
|
virtual void | SetRealTimeStamp (RealTimeStamp _arg) |
|
virtual const RealTimeStamp & | GetRealTimeStamp () const |
|
unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
|
unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
|
LightObject::Pointer | CreateAnother () const override |
|
virtual void | DebugOff () const |
|
virtual void | DebugOn () const |
|
Command * | GetCommand (unsigned long tag) |
|
bool | GetDebug () const |
|
MetaDataDictionary & | GetMetaDataDictionary () |
|
const MetaDataDictionary & | GetMetaDataDictionary () const |
|
virtual ModifiedTimeType | GetMTime () const |
|
const char * | GetNameOfClass () const override |
|
virtual const TimeStamp & | GetTimeStamp () 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 |
|
Pointer | Clone () const |
|
virtual Pointer | CreateAnother () const |
|
virtual void | Delete () |
|
virtual const char * | GetNameOfClass () const |
|
virtual int | GetReferenceCount () const |
|
void | Print (std::ostream &os, Indent indent=0) const |
|
virtual void | Register () const |
|
virtual void | SetReferenceCount (int) |
|
virtual void | UnRegister () const noexcept |
|