18 #ifndef __itkImageRegionReverseConstIterator_h
19 #define __itkImageRegionReverseConstIterator_h
102 template<
typename TImage >
184 - ( ind[0] - this->
m_Region.GetIndex()[0] );
195 - ( ind[0] - this->
m_Region.GetIndex()[0] );
206 - ( ind[0] - this->
m_Region.GetIndex()[0] );
250 - ( ind[0] - this->
m_Region.GetIndex()[0] );
276 ind = this->
m_Image->ComputeIndex( static_cast< OffsetValueType >( this->
m_Offset ) );
279 startIndex = this->
m_Region.GetIndex();
289 done = ( --ind[0] == startIndex[0] - 1 );
292 done = ( ind[i] == startIndex[i] );
300 while ( ( dim < ImageIteratorDimension - 1 )
301 && ( ind[dim] < startIndex[dim] ) )
303 ind[dim] = startIndex[dim] +
static_cast< OffsetValueType >( size[dim] ) - 1;
334 ind = this->
m_Image->ComputeIndex( static_cast< OffsetValueType >( this->
m_Offset ) );
337 startIndex = this->
m_Region.GetIndex();
347 done = ( ++ind[0] == startIndex[0] +
static_cast< OffsetValueType >( size[0] ) );
350 done = ( ind[i] == startIndex[i] +
static_cast< OffsetValueType >( size[i] ) - 1 );
358 while ( ( dim < ImageIteratorDimension - 1 )
359 && ( ind[dim] > startIndex[dim] +
static_cast< OffsetValueType >( size[dim] ) - 1 ) )
361 ind[dim] = startIndex[dim];
378 #ifndef ITK_MANUAL_INSTANTIATION
379 #include "itkImageRegionReverseConstIterator.hxx"
TImage::PixelType PixelType
const IndexType GetIndex()
Superclass::SizeType SizeType
TImage::AccessorType AccessorType
TImage::PixelContainer PixelContainer
SizeValueType m_SpanEndOffset
signed long OffsetValueType
Superclass::ImageType ImageType
TImage::OffsetType OffsetType
ImageRegionReverseConstIterator(const ImageReverseConstIterator< TImage > &it)
static const unsigned int ImageIteratorDimension
Superclass::PixelType PixelType
A multi-dimensional image iterator designed to walk a specified image region in reverse.
unsigned long SizeValueType
PixelContainer::Pointer PixelContainerPointer
ImageRegionReverseConstIterator(const ImageConstIterator< TImage > &it)
A multi-dimensional image iterator templated over image type.
ImageRegionReverseConstIterator(const ImageRegionIterator< TImage > &it)
TImage::SizeType SizeType
TImage::IndexType IndexType
ImageType::ConstWeakPointer m_Image
ImageRegionReverseConstIterator()
TImage::InternalPixelType InternalPixelType
Superclass::PixelContainer PixelContainer
Multi-dimensional image iterator.
virtual void SetIndex(const IndexType &ind)
SizeValueType m_EndOffset
Superclass::InternalPixelType InternalPixelType
TImage::IndexType IndexType
TImage::RegionType RegionType
Superclass::AccessorType AccessorType
SizeValueType m_SpanBeginOffset
SizeValueType m_BeginOffset
void SetIndex(const IndexType &ind)
Superclass::IndexType IndexType
ImageRegionReverseConstIterator(const ImageType *ptr, const RegionType ®ion)
Superclass::IndexType IndexType
Superclass::SizeType SizeType
ImageRegionReverseConstIterator Self
Superclass::RegionType RegionType
itkLegacyMacro(Self Begin(void) const)
A multi-dimensional iterator templated over image type that walks a region of pixels.
TImage::SizeType SizeType
ImageReverseConstIterator< TImage > Superclass
Superclass::OffsetType OffsetType