{ } Raw JSON

bundles / skimage latest / skimage / io / collection / ImageCollection / __getitem__

function

skimage.io.collection:ImageCollection.__getitem__

source: /dev/scikit-image/src/skimage/io/collection.py :284

Signature

def   __getitem__ ( self n )

Summary

Return selected image(s) in the collection.

Extended Summary

Loading is done on demand.

Parameters

n : int or slice

The image number to be returned, or a slice selecting the images and ordering to be returned in a new ImageCollection.

Returns

img : ndarray or :class:`~.ImageCollection`

The n-th image in the collection, or a new ImageCollection with the selected images.

Aliases

  • skimage.io.ImageCollection.__getitem__