Edge detection by spherical separation