958f8f41da4f00c2e9c8d1be0616fcc59c5ee3f0,doc/examples/edges/plot_random_shapes.py,,,#,15

Before Change



figure = plt.figure(figsize=(10, 10))

for n, i in enumerate([image, image2, image3, image4]):
    axis = plt.subplot(2, 2, n + 1)
    axis.tick_params(bottom="off", top="off", left="off", right="off")
    axis.set_xticklabels([])
    axis.set_yticklabels([])
    plt.imshow(i)

After Change


image4, _ = random_shapes((128, 128), max_shapes=10, min_pixel_intensity=0)

fig, axes = plt.subplots(2, 2, figsize=(10, 10))
for ax, image in zip(axes.ravel(), [image1, image2, image3, image4]):
    ax.imshow(image)
    ax.set_axis_off()

// These shapes are well suited to test segmentation algorithms. Often, we want
// shapes to overlap to test the algorithm. This is also possible:
image, _ = random_shapes(
    (128, 128), min_shapes=5, max_shapes=10, min_size=20, allow_overlap=True)
fig, axis = plt.subplots()
axis.imshow(image)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scikit-image/scikit-image
Commit Name: 958f8f41da4f00c2e9c8d1be0616fcc59c5ee3f0
Time: 2017-10-21
Author: peter@goldsborough.me
File Name: doc/examples/edges/plot_random_shapes.py
Class Name:
Method Name:


Project Name: nipy/dipy
Commit Name: 1a8468988ae35b6d3814288018fc2f9056e74974
Time: 2011-07-21
Author: garyfallidis@gmail.com
File Name: dipy/reconst/gqi.py
Class Name: GeneralizedQSampling
Method Name: __init__


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 9b254aaf76efaa0a3789a67137c9817684862cf9
Time: 2019-07-11
Author: bodo.rueckauer@intel.com
File Name: snntoolbox/simulation/target_simulators/loihi_target_sim.py
Class Name: SNN
Method Name: set_inputs