e3cba47cac279d7d810b1bfe7b88d2f5eb8227b7,skimage/morphology/_skeletonize.py,,skeletonize,#Any#,17

Before Change


    //  - binary image with only 0"s and 1"s
    if image.ndim != 2:
        raise ValueError("Skeletonize requires a 2D array")
    if not np.all(np.in1d(image.flat, (0, 1))):
        raise ValueError("Image contains values other than 0 and 1")

    return _fast_skeletonize(image)

After Change


        raise ValueError("skeletonize method "zhang" only works for 2D "
                         "images.")
    elif image.ndim == 3 or (image.ndim == 2 and method == "lee"):
        skeleton = skeletonize_3d(image)
    else:
        raise ValueError("skeletonize requires a 2D or 3D image as input, "
                         "got {}D.".format(image.ndim))
    return skeleton


def skeletonize_2d(image):
    Return the skeleton of a 2D binary image.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scikit-image/scikit-image
Commit Name: e3cba47cac279d7d810b1bfe7b88d2f5eb8227b7
Time: 2019-05-14
Author: juan.nunez-iglesias@monash.edu
File Name: skimage/morphology/_skeletonize.py
Class Name:
Method Name: skeletonize


Project Name: biotite-dev/biotite
Commit Name: a50f342c2a51fab77061990d198dde8266c28320
Time: 2020-10-21
Author: tom.mueller@beachouse.de
File Name: src/biotite/structure/filter.py
Class Name:
Method Name: filter_nucleotides


Project Name: neurosynth/neurosynth
Commit Name: 73675264dd48387319f62780b52d81389016cc1f
Time: 2014-03-24
Author: tyarkoni@gmail.com
File Name: neurosynth/base/dataset.py
Class Name: FeatureTable
Method Name: get_features_by_ids