#include <itkImageConstIteratorWithIndex.h>
Inheritance diagram for itk::ImageConstIteratorWithIndex< TImage >:
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 Member Functions | |
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 | GoToReverseBegin (void) |
bool | IsAtReverseEnd (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 Member Functions | |
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 98 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 207 of file itkImageConstIteratorWithIndex.h. |
|
Get the dimension (size) of the index. Definition at line 122 of file itkImageConstIteratorWithIndex.h. |
|
Get the index. This provides a read only reference to the index.
|
|
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 196 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. |
|
Is the iterator at the end of the region? Reimplemented in itk::ImageRandomConstIteratorWithIndex< TImage >. Definition at line 237 of file itkImageConstIteratorWithIndex.h. |
|
Is the iterator at the beginning of the region? Definition at line 231 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. |
|
Comparison operator. Two iterators are the same if they "point to" the same memory location Definition at line 128 of file itkImageConstIteratorWithIndex.h. |
|
Comparison operator. An iterator is "less than" another if it "points to" a lower memory location. Definition at line 159 of file itkImageConstIteratorWithIndex.h. |
|
Comparison operator. An iterator is "less than" another if it "points to" a lower memory location. Definition at line 148 of file itkImageConstIteratorWithIndex.h. |
|
operator= is provided to make sure the handle to the image is properly reference counted. Reimplemented in itk::ReflectiveImageRegionConstIterator< TImage >, and itk::ImageIteratorWithIndex< TImage >.
|
|
Comparison operator. Two iterators are the same if they "point to" the same memory location Definition at line 138 of file itkImageConstIteratorWithIndex.h. |
|
Comparison operator. An iterator is "greater than" another if it "points to" a higher location. Definition at line 181 of file itkImageConstIteratorWithIndex.h. |
|
Comparison operator. An iterator is "greater than" another if it "points to" a higher location. Definition at line 170 of file itkImageConstIteratorWithIndex.h. |
|
Are there data remainning in the region ? Definition at line 243 of file itkImageConstIteratorWithIndex.h. |
|
Set the index. No bounds checking is performed.
|
|
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 213 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 262 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 252 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 263 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 253 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 249 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 259 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 267 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 261 of file itkImageConstIteratorWithIndex.h. Referenced by itk::ImageConstIteratorWithIndex< TImageType >::operator!=(). |
|
Definition at line 251 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 257 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 265 of file itkImageConstIteratorWithIndex.h. |