mpl_image_segmenter.example_images package#

Module contents#

Example images for docs.

color_image_stack() ndarray#

Get the example image as a color image.

Returns:

img (np.ndarray) – With shape (5, 512, 512, 3)

Notes

Image was generated using skimage version 0.20.0 with the following code snippet:

```python import numpy as np from skimage.draw import random_shapes shapes = np.zeros([5,512,512,3], dtype=”uint8”) for i in range(5):

shapes[i] = random_shapes((512, 512), 25, random_seed=20230321+i)[0]

np.savez_compressed(“example_img_stack.npz”, shapes) ```

example_mask_stack() ndarray#

Get the premade example mask stack.

Returns:

img (np.ndarray) – With shape (5, 512, 512)

gray_image_stack() ndarray#

Get the example image stack in grayscale.

Returns:

img (np.ndarray) – With shape (5, 512, 512, 3)

Notes

See color_image_stack for documentation on how the images were generated.