18#ifndef itkLineConstIterator_h
19#define itkLineConstIterator_h
55template <
typename TImage>
67 static constexpr unsigned int ImageIteratorDimension = TImage::ImageDimension;
113 return TImage::ImageDimension;
120 return m_CurrentImageIndex;
127 return m_Image->GetPixel(m_CurrentImageIndex);
158 typename ImageType::ConstWeakPointer m_Image{};
174 unsigned int m_MainDirection{};
196#ifndef ITK_MANUAL_INSTANTIATION
197# include "itkLineConstIterator.hxx"
An iterator that walks a Bresenham line through an ND image with read-only access to pixels.
typename TImage::PixelType PixelType
typename TImage::SpacingType SpacingType
const IndexType GetIndex()
virtual ~LineConstIterator()=default
typename TImage::IndexType IndexType
typename PixelContainer::Pointer PixelContainerPointer
Self & operator=(const Self &it)
typename TImage::InternalPixelType InternalPixelType
LineConstIterator(const ImageType *imagePtr, const IndexType &firstIndex, const IndexType &lastIndex)
typename TImage::OffsetType OffsetType
typename TImage::SizeType SizeType
typename TImage::RegionType RegionType
typename TImage::PixelContainer PixelContainer
static unsigned int GetImageIteratorDimension()
typename TImage::PointType PointType
const PixelType Get() const
typename TImage::AccessorType AccessorType
SmartPointer< Self > Pointer
ImageBaseType::RegionType RegionType
ImageBaseType::IndexType IndexType
ImageBaseType::PointType PointType
ImageBaseType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....