[Insight-developers] Domain verification in Iterators

Luis Ibanez ibanez@cs.unc.edu
Thu, 29 Mar 2001 02:13:03 -0500 (EST)


Hi,

I just find a bug produced by initializing
an iterator with a region that falls outside
the image.

Iterators during construction could verify
that the region is fully contained in 
GetBufferedRegion(). This is not done at 
this moment.

It should not be too costly because is done
only once. (at construction, or eventualy
inside the Begin() method).  Then they could
throw an exeption if the domain is wrong.

Any suggestions ?


Luis