aimstil  5.0.5
ImageNCLinearIterator.h
Go to the documentation of this file.
1 #ifndef TIL_IMAGENCLINEARITERATOR_H
2 #define TIL_IMAGENCLINEARITERATOR_H
3 
4 // includes from TIL library
5 #include "til/til_common.h"
7 
8 
9 // Namespace
10 namespace til {
11 
12 
13 // A class to iterate through all values of an image without having to
14 // know the current position (hence the fastest possible)
15 // Allows to read and write to the image
16 template < typename T >
17 class LinearIterator<ImageNC<T> > : public ConstLinearIterator<ImageNC<T> >
18 {
19 
20 public: // typedefs
21 
22  typedef T & reference;
23  //typedef T value_type;
25  //typedef T& StarType;
26 
27 public: // constructors & destructor
28 
31 
32 public: // functions
33 
35  reference operator* () { return *(this->m_index); }
36 };
37 
38 
39 } // namespace
40 
41 #endif
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.