e59be36291fa21316cb7d54ddd8c67f7d0ef4a15,skimage/segmentation/slic_superpixels.py,,slic,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,11

Before Change


    depth, height, width = image.shape[:3]

    // initialize cluster centroids for desired number of segments
    grid_z, grid_y, grid_x = np.mgrid[:depth, :height, :width]
    slices = regular_grid(image.shape[:3], n_segments)
    step_z, step_y, step_x = [int(s.step if s.step is not None else 1)
                              for s in slices]
    segments_z = grid_z[slices]

After Change


    depth, height, width = image.shape[:3]

    // initialize cluster centroids for desired number of segments
    grid_z, grid_y, grid_x = np.meshgrid(np.arange(depth, dtype=dtype),
                                         np.arange(height, dtype=dtype),
                                         np.arange(width, dtype=dtype),
                                         indexing="ij")
    slices = regular_grid(image.shape[:3], n_segments)
    step_z, step_y, step_x = [int(s.step if s.step is not None else 1)
                              for s in slices]
    segments_z = grid_z[slices]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: scikit-image/scikit-image
Commit Name: e59be36291fa21316cb7d54ddd8c67f7d0ef4a15
Time: 2020-02-04
Author: rfezzani@gmail.com
File Name: skimage/segmentation/slic_superpixels.py
Class Name:
Method Name: slic


Project Name: scikit-learn/scikit-learn
Commit Name: cf4909eb9206ca94f1e9ad5a0dcbba31dd2536b5
Time: 2021-02-08
Author: meezamanda@yahoo.com
File Name: examples/svm/plot_svm_margin.py
Class Name:
Method Name:


Project Name: matplotlib/matplotlib
Commit Name: 65083e0b8bcbb597224a2c511a92c09a7fda9fa6
Time: 2020-01-01
Author: anntzer.lee@gmail.com
File Name: examples/images_contours_and_fields/pcolor_demo.py
Class Name:
Method Name:


Project Name: geomstats/geomstats
Commit Name: c1645cafde49bc6fef89991caa1aec1505da783b
Time: 2020-01-19
Author: ninamio78@gmail.com
File Name: geomstats/visualization.py
Class Name: Sphere
Method Name: __init__