aimstil  5.0.5
ImageNCVolumetricIterator.h
Go to the documentation of this file.
1 #ifndef TIL_IMAGENCVOLUMETRICITERATOR_H
2 #define TIL_IMAGENCVOLUMETRICITERATOR_H
3 
4 // includes from TIL library
5 #include "til/til_common.h"
7 #include "til/Range.h"
8 
9 namespace til
10 {
11 
12 // A class to iterate through all values of an image while knowing the
13 // image coordinates of the current pixel
14 // Allows to read and write to image
15 template < typename T >
16 class VolumetricIterator<ImageNC<T> > : public ConstVolumetricIterator<ImageNC<T> >
17 {
18 
19 public: // typedefs
20 
21  typedef T & reference;
22  //typedef T value_type;
24  //typedef T& StarType;
25 
26 public: // constructors & destructor
27 
30 
34 
35  // constructor over a volume of interest
37  : ConstVolumetricIterator<ImageNC<T> >(im, voi) { }
38 
39 public: // functions
40 
42  reference operator* () const { return *(this->m_index); }
43 };
44 
45 
46 } // namespace
47 
48 
49 #endif
50 
Belongs to package Box Do not include directly, include til/Box.h instead.
Definition: Accumulator.h:10
General macros, definitions and functions.
INLINE numeric_array< typename combine< T1, T2 >::type, 3 > operator*(const Affine< T1 > &a, const numeric_array< T2, 3 > &v)
Multiplication between a 3D affine transform and a 3D vector.
Image class storing data slice-by-slice.