ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkImageSliceConstIteratorWithIndex.h>
Multi-dimensional image iterator which only walks a region.
A multi-dimensional image iterator that extends the ImageLinearConstIteratorWithIndex from iteration along lines in an image to iteration along both lines and planes (slices) within an image. A slice is defined as a 2D plane spanned by two vectors pointing along orthogonal coordinate axes. The slice orientation of the iterator is defined by specifying its two spanning axes using the methods:
where n is the number of the axis.
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(); }
Definition at line 114 of file itkImageSliceConstIteratorWithIndex.h.
typedef Superclass::AccessorType itk::ImageSliceConstIteratorWithIndex< TImage >::AccessorType |
Accessor type that converts data between internal and external representations.
Reimplemented from itk::ImageConstIteratorWithIndex< TImage >.
Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >.
Definition at line 131 of file itkImageSliceConstIteratorWithIndex.h.
typedef Superclass::ImageType itk::ImageSliceConstIteratorWithIndex< TImage >::ImageType |
Image typedef support.
Reimplemented from itk::ImageConstIteratorWithIndex< TImage >.
Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >.
Definition at line 126 of file itkImageSliceConstIteratorWithIndex.h.
typedef Superclass::IndexType itk::ImageSliceConstIteratorWithIndex< TImage >::IndexType |
Inherit types from the superclass
Reimplemented from itk::ImageConstIteratorWithIndex< TImage >.
Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >.
Definition at line 122 of file itkImageSliceConstIteratorWithIndex.h.
typedef Superclass::InternalPixelType itk::ImageSliceConstIteratorWithIndex< TImage >::InternalPixelType |
Internal Pixel Type
Reimplemented from itk::ImageConstIteratorWithIndex< TImage >.
Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >.
Definition at line 129 of file itkImageSliceConstIteratorWithIndex.h.
typedef Superclass::OffsetType itk::ImageSliceConstIteratorWithIndex< TImage >::OffsetType |
Type of the Offset taken from the image
Reimplemented from itk::ImageConstIteratorWithIndex< TImage >.
Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >.
Definition at line 124 of file itkImageSliceConstIteratorWithIndex.h.
typedef Superclass::PixelContainer itk::ImageSliceConstIteratorWithIndex< 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 from itk::ImageConstIteratorWithIndex< TImage >.
Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >.
Definition at line 127 of file itkImageSliceConstIteratorWithIndex.h.
typedef Superclass::PixelContainerPointer itk::ImageSliceConstIteratorWithIndex< TImage >::PixelContainerPointer |
Reimplemented from itk::ImageConstIteratorWithIndex< TImage >.
Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >.
Definition at line 128 of file itkImageSliceConstIteratorWithIndex.h.
typedef Superclass::PixelType itk::ImageSliceConstIteratorWithIndex< TImage >::PixelType |
External Pixel Type
Reimplemented from itk::ImageConstIteratorWithIndex< TImage >.
Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >.
Definition at line 130 of file itkImageSliceConstIteratorWithIndex.h.
typedef Superclass::RegionType itk::ImageSliceConstIteratorWithIndex< TImage >::RegionType |
Region typedef support.
Reimplemented from itk::ImageConstIteratorWithIndex< TImage >.
Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >.
Definition at line 125 of file itkImageSliceConstIteratorWithIndex.h.
typedef ImageSliceConstIteratorWithIndex itk::ImageSliceConstIteratorWithIndex< TImage >::Self |
Standard class typedefs.
Reimplemented from itk::ImageConstIteratorWithIndex< TImage >.
Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >.
Definition at line 118 of file itkImageSliceConstIteratorWithIndex.h.
typedef Superclass::SizeType itk::ImageSliceConstIteratorWithIndex< TImage >::SizeType |
Size typedef support.
Reimplemented from itk::ImageConstIteratorWithIndex< TImage >.
Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >.
Definition at line 123 of file itkImageSliceConstIteratorWithIndex.h.
typedef ImageConstIteratorWithIndex< TImage > itk::ImageSliceConstIteratorWithIndex< TImage >::Superclass |
Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >.
Definition at line 119 of file itkImageSliceConstIteratorWithIndex.h.
itk::ImageSliceConstIteratorWithIndex< TImage >::ImageSliceConstIteratorWithIndex | ( | ) | [inline] |
Default constructor. Needed since we provide a cast constructor.
Definition at line 134 of file itkImageSliceConstIteratorWithIndex.h.
itk::ImageSliceConstIteratorWithIndex< TImage >::ImageSliceConstIteratorWithIndex | ( | const ImageType * | ptr, |
const RegionType & | region | ||
) | [inline] |
Constructor establishes an iterator to walk a particular image and a particular region of that image.
Definition at line 138 of file itkImageSliceConstIteratorWithIndex.h.
itk::ImageSliceConstIteratorWithIndex< TImage >::ImageSliceConstIteratorWithIndex | ( | const ImageConstIteratorWithIndex< TImage > & | it | ) | [inline] |
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 153 of file itkImageSliceConstIteratorWithIndex.h.
void itk::ImageSliceConstIteratorWithIndex< TImage >::GoToBeginOfSlice | ( | void | ) |
Go to the first pixel of the current slice
bool itk::ImageSliceConstIteratorWithIndex< TImage >::IsAtEndOfLine | ( | void | ) |
Test if the index is at the end of line
bool itk::ImageSliceConstIteratorWithIndex< TImage >::IsAtEndOfSlice | ( | void | ) |
Test if the index is at the end of the slice
bool itk::ImageSliceConstIteratorWithIndex< TImage >::IsAtReverseEndOfLine | ( | void | ) |
Test if the index is at the begin of line
bool itk::ImageSliceConstIteratorWithIndex< TImage >::IsAtReverseEndOfSlice | ( | void | ) |
Test if the index is at the begin of the slice
void itk::ImageSliceConstIteratorWithIndex< TImage >::NextLine | ( | void | ) |
void itk::ImageSliceConstIteratorWithIndex< TImage >::NextSlice | ( | void | ) |
Go to the next slice
Self& itk::ImageSliceConstIteratorWithIndex< TImage >::operator++ | ( | ) | [inline] |
Increment (prefix) the selected dimension. No bounds checking is performed.
Self& itk::ImageSliceConstIteratorWithIndex< TImage >::operator-- | ( | ) | [inline] |
Decrement (prefix) the selected dimension. No bounds checking is performed.
void itk::ImageSliceConstIteratorWithIndex< TImage >::PreviousLine | ( | void | ) |
Go to the next line
void itk::ImageSliceConstIteratorWithIndex< TImage >::PreviousSlice | ( | void | ) |
Go to the next slice
void itk::ImageSliceConstIteratorWithIndex< TImage >::SetFirstDirection | ( | unsigned int | direction | ) |
Set the fastest direction of movement
void itk::ImageSliceConstIteratorWithIndex< TImage >::SetSecondDirection | ( | unsigned int | direction | ) |
Set the second fastest direction of movement
unsigned int itk::ImageSliceConstIteratorWithIndex< TImage >::m_Direction_A [private] |
Definition at line 206 of file itkImageSliceConstIteratorWithIndex.h.
unsigned int itk::ImageSliceConstIteratorWithIndex< TImage >::m_Direction_B [private] |
Definition at line 207 of file itkImageSliceConstIteratorWithIndex.h.
SizeValueType itk::ImageSliceConstIteratorWithIndex< TImage >::m_LineJump [private] |
Definition at line 205 of file itkImageSliceConstIteratorWithIndex.h.
SizeValueType itk::ImageSliceConstIteratorWithIndex< TImage >::m_PixelJump [private] |
Definition at line 204 of file itkImageSliceConstIteratorWithIndex.h.