예제 #1
0
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
예제 #2
0
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
예제 #3
0
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
예제 #4
0
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