Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkImageRegionExclusionConstIteratorWithIndex

00001   IteratorType it( image, image->GetRequestedRegion() );
00002 
00003   it.SetExclusionRegion( exclusionRegion );
00004 
00005   it.GoToBegin();
00006 
00007   while( ! it.IsAtEnd() ) 
00008   {  
00009     it.Set( 100.0 + it.Get() );
00010     ++it;
00011   }

It also can be used for walking in the reverse direction like

00001   IteratorType it( image, image->GetRequestedRegion() );
00002 
00003   it.SetExclusionRegion( exclusionRegion );
00004   it.GoToEnd();
00005 
00006   while( !it.IsAtBegin() ) 
00007   {  
00008     it.Set( 100.0 );
00009     --it;
00010   }

MORE INFORMATION
For a complete description of the ITK Image Iterators and their API, please see the Iterators chapter in the ITK Software Guide. The ITK Software Guide is available in print and as a free .pdf download from http://www.itk.org.
See also:
ImageConstIterator

ConditionalConstIterator

ConstNeighborhoodIterator

ConstShapedNeighborhoodIterator

ConstSliceIterator

CorrespondenceDataStructureIterator

FloodFilledFunctionConditionalConstIterator

FloodFilledImageFunctionConditionalConstIterator

FloodFilledImageFunctionConditionalIterator

FloodFilledSpatialFunctionConditionalConstIterator

FloodFilledSpatialFunctionConditionalIterator

ImageConstIterator

ImageConstIteratorWithIndex

ImageIterator

ImageIteratorWithIndex

ImageLinearConstIteratorWithIndex

ImageLinearIteratorWithIndex

ImageRandomConstIteratorWithIndex

ImageRandomIteratorWithIndex

ImageRegionConstIterator

ImageRegionConstIteratorWithIndex

ImageRegionExclusionConstIteratorWithIndex

ImageRegionExclusionIteratorWithIndex

ImageRegionIterator

ImageRegionIteratorWithIndex

ImageRegionReverseConstIterator

ImageRegionReverseIterator

ImageReverseConstIterator

ImageReverseIterator

ImageSliceConstIteratorWithIndex

ImageSliceIteratorWithIndex

NeighborhoodIterator

PathConstIterator

PathIterator

ShapedNeighborhoodIterator

SliceIterator

ImageConstIteratorWithIndex


Generated at Fri Sep 8 02:37:15 2006 for ITK by doxygen 1.4.7 written by Dimitri van Heesch, © 1997-2000