ITK
4.8.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.
Definition at line 113 of file itkImageSliceConstIteratorWithIndex.h.
Private Attributes | |
unsigned int | m_Direction_A |
unsigned int | m_Direction_B |
SizeValueType | m_LineJump |
SizeValueType | m_PixelJump |
Additional Inherited Members | |
Static Public Member Functions inherited from itk::ImageConstIteratorWithIndex< TImage > | |
static unsigned int | GetImageDimension () |
Static Public Attributes inherited from itk::ImageConstIteratorWithIndex< TImage > | |
static const unsigned int | ImageDimension = TImage::ImageDimension |
Protected Attributes inherited from itk::ImageConstIteratorWithIndex< TImage > | |
const InternalPixelType * | m_Begin |
IndexType | m_BeginIndex |
const InternalPixelType * | m_End |
IndexType | m_EndIndex |
TImage::ConstWeakPointer | m_Image |
OffsetValueType | m_OffsetTable [ImageDimension+1] |
AccessorType | m_PixelAccessor |
AccessorFunctorType | m_PixelAccessorFunctor |
const InternalPixelType * | m_Position |
IndexType | m_PositionIndex |
RegionType | m_Region |
bool | m_Remaining |
typedef Superclass::AccessorType itk::ImageSliceConstIteratorWithIndex< TImage >::AccessorType |
Definition at line 130 of file itkImageSliceConstIteratorWithIndex.h.
typedef Superclass::ImageType itk::ImageSliceConstIteratorWithIndex< TImage >::ImageType |
Definition at line 125 of file itkImageSliceConstIteratorWithIndex.h.
typedef Superclass::IndexType itk::ImageSliceConstIteratorWithIndex< TImage >::IndexType |
Inherit types from the superclass
Definition at line 121 of file itkImageSliceConstIteratorWithIndex.h.
typedef Superclass::InternalPixelType itk::ImageSliceConstIteratorWithIndex< TImage >::InternalPixelType |
Definition at line 128 of file itkImageSliceConstIteratorWithIndex.h.
typedef Superclass::OffsetType itk::ImageSliceConstIteratorWithIndex< TImage >::OffsetType |
Definition at line 123 of file itkImageSliceConstIteratorWithIndex.h.
typedef Superclass::PixelContainer itk::ImageSliceConstIteratorWithIndex< TImage >::PixelContainer |
Definition at line 126 of file itkImageSliceConstIteratorWithIndex.h.
typedef Superclass::PixelContainerPointer itk::ImageSliceConstIteratorWithIndex< TImage >::PixelContainerPointer |
Definition at line 127 of file itkImageSliceConstIteratorWithIndex.h.
typedef Superclass::PixelType itk::ImageSliceConstIteratorWithIndex< TImage >::PixelType |
Definition at line 129 of file itkImageSliceConstIteratorWithIndex.h.
typedef Superclass::RegionType itk::ImageSliceConstIteratorWithIndex< TImage >::RegionType |
Definition at line 124 of file itkImageSliceConstIteratorWithIndex.h.
typedef ImageSliceConstIteratorWithIndex itk::ImageSliceConstIteratorWithIndex< TImage >::Self |
Standard class typedefs.
Definition at line 117 of file itkImageSliceConstIteratorWithIndex.h.
typedef Superclass::SizeType itk::ImageSliceConstIteratorWithIndex< TImage >::SizeType |
Definition at line 122 of file itkImageSliceConstIteratorWithIndex.h.
typedef ImageConstIteratorWithIndex< TImage > itk::ImageSliceConstIteratorWithIndex< TImage >::Superclass |
Definition at line 118 of file itkImageSliceConstIteratorWithIndex.h.
|
inline |
Default constructor. Needed since we provide a cast constructor.
Definition at line 133 of file itkImageSliceConstIteratorWithIndex.h.
|
inline |
Constructor establishes an iterator to walk a particular image and a particular region of that image.
Definition at line 137 of file itkImageSliceConstIteratorWithIndex.h.
|
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.
References itk::ImageConstIteratorWithIndex< TImage >::operator=().
void itk::ImageSliceConstIteratorWithIndex< TImage >::GoToBeginOfSlice | ( | ) |
Go to the first pixel of the current slice
bool itk::ImageSliceConstIteratorWithIndex< TImage >::IsAtEndOfLine | ( | ) |
Test if the index is at the end of line
bool itk::ImageSliceConstIteratorWithIndex< TImage >::IsAtEndOfSlice | ( | ) |
Test if the index is at the end of the slice
bool itk::ImageSliceConstIteratorWithIndex< TImage >::IsAtReverseEndOfLine | ( | ) |
Test if the index is at the begin of line
bool itk::ImageSliceConstIteratorWithIndex< TImage >::IsAtReverseEndOfSlice | ( | ) |
Test if the index is at the begin of the slice
void itk::ImageSliceConstIteratorWithIndex< TImage >::NextLine | ( | ) |
Go to the next line
void itk::ImageSliceConstIteratorWithIndex< TImage >::NextSlice | ( | ) |
Go to the next slice
|
inline |
Increment (prefix) the selected dimension. No bounds checking is performed.
|
inline |
Decrement (prefix) the selected dimension. No bounds checking is performed.
void itk::ImageSliceConstIteratorWithIndex< TImage >::PreviousLine | ( | ) |
Go to the next line
void itk::ImageSliceConstIteratorWithIndex< TImage >::PreviousSlice | ( | ) |
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
|
private |
Definition at line 206 of file itkImageSliceConstIteratorWithIndex.h.
|
private |
Definition at line 207 of file itkImageSliceConstIteratorWithIndex.h.
|
private |
Definition at line 205 of file itkImageSliceConstIteratorWithIndex.h.
|
private |
Definition at line 204 of file itkImageSliceConstIteratorWithIndex.h.