[Insight-developers] ConstShapedNeighborhoodIterator inheritance

Joshua Cates cates at sci.utah.edu
Sun Oct 9 18:39:37 EDT 2005


Hi Gaetan,

Superclass members are private where they don't make sense in the 
context of a neighborhood of arbitrary shape.  There is no guarantee, 
for example, that a ShapedNeighborhood has a center pixel.

Josh.


On Oct 9, 2005, at 2:10 PM, Gaetan Lehmann wrote:

>
> Hi,
>
> ConstShapedNeighborhoodIterator is a subclass of NeighborhoodIterator. 
> Sadely,
> all members of the superclass are private:
>
> class ITK_EXPORT ConstShapedNeighborhoodIterator
>   :  private NeighborhoodIterator<TImage, TBoundaryCondition>
>
> It prevent usage of Set/GetCenterPixel() methods, which  is really 
> annoying.
> Is there a good reason to do that ?
> Is it possible to switch to a public inheritance ?
>
> class ITK_EXPORT ConstShapedNeighborhoodIterator
>   :  public NeighborhoodIterator<TImage, TBoundaryCondition>
>
> Thanks,
>
> Gaetan
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers



More information about the Insight-developers mailing list