[Insight-developers] Re: on segmentation & connectedness

Joshua Cates cates@sci.utah.edu
Mon, 14 Oct 2002 12:49:19 -0600 (MDT)


Hi Luis,

> 
> Just to double-check:
> 
> When you mention "offset" do you mean the "unsigned long"
> value from the start of the buffer to the position of the
> pixel ? or do you mean the itk::Offset<> class which is
> the N-D set of differences between two indices.
> 
> It looks like the later (itk::Offset<> as a difference of
> itk::Index<>) may be the more explicit way of representing
> a neighborhood.

I suppose it really should handle both.  Currently the Set/GetPixel
methods of the neighborhood iterators take the unsigned long value.  But
we could overload these methods to take an Offset argument as well.  


Josh.