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;
};
- 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 |
|
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 |
|
virtual const PointType & | GetOrigin () const |
|
virtual const RegionType & | GetRequestedRegion () const |
|
virtual const SpacingType & | GetSpacing () const |
|
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 |
|
template<typename TCoordinate > |
void | TransformLocalVectorToPhysicalVector (const FixedArray< TCoordinate, VImageDimension > &inputGradient, FixedArray< TCoordinate, VImageDimension > &outputGradient) const |
|
template<typename TIndexRep , typename TCoordinate > |
ContinuousIndex< TIndexRep, VImageDimension > | TransformPhysicalPointToContinuousIndex (const Point< TCoordinate, VImageDimension > &point) const |
|
template<typename TCoordinate , typename TIndexRep > |
bool | TransformPhysicalPointToContinuousIndex (const Point< TCoordinate, VImageDimension > &point, ContinuousIndex< TIndexRep, VImageDimension > &index) const |
|
template<typename TCoordinate > |
bool | TransformPhysicalPointToIndex (const Point< TCoordinate, VImageDimension > &point, IndexType &index) const |
|
template<typename TCoordinate > |
void | TransformPhysicalVectorToLocalVector (const FixedArray< TCoordinate, VImageDimension > &inputGradient, FixedArray< TCoordinate, 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]) |
|
template<typename TCoordinate > |
IndexType | TransformPhysicalPointToIndex (const Point< TCoordinate, VImageDimension > &point) const |
|
template<typename TCoordinate , typename TIndexRep > |
void | TransformContinuousIndexToPhysicalPoint (const ContinuousIndex< TIndexRep, VImageDimension > &index, Point< TCoordinate, VImageDimension > &point) const |
|
template<typename TCoordinate , typename TIndexRep > |
Point< TCoordinate, VImageDimension > | TransformContinuousIndexToPhysicalPoint (const ContinuousIndex< TIndexRep, VImageDimension > &index) const |
|
template<typename TCoordinate > |
void | TransformIndexToPhysicalPoint (const IndexType &index, Point< TCoordinate, VImageDimension > &point) const |
|
template<typename TCoordinate > |
Point< TCoordinate, VImageDimension > | TransformIndexToPhysicalPoint (const IndexType &index) const |
|
template<typename TVector > |
TVector | TransformLocalVectorToPhysicalVector (const TVector &inputGradient) const |
|
template<typename TVector > |
TVector | TransformPhysicalVectorToLocalVector (const TVector &inputGradient) const |
|
virtual void | SetNumberOfComponentsPerPixel (unsigned int) |
|
virtual void | DataHasBeenGenerated () |
|
void | DisconnectPipeline () |
|
bool | GetDataReleased () const |
|
virtual const bool & | GetReleaseDataFlag () const |
|
SmartPointer< ProcessObject > | GetSource () const |
|
DataObjectPointerArraySizeType | GetSourceOutputIndex () const |
|
const DataObjectIdentifierType & | GetSourceOutputName () const |
|
virtual ModifiedTimeType | GetUpdateMTime () const |
|
virtual void | PrepareForNewData () |
|
virtual void | PropagateRequestedRegion () |
|
void | ReleaseData () |
|
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 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 |
|
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 void | Delete () |
|
virtual int | GetReferenceCount () const |
|
void | Print (std::ostream &os, Indent indent=0) const |
|