20 #ifndef MIRTK_ConstGenericImageIterator_H 21 #define MIRTK_ConstGenericImageIterator_H 23 #include "mirtk/Voxel.h" 24 #include "mirtk/ImageAttributes.h" 25 #include "mirtk/GenericImage.h" 26 #include "mirtk/ConstImageIterator.h" 35 template <
class VoxelType>
61 const VoxelType *
Current()
const;
70 const VoxelType *
Current(
int)
const;
75 const VoxelType *
Next();
84 const VoxelType *
Next(
int);
89 const VoxelType &
Value()
const;
98 const VoxelType &
Value(
int t)
const;
117 template <
class VoxelType>
126 template <
class VoxelType>
134 template <
class VoxelType>
142 template <
class VoxelType>
150 template <
class VoxelType>
159 template <
class VoxelType>
165 template <
class VoxelType>
168 return ConstImageIterator::Current<VoxelType>();
172 template <
class VoxelType>
175 return ConstImageIterator::Current<VoxelType>(t);
179 template <
class VoxelType>
182 return ConstImageIterator::Next<VoxelType>();
186 template <
class VoxelType>
189 return ConstImageIterator::Next<VoxelType>(t);
193 template <
class VoxelType>
196 return ConstImageIterator::Value<VoxelType>();
200 template <
class VoxelType>
203 return ConstImageIterator::Value<VoxelType>(t);
207 template <
class VoxelType>
210 return static_cast<double>(
Value());
214 template <
class VoxelType>
217 return static_cast<double>(
Value(t));
223 #endif // MIRTK_ConstGenericImageIterator_H const VoxelType & Value() const
ConstGenericImageIterator & operator=(const ConstGenericImageIterator &)
Assignment operator.
ConstGenericImageIterator(const ImageAttributes &, const VoxelType *=NULL)
Constructor.
double ValueAsDouble() const
Get current voxel value casted to double.
~ConstGenericImageIterator()
Destructor.
const VoxelType * Current() const
ConstImageIterator & operator=(const ConstImageIterator &)
Assignment operator.