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
"
6
#include "
til/ConstImageNCVolumetricIterator.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
29
VolumetricIterator<ImageNC<T>
>() :
ConstVolumetricIterator
<
ImageNC<T>
>() {};
30
32
VolumetricIterator<ImageNC<T>
>(
ImageNC<T>
&im)
33
:
ConstVolumetricIterator
<
ImageNC<T>
>(im) { }
34
35
// constructor over a volume of interest
36
VolumetricIterator<ImageNC<T>
>(
ImageNC<T>
&im,
Range<int,3>
&voi)
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
ConstImageNCVolumetricIterator.h
til::VolumetricIterator< ImageNC< T > >::reference
T & reference
Definition:
ImageNCVolumetricIterator.h:21
til
Belongs to package Box Do not include directly, include til/Box.h instead.
Definition:
Accumulator.h:10
til_common.h
General macros, definitions and functions.
til::Range< int, 3 >
Range.h
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::ConstVolumetricIterator
Definition:
imageIterator.h:12
til::VolumetricIterator
Definition:
imageIterator.h:10
til
ImageNCVolumetricIterator.h
Generated by
1.8.13