23643aa4c74c9f9db92234ca9fe2643c9dccb026,skimage/filters/edges.py,,scharr,#Any#Any#,183

Before Change


    >>> from skimage import filters
    >>> edges = filters.scharr(camera)
    
    out = np.sqrt(scharr_h(image, mask) ** 2 + scharr_v(image, mask) ** 2)
    out /= np.sqrt(2)
    return out


def scharr_h(image, mask=None):

After Change


    >>> camera = data.camera()
    >>> edges = filters.scharr(camera)
    
    image = img_as_float(image)
    output = _generic_edge_filter(image, smooth_weights=SCHARR_SMOOTH,
                                  axis=axis, mode=mode, cval=cval)
    if image.ndim == 2 and mask is not None:
        output = _mask_filter_result(output, mask)
    return output


def scharr_h(image, mask=None):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 22

Instances


Project Name: scikit-image/scikit-image
Commit Name: 23643aa4c74c9f9db92234ca9fe2643c9dccb026
Time: 2019-12-09
Author: juan.n@unimelb.edu.au
File Name: skimage/filters/edges.py
Class Name:
Method Name: scharr


Project Name: scikit-image/scikit-image
Commit Name: 23643aa4c74c9f9db92234ca9fe2643c9dccb026
Time: 2019-12-09
Author: juan.n@unimelb.edu.au
File Name: skimage/filters/edges.py
Class Name:
Method Name: prewitt


Project Name: scikit-image/scikit-image
Commit Name: 23643aa4c74c9f9db92234ca9fe2643c9dccb026
Time: 2019-12-09
Author: juan.n@unimelb.edu.au
File Name: skimage/filters/edges.py
Class Name:
Method Name: scharr


Project Name: scikit-image/scikit-image
Commit Name: 23643aa4c74c9f9db92234ca9fe2643c9dccb026
Time: 2019-12-09
Author: juan.n@unimelb.edu.au
File Name: skimage/filters/edges.py
Class Name:
Method Name: sobel