2f7c44820cf37c90cd339f4765bff6726738ec6e,mahotas/bbox.py,,bbox,#,11

Before Change


        min2 = max(0, min2-border)
        max1 += border
        max2 += border
        return min1,max1,min2,max2
    return r

def croptobbox(img, border=None):
    

After Change


        max1 += border
        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):
    
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: luispedro/mahotas
Commit Name: 2f7c44820cf37c90cd339f4765bff6726738ec6e
Time: 2013-09-22
Author: luis@luispedro.org
File Name: mahotas/bbox.py
Class Name:
Method Name: bbox


Project Name: librosa/librosa
Commit Name: 489494cdbbd3bf9f75b37c58e15ffbbbc1dd0188
Time: 2015-01-03
Author: brian.mcfee@nyu.edu
File Name: librosa/util.py
Class Name:
Method Name: fix_length


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