f051122cda7eb6ead74dca0311a75fead3a9742f,tests/test_dilate_erode.py,,test_dilate_erode,#,4
Before Change
def test_dilate_erode():
A=numpy.zeros((100,100))
Bc=numpy.zeros((3,3))
Bc[2,1]=1
Bc[1]=1
Bc[0,1]=1
A[30,30]=1
A=(A!=0)
After Change
A = mahotas.dilate(A, Bc)
for i in xrange(12):
A = mahotas.erode(A, Bc)
assert np.all(A == orig)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: luispedro/mahotas
Commit Name: f051122cda7eb6ead74dca0311a75fead3a9742f
Time: 2010-08-12
Author: lpc@cmu.edu
File Name: tests/test_dilate_erode.py
Class Name:
Method Name: test_dilate_erode
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: scikit-learn/scikit-learn
Commit Name: 4f496868c6aa7f50db99229847285efbe50040c2
Time: 2020-08-03
Author: 34657725+jeremiedbb@users.noreply.github.com
File Name: sklearn/cluster/tests/test_k_means.py
Class Name:
Method Name: test_n_init