Main Page
Groups
Namespace List
Class Hierarchy
Alphabetical List
Compound List
File
List
Namespace Members
Compound Members
File Members
Concepts
/home/glehmann/rpm/BUILD/InsightToolkit-2.8.1/Code/Common/itkImageSliceConstIteratorWithIndex.h Class Reference
#include <itkImageSliceConstIteratorWithIndex.h>
Detailed Description
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:.
SetFirstDirection(n)
SetSecondDirection(n)
where n is the number of the axis.
Use the following methods to move the iterator between slices:
NextSlice()
PreviousSlice()
To test the position of the iterator with respect to the end or beginning of the slice use the following methods:
IsAtReverseEndOfSlice()
IsAtEndOfSlice()
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;
}
it.NextLine();
}
it.NextSlice();
}
The documentation for this class was generated from the following file:
Generated at Fri Sep 8 04:26:58 2006 for ITK by
1.4.7 written by Dimitri van Heesch,
© 1997-2000