DMRITool  v0.1.1-139-g860d86b4
Diffusion MRI Tool
itkVectorImageRegionIteratorWithIndexSpecial.h
Go to the documentation of this file.
1 
11 #ifndef __itkVectorImageRegionIteratorWithIndexSpecial_h
12 #define __itkVectorImageRegionIteratorWithIndexSpecial_h
13 
16 
17 
18 namespace itk
19 {
20 
21 template <typename TPixel, unsigned int VImageDimension>
22 class VectorImageRegionIteratorWithIndex<SpatiallyDenseSparseVectorImage<TPixel, VImageDimension> > : public ImageRegionIteratorWithIndex<SpatiallyDenseSparseVectorImage<TPixel, VImageDimension> >
23 {
24 
25 public:
27  typedef ImageRegionIteratorWithIndex< SpatiallyDenseSparseVectorImage<TPixel, VImageDimension> > Superclass;
28 
30  typedef typename Superclass::IndexType IndexType;
31  typedef typename Superclass::SizeType SizeType;
32  typedef typename Superclass::OffsetType OffsetType;
33  typedef typename Superclass::RegionType RegionType;
34  typedef typename Superclass::ImageType ImageType;
35  typedef typename Superclass::PixelContainer PixelContainer;
36  typedef typename Superclass::PixelContainerPointer PixelContainerPointer;
37  typedef typename Superclass::InternalPixelType InternalPixelType;
38  typedef typename Superclass::PixelType PixelType;
39  typedef typename Superclass::AccessorType AccessorType;
40 
42  {}
43 
44  VectorImageRegionIteratorWithIndex(ImageType *ptr, const RegionType & region) : Superclass(ptr, region)
45  {
46  }
47 
48  VectorImageRegionIteratorWithIndex(const ImageIteratorWithIndex< ImageType > & it) : Superclass(it)
49  {
50  }
51 
52  void GetVector(PixelType& vec) const
53  {
54  vec = Superclass::Get();
55  }
56 
57  void SetVector(const PixelType & value)
58  {
59  Superclass::Set(value);
60  }
61 };
62 
63 }
64 
65 #endif
ImageRegionIteratorWithIndex< SpatiallyDenseSparseVectorImage< TPixel, VImageDimension > > Superclass
An n-dimensional vector image with a sparse memory model.
A multi-dimensional iterator templated over image type. It provides the same interfaces for both itk:...