93663c2cc8c0c8bc3c6f28c27679707305948c80,tests/test_texture.py,,test_cooccurence,#,4
Before Change
assert res[0,1] == 0
assert res[0,2] == 2
assert res[1,0] == 0
assert res[1,1] == 2
assert res[1,2] == 1
res[:3,:3] = 0
assert not np.any(res)
After Change
return res
def test_cooccurence():
np.random.seed(222)
f = np.random.rand(32, 32)
f = (f * 255).astype(np.int32)
assert np.all(mahotas.texture.cooccurence(f, 0) == brute_force(f, 0, 1))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: luispedro/mahotas
Commit Name: 93663c2cc8c0c8bc3c6f28c27679707305948c80
Time: 2010-05-11
Author: lpc@cmu.edu
File Name: tests/test_texture.py
Class Name:
Method Name: test_cooccurence
Project Name: dask/dask-image
Commit Name: 638cf24ecdbc9b0ab3f7eff7c49a092b127cdc5f
Time: 2019-02-10
Author: juan.nunez-iglesias@monash.edu
File Name: tests/test_dask_image/test_ndmeasure/test_core.py
Class Name:
Method Name: test_label
Project Name: facebookresearch/fastMRI
Commit Name: 05b2b1c02a8ce5f471877243ebebe5df876ccc37
Time: 2020-04-15
Author: tulliemurrell@gmail.com
File Name: models/unet/train_unet.py
Class Name:
Method Name: main