18#ifndef itkImageRegionConstIterator_h
19#define itkImageRegionConstIterator_h
108template <
typename TImage>
120 static constexpr unsigned int ImageIteratorDimension = Superclass::ImageIteratorDimension;
146 m_SpanBeginOffset = 0;
156 m_SpanBeginOffset = this->m_BeginOffset;
157 m_SpanEndOffset = this->m_BeginOffset +
static_cast<OffsetValueType>(this->m_Region.GetSize()[0]);
172 m_SpanEndOffset = this->m_Offset +
static_cast<OffsetValueType>(this->m_Region.GetSize()[0]) -
173 (ind[0] - this->m_Region.GetIndex()[0]);
174 m_SpanBeginOffset = m_SpanEndOffset -
static_cast<OffsetValueType>(this->m_Region.GetSize()[0]);
188 m_SpanEndOffset = this->m_Offset +
static_cast<OffsetValueType>(this->m_Region.GetSize()[0]) -
189 (ind[0] - this->m_Region.GetIndex()[0]);
190 m_SpanBeginOffset = m_SpanEndOffset -
static_cast<OffsetValueType>(this->m_Region.GetSize()[0]);
198 Superclass::GoToBegin();
201 m_SpanBeginOffset = this->m_BeginOffset;
202 m_SpanEndOffset = this->m_BeginOffset +
static_cast<OffsetValueType>(this->m_Region.GetSize()[0]);
210 Superclass::GoToEnd();
213 m_SpanEndOffset = this->m_EndOffset;
214 m_SpanBeginOffset = m_SpanEndOffset -
static_cast<OffsetValueType>(this->m_Region.GetSize()[0]);
223 Superclass::SetIndex(ind);
224 m_SpanEndOffset = this->m_Offset +
static_cast<OffsetValueType>(this->m_Region.GetSize()[0]) -
225 (ind[0] - this->m_Region.GetIndex()[0]);
226 m_SpanBeginOffset = m_SpanEndOffset -
static_cast<OffsetValueType>(this->m_Region.GetSize()[0]);
240 if (++this->m_Offset >= m_SpanEndOffset)
258 if (--this->m_Offset < m_SpanBeginOffset)
280#ifndef ITK_MANUAL_INSTANTIATION
281# include "itkImageRegionConstIterator.hxx"
Pixel-wise addition of two images.
A multi-dimensional image iterator templated over image type.
typename TImage::IndexType IndexType
typename TImage::PixelContainer PixelContainer
typename TImage::OffsetType OffsetType
typename TImage::InternalPixelType InternalPixelType
typename PixelContainer::Pointer PixelContainerPointer
typename TImage::AccessorType AccessorType
typename TImage::RegionType RegionType
Self & operator=(const Self &it)
typename TImage::PixelType PixelType
A multi-dimensional iterator templated over image type.
A multi-dimensional iterator templated over image type that walks a region of pixels.
ImageRegionConstIterator(const ImageConstIterator< TImage > &it)
void SetIndex(const IndexType &ind) override
ImageRegionConstIterator(const ImageType *ptr, const RegionType ®ion)
ImageRegionConstIterator(const ImageIterator< TImage > &it)
ImageRegionConstIterator()
ImageBaseType::RegionType RegionType
ImageBaseType::IndexType IndexType
ImageBaseType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....