0ab81f30ea90db0b87a310c70cf9c720672de5b7,mahotas/thin.py,,thin,#Any#,70
Before Change
for elem in _struct_elems:
newimg = hitmiss(image_exp, elem, imagebuf)
image_exp -= newimg
changed |= newimg.any()
if not changed:
break
res[min0:max0,min1:max1] = image_exp[1:r+1, 1:c+1]
return res
After Change
image_exp = np.zeros((r+2, c+2), np.uint8)
imagebuf = np.zeros((r+2,c+2), np.uint8)
prev = np.zeros((r+2,c+2), np.uint8)
image_exp[1:r+1, 1:c+1] = binimg[min0:max0,min1:max1]
while True:
prev[:] = image_exp[:]
for elem in _struct_elems:

In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: luispedro/mahotas
Commit Name: 0ab81f30ea90db0b87a310c70cf9c720672de5b7
Time: 2010-08-12
Author: lpc@cmu.edu
File Name: mahotas/thin.py
Class Name:
Method Name: thin
Project Name: reinforceio/tensorforce
Commit Name: 6d5623b632166e67ef7dff441df5432d06b05e8d
Time: 2016-11-20
Author: k@ifricke.com
File Name: tensorforce/replay_memories/replay_memory.py
Class Name: ReplayMemory
Method Name: sample_batch
Project Name: pyannote/pyannote-audio
Commit Name: dc357b0e9d2bc40633f738997e8b7d17221c28fd
Time: 2018-06-29
Author: bredin@limsi.fr
File Name: pyannote/audio/util.py
Class Name:
Method Name: from_numpy