[Insight-developers] ImageRegionIteratorWithIndex

Yinpeng Jin yj76@columbia.edu
Wed, 18 Jul 2001 16:24:07 -0400


What is the difference in terms of usage between
ImageRegionIteratorWithIndex and the old version of
ImageSimpleRegionIterator?
Suddently found that the below codes begin to crash on it.Set() Method. It
used to work for SimpleRegionIterator.
Yinpeng


 itk::ImageRegionIteratorWithIndex <UShortImage2D> it(inputimg, region);
 it.Begin();
 int k=0;
 while( !it.IsAtEnd()) {
  it.Set(TestingImage[k]);
  k++;
  ++it;
 }