18#ifndef itkImageLinearConstIteratorWithIndex_h
19#define itkImageLinearConstIteratorWithIndex_h
101template <
typename TImage>
180 [[nodiscard]]
inline bool
187 [[nodiscard]]
inline bool
197 if (direction >= TImage::ImageDimension)
199 itkGenericExceptionMacro(
"In image of dimension " << TImage::ImageDimension <<
" Direction " << direction
239template <
typename TImage>
247template <
typename TImage>
256 for (
unsigned int n = 0; n < TImage::ImageDimension; ++n)
265 this->m_PositionIndex[n]++;
266 if (this->m_PositionIndex[n] < this->
m_EndIndex[n])
281template <
typename TImage>
290 for (
unsigned int n = 0; n < TImage::ImageDimension; ++n)
299 this->m_PositionIndex[n]--;
308 this->m_PositionIndex[n] = this->
m_EndIndex[n] - 1;
313#ifndef ITK_MANUAL_INSTANTIATION
314# 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
A multi-dimensional image iterator that visits image pixels within a region in a "scan-line" order.
typename TImage::IndexType IndexType
ImageLinearConstIteratorWithIndex()
bool IsAtReverseEndOfLine() const
void GoToReverseBeginOfLine()
ImageLinearConstIteratorWithIndex(const TImage *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()
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
ImageLinearConstIteratorWithIndex(SmartPointer< TImage >, const typename TImage::RegionType &) -> ImageLinearConstIteratorWithIndex< std::remove_const_t< TImage > >