Navigation

Documentation Home

 

Contents

Version

Module: data

Standard test images.

For more images, see

skimage.data.camera() Gray-level “camera” image, often used for segmentation
skimage.data.checkerboard() Checkerboard image.
skimage.data.coins() Greek coins from Pompeii.
skimage.data.imread(fname[, as_grey, ...]) Load an image from file.
skimage.data.lena() Colour “Lena” image.
skimage.data.load(f) Load an image file located in the data directory.
skimage.data.moon() Surface of the moon.
skimage.data.page() Scanned page.
skimage.data.text() Gray-level “text” image used for corner detection.

camera

skimage.data.camera()

Gray-level “camera” image, often used for segmentation and denoising examples.

checkerboard

skimage.data.checkerboard()

Checkerboard image.

Checkerboards are often used in image calibration, since the corner-points are easy to locate. Because of the many parallel edges, they also visualise distortions particularly well.

coins

skimage.data.coins()

Greek coins from Pompeii.

This image shows several coins outlined against a gray background. It is especially useful in, e.g. segmentation tests, where individual objects need to be identified against a background. The background shares enough grey levels with the coins that a simple segmentation is not sufficient.

Notes

This image was downloaded from the Brooklyn Museum Collection.

No known copyright restrictions.

imread

skimage.data.imread(fname, as_grey=False, plugin=None, flatten=None, **plugin_args)

Load an image from file.

Parameters :

fname : string

Image file name, e.g. test.jpg.

as_grey : bool

If True, convert color images to grey-scale (32-bit floats). Images that are already in grey-scale format are not converted.

plugin : str

Name of plugin to use (Python Imaging Library by default).

Returns :

img_array : ndarray

The different colour bands/channels are stored in the third dimension, such that a grey-image is MxN, an RGB-image MxNx3 and an RGBA-image MxNx4.

lena

skimage.data.lena()

Colour “Lena” image.

The standard, yet sometimes controversial Lena test image was scanned from the November 1972 edition of Playboy magazine. From an image processing perspective, this image is useful because it contains smooth, textured, shaded as well as detail areas.

load

skimage.data.load(f)

Load an image file located in the data directory.

Parameters :

f : string

File name.

Returns :

img : ndarray

Image loaded from skimage.data_dir.

moon

skimage.data.moon()

Surface of the moon.

This low-contrast image of the surface of the moon is useful for illustrating histogram equalization and contrast stretching.

page

skimage.data.page()

Scanned page.

This image of printed text is useful for demonstrations requiring uneven background illumination.

text

skimage.data.text()

Gray-level “text” image used for corner detection.

Notes

This image was downloaded from Wikipedia <http://en.wikipedia.org/wiki/File:Corner.png>`__.

No known copyright restrictions, released into the public domain.