#include <itkImageSliceConstIteratorWithIndex.h>
Inheritance diagram for itk::ImageSliceConstIteratorWithIndex< TImage >:
Public Types | |
typedef ImageSliceConstIteratorWithIndex | Self |
typedef ImageConstIteratorWithIndex< TImage > | Superclass |
typedef TImage::IndexType | IndexType |
typedef TImage | ImageType |
typedef TImage::RegionType | RegionType |
typedef TImage::PixelContainer | PixelContainer |
typedef PixelContainer::Pointer | PixelContainerPointer |
Public Member Functions | |
ImageSliceConstIteratorWithIndex () | |
ImageSliceConstIteratorWithIndex (const ImageConstIteratorWithIndex< TImage > &it) | |
void | NextLine (void) |
void | NextSlice (void) |
void | PreviousLine (void) |
void | PreviousSlice (void) |
bool | IsAtEndOfLine (void) |
bool | IsAtEndOfSlice (void) |
bool | IsAtReverseEndOfLine (void) |
bool | IsAtReverseEndOfSlice (void) |
void | SetFirstDirection (unsigned int direction) |
void | SetSecondDirection (unsigned int direction) |
Self & | operator++ () |
Self & | operator-- () |
ImageSliceConstIteratorWithIndex (const ImageType *ptr, const RegionType ®ion) |
Use the following methods to move the iterator between slices:
To test the position of the iterator with respect to the end or beginning of the slice use the following methods:
The following code, for example, illustrates the typical use of this iterator. For more information please see the Software Guide.
ImageSliceConstIteratorWithIndex<ImageType> it( image, image->GetRequestedRegion() ); it.SetFirstDirection(2); it.SetSecondDirection(0); it.GoToBegin(); while( !it.IsAtEnd() ) { while( !it.IsAtEndOfSlice() ) { while( !it.IsAtEndOfLine() ) { value = it.Get(); // it.Set() doesn't exist in the Const Iterator ++it; } it.NextLine(); } it.NextSlice(); }
Common/itkImageSliceIteratorTest.cxx
ConstShapedNeighborhoodIterator
CorrespondenceDataStructureIterator
FloodFilledFunctionConditionalConstIterator
FloodFilledImageFunctionConditionalConstIterator
FloodFilledImageFunctionConditionalIterator
FloodFilledSpatialFunctionConditionalConstIterator
FloodFilledSpatialFunctionConditionalIterator
ImageLinearConstIteratorWithIndex
ImageRandomConstIteratorWithIndex
ImageRegionConstIteratorWithIndex
ImageRegionExclusionConstIteratorWithIndex
ImageRegionExclusionIteratorWithIndex
ImageRegionReverseConstIterator
Definition at line 112 of file itkImageSliceConstIteratorWithIndex.h.
|
Image typedef support. While this was already typdef'ed in the superclass it needs to be redone here for this subclass to compile properly with gcc. Note that we have to rescope Index back to itk::Index to that is it not confused with ImageIterator::Index. Reimplemented from itk::ImageConstIteratorWithIndex< TImage >. Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >. Definition at line 129 of file itkImageSliceConstIteratorWithIndex.h. Referenced by itk::ImageSliceConstIteratorWithIndex< TImage >::ImageSliceConstIteratorWithIndex(). |
|
Index typedef support. While this was already typdef'ed in the superclass it needs to be redone here for this subclass to compile properly with gcc. Note that we have to rescope Index back to itk::Index to that is it not confused with ImageIterator::Index. Reimplemented from itk::ImageConstIteratorWithIndex< TImage >. Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >. Definition at line 123 of file itkImageSliceConstIteratorWithIndex.h. |
|
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 from itk::ImageConstIteratorWithIndex< TImage >. Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >. Definition at line 137 of file itkImageSliceConstIteratorWithIndex.h. |
|
Reimplemented from itk::ImageConstIteratorWithIndex< TImage >. Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >. Definition at line 138 of file itkImageSliceConstIteratorWithIndex.h. |
|
Region typedef support. Reimplemented from itk::ImageConstIteratorWithIndex< TImage >. Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >. Definition at line 132 of file itkImageSliceConstIteratorWithIndex.h. Referenced by itk::ImageSliceConstIteratorWithIndex< TImage >::ImageSliceConstIteratorWithIndex(). |
|
Standard class typedefs. Reimplemented from itk::ImageConstIteratorWithIndex< TImage >. Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >. Definition at line 116 of file itkImageSliceConstIteratorWithIndex.h. |
|
Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >. Definition at line 117 of file itkImageSliceConstIteratorWithIndex.h. |
|
Default constructor. Needed since we provide a cast constructor. Definition at line 141 of file itkImageSliceConstIteratorWithIndex.h. |
|
Constructor establishes an iterator to walk a particular image and a particular region of that image. Definition at line 145 of file itkImageSliceConstIteratorWithIndex.h. References itk::ImageSliceConstIteratorWithIndex< TImage >::ImageType, and itk::ImageSliceConstIteratorWithIndex< TImage >::RegionType. |
|
Constructor that can be used to cast from an ImageIterator to an ImageSliceConstIteratorWithIndex. Many routines return an ImageIterator but for a particular task, you may want an ImageSliceConstIteratorWithIndex. Rather than provide overloaded APIs that return different types of Iterators, itk returns ImageIterators and uses constructors to cast from an ImageIterator to a ImageSliceConstIteratorWithIndex. Definition at line 160 of file itkImageSliceConstIteratorWithIndex.h. |
|
Test if the index is at the end of line |
|
Test if the index is at the end of the slice |
|
Test if the index is at the begin of line |
|
Test if the index is at the begin of the slice |
|
Go to the next line |
|
Go to the next slice
|
|
Increment (prefix) the selected dimension. No bounds checking is performed.
|
|
Decrement (prefix) the selected dimension. No bounds checking is performed.
|
|
Go to the next line
|
|
Go to the next slice
|
|
Set the fastest direction of movement |
|
Set the second fastest direction of movement |