18 #ifndef itkImageConstIterator_h
19 #define itkImageConstIterator_h
83 template<
typename TImage >
95 TImage::ImageDimension);
210 if ( region.GetNumberOfPixels() > 0 )
213 itkAssertOrThrowMacro( ( bufferedRegion.IsInside(
m_Region) ),
214 "Region " <<
m_Region <<
" is outside of buffered region " << bufferedRegion );
225 if (
m_Region.GetNumberOfPixels() == 0 )
234 for (
unsigned int i = 0; i < TImage::ImageDimension; ++i )
245 {
return TImage::ImageDimension; }
310 {
return m_Image->ComputeIndex( static_cast< OffsetValueType >(
m_Offset ) ); }
324 {
return m_Image.GetPointer(); }
392 #ifndef ITK_MANUAL_INSTANTIATION
393 #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
itkTypeMacroNoParent(ImageConstIterator)
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