93663c2cc8c0c8bc3c6f28c27679707305948c80,tests/test_texture.py,,test_cooccurence,#,4
Before Change
assert not np.any(res[2,:2])
assert not np.any(res[:2,2])
res[:3,:3] = 0
assert not np.any(res)
res = np.zeros((5,5), np.long)
cooccurence(f, res, 1)
assert res[0,0] == 1
After Change
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))
assert np.all(mahotas.texture.cooccurence(f, 1) == brute_force(f, 1, 1))
assert np.all(mahotas.texture.cooccurence(f, 2) == brute_force(f, 1, 0))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: arraiy/torchgeometry
Commit Name: 4a45e9ae54615c9da540039ae59da6b4fce941a1
Time: 2020-11-25
Author: edgar.riba@gmail.com
File Name: test/geometry/test_homography.py
Class Name: TestFindHomographyDLTIter
Method Name: test_dirty_points_and_gradcheck
Project Name: mariogeiger/se3cnn
Commit Name: e1a5c04a625f563b9b2c761c9c3a4e1a7963a21f
Time: 2019-07-11
Author: geiger.mario@gmail.com
File Name: se3cnn/SO3.py
Class Name:
Method Name: basis_transformation_Q