Get a neighborhood around a specific point


Is there a method on ITK that can, given a physical point, define a ball-shaped neighborhood of physical points within a given raduis ? I try to study the ability of an optimisation algorithm to converge on the good solution given a certain radius around the known good solution at the surface of a volume.

You could take a look at SphereSpatialFunction, ShapedNeighborhoodIterator and its descendants, and this example.