Docstring for SeededRegionGrowing and refactor the SpatialNeighbor