Main Page
Groups
Namespace List
Class Hierarchy
Alphabetical List
Compound List
File
List
Namespace Members
Compound Members
File Members
Concepts
itk::ImageConstIteratorWithIndex< TImage > Class Template Reference
[Image Iterators]
Multi-dimensional image iterator.
More...
#include <itkImageConstIteratorWithIndex.h>
Inheritance diagram for itk::ImageConstIteratorWithIndex:
[legend]List of all members.
Detailed Description
template<typename TImage>
class itk::ImageConstIteratorWithIndex< TImage >
Multi-dimensional image iterator.
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.
Member Typedef Documentation
|
template<typename TImage> |
| typedef TImage::AccessorType itk::ImageConstIteratorWithIndex< TImage >::AccessorType
|
|
|
template<typename TImage> |
| typedef TImage itk::ImageConstIteratorWithIndex< TImage >::ImageType
|
|
|
|
Image typedef support.
Reimplemented in itk::ReflectiveImageRegionConstIterator< TImage >, itk::ReflectiveImageRegionIterator< TImage >, itk::ImageIteratorWithIndex< TImage >, itk::ImageLinearConstIteratorWithIndex< TImage >, itk::ImageLinearIteratorWithIndex< TImage >, itk::ImageRandomConstIteratorWithIndex< TImage >, itk::ImageRandomIteratorWithIndex< TImage >, itk::ImageRegionConstIteratorWithIndex< TImage >, itk::ImageRegionExclusionConstIteratorWithIndex< TImage >, itk::ImageRegionExclusionIteratorWithIndex< TImage >, itk::ImageRegionIteratorWithIndex< TImage >, itk::ImageSliceConstIteratorWithIndex< TImage >, itk::ImageSliceIteratorWithIndex< TImage >, itk::ImageLinearConstIteratorWithIndex< TImageType >, and itk::ImageLinearIteratorWithIndex< TImageType >.
Definition at line 82 of file itkImageConstIteratorWithIndex.h. |
|
template<typename TImage> |
| typedef TImage::IndexType itk::ImageConstIteratorWithIndex< TImage >::IndexType
|
|
|
|
Index typedef support.
Reimplemented in itk::ReflectiveImageRegionConstIterator< TImage >, itk::ReflectiveImageRegionIterator< TImage >, itk::ImageIteratorWithIndex< TImage >, itk::ImageLinearConstIteratorWithIndex< TImage >, itk::ImageLinearIteratorWithIndex< TImage >, itk::ImageRandomConstIteratorWithIndex< TImage >, itk::ImageRandomIteratorWithIndex< TImage >, itk::ImageRegionConstIteratorWithIndex< TImage >, itk::ImageRegionExclusionConstIteratorWithIndex< TImage >, itk::ImageRegionExclusionIteratorWithIndex< TImage >, itk::ImageRegionIteratorWithIndex< TImage >, itk::ImageSliceConstIteratorWithIndex< TImage >, itk::ImageSliceIteratorWithIndex< TImage >, itk::ImageLinearConstIteratorWithIndex< TImageType >, and itk::ImageLinearIteratorWithIndex< TImageType >.
Definition at line 71 of file itkImageConstIteratorWithIndex.h. |
|
template<typename TImage> |
| typedef IndexType::IndexValueType itk::ImageConstIteratorWithIndex< TImage >::IndexValueType
|
|
|
template<typename TImage> |
| typedef TImage::InternalPixelType itk::ImageConstIteratorWithIndex< TImage >::InternalPixelType
|
|
|
template<typename TImage> |
| typedef TImage::OffsetType itk::ImageConstIteratorWithIndex< TImage >::OffsetType
|
|
|
template<typename TImage> |
| typedef OffsetType::OffsetValueType itk::ImageConstIteratorWithIndex< TImage >::OffsetValueType
|
|
|
template<typename TImage> |
| typedef TImage::PixelContainer itk::ImageConstIteratorWithIndex< TImage >::PixelContainer
|
|
|
|
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::ReflectiveImageRegionConstIterator< TImage >, itk::ReflectiveImageRegionIterator< TImage >, itk::ImageIteratorWithIndex< TImage >, itk::ImageLinearConstIteratorWithIndex< TImage >, itk::ImageLinearIteratorWithIndex< TImage >, itk::ImageRandomConstIteratorWithIndex< TImage >, itk::ImageRandomIteratorWithIndex< TImage >, itk::ImageRegionConstIteratorWithIndex< TImage >, itk::ImageRegionExclusionConstIteratorWithIndex< TImage >, itk::ImageRegionExclusionIteratorWithIndex< TImage >, itk::ImageRegionIteratorWithIndex< TImage >, itk::ImageSliceConstIteratorWithIndex< TImage >, itk::ImageSliceIteratorWithIndex< TImage >, itk::ImageLinearConstIteratorWithIndex< TImageType >, and itk::ImageLinearIteratorWithIndex< TImageType >.
Definition at line 87 of file itkImageConstIteratorWithIndex.h. |
|
template<typename TImage> |
| typedef PixelContainer::Pointer itk::ImageConstIteratorWithIndex< TImage >::PixelContainerPointer
|
|
|
|
Reimplemented in itk::ReflectiveImageRegionConstIterator< TImage >, itk::ReflectiveImageRegionIterator< TImage >, itk::ImageIteratorWithIndex< TImage >, itk::ImageLinearConstIteratorWithIndex< TImage >, itk::ImageLinearIteratorWithIndex< TImage >, itk::ImageRandomConstIteratorWithIndex< TImage >, itk::ImageRandomIteratorWithIndex< TImage >, itk::ImageRegionConstIteratorWithIndex< TImage >, itk::ImageRegionExclusionConstIteratorWithIndex< TImage >, itk::ImageRegionExclusionIteratorWithIndex< TImage >, itk::ImageRegionIteratorWithIndex< TImage >, itk::ImageSliceConstIteratorWithIndex< TImage >, itk::ImageSliceIteratorWithIndex< TImage >, itk::ImageLinearConstIteratorWithIndex< TImageType >, and itk::ImageLinearIteratorWithIndex< TImageType >.
Definition at line 88 of file itkImageConstIteratorWithIndex.h. |
|
template<typename TImage> |
| typedef TImage::PixelType itk::ImageConstIteratorWithIndex< TImage >::PixelType
|
|
|
template<typename TImage> |
| typedef TImage::RegionType itk::ImageConstIteratorWithIndex< TImage >::RegionType
|
|
|
|
Region typedef support.
Reimplemented in itk::ReflectiveImageRegionConstIterator< TImage >, itk::ReflectiveImageRegionIterator< TImage >, itk::ImageIteratorWithIndex< TImage >, itk::ImageLinearConstIteratorWithIndex< TImage >, itk::ImageLinearIteratorWithIndex< TImage >, itk::ImageRandomConstIteratorWithIndex< TImage >, itk::ImageRandomIteratorWithIndex< TImage >, itk::ImageRegionConstIteratorWithIndex< TImage >, itk::ImageRegionExclusionConstIteratorWithIndex< TImage >, itk::ImageRegionExclusionIteratorWithIndex< TImage >, itk::ImageRegionIteratorWithIndex< TImage >, itk::ImageSliceConstIteratorWithIndex< TImage >, itk::ImageSliceIteratorWithIndex< TImage >, itk::ImageLinearConstIteratorWithIndex< TImageType >, and itk::ImageLinearIteratorWithIndex< TImageType >.
Definition at line 79 of file itkImageConstIteratorWithIndex.h. |
|
template<typename TImage> |
| typedef ImageConstIteratorWithIndex itk::ImageConstIteratorWithIndex< TImage >::Self
|
|
|
|
Standard class typedefs.
Reimplemented in itk::ReflectiveImageRegionConstIterator< TImage >, itk::ReflectiveImageRegionIterator< TImage >, itk::ImageIteratorWithIndex< TImage >, itk::ImageLinearConstIteratorWithIndex< TImage >, itk::ImageLinearIteratorWithIndex< TImage >, itk::ImageRandomConstIteratorWithIndex< TImage >, itk::ImageRandomIteratorWithIndex< TImage >, itk::ImageRegionConstIteratorWithIndex< TImage >, itk::ImageRegionExclusionConstIteratorWithIndex< TImage >, itk::ImageRegionExclusionIteratorWithIndex< TImage >, itk::ImageRegionIteratorWithIndex< TImage >, itk::ImageSliceConstIteratorWithIndex< TImage >, itk::ImageSliceIteratorWithIndex< TImage >, itk::ImageLinearConstIteratorWithIndex< TImageType >, and itk::ImageLinearIteratorWithIndex< TImageType >.
Definition at line 62 of file itkImageConstIteratorWithIndex.h. |
|
template<typename TImage> |
| typedef TImage::SizeType itk::ImageConstIteratorWithIndex< TImage >::SizeType
|
|
|
template<typename TImage> |
| typedef SizeType::SizeValueType itk::ImageConstIteratorWithIndex< TImage >::SizeValueType
|
|
Constructor & Destructor Documentation
|
template<typename TImage> |
| itk::ImageConstIteratorWithIndex< TImage >::ImageConstIteratorWithIndex |
( |
|
) |
|
|
|
|
Default Constructor. Need to provide a default constructor since we provide a copy constructor. |
|
template<typename TImage> |
| itk::ImageConstIteratorWithIndex< TImage >::ImageConstIteratorWithIndex |
( |
const Self & |
it |
) |
|
|
|
|
Copy Constructor. The copy constructor is provided to make sure the handle to the image is properly reference counted. |
|
template<typename TImage> |
| itk::ImageConstIteratorWithIndex< TImage >::ImageConstIteratorWithIndex |
( |
const TImage * |
ptr, |
|
|
const RegionType & |
region |
|
) |
|
|
|
|
Constructor establishes an iterator to walk a particular image and a particular region of that image. |
Member Function Documentation
|
template<typename TImage> |
| Self itk::ImageConstIteratorWithIndex< TImage >::Begin |
( |
void |
|
) |
const |
|
|
|
Move an iterator to the beginning of the region. -
Deprecated:
-
Use GoToBegin() instead
|
|
template<typename TImage> |
| Self itk::ImageConstIteratorWithIndex< TImage >::End |
( |
void |
|
) |
const |
|
|
|
Move an iterator to the End of the region. -
Deprecated:
-
Use GoToReverseBegin() instead
|
|
template<typename TImage> |
| PixelType itk::ImageConstIteratorWithIndex< TImage >::Get |
( |
void |
|
) |
const [inline] |
|
|
template<typename TImage> |
| unsigned int itk::ImageConstIteratorWithIndex< TImage >::GetImageDimension |
( |
|
) |
[inline, static] |
|
|
template<typename TImage> |
| const IndexType itk::ImageConstIteratorWithIndex< TImage >::GetIndex |
( |
void |
|
) |
[inline] |
|
|
template<typename TImage> |
| const RegionType& itk::ImageConstIteratorWithIndex< TImage >::GetRegion |
( |
|
) |
const [inline] |
|
|
|
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. |
|
template<typename TImage> |
| void itk::ImageConstIteratorWithIndex< TImage >::GoToBegin |
( |
void |
|
) |
|
|
|
template<typename TImage> |
| void itk::ImageConstIteratorWithIndex< TImage >::GoToReverseBegin |
( |
void |
|
) |
|
|
|
|
Move an iterator to the End of the region. |
|
template<typename TImage> |
| bool itk::ImageConstIteratorWithIndex< TImage >::IsAtEnd |
( |
void |
|
) |
const [inline] |
|
|
template<typename TImage> |
| bool itk::ImageConstIteratorWithIndex< TImage >::IsAtReverseEnd |
( |
void |
|
) |
const [inline] |
|
|
template<typename TImage> |
| itk::ImageConstIteratorWithIndex< TImage >::itkStaticConstMacro |
( |
ImageDimension |
, |
|
|
unsigned |
int, |
|
|
TImage::ImageDimension |
|
|
) |
|
|
|
|
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 >. |
|
template<typename TImage> |
| bool itk::ImageConstIteratorWithIndex< TImage >::operator!= |
( |
const Self & |
it |
) |
const [inline] |
|
|
template<typename TImage> |
| bool itk::ImageConstIteratorWithIndex< TImage >::operator< |
( |
const Self & |
it |
) |
const [inline] |
|
|
template<typename TImage> |
| bool itk::ImageConstIteratorWithIndex< TImage >::operator<= |
( |
const Self & |
it |
) |
const [inline] |
|
|
template<typename TImage> |
| Self& itk::ImageConstIteratorWithIndex< TImage >::operator= |
( |
const Self & |
it |
) |
|
|
|
template<typename TImage> |
| bool itk::ImageConstIteratorWithIndex< TImage >::operator== |
( |
const Self & |
it |
) |
const [inline] |
|
|
template<typename TImage> |
| bool itk::ImageConstIteratorWithIndex< TImage >::operator> |
( |
const Self & |
it |
) |
const [inline] |
|
|
template<typename TImage> |
| bool itk::ImageConstIteratorWithIndex< TImage >::operator>= |
( |
const Self & |
it |
) |
const [inline] |
|
|
template<typename TImage> |
| bool itk::ImageConstIteratorWithIndex< TImage >::Remaining |
( |
|
) |
[inline] |
|
|
template<typename TImage> |
| void itk::ImageConstIteratorWithIndex< TImage >::SetIndex |
( |
const IndexType & |
ind |
) |
[inline] |
|
|
template<typename TImage> |
| const PixelType& itk::ImageConstIteratorWithIndex< TImage >::Value |
( |
void |
|
) |
const [inline] |
|
|
|
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. |
Member Data Documentation
|
template<typename TImage> |
const InternalPixelType* itk::ImageConstIteratorWithIndex< TImage >::m_Begin [protected]
|
|
|
template<typename TImage> |
IndexType itk::ImageConstIteratorWithIndex< TImage >::m_BeginIndex [protected]
|
|
|
template<typename TImage> |
const InternalPixelType* itk::ImageConstIteratorWithIndex< TImage >::m_End [protected]
|
|
|
template<typename TImage> |
IndexType itk::ImageConstIteratorWithIndex< TImage >::m_EndIndex [protected]
|
|
|
template<typename TImage> |
TImage::ConstPointer itk::ImageConstIteratorWithIndex< TImage >::m_Image [protected]
|
|
|
template<typename TImage> |
unsigned long itk::ImageConstIteratorWithIndex< TImage >::m_OffsetTable[ ImageDimension + 1 ] [protected]
|
|
|
template<typename TImage> |
AccessorType itk::ImageConstIteratorWithIndex< TImage >::m_PixelAccessor [protected]
|
|
|
template<typename TImage> |
const InternalPixelType* itk::ImageConstIteratorWithIndex< TImage >::m_Position [protected]
|
|
|
template<typename TImage> |
IndexType itk::ImageConstIteratorWithIndex< TImage >::m_PositionIndex [protected]
|
|
|
template<typename TImage> |
RegionType itk::ImageConstIteratorWithIndex< TImage >::m_Region [protected]
|
|
|
template<typename TImage> |
bool itk::ImageConstIteratorWithIndex< TImage >::m_Remaining [protected]
|
|
The documentation for this class was generated from the following file:
Generated at Tue Sep 16 11:35:58 2003 for ITK by
1.2.15 written by Dimitri van Heesch,
© 1997-2000