Module: data

Standard test images.

For more images, see

skimage.data.camera() Gray-level “camera” image.
skimage.data.checkerboard() Checkerboard image.
skimage.data.chelsea() Chelsea the cat.
skimage.data.clock() Motion blurred clock.
skimage.data.coffee() Coffee cup.
skimage.data.coins() Greek coins from Pompeii.
skimage.data.horse() Black and white silhouette of a horse.
skimage.data.immunohistochemistry() Immunohistochemical (IHC) staining with hematoxylin counterstaining.
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.

chelsea

skimage.data.chelsea()

Chelsea the cat.

An example with texture, prominent edges in horizontal and diagonal directions, as well as features of differing scales.

Notes

No copyright restrictions. CC0 by the photographer (Stefan van der Walt).

clock

skimage.data.clock()

Motion blurred clock.

This photograph of a wall clock was taken while moving the camera in an aproximately horizontal direction. It may be used to illustrate inverse filters and deconvolution.

Released into the public domain by the photographer (Stefan van der Walt).

coffee

skimage.data.coffee()

Coffee cup.

This photograph is courtesy of Pikolo Espresso Bar. It contains several elliptical shapes as well as varying texture (smooth porcelain to course wood grain).

Notes

No copyright restrictions. CC0 by the photographer (Rachel Michetti).

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.

horse

skimage.data.horse()

Black and white silhouette of a horse.

This image was downloaded from openclipart <http://openclipart.org/detail/158377/horse-by-marauder>

Released into public domain and drawn and uploaded by Andreas Preuss (marauder).

immunohistochemistry

skimage.data.immunohistochemistry()

Immunohistochemical (IHC) staining with hematoxylin counterstaining.

This picture shows colonic glands where the IHC expression of FHL2 protein is revealed with DAB. Hematoxylin counterstaining is applied to enhance the negative parts of the tissue.

This image was acquired at the Center for Microscopy And Molecular Imaging (CMMI).

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 or URL.

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.

Other Parameters:
 

plugin_args : keywords

Passed to the given plugin.

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.