bbbe2bfb660567d4a7375a7614d9f84b6b9ead51,mahotas/tests/test_segmentation.py,,test_slic,#,4

Before Change


import numpy as np
import mahotas
def test_slic():
    f = mahotas.imread("mahotas/demos/data/luispedro.jpg")
    segmented, n = mahotas.segmentation.slic(f)
    assert segmented.shape == (f.shape[0], f.shape[1])
    assert segmented.max() == n
    segmented2, n2 = mahotas.segmentation.slic(f, 128)

After Change


from .utils import luispedro_jpg

def test_slic():
    f = luispedro_jpg()
    segmented, n = mahotas.segmentation.slic(f)
    assert segmented.shape == (f.shape[0], f.shape[1])
    assert segmented.max() == n
    segmented2, n2 = mahotas.segmentation.slic(f, 128)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: luispedro/mahotas
Commit Name: bbbe2bfb660567d4a7375a7614d9f84b6b9ead51
Time: 2013-04-21
Author: luis@luispedro.org
File Name: mahotas/tests/test_segmentation.py
Class Name:
Method Name: test_slic


Project Name: luispedro/mahotas
Commit Name: bbbe2bfb660567d4a7375a7614d9f84b6b9ead51
Time: 2013-04-21
Author: luis@luispedro.org
File Name: mahotas/tests/test_surf.py
Class Name:
Method Name: test_dense_scale


Project Name: luispedro/mahotas
Commit Name: bbbe2bfb660567d4a7375a7614d9f84b6b9ead51
Time: 2013-04-21
Author: luis@luispedro.org
File Name: mahotas/tests/test_colors.py
Class Name:
Method Name: test_rgb2grey


Project Name: luispedro/mahotas
Commit Name: bbbe2bfb660567d4a7375a7614d9f84b6b9ead51
Time: 2013-04-21
Author: luis@luispedro.org
File Name: mahotas/tests/test_colors.py
Class Name:
Method Name: test_colors