[Insight-developers] ImageRegionIteratorWithIndex
Miller, James V (CRD)
millerjv@crd.ge.com
Wed, 18 Jul 2001 17:14:10 -0400
It looks like the Begin()/End() definitions now perform like ImageIterator and ImageRegionIterator.
That is Begin()/End() return an iterator that points to the beginning or end of a region where they
used to reposition the current iterator.
That is the only change that I can see.
So the line
it.Begin() should change to it.GoToBegin()
Jim
-----Original Message-----
From: Yinpeng Jin [mailto:yj76@columbia.edu]
Sent: Wednesday, July 18, 2001 4:24 PM
To: insight-developers@public.kitware.com
Subject: [Insight-developers] ImageRegionIteratorWithIndex
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;
}
_______________________________________________
Insight-developers mailing list
Insight-developers@public.kitware.com
http://public.kitware.com/mailman/listinfo/insight-developers