18 #ifndef itkImageRegionReverseConstIterator_h
19 #define itkImageRegionReverseConstIterator_h
102 template<
typename TImage >
178 - ( ind[0] - this->
m_Region.GetIndex()[0] );
189 - ( ind[0] - this->
m_Region.GetIndex()[0] );
200 - ( ind[0] - this->
m_Region.GetIndex()[0] );
244 - ( ind[0] - this->
m_Region.GetIndex()[0] );
270 ind = this->
m_Image->ComputeIndex( static_cast< OffsetValueType >( this->
m_Offset ) );
273 startIndex = this->
m_Region.GetIndex();
283 done = ( --ind[0] == startIndex[0] - 1 );
286 done = ( ind[i] == startIndex[i] );
294 while ( ( dim < this->ImageIteratorDimension - 1 )
295 && ( ind[dim] < startIndex[dim] ) )
297 ind[dim] = startIndex[dim] +
static_cast< OffsetValueType >( size[dim] ) - 1;
328 ind = this->
m_Image->ComputeIndex( static_cast< OffsetValueType >( this->
m_Offset ) );
331 startIndex = this->
m_Region.GetIndex();
341 done = ( ++ind[0] == startIndex[0] +
static_cast< OffsetValueType >( size[0] ) );
344 done = ( ind[i] == startIndex[i] +
static_cast< OffsetValueType >( size[i] ) - 1 );
352 while ( ( dim < this->ImageIteratorDimension - 1 )
353 && ( ind[dim] > startIndex[dim] +
static_cast< OffsetValueType >( size[dim] ) - 1 ) )
355 ind[dim] = startIndex[dim];
372 #ifndef ITK_MANUAL_INSTANTIATION
373 #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
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
void SetIndex(const IndexType &ind) override