18#ifndef itkImageLinearConstIteratorWithIndex_h
19#define itkImageLinearConstIteratorWithIndex_h
100template <
typename TImage>
196 if (direction >= TImage::ImageDimension)
198 itkGenericExceptionMacro(
"In image of dimension " << TImage::ImageDimension <<
" Direction " << direction
243template <
typename TImage>
252 for (
unsigned int n = 0; n < TImage::ImageDimension; ++n)
261 this->m_PositionIndex[n]++;
262 if (this->m_PositionIndex[n] < this->
m_EndIndex[n])
277template <
typename TImage>
286 for (
unsigned int n = 0; n < TImage::ImageDimension; ++n)
295 this->m_PositionIndex[n]--;
304 this->m_PositionIndex[n] = this->
m_EndIndex[n] - 1;
309#ifndef ITK_MANUAL_INSTANTIATION
310# include "itkImageLinearConstIteratorWithIndex.hxx"
const InternalPixelType * m_Position
typename OffsetType::OffsetValueType OffsetValueType
Self & operator=(const Self &it)
OffsetValueType m_OffsetTable[ImageDimension+1]
IndexType m_PositionIndex
ImageConstIteratorWithIndex()=default
typename TImage::IndexType IndexType
ImageLinearConstIteratorWithIndex()
bool IsAtReverseEndOfLine() const
void GoToReverseBeginOfLine()
ImageLinearConstIteratorWithIndex(const ImageType *ptr, const RegionType ®ion)
ImageLinearConstIteratorWithIndex(const ImageConstIteratorWithIndex< TImage > &it)
void SetDirection(unsigned int direction)
bool IsAtEndOfLine() const
typename TImage::RegionType RegionType
typename TImage::PixelContainer PixelContainer
typename PixelContainer::Pointer PixelContainerPointer
ImageLinearConstIteratorWithIndex Self
ImageConstIteratorWithIndex< TImage > Superclass
unsigned int GetDirection()
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....