DMRITool
v0.1.1-139-g860d86b4
Diffusion MRI Tool
|
#include <itkSpatiallyDenseSparseVectorImage.h>
An n-dimensional vector image with a sparse memory model.
The elements for this image are stored in a hash table, catering to very large images with a small number of relevant pixels. The image is spatially dense, allowing fast random access and thread-safe operations.
Definition at line 40 of file itkSpatiallyDenseSparseVectorImage.h.
Public Types | |
typedef SpatiallyDenseSparseVectorImagePixelAccessorFunctor< Self > | AccessorFunctorType |
typedef SpatiallyDenseSparseVectorImagePixelAccessor< ValueType, KeyType > | AccessorType |
typedef SmartPointer< const Self > | ConstPointer |
typedef WeakPointer< const Self > | ConstWeakPointer |
typedef Superclass::DirectionType | DirectionType |
typedef Superclass::IndexType | IndexType |
typedef SparseVector< TValueType, TKeyType > | InternalPixelType |
typedef InternalPixelType | IOPixelType |
typedef TKeyType | KeyType |
typedef SpatiallyDenseSparseVectorImageNeighborhoodAccessorFunctor< Self > | NeighborhoodAccessorFunctorType |
typedef Superclass::OffsetType | OffsetType |
typedef Superclass::OffsetValueType | OffsetValueType |
typedef ImportImageContainer< SizeValueType, InternalPixelType > | PixelContainer |
typedef PixelContainer::ConstPointer | PixelContainerConstPointer |
typedef PixelContainer::Pointer | PixelContainerPointer |
typedef PixelMapType::const_iterator | PixelMapConstIterator |
typedef PixelMapType::iterator | PixelMapIterator |
typedef InternalPixelType::InternalDataType | PixelMapType |
typedef VariableLengthVector< TValueType > | PixelType |
typedef SmartPointer< Self > | Pointer |
typedef Superclass::PointType | PointType |
typedef Superclass::RegionType | RegionType |
typedef SpatiallyDenseSparseVectorImage | Self |
typedef Superclass::SizeType | SizeType |
typedef Superclass::SpacingType | SpacingType |
typedef ImageBase< VImageDimension > | Superclass |
typedef TValueType | ValueType |
typedef unsigned long | VectorLengthType |
Static Public Member Functions | |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | ImageDimension = VImageDimension |
Protected Member Functions | |
void | PrintSelf (std::ostream &os, Indent indent) const ITK_OVERRIDE |
SpatiallyDenseSparseVectorImage () | |
virtual | ~SpatiallyDenseSparseVectorImage () |
Private Member Functions | |
void | operator= (const Self &) |
SpatiallyDenseSparseVectorImage (const Self &) | |
Private Attributes | |
PixelContainerPointer | m_Container |
PixelType | m_FillBufferValue |
VectorLengthType | m_VectorLength |
typedef SpatiallyDenseSparseVectorImagePixelAccessorFunctor< Self > itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::AccessorFunctorType |
Tyepdef for the functor used to access pixels.
Definition at line 121 of file itkSpatiallyDenseSparseVectorImage.h.
typedef SpatiallyDenseSparseVectorImagePixelAccessor< ValueType, KeyType > itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::AccessorType |
Accessor type that convert data between internal and external representations.
Definition at line 117 of file itkSpatiallyDenseSparseVectorImage.h.
typedef SmartPointer<const Self> itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::ConstPointer |
Definition at line 48 of file itkSpatiallyDenseSparseVectorImage.h.
typedef WeakPointer<const Self> itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::ConstWeakPointer |
Definition at line 49 of file itkSpatiallyDenseSparseVectorImage.h.
typedef Superclass::DirectionType itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::DirectionType |
Direction typedef support. A matrix of direction cosines.
Definition at line 96 of file itkSpatiallyDenseSparseVectorImage.h.
typedef Superclass::IndexType itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::IndexType |
Index typedef support. An index is used to access pixel values.
Definition at line 87 of file itkSpatiallyDenseSparseVectorImage.h.
typedef SparseVector<TValueType, TKeyType> itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::InternalPixelType |
Definition at line 63 of file itkSpatiallyDenseSparseVectorImage.h.
typedef InternalPixelType itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::IOPixelType |
Typedef alias for PixelType
Definition at line 66 of file itkSpatiallyDenseSparseVectorImage.h.
typedef TKeyType itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::KeyType |
Definition at line 62 of file itkSpatiallyDenseSparseVectorImage.h.
typedef SpatiallyDenseSparseVectorImageNeighborhoodAccessorFunctor< Self > itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::NeighborhoodAccessorFunctorType |
Tyepdef for the functor used to access a neighborhood of pixel pointers.
Definition at line 125 of file itkSpatiallyDenseSparseVectorImage.h.
typedef Superclass::OffsetType itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::OffsetType |
Offset typedef support. An offset is used to access pixel values.
Definition at line 90 of file itkSpatiallyDenseSparseVectorImage.h.
typedef Superclass::OffsetValueType itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::OffsetValueType |
Offset typedef (relative position between indices)
Definition at line 110 of file itkSpatiallyDenseSparseVectorImage.h.
typedef ImportImageContainer< SizeValueType, InternalPixelType > itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::PixelContainer |
Container used to store pixels in the image.
Definition at line 75 of file itkSpatiallyDenseSparseVectorImage.h.
typedef PixelContainer::ConstPointer itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::PixelContainerConstPointer |
Definition at line 79 of file itkSpatiallyDenseSparseVectorImage.h.
typedef PixelContainer::Pointer itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::PixelContainerPointer |
A pointer to the pixel container.
Definition at line 78 of file itkSpatiallyDenseSparseVectorImage.h.
typedef PixelMapType::const_iterator itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::PixelMapConstIterator |
Definition at line 84 of file itkSpatiallyDenseSparseVectorImage.h.
typedef PixelMapType::iterator itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::PixelMapIterator |
Definition at line 83 of file itkSpatiallyDenseSparseVectorImage.h.
typedef InternalPixelType::InternalDataType itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::PixelMapType |
Map used to store data.
Definition at line 82 of file itkSpatiallyDenseSparseVectorImage.h.
typedef VariableLengthVector< TValueType > itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::PixelType |
Pixel typedef support.
Definition at line 55 of file itkSpatiallyDenseSparseVectorImage.h.
typedef SmartPointer<Self> itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::Pointer |
Definition at line 47 of file itkSpatiallyDenseSparseVectorImage.h.
typedef Superclass::PointType itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::PointType |
Origin typedef support. The origin is the geometric coordinates of the index (0,0).
Definition at line 107 of file itkSpatiallyDenseSparseVectorImage.h.
typedef Superclass::RegionType itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::RegionType |
Region typedef support. A region is used to specify a subset of an image.
Definition at line 99 of file itkSpatiallyDenseSparseVectorImage.h.
typedef SpatiallyDenseSparseVectorImage itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::Self |
Standard class typedefs
Definition at line 45 of file itkSpatiallyDenseSparseVectorImage.h.
typedef Superclass::SizeType itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::SizeType |
Size typedef support. A size is used to define region bounds.
Definition at line 93 of file itkSpatiallyDenseSparseVectorImage.h.
typedef Superclass::SpacingType itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::SpacingType |
Spacing typedef support. Spacing holds the size of a pixel. The spacing is the geometric distance between image samples.
Definition at line 103 of file itkSpatiallyDenseSparseVectorImage.h.
typedef ImageBase< VImageDimension > itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::Superclass |
Definition at line 46 of file itkSpatiallyDenseSparseVectorImage.h.
typedef TValueType itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::ValueType |
This is the actual pixel type contained in the buffer.
Definition at line 61 of file itkSpatiallyDenseSparseVectorImage.h.
typedef unsigned long itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::VectorLengthType |
Definition at line 112 of file itkSpatiallyDenseSparseVectorImage.h.
|
protected |
Definition at line 25 of file itkSpatiallyDenseSparseVectorImage.hxx.
References itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::Allocate().
|
inlineprotectedvirtual |
Definition at line 376 of file itkSpatiallyDenseSparseVectorImage.h.
|
private |
void itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::Allocate | ( | bool | UseDefaultConstructor = false | ) |
Allocate the image memory. The size of the image must already be set, e.g. by calling SetRegions().
Definition at line 34 of file itkSpatiallyDenseSparseVectorImage.hxx.
References utl::ComputeOffsetTable(), and itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::Initialize().
Referenced by itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::SpatiallyDenseSparseVectorImage().
|
inline |
Definition at line 170 of file itkSpatiallyDenseSparseVectorImage.h.
virtual::itk::LightObject::Pointer itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::CreateAnother | ( | void | ) | const |
void itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::FillBuffer | ( | const PixelType & | value | ) |
Fill the image buffer with a value. Be sure to call Allocate() first.
Definition at line 65 of file itkSpatiallyDenseSparseVectorImage.hxx.
References itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::SetPixelContainer().
Referenced by itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::Initialize().
|
inlinevirtual |
Buffered region has no meaning for sparse images. This method always returns the largest possible region.
Definition at line 163 of file itkSpatiallyDenseSparseVectorImage.h.
References ITK_OVERRIDE.
|
inline |
Sparse images do not have buffer. This method always returns 0
Definition at line 315 of file itkSpatiallyDenseSparseVectorImage.h.
|
inline |
Definition at line 319 of file itkSpatiallyDenseSparseVectorImage.h.
References ITK_OVERRIDE.
|
inline |
Get an internal pixel (read only version).
For efficiency, this function does not check that the image has actually been allocated yet. Note that the method returns a pixel on the stack.
Definition at line 270 of file itkSpatiallyDenseSparseVectorImage.h.
|
inline |
Get an internal pixel (e.g. for editing).
For efficiency, this function does not check that the image has actually been allocated yet. Note that the method returns a pixel on the stack.
Definition at line 281 of file itkSpatiallyDenseSparseVectorImage.h.
|
virtual |
Run-time type information (and related methods).
|
inline |
Return the NeighborhoodAccessor functor
Definition at line 353 of file itkSpatiallyDenseSparseVectorImage.h.
|
inline |
Return the NeighborhoodAccessor functor
Definition at line 359 of file itkSpatiallyDenseSparseVectorImage.h.
References ITK_OVERRIDE.
|
virtual |
Get/Set the number of components each pixel has, ie the VectorLength
Definition at line 133 of file itkSpatiallyDenseSparseVectorImage.hxx.
Referenced by itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::Graft().
|
inline |
Get a pixel (read only version).
For efficiency, this function does not check that the image has actually been allocated yet. Note that the method returns a pixel on the stack.
Definition at line 213 of file itkSpatiallyDenseSparseVectorImage.h.
|
inline |
Get a reference to a pixel (e.g. for editing).
For efficiency, this function does not check that the image has actually been allocated yet.
Definition at line 241 of file itkSpatiallyDenseSparseVectorImage.h.
|
inline |
Return the Pixel Accessor object
Definition at line 341 of file itkSpatiallyDenseSparseVectorImage.h.
|
inline |
Return the Pixel Accesor object
Definition at line 347 of file itkSpatiallyDenseSparseVectorImage.h.
|
inline |
Return a pointer to the container.
Definition at line 303 of file itkSpatiallyDenseSparseVectorImage.h.
Referenced by itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::Graft().
|
inline |
Return a pointer to the container.
Definition at line 309 of file itkSpatiallyDenseSparseVectorImage.h.
|
virtual |
|
virtual |
Graft the data and information from one image to another. This is a convenient method to setup a second image with all the meta information of another image and use the same pixel container. Note that this method is different than just using two SmartPointers to the same image since separate DataObjects are still maintained. This method is similar to ImageSource::GraftOutput(). The implementation in ImageBase simply calls CopyInformation() and copies the region ivars. The implementation here refers to the superclass' implementation and then copies over the pixel container.
Definition at line 94 of file itkSpatiallyDenseSparseVectorImage.hxx.
References itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::GetNumberOfComponentsPerPixel(), and itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::GetPixelContainer().
Referenced by itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::SetPixelContainer().
|
virtual |
Restore the data object to its initial state. This means releasing memory.
Definition at line 46 of file itkSpatiallyDenseSparseVectorImage.hxx.
References itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::FillBuffer().
Referenced by itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::Allocate().
|
static |
Method for creation through the object factory.
|
private |
|
inline |
Access a pixel. This version cannot be an lvalue because the pixel is converted on the fly to a VariableLengthVector.
For efficiency, this function does not check that the image has actually been allocated yet.
Definition at line 292 of file itkSpatiallyDenseSparseVectorImage.h.
|
inline |
Access a pixel.
For efficiency, this function does not check that the image has actually been allocated yet.
Definition at line 299 of file itkSpatiallyDenseSparseVectorImage.h.
|
protected |
Definition at line 154 of file itkSpatiallyDenseSparseVectorImage.hxx.
Referenced by itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::SetNumberOfComponentsPerPixel().
|
inlinevirtual |
Buffered region has no meaning for sparse images. This method does nothing except for computing offset table
Definition at line 154 of file itkSpatiallyDenseSparseVectorImage.h.
References utl::ComputeOffsetTable().
|
virtual |
Definition at line 141 of file itkSpatiallyDenseSparseVectorImage.hxx.
References itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::PrintSelf().
Referenced by itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::GetNumberOfComponentsPerPixel().
|
inline |
Set a pixel value.
Allocate() needs to have been called first – for efficiency, this function does not check that the image has actually been allocated yet.
Definition at line 193 of file itkSpatiallyDenseSparseVectorImage.h.
void itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::SetPixelContainer | ( | PixelContainer * | container | ) |
Set the container to use. Note that this does not cause the DataObject to be modified.
Definition at line 81 of file itkSpatiallyDenseSparseVectorImage.hxx.
References itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::Graft().
Referenced by itk::SpatiallyDenseSparseVectorImage< TValueType, VImageDimension, TKeyType >::FillBuffer().
|
inline |
Convenience methods to set the LargestPossibleRegion, BufferedRegion and RequestedRegion. Allocate must still be called.
Definition at line 136 of file itkSpatiallyDenseSparseVectorImage.h.
|
inline |
Definition at line 143 of file itkSpatiallyDenseSparseVectorImage.h.
|
virtual |
Set/Get macros for the length of each vector in the vector image
|
static |
Dimension of the image. This constant is used by functions that are templated over image type (as opposed to being templated over pixel type and dimension) when they need compile time access to the dimension of the image.
Definition at line 72 of file itkSpatiallyDenseSparseVectorImage.h.
|
private |
Memory for the map containing the pixel data.
Definition at line 383 of file itkSpatiallyDenseSparseVectorImage.h.
|
private |
Definition at line 384 of file itkSpatiallyDenseSparseVectorImage.h.
|
private |
Length of the "vector pixel"
Definition at line 387 of file itkSpatiallyDenseSparseVectorImage.h.