#include <itkImageReverseConstIterator.h>
Inheritance diagram for itk::ImageReverseConstIterator< TImage >:
[NOHEADER] | |
Self & | operator= (const ImageConstIterator< TImage > &it) |
unsigned int | GetImageIteratorDimension () |
Public Types | |
typedef ImageReverseConstIterator | Self |
typedef TImage::IndexType | IndexType |
typedef TImage::IndexValueType | IndexValueType |
typedef TImage::SizeType | SizeType |
typedef TImage::SizeValueType | SizeValueType |
typedef TImage::OffsetType | OffsetType |
typedef TImage::OffsetValueType | OffsetValueType |
typedef TImage::RegionType | RegionType |
typedef TImage | ImageType |
typedef TImage::PixelContainer | PixelContainer |
typedef PixelContainer::Pointer | PixelContainerPointer |
typedef TImage::InternalPixelType | InternalPixelType |
typedef TImage::PixelType | PixelType |
typedef TImage::AccessorType | AccessorType |
typedef TImage::AccessorFunctorType | AccessorFunctorType |
Public Member Functions | |
itkStaticConstMacro (ImageIteratorDimension, unsigned int, TImage::ImageDimension) | |
virtual | ~ImageReverseConstIterator () |
ImageReverseConstIterator (const Self &it) | |
const IndexType | GetIndex () |
virtual void | SetIndex (const IndexType &ind) |
const RegionType & | GetRegion () const |
const PixelType | Get (void) const |
void | Set (const PixelType &value) const |
const PixelType & | Value (void) const |
PixelType & | Value (void) |
Self | Begin () const |
void | GoToBegin () |
Self | End () const |
void | GoToEnd () |
bool | IsAtBegin () |
bool | IsAtEnd () |
ImageReverseConstIterator () | |
ImageReverseConstIterator (ImageType *ptr, const RegionType ®ion) | |
ImageReverseConstIterator (const ImageConstIterator< TImage > &it) | |
Self & | operator= (const Self &it) |
bool | operator!= (const Self &it) const |
bool | operator== (const Self &it) const |
Protected Attributes | |
ImageType::ConstWeakPointer | m_Image |
RegionType | m_Region |
unsigned long | m_Offset |
unsigned long | m_BeginOffset |
unsigned long | m_EndOffset |
const InternalPixelType * | m_Buffer |
AccessorType | m_PixelAccessor |
AccessorFunctorType | m_PixelAccessorFunctor |
ImageReverseConstIterator is a templated class to represent a multi-dimensional iterator. ImageReverseConstIterator is templated over the dimension of the image and the data type of the image.
ImageReverseConstIterator is a base class for all the reverse image iterators. It provides the basic construction and comparison operations. However, it does not provide mechanisms for moving the iterator. A subclass of ImageReverseConstIterator must be used to move the iterator.
ImageReverseConstIterator is a multi-dimensional iterator, requiring more information be specified before the iterator can be used than conventional iterators. Whereas the std::vector::iterator from the STL only needs to be passed a pointer to establish the iterator, the multi-dimensional image iterator needs a pointer, the size of the buffer, the size of the region, the start index of the buffer, and the start index of the region. To gain access to this information, ImageReverseConstIterator holds a reference to the image over which it is traversing.
ImageReverseConstIterator assumes a particular layout of the image data. In particular, the data is arranged in a 1D array as if it were [][][][slice][row][col] with Index[0] = col, Index[1] = row, Index[2] = slice, etc.
ConstShapedNeighborhoodIterator
CorrespondenceDataStructureIterator
FloodFilledFunctionConditionalConstIterator
FloodFilledImageFunctionConditionalConstIterator
FloodFilledImageFunctionConditionalIterator
FloodFilledSpatialFunctionConditionalConstIterator
FloodFilledSpatialFunctionConditionalIterator
ImageLinearConstIteratorWithIndex
ImageRandomConstIteratorWithIndex
ImageRegionConstIteratorWithIndex
ImageRegionExclusionConstIteratorWithIndex
ImageRegionExclusionIteratorWithIndex
ImageRegionReverseConstIterator
Definition at line 87 of file itkImageReverseConstIterator.h.
|
Functor to choose the appropriate accessor. (for Image vs VectorImage) Definition at line 135 of file itkImageReverseConstIterator.h. |
|
Accessor type that convert data between internal and external representations. Reimplemented in itk::ImageRegionReverseConstIterator< TImage >, itk::ImageRegionReverseIterator< TImage >, and itk::ImageReverseIterator< TImage >. Definition at line 132 of file itkImageReverseConstIterator.h. Referenced by itk::ImageReverseConstIterator< TImage >::IsAtEnd(). |
|
Image typedef support. Reimplemented in itk::ImageRegionReverseConstIterator< TImage >, itk::ImageRegionReverseIterator< TImage >, and itk::ImageReverseIterator< TImage >. Definition at line 116 of file itkImageReverseConstIterator.h. |
|
Index typedef support. Reimplemented in itk::ImageRegionReverseConstIterator< TImage >, itk::ImageRegionReverseIterator< TImage >, and itk::ImageReverseIterator< TImage >. Definition at line 101 of file itkImageReverseConstIterator.h. Referenced by itk::ImageReverseConstIterator< TImage >::ImageReverseConstIterator(), and itk::ImageReverseConstIterator< TImage >::operator=(). |
|
Reimplemented in itk::ImageRegionReverseConstIterator< TImage >, itk::ImageRegionReverseIterator< TImage >, and itk::ImageReverseIterator< TImage >. Definition at line 102 of file itkImageReverseConstIterator.h. |
|
Internal Pixel Type Reimplemented in itk::ImageRegionReverseConstIterator< TImage >, itk::ImageRegionReverseIterator< TImage >, and itk::ImageReverseIterator< TImage >. Definition at line 125 of file itkImageReverseConstIterator.h. Referenced by itk::ImageReverseConstIterator< TImage >::IsAtEnd(). |
|
Offset typedef support. Reimplemented in itk::ImageRegionReverseConstIterator< TImage >, itk::ImageRegionReverseIterator< TImage >, and itk::ImageReverseIterator< TImage >. Definition at line 109 of file itkImageReverseConstIterator.h. |
|
Reimplemented in itk::ImageRegionReverseConstIterator< TImage >, itk::ImageRegionReverseIterator< TImage >, and itk::ImageReverseIterator< TImage >. Definition at line 110 of file itkImageReverseConstIterator.h. |
|
PixelContainer typedef support. Used to refer to the container for the pixel data. While this was already typdef'ed in the superclass it needs to be redone here for this subclass to compile properly with gcc. Reimplemented in itk::ImageRegionReverseConstIterator< TImage >, itk::ImageRegionReverseIterator< TImage >, and itk::ImageReverseIterator< TImage >. Definition at line 121 of file itkImageReverseConstIterator.h. |
|
Reimplemented in itk::ImageRegionReverseConstIterator< TImage >, itk::ImageRegionReverseIterator< TImage >, and itk::ImageReverseIterator< TImage >. Definition at line 122 of file itkImageReverseConstIterator.h. |
|
External Pixel Type Reimplemented in itk::ImageRegionReverseConstIterator< TImage >, itk::ImageRegionReverseIterator< TImage >, and itk::ImageReverseIterator< TImage >. Definition at line 128 of file itkImageReverseConstIterator.h. Referenced by itk::ImageReverseConstIterator< TImage >::Get(), and itk::ImageReverseConstIterator< TImage >::SetIndex(). |
|
Region typedef support. Reimplemented in itk::ImageRegionReverseConstIterator< TImage >, itk::ImageRegionReverseIterator< TImage >, and itk::ImageReverseIterator< TImage >. Definition at line 113 of file itkImageReverseConstIterator.h. Referenced by itk::ImageReverseConstIterator< TImage >::ImageReverseConstIterator(). |
|
Standard class typedefs. Reimplemented in itk::ImageRegionReverseConstIterator< TImage >, itk::ImageRegionReverseIterator< TImage >, and itk::ImageReverseIterator< TImage >. Definition at line 91 of file itkImageReverseConstIterator.h. Referenced by itk::ImageReverseConstIterator< TImage >::operator==(), and itk::ImageReverseConstIterator< TImage >::~ImageReverseConstIterator(). |
|
Size typedef support. Reimplemented in itk::ImageRegionReverseConstIterator< TImage >, itk::ImageRegionReverseIterator< TImage >, and itk::ImageReverseIterator< TImage >. Definition at line 105 of file itkImageReverseConstIterator.h. Referenced by itk::ImageReverseConstIterator< TImage >::ImageReverseConstIterator(), and itk::ImageReverseConstIterator< TImage >::operator=(). |
|
Reimplemented in itk::ImageRegionReverseConstIterator< TImage >, itk::ImageRegionReverseIterator< TImage >, and itk::ImageReverseIterator< TImage >. Definition at line 106 of file itkImageReverseConstIterator.h. |
|
Default Constructor. Need to provide a default constructor since we provide a copy constructor. Definition at line 139 of file itkImageReverseConstIterator.h. |
|
Default Destructor. Definition at line 152 of file itkImageReverseConstIterator.h. References itk::ImageReverseConstIterator< TImage >::Self. |
|
Copy Constructor. The copy constructor is provided to make sure the handle to the image is properly reference counted. Definition at line 156 of file itkImageReverseConstIterator.h. References itk::ImageReverseConstIterator< TImage >::m_BeginOffset, itk::ImageReverseConstIterator< TImage >::m_Buffer, itk::ImageReverseConstIterator< TImage >::m_EndOffset, itk::ImageReverseConstIterator< TImage >::m_Image, itk::ImageReverseConstIterator< TImage >::m_Offset, itk::ImageReverseConstIterator< TImage >::m_PixelAccessor, itk::ImageReverseConstIterator< TImage >::m_PixelAccessorFunctor, and itk::ImageReverseConstIterator< TImage >::m_Region. |
|
Constructor establishes an iterator to walk a particular image and a particular region of that image. Definition at line 173 of file itkImageReverseConstIterator.h. References itk::ImageReverseConstIterator< TImage >::IndexType, itk::ImageReverseConstIterator< TImage >::RegionType, and itk::ImageReverseConstIterator< TImage >::SizeType. |
|
Constructor that can be used to cast from an ImageConstIterator to an ImageRegionReverseIterator. Many routines return an ImageConstIterator but for a particular task, you may want an ImageRegionReverseIterator. Rather than provide overloaded APIs that return different types of Iterators, itk returns ImageConstIterators and uses constructors to cast from an ImageConstIterator to a ImageRegionReverseIterator. Definition at line 208 of file itkImageReverseConstIterator.h. References itk::ImageReverseConstIterator< TImage >::IndexType, and itk::ImageReverseConstIterator< TImage >::SizeType. |
|
Return an iterator for the beginning of the region. "Begin" for a reverse iterator is the last pixel in the region.
Reimplemented in itk::ImageRegionReverseConstIterator< TImage >, and itk::ImageRegionReverseIterator< TImage >. |
|
Return an iterator for the end of the region. "End" for a reverse iterator is one pixel before the first pixel in the region.
Reimplemented in itk::ImageRegionReverseConstIterator< TImage >, and itk::ImageRegionReverseIterator< TImage >. |
|
Get the pixel value Definition at line 379 of file itkImageReverseConstIterator.h. References itk::ImageReverseConstIterator< TImage >::PixelType. |
|
Get the dimension (size) of the index. Definition at line 286 of file itkImageReverseConstIterator.h. |
|
Get the index. This provides a read only reference to the index. This causes the index to be calculated from pointer arithmetic and is therefore an expensive operation.
Definition at line 364 of file itkImageReverseConstIterator.h. |
|
Get the region that this iterator walks. ImageReverseConstIterators know the beginning and the end of the region of the image to iterate over. Definition at line 375 of file itkImageReverseConstIterator.h. |
|
Move an iterator to the beginning of the region. "Begin" for a reverse iterator is the last pixel in the region. Reimplemented in itk::ImageRegionReverseConstIterator< TImage >. Definition at line 405 of file itkImageReverseConstIterator.h. |
|
Move an iterator to the end of the region. "End" for a reverse iterator is defined as one pixel before the first pixel in the region. Reimplemented in itk::ImageRegionReverseConstIterator< TImage >. Definition at line 417 of file itkImageReverseConstIterator.h. |
|
Is the iterator at the beginning of the (reverse) region? "Begin" for a reverse iterator is the last pixel in the region. Definition at line 424 of file itkImageReverseConstIterator.h. |
|
Is the iterator at the end of the (reverse) region? "End" for a reverse iterator is one pixel before the first pixel in the region. Definition at line 431 of file itkImageReverseConstIterator.h. References itk::ImageReverseConstIterator< TImage >::AccessorType, and itk::ImageReverseConstIterator< TImage >::InternalPixelType. |
|
Dimension of the image the iterator walks. This constant is needed so functions that are templated over image iterator type (as opposed to being templated over pixel type and dimension) can have compile time access to the dimension of the image that the iterator walks. |
|
Comparison operator. Two iterators are the same if they "point to" the same memory location Definition at line 292 of file itkImageReverseConstIterator.h. |
|
operator= is provided to make sure the handle to the image is properly reference counted. Definition at line 255 of file itkImageReverseConstIterator.h. References itk::ImageReverseConstIterator< TImage >::IndexType, and itk::ImageReverseConstIterator< TImage >::SizeType. |
|
operator= is provided to make sure the handle to the image is properly reference counted. Definition at line 238 of file itkImageReverseConstIterator.h. |
|
Comparison operator. Two iterators are the same if they "point to" the same memory location Definition at line 302 of file itkImageReverseConstIterator.h. References itk::ImageReverseConstIterator< TImage >::m_Buffer, itk::ImageReverseConstIterator< TImage >::m_Offset, and itk::ImageReverseConstIterator< TImage >::Self. |
|
Set the pixel value Reimplemented in itk::ImageRegionReverseIterator< TImage >, and itk::ImageReverseIterator< TImage >. Definition at line 383 of file itkImageReverseConstIterator.h. |
|
Set the index. No bounds checking is performed.
Reimplemented in itk::ImageRegionReverseConstIterator< TImage >. Definition at line 369 of file itkImageReverseConstIterator.h. References itk::ImageReverseConstIterator< TImage >::PixelType. |
|
Return a reference to the pixel This method will provide the fastest access to pixel data, but it will NOT support ImageAdaptors. Reimplemented in itk::ImageRegionReverseIterator< TImage >, and itk::ImageReverseIterator< TImage >. Definition at line 395 of file itkImageReverseConstIterator.h. |
|
Return a const reference to the pixel This method will provide the fastest access to pixel data, but it will NOT support ImageAdaptors. Definition at line 389 of file itkImageReverseConstIterator.h. |
|
Definition at line 441 of file itkImageReverseConstIterator.h. Referenced by itk::ImageReverseConstIterator< TImage >::ImageReverseConstIterator(). |
|
Definition at line 444 of file itkImageReverseConstIterator.h. Referenced by itk::ImageReverseConstIterator< TImage >::ImageReverseConstIterator(), and itk::ImageReverseConstIterator< TImage >::operator==(). |
|
Definition at line 442 of file itkImageReverseConstIterator.h. Referenced by itk::ImageReverseConstIterator< TImage >::ImageReverseConstIterator(). |
|
Definition at line 437 of file itkImageReverseConstIterator.h. Referenced by itk::ImageReverseConstIterator< TImage >::ImageReverseConstIterator(). |
|
Definition at line 440 of file itkImageReverseConstIterator.h. Referenced by itk::ImageReverseConstIterator< TImage >::ImageReverseConstIterator(), and itk::ImageReverseConstIterator< TImage >::operator==(). |
|
Definition at line 446 of file itkImageReverseConstIterator.h. Referenced by itk::ImageReverseConstIterator< TImage >::ImageReverseConstIterator(). |
|
Definition at line 447 of file itkImageReverseConstIterator.h. Referenced by itk::ImageReverseConstIterator< TImage >::ImageReverseConstIterator(). |
|
Definition at line 438 of file itkImageReverseConstIterator.h. Referenced by itk::ImageReverseConstIterator< TImage >::ImageReverseConstIterator(). |