#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::AccessorFunctorType | AccessorFunctorType |
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 |
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::ConstWeakPointer | 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 |
AccessorFunctorType | m_PixelAccessorFunctor |
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 the "WithIndex" family of ITK image iterators, which are designed to effeciently keep track of the image index position of the iterator during increment and decrement operations. This iterator is a base class and provides only the basic construction and comparison operations. 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.
ConstShapedNeighborhoodIterator
CorrespondenceDataStructureIterator
FloodFilledFunctionConditionalConstIterator
FloodFilledImageFunctionConditionalConstIterator
FloodFilledImageFunctionConditionalIterator
FloodFilledSpatialFunctionConditionalConstIterator
FloodFilledSpatialFunctionConditionalIterator
ImageLinearConstIteratorWithIndex
ImageRandomConstIteratorWithIndex
ImageRegionConstIteratorWithIndex
ImageRegionExclusionConstIteratorWithIndex
ImageRegionExclusionIteratorWithIndex
ImageRegionReverseConstIterator
Definition at line 91 of file itkImageConstIteratorWithIndex.h.
|
Definition at line 132 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::ImageRandomNonRepeatingIteratorWithIndex< TImage >, itk::ImageRegionExclusionIteratorWithIndex< TImage >, itk::ImageRegionIteratorWithIndex< TImage >, and itk::ImageSliceIteratorWithIndex< TImage >. Definition at line 131 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 241 of file itkImageConstIteratorWithIndex.h. |
|
Get the dimension (size) of the index. Definition at line 156 of file itkImageConstIteratorWithIndex.h. |
|
Get the index. This provides a read only reference to the index.
Definition at line 225 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 230 of file itkImageConstIteratorWithIndex.h. |
|
Move an iterator to the beginning of the region. Reimplemented in itk::ReflectiveImageRegionConstIterator< TImage >, itk::ImageRandomConstIteratorWithIndex< TImage >, and itk::ImageRandomNonRepeatingConstIteratorWithIndex< TImage >. |
|
Move an iterator to the End of the region. |
|
Is the iterator at the end of the region? Reimplemented in itk::ImageRandomConstIteratorWithIndex< TImage >, and itk::ImageRandomNonRepeatingConstIteratorWithIndex< TImage >. Definition at line 271 of file itkImageConstIteratorWithIndex.h. |
|
Is the iterator at the beginning of the region? Definition at line 265 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 162 of file itkImageConstIteratorWithIndex.h. References itk::ImageConstIteratorWithIndex< TImage >::m_Position, and itk::ImageConstIteratorWithIndex< TImage >::Self. |
|
Comparison operator. An iterator is "less than" another if it "points to" a lower memory location. Definition at line 193 of file itkImageConstIteratorWithIndex.h. |
|
Comparison operator. An iterator is "less than" another if it "points to" a lower memory location. Definition at line 182 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 172 of file itkImageConstIteratorWithIndex.h. |
|
Comparison operator. An iterator is "greater than" another if it "points to" a higher location. Definition at line 215 of file itkImageConstIteratorWithIndex.h. |
|
Comparison operator. An iterator is "greater than" another if it "points to" a higher location. Definition at line 204 of file itkImageConstIteratorWithIndex.h. |
|
Are there data remainning in the region ? Definition at line 277 of file itkImageConstIteratorWithIndex.h. References itk::ImageConstIteratorWithIndex< TImage >::IndexType. |
|
Set the index. No bounds checking is performed.
Definition at line 235 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 247 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 296 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 286 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 297 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 287 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 283 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 293 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 301 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 302 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 295 of file itkImageConstIteratorWithIndex.h. Referenced by itk::ImageConstIteratorWithIndex< TImage >::operator!=(). |
|
Definition at line 285 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 291 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 299 of file itkImageConstIteratorWithIndex.h. |