1 #ifndef TIL_CONSTIMAGENCLINEARITERATOR_H 2 #define TIL_CONSTIMAGENCLINEARITERATOR_H 21 template <
typename T >
52 if (--m_nPixelsLeft == 0)
58 if (m_sliceIndex == m_im.dim()[2])
67 this->initForSlice(m_sliceIndex);
78 bool isAtEnd()
const {
return (m_index == 0); }
87 void initForSlice(
int i)
89 m_nPixelsLeft = m_sliceSize;
90 m_index =
const_cast<T*
>(m_im.getSlicePointer(i));
156 template <
typename T >
169 m_sliceSize = m_im.getSliceSize();
173 this->initForSlice(m_sliceIndex);
reference operator*() const
Belongs to package Box Do not include directly, include til/Box.h instead.
General macros, definitions and functions.
Defines empty classes that serves as labels.
Image class storing data slice-by-slice.