18 #ifndef __itkImageConstIterator_h
19 #define __itkImageConstIterator_h
83 template<
typename TImage >
95 TImage::ImageDimension);
207 if ( region.GetNumberOfPixels() > 0 )
210 itkAssertOrThrowMacro( ( bufferedRegion.IsInside(
m_Region) ),
211 "Region " <<
m_Region <<
" is outside of buffered region " << bufferedRegion );
222 if (
m_Region.GetNumberOfPixels() == 0 )
231 for (
unsigned int i = 0; i < TImage::ImageDimension; ++i )
242 {
return TImage::ImageDimension; }
307 {
return m_Image->ComputeIndex( static_cast< OffsetValueType >(
m_Offset ) ); }
321 {
return m_Image.GetPointer(); }
389 #ifndef ITK_MANUAL_INSTANTIATION
390 #include "itkImageConstIterator.hxx"
bool operator!=(const Self &it) const
PixelContainer::Pointer PixelContainerPointer
const RegionType & GetRegion() const
virtual ~ImageConstIterator()
OffsetValueType m_BeginOffset
signed long OffsetValueType
signed long IndexValueType
const IndexType GetIndex() const
OffsetValueType m_EndOffset
bool IsAtBegin(void) const
AccessorType m_PixelAccessor
TImage::AccessorFunctorType AccessorFunctorType
itkLegacyMacro(Self Begin(void) const)
A multi-dimensional image iterator templated over image type.
Self & operator=(const Self &it)
AccessorFunctorType m_PixelAccessorFunctor
ImageConstIterator(const Self &it)
TImage::AccessorType AccessorType
TImage::InternalPixelType InternalPixelType
virtual void SetIndex(const IndexType &ind)
const InternalPixelType * m_Buffer
ImageConstIterator(const ImageType *ptr, const RegionType ®ion)
TImage::ConstWeakPointer m_Image
bool operator==(const Self &it) const
bool operator<(const Self &it) const
TImage::IndexType IndexType
TImage::PixelType PixelType
static unsigned int GetImageIteratorDimension()
static const unsigned int ImageIteratorDimension
bool operator>(const Self &it) const
TImage::RegionType RegionType
TImage::PixelContainer PixelContainer
PixelType Get(void) const
virtual void SetRegion(const RegionType ®ion)
bool operator>=(const Self &it) const
TImage::OffsetType OffsetType
bool operator<=(const Self &it) const
TImage::SizeType SizeType
const ImageType * GetImage() const
const PixelType & Value(void) const