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
"
6
#include "
til/ConstImageNCLinearIterator.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
29
LinearIterator<ImageNC<T>
>(
ImageNC<T>
&im)
30
:
ConstLinearIterator
<
ImageNC<T>
>(im) {};
31
32
public
:
// functions
33
35
reference
operator*
() {
return
*(this->m_index); }
36
};
37
38
39
}
// namespace
40
41
#endif
til::LinearIterator
Definition:
imageIterator.h:9
til::ConstLinearIterator
Definition:
imageIterator.h:11
ConstImageNCLinearIterator.h
til
Belongs to package Box Do not include directly, include til/Box.h instead.
Definition:
Accumulator.h:10
til::LinearIterator< ImageNC< T > >::reference
T & reference
Definition:
ImageNCLinearIterator.h:22
til_common.h
General macros, definitions and functions.
til::operator*
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.
Definition:
AffineTransform.h:91
til::ImageNC
Image class storing data slice-by-slice.
Definition:
ConstImageNCLinearIterator.h:15
til
ImageNCLinearIterator.h
Generated by
1.8.13