18#ifndef itkLineIterator_h
19#define itkLineIterator_h
55template <
typename TImage>
67 static constexpr unsigned int ImageIteratorDimension = TImage::ImageDimension;
95 const_cast<ImageType *
>(this->m_Image.GetPointer())->SetPixel(this->m_CurrentImageIndex, value);
105 return (this->m_Image->GetPixel(this->m_CurrentImageIndex));
121#ifndef ITK_MANUAL_INSTANTIATION
122# include "itkLineIterator.hxx"
Pixel-wise addition of two images.
An iterator that walks a Bresenham line through an ND image with read-only access to pixels.
typename TImage::PixelType PixelType
typename TImage::IndexType IndexType
typename PixelContainer::Pointer PixelContainerPointer
typename TImage::InternalPixelType InternalPixelType
typename TImage::OffsetType OffsetType
typename TImage::PixelContainer PixelContainer
typename TImage::AccessorType AccessorType
An iterator that walks a Bresenham line through an ND image with write access to pixels.
LineIterator(ImageType *imagePtr, const IndexType &firstIndex, const IndexType &lastIndex)
~LineIterator() override=default
Self & operator=(const Self &it)
void Set(const PixelType &value)
const PixelType & Value()
ImageBaseType::RegionType RegionType
ImageBaseType::IndexType IndexType
ImageBaseType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....