Hi David,<br>You might consider using the vtk function vtk::vtkKdTreePointLocator::FindClosestPointWithinRadius(double radius, const double x[3], double &dist2)<br><br>It will return the points in a given radius and also the distance to each point. I don't know if it is faster or slower (probably slower), but your current function might return a point that is farther from the seed location than another just because it was earlier in the iteration list.<br>
<br>You would have to use itk::VTKImageExport to bring your image over to vtk which will also add time.<br><br>Cheers,<br>Seth<br><br>
<br>