def test_gaussian_filter(): from scipy import ndimage f = luispedro_jpg(1) for s in (4.,8.,12.): g = gaussian_filter(f, s) n = ndimage.gaussian_filter(f, s) assert np.max(np.abs(n - g)) < 1.e-5
def test_gaussian_filter(): from scipy import ndimage f = mahotas.imread('mahotas/demos/data/luispedro.jpg', 1) for s in (4.,8.,12.): g = gaussian_filter(f, s) n = ndimage.gaussian_filter(f, s) assert np.max(np.abs(n - g)) < 1.e-5
def test_gaussian_filter(): from scipy import ndimage f = luispedro_jpg() for s in (4., 8., 12.): g = gaussian_filter(f, s) n = ndimage.gaussian_filter(f, s) assert np.max(np.abs(n - g)) < 1.e-5
def test_gaussian_filter(): from scipy import ndimage f = mahotas.imread('mahotas/demos/data/luispedro.jpg', 1) for s in (4., 8., 12.): g = gaussian_filter(f, s) n = ndimage.gaussian_filter(f, s) assert np.max(np.abs(n - g)) < 1.e-5