#include <itkImageConstIteratorWithIndex.h>
Inheritance diagram for itk::ImageConstIteratorWithIndex:
Public Types | |
typedef ImageConstIteratorWithIndex | Self |
typedef TImage::IndexType | IndexType |
typedef IndexType::IndexValueType | IndexValueType |
typedef TImage::SizeType | SizeType |
typedef SizeType::SizeValueType | SizeValueType |
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::OffsetType | OffsetType |
typedef OffsetType::OffsetValueType | OffsetValueType |
Public Methods | |
itkStaticConstMacro (ImageDimension, unsigned int, TImage::ImageDimension) | |
ImageConstIteratorWithIndex () | |
ImageConstIteratorWithIndex (const Self &it) | |
ImageConstIteratorWithIndex (const TImage *ptr, const RegionType ®ion) | |
Self & | operator= (const Self &it) |
const IndexType | GetIndex () |
const RegionType & | GetRegion () const |
PixelType | Get (void) const |
const PixelType & | Value (void) const |
Self | Begin (void) const |
void | GoToBegin (void) |
Self | End (void) const |
void | GoToEnd (void) |
bool | IsAtBegin (void) const |
bool | IsAtEnd (void) const |
bool | Remaining () |
bool | operator!= (const Self &it) const |
bool | operator== (const Self &it) const |
bool | operator<= (const Self &it) const |
bool | operator< (const Self &it) const |
bool | operator>= (const Self &it) const |
bool | operator> (const Self &it) const |
void | SetIndex (const IndexType &ind) |
Static Public Methods | |
unsigned int | GetImageDimension () |
Protected Attributes | |
TImage::ConstPointer | m_Image |
IndexType | m_PositionIndex |
IndexType | m_BeginIndex |
IndexType | m_EndIndex |
RegionType | m_Region |
unsigned long | m_OffsetTable [ImageDimension+1] |
const InternalPixelType * | m_Position |
const InternalPixelType * | m_Begin |
const InternalPixelType * | m_End |
bool | m_Remaining |
AccessorType | m_PixelAccessor |
ImageConstIteratorWithIndex is a templated class to represent a multi-dimensional iterator. ImageConstIteratorWithIndex is templated over the dimension of the image and the data type of the image.
ImageConstIteratorWithIndex is a base class for image iterators. It provides the basic construction and comparison operations. However, it does not provide mechanisms for moving the iterator. A subclass of ImageConstIteratorWithIndex must be used to move the iterator.
ImageConstIteratorWithIndex 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, ImageConstIteratorWithIndex holds a reference to the image over which it is traversing.
ImageConstIteratorWithIndex 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.
Definition at line 58 of file itkImageConstIteratorWithIndex.h.
|
Accessor type that convert data between internal and external representations. Reimplemented in itk::ReflectiveImageRegionIterator< TImage >, itk::ImageIteratorWithIndex< TImage >, itk::ImageLinearIteratorWithIndex< TImage >, itk::ImageRandomIteratorWithIndex< TImage >, itk::ImageRegionExclusionIteratorWithIndex< TImage >, itk::ImageRegionIteratorWithIndex< TImage >, itk::ImageSliceIteratorWithIndex< TImage >, and itk::ImageLinearIteratorWithIndex< TImageType >. Definition at line 97 of file itkImageConstIteratorWithIndex.h. |
|
|
|
|
|
Type of the Offset taken from the image Reimplemented in itk::ReflectiveImageRegionIterator< TImage >, itk::ImageIteratorWithIndex< TImage >, itk::ImageLinearIteratorWithIndex< TImage >, itk::ImageRandomIteratorWithIndex< TImage >, itk::ImageRegionExclusionIteratorWithIndex< TImage >, itk::ImageRegionIteratorWithIndex< TImage >, itk::ImageSliceIteratorWithIndex< TImage >, and itk::ImageLinearIteratorWithIndex< TImageType >. Definition at line 100 of file itkImageConstIteratorWithIndex.h. |
|
|
|
|
|
|
|
|
|
Default Constructor. Need to provide a default constructor since we provide a copy constructor. |
|
Copy Constructor. The copy constructor is provided to make sure the handle to the image is properly reference counted. |
|
Constructor establishes an iterator to walk a particular image and a particular region of that image. |
|
Move an iterator to the beginning of the region.
|
|
Move an iterator to the End of the region.
|
|
Get the pixel value Definition at line 206 of file itkImageConstIteratorWithIndex.h. |
|
Get the dimension (size) of the index. Definition at line 121 of file itkImageConstIteratorWithIndex.h. |
|
Get the index. This provides a read only reference to the index.
Definition at line 190 of file itkImageConstIteratorWithIndex.h. |
|
Get the region that this iterator walks. ImageIterators know the beginning and the end of the region of the image to iterate over. Definition at line 195 of file itkImageConstIteratorWithIndex.h. |
|
Move an iterator to the beginning of the region. Reimplemented in itk::ReflectiveImageRegionConstIterator< TImage >, and itk::ImageRandomConstIteratorWithIndex< TImage >. |
|
Move an iterator to the End of the region. Reimplemented in itk::ImageRandomConstIteratorWithIndex< TImage >. |
|
Is the iterator at the beginning of the region? Reimplemented in itk::ImageRandomConstIteratorWithIndex< TImage >. Definition at line 230 of file itkImageConstIteratorWithIndex.h. |
|
Is the iterator at the end of the region? Reimplemented in itk::ImageRandomConstIteratorWithIndex< TImage >. Definition at line 236 of file itkImageConstIteratorWithIndex.h. |
|
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. Reimplemented in itk::ImageIteratorWithIndex< TImage >. |
|
Comparison operator. Two iterators are the same if they "point to" the same memory location Definition at line 127 of file itkImageConstIteratorWithIndex.h. |
|
Comparison operator. An iterator is "less than" another if it "points to" a lower memory location. Definition at line 158 of file itkImageConstIteratorWithIndex.h. |
|
Comparison operator. An iterator is "less than" another if it "points to" a lower memory location. Definition at line 147 of file itkImageConstIteratorWithIndex.h. |
|
operator= is provided to make sure the handle to the image is properly reference counted. Reimplemented in itk::ImageIteratorWithIndex< TImage >. |
|
Comparison operator. Two iterators are the same if they "point to" the same memory location Definition at line 137 of file itkImageConstIteratorWithIndex.h. |
|
Comparison operator. An iterator is "greater than" another if it "points to" a higher location. Definition at line 180 of file itkImageConstIteratorWithIndex.h. |
|
Comparison operator. An iterator is "greater than" another if it "points to" a higher location. Definition at line 169 of file itkImageConstIteratorWithIndex.h. |
|
Are there data remainning in the region ? Definition at line 242 of file itkImageConstIteratorWithIndex.h. |
|
Set the index. No bounds checking is performed.
Definition at line 200 of file itkImageConstIteratorWithIndex.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 212 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 261 of file itkImageConstIteratorWithIndex.h. Referenced by itk::ImageConstIteratorWithIndex< TImageType >::GetRegion(). |
|
Definition at line 251 of file itkImageConstIteratorWithIndex.h. Referenced by itk::ImageConstIteratorWithIndex< TImageType >::Remaining(). |
|
Definition at line 262 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 252 of file itkImageConstIteratorWithIndex.h. Referenced by itk::ImageConstIteratorWithIndex< TImageType >::Remaining(). |
|
Definition at line 248 of file itkImageConstIteratorWithIndex.h. Referenced by itk::ImageConstIteratorWithIndex< TImageType >::GetRegion(). |
|
Definition at line 258 of file itkImageConstIteratorWithIndex.h. |
|
|
|
Definition at line 250 of file itkImageConstIteratorWithIndex.h. Referenced by itk::ImageConstIteratorWithIndex< TImageType >::GetRegion(), and itk::ImageConstIteratorWithIndex< TImageType >::Remaining(). |
|
Definition at line 256 of file itkImageConstIteratorWithIndex.h. Referenced by itk::ImageConstIteratorWithIndex< TImageType >::GetIndex(). |
|
Definition at line 264 of file itkImageConstIteratorWithIndex.h. Referenced by itk::ImageConstIteratorWithIndex< TImageType >::IsAtBegin(), and itk::ImageConstIteratorWithIndex< TImageType >::IsAtEnd(). |