[Insight-developers] FloodFilledSpatialFunctionIterator

Damion Shelton dmsst59+@pitt.edu
Tue, 05 Jun 2001 15:14:22 -0400


> What about having it derive from a class hierarchy like
>
> SpatialIterator
>            -------------------+-----------------------
>            |                                         |
>       FilledSpatialIterator            SurfaceSpatialIterator
>     |------+-----------------------|
> FunctionFilledSpatialIterator  MaskFilledSpatialIterator

Could you elaborate a bit on the class relationships?

I can see that SpatialIterator would iterate over a linked list of indices
rather than over an image region. I'm not sure about the rest though... is
the distinction between a surface and filled iterator whether or not you're
interested in:

1) All pixels "inside the function", resulting in a filled iterator
2) All pixels "inside the function" that are neighbors of a pixel not inside
the function, resulting in a surface iterator

Also, perhaps elaborate on the differences between Function and Mask filled
iterators?

Thanks,

-Damion-