#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::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 |
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.
|
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 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 240 of file itkImageConstIteratorWithIndex.h. |
|
Get the dimension (size) of the index. Definition at line 155 of file itkImageConstIteratorWithIndex.h. |
|
Get the index. This provides a read only reference to the index.
Definition at line 224 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 229 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 270 of file itkImageConstIteratorWithIndex.h. |
|
Is the iterator at the beginning of the region? Definition at line 264 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 161 of file itkImageConstIteratorWithIndex.h. |
|
Comparison operator. An iterator is "less than" another if it "points to" a lower memory location. Definition at line 192 of file itkImageConstIteratorWithIndex.h. |
|
Comparison operator. An iterator is "less than" another if it "points to" a lower memory location. Definition at line 181 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 171 of file itkImageConstIteratorWithIndex.h. |
|
Comparison operator. An iterator is "greater than" another if it "points to" a higher location. Definition at line 214 of file itkImageConstIteratorWithIndex.h. |
|
Comparison operator. An iterator is "greater than" another if it "points to" a higher location. Definition at line 203 of file itkImageConstIteratorWithIndex.h. |
|
Are there data remainning in the region ? Definition at line 276 of file itkImageConstIteratorWithIndex.h. |
|
Set the index. No bounds checking is performed.
Definition at line 234 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 246 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 295 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 285 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 296 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 286 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 282 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 292 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 300 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 294 of file itkImageConstIteratorWithIndex.h. Referenced by itk::ImageConstIteratorWithIndex< TImageType >::operator!=(). |
|
Definition at line 284 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 290 of file itkImageConstIteratorWithIndex.h. |
|
Definition at line 298 of file itkImageConstIteratorWithIndex.h. |