// https://github.com/luispedro/mahotas/issues/72
f = 255*np.random.random((16,16))
f = f.astype(np.int8)
mh.features.haralick(f)
def test_int8_positive_haralick():
// https://github.com/luispedro/mahotas/issues/72
After Change
// https://github.com/luispedro/mahotas/issues/72
f = 255*np.random.random((16,16))
f = f.astype(np.int8)
with pytest.raises(ValueError):
mh.features.haralick(f)
def test_int8_positive_haralick():
// https://github.com/luispedro/mahotas/issues/72
f = 64*np.random.random((16,16))
f = f.astype(np.int8)