8212d47a90e0f90ba0d264d062880ee866b4808f,mahotas/bbox.py,,bbox,#Any#Any#Any#,11
Before Change
r = _bbox.bbox(img)
if border:
min1,max1,min2,max2 = r
min1 = max(0, min1-border)
min2 = max(0, min2-border)
max1 += border
max2 += border
r = min1,max1,min2,max2
if as_slice:
r = tuple([slice(s,e) for s,e in r.reshape((-1,2))])
return r
After Change
return np.array([], dtype=np.intp)
r = _bbox.bbox(img)
if border:
r = r.reshape((-1, 2))
np.maximum(r.T[0] - border, 0, out=r.T[0])
r.T[1] += border
r = r.ravel()
if as_slice:
r = tuple([slice(s,e) for s,e in r.reshape((-1,2))])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: luispedro/mahotas
Commit Name: 8212d47a90e0f90ba0d264d062880ee866b4808f
Time: 2015-06-26
Author: luis@luispedro.org
File Name: mahotas/bbox.py
Class Name:
Method Name: bbox
Project Name: dmlc/gluon-cv
Commit Name: ead024f46c366d2e926d4ea8b3862039aa2e69ab
Time: 2018-04-09
Author: cheungchih@gmail.com
File Name: scripts/detection/ssd/train_ssd.py
Class Name:
Method Name: train
Project Name: dmlc/gluon-cv
Commit Name: 0a1ec0a60f037df5544db493e022958de880beb9
Time: 2018-04-09
Author: cheungchih@gmail.com
File Name: scripts/detection/ssd/train_ssd.py
Class Name:
Method Name: train