20 #ifndef MIRTK_GenericImageIterator_H 21 #define MIRTK_GenericImageIterator_H 23 #include "mirtk/ImageIterator.h" 24 #include "mirtk/ConstImageIterator.h" 25 #include "mirtk/ImageAttributes.h" 34 template <
class VoxelType>
88 VoxelType &
Value()
const;
97 VoxelType &
Value(
int t)
const;
116 template <
class VoxelType>
125 template <
class VoxelType>
133 template <
class VoxelType>
141 template <
class VoxelType>
149 template <
class VoxelType>
158 template <
class VoxelType>
164 template <
class VoxelType>
167 return ImageIterator::Current<VoxelType>();
171 template <
class VoxelType>
174 return ImageIterator::Current<VoxelType>(t);
178 template <
class VoxelType>
181 return ImageIterator::Next<VoxelType>();
185 template <
class VoxelType>
188 return ImageIterator::Next<VoxelType>(t);
192 template <
class VoxelType>
195 return ImageIterator::Value<VoxelType>();
199 template <
class VoxelType>
202 return ImageIterator::Value<VoxelType>(t);
206 template <
class VoxelType>
209 return static_cast<double>(
Value());
213 template <
class VoxelType>
216 return static_cast<double>(
Value(t));
222 #endif // MIRTK_GenericImageIterator_H GenericImageIterator(const ImageAttributes &, VoxelType *=NULL)
Constructor.
double ValueAsDouble() const
Get current voxel value casted to double.
ImageIterator & operator=(const ImageIterator &)
Assignment operator.
~GenericImageIterator()
Destructor.
GenericImageIterator & operator=(const GenericImageIterator &)
Assignment operator.
VoxelType & Value() const
VoxelType * Current() const