48fd85aa56d30159279804e253978918a81a5ab4,mahotas/bbox.py,,bbox,#,11
Before Change
max2 += border
r = min1,max1,min2,max2
if as_slice:
return (slice(r[0],r[1]),slice(r[2],r[3]))
return r
def croptobbox(img, border=None):
After Change
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
def croptobbox(img, border=None):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: luispedro/mahotas
Commit Name: 48fd85aa56d30159279804e253978918a81a5ab4
Time: 2015-06-03
Author: luis@luispedro.org
File Name: mahotas/bbox.py
Class Name:
Method Name: bbox
Project Name: dask/dask-image
Commit Name: f9aea094643fb3240193b0bc0f1908d5b84d82ab
Time: 2018-09-30
Author: jakirkham@gmail.com
File Name: dask_image/ndmeasure/__init__.py
Class Name:
Method Name: center_of_mass
Project Name: dask/dask-image
Commit Name: 783c109c591c6a3affc750d29c9d56f86c1ed6cb
Time: 2018-09-29
Author: jakirkham@gmail.com
File Name: dask_image/ndmeasure/_utils.py
Class Name:
Method Name: _ravel_shape_indices