7e4840bd9439d1dfb6beaf549998452c99f97fdd,skimage/color/colorlabel.py,,_label2rgb_avg,#,207

Before Change


    out : array, same shape and type as `image`
        The output visualization.
    
    out = np.zeros_like(image)
    labels = np.unique(label_field)
    bg = (labels == bg_label)
    if bg.any():
        labels = labels[labels != bg_label]

After Change


    out : array, same shape and type as `image`
        The output visualization.
    
    out = np.zeros(label_field.shape + (3,))
    labels = np.unique(label_field)
    bg = (labels == bg_label)
    if bg.any():
        labels = labels[labels != bg_label]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scikit-image/scikit-image
Commit Name: 7e4840bd9439d1dfb6beaf549998452c99f97fdd
Time: 2020-07-19
Author: wwymak@gmail.com
File Name: skimage/color/colorlabel.py
Class Name:
Method Name: _label2rgb_avg


Project Name: librosa/librosa
Commit Name: f947b1479e76dbeee06400e8d97b23bf64d0c8ff
Time: 2013-11-21
Author: brm2132@columbia.edu
File Name: librosa/segment.py
Class Name:
Method Name: structure_feature


Project Name: scikit-image/scikit-image
Commit Name: 144e8071c39464c4dc42054dc74710686cd1e408
Time: 2019-10-18
Author: Dave.Mellert@jax.org
File Name: skimage/filters/window.py
Class Name:
Method Name: get_window2