18#ifndef itkImageIteratorWithIndex_h
19#define itkImageIteratorWithIndex_h
89template <
typename TImage>
152 template <
typename TOtherImage, std::enable_if_t<detail::IsImageIteratorConvertible_v<TOtherImage, TImage>,
int> = 0>
173 static constexpr unsigned int
181 template <
typename TOtherImage,
182 std::enable_if_t<std::is_same_v<std::remove_const_t<TOtherImage>, std::remove_const_t<TImage>>,
int> = 0>
190#ifndef ITK_EXPERIMENTAL_CXX20_REWRITTEN_UNEQUAL_OPERATOR
191 template <
typename TOtherImage,
192 std::enable_if_t<std::is_same_v<std::remove_const_t<TOtherImage>, std::remove_const_t<TImage>>,
int> = 0>
202 template <
typename TOtherImage,
203 std::enable_if_t<std::is_same_v<std::remove_const_t<TOtherImage>, std::remove_const_t<TImage>>,
int> = 0>
214 template <
typename TOtherImage,
215 std::enable_if_t<std::is_same_v<std::remove_const_t<TOtherImage>, std::remove_const_t<TImage>>,
int> = 0>
226 template <
typename TOtherImage,
227 std::enable_if_t<std::is_same_v<std::remove_const_t<TOtherImage>, std::remove_const_t<TImage>>,
int> = 0>
238 template <
typename TOtherImage,
239 std::enable_if_t<std::is_same_v<std::remove_const_t<TOtherImage>, std::remove_const_t<TImage>>,
int> = 0>
258 [[nodiscard]]
const RegionType &
274 [[nodiscard]] PixelType
281 template <
typename T = TImage, std::enable_if_t<std::is_same_v<T, TImage> && !std::is_const_v<T>,
int> = 0>
291 [[nodiscard]]
const PixelType &
300 template <
typename T = TImage, std::enable_if_t<std::is_same_v<T, TImage> && !std::is_const_v<T>,
int> = 0>
364template <
typename TImage>
376template <
typename TImage>
384 using Superclass::Superclass;
395template <
typename TImage>
398template <
typename TImage>
402template <
typename TImage>
408#ifndef ITK_MANUAL_INSTANTIATION
409# include "itkImageIteratorWithIndex.hxx"
typename TImage::InternalPixelType InternalPixelType
FrequencyImageRegionIteratorWithIndex Self
Read-only ImageIteratorWithIndex: ImageConstIteratorWithIndex<TImage> behaves as ImageIteratorWithInd...
ImageConstIteratorWithIndex Self
ImageConstIteratorWithIndex(const Superclass &it)
ImageIteratorWithIndex< std::add_const_t< TImage > > Superclass
ImageConstIteratorWithIndex()=default
A base class for multi-dimensional iterators templated over image type that are designed to efficient...
QualifiedInternalPixelType * m_Begin
bool operator>=(const ImageIteratorWithIndex< TOtherImage > &it) const
Self & operator=(const Self &)=default
typename TImage::PixelType PixelType
const PixelType & Value() const
typename OffsetType::OffsetValueType OffsetValueType
ImageIteratorWithIndex(const ImageIteratorWithIndex< TOtherImage > &it)
typename IndexType::IndexValueType IndexValueType
typename TImage::SizeType SizeType
std::conditional_t< std::is_const_v< TImage >, const InternalPixelType, InternalPixelType > QualifiedInternalPixelType
OffsetValueType m_OffsetTable[ImageDimension+1]
ImageIteratorWithIndex Self
WeakPointer< TImage > m_Image
typename PixelContainer::Pointer PixelContainerPointer
friend class ImageIteratorWithIndex
AccessorFunctorType m_PixelAccessorFunctor
QualifiedInternalPixelType * m_Position
typename SizeType::SizeValueType SizeValueType
const IndexType & GetIndex() const
detail::IteratorImageType_t< TImage > ImageType
ImageIteratorWithIndex(TImage *ptr, const RegionType ®ion)
typename TImage::AccessorFunctorType AccessorFunctorType
static constexpr unsigned int GetImageDimension()
static constexpr unsigned int ImageDimension
QualifiedInternalPixelType * m_End
bool operator<=(const ImageIteratorWithIndex< TOtherImage > &it) const
typename TImage::AccessorType AccessorType
virtual ~ImageIteratorWithIndex()=default
typename TImage::InternalPixelType InternalPixelType
AccessorType m_PixelAccessor
bool operator<(const ImageIteratorWithIndex< TOtherImage > &it) const
typename TImage::PixelContainer PixelContainer
void SetIndex(const IndexType &ind)
static constexpr unsigned int ImageIteratorDimension
bool operator==(const ImageIteratorWithIndex< TOtherImage > &it) const
const RegionType & GetRegion() const
ImageIteratorWithIndex()=default
ImageIteratorWithIndex(const Self &)=default
typename TImage::OffsetType OffsetType
IndexType m_PositionIndex
bool operator!=(const ImageIteratorWithIndex< TOtherImage > &it) const
typename TImage::RegionType RegionType
bool IsAtReverseEnd() const
void Set(const PixelType &value) const
bool operator>(const ImageIteratorWithIndex< TOtherImage > &it) const
typename TImage::IndexType IndexType
typename TImage::IndexType IndexType
typename TImage::PixelType PixelType
Implements transparent reference counting.
Implements a weak reference to an object.
bool ITKIOXML_EXPORT operator==(itk::FancyString &s, const std::string &)
TImage IteratorImageType_t
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
ImageIteratorWithIndex(SmartPointer< TImage >, const typename TImage::RegionType &) -> ImageIteratorWithIndex< TImage >
ImageConstIteratorWithIndex(const TImage *, const typename TImage::RegionType &) -> ImageConstIteratorWithIndex< TImage >