data
¶Standard test images.
For more images, see
skimage.data.astronaut () |
Colour image of the astronaut Eileen Collins. |
skimage.data.binary_blobs ([length, ...]) |
Generate synthetic binary image with several rounded blob-like objects. |
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.hubble_deep_field () |
Hubble eXtreme Deep Field. |
skimage.data.immunohistochemistry () |
Immunohistochemical (IHC) staining with hematoxylin counterstaining. |
skimage.data.imread (fname[, as_grey, ...]) |
Load an image from file. |
skimage.data.lena (*args, **kwargs) |
Deprecated function. Use skimage.data.astronaut instead. |
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.rocket () |
Launch photo of DSCOVR on Falcon 9 by SpaceX. |
skimage.data.text () |
Gray-level “text” image used for corner detection. |
skimage.data.use_plugin (name[, kind]) |
Set the default plugin for a specified operation. |
skimage.data.deprecated ([alt_func, behavior]) |
Decorator to mark deprecated functions with warning. |
skimage.data.
astronaut
()[source]¶Colour image of the astronaut Eileen Collins.
Photograph of Eileen Collins, an American astronaut. She was selected as an astronaut in 1992 and first piloted the space shuttle STS-63 in 1995. She retired in 2006 after spending a total of 38 days, 8 hours and 10 minutes in outer space.
This image was downloaded from the NASA Great Images database <http://grin.hq.nasa.gov/ABSTRACTS/GPN-2000-001177.html>`__.
No known copyright restrictions, released into the public domain.
skimage.data.
binary_blobs
(length=512, blob_size_fraction=0.1, n_dim=2, volume_fraction=0.5, seed=None)[source]¶Generate synthetic binary image with several rounded blob-like objects.
Parameters: | length : int, optional
blob_size_fraction : float, optional
n_dim : int, optional
volume_fraction : float, default 0.5
seed : int, optional
|
---|---|
Returns: | blobs : ndarray of bools
|
Examples
>>> from skimage import data
>>> data.binary_blobs(length=5, blob_size_fraction=0.2, seed=1)
array([[ True, False, True, True, True],
[ True, True, True, False, True],
[False, True, False, True, True],
[ True, False, False, True, True],
[ True, False, False, False, True]], dtype=bool)
>>> blobs = data.binary_blobs(length=256, blob_size_fraction=0.1)
>>> # Finer structures
>>> blobs = data.binary_blobs(length=256, blob_size_fraction=0.05)
>>> # Blobs cover a smaller volume fraction of the image
>>> blobs = data.binary_blobs(length=256, volume_fraction=0.3)
skimage.data.
coins
()[source]¶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.
skimage.data.
hubble_deep_field
()[source]¶Hubble eXtreme Deep Field.
This photograph contains the Hubble Telescope’s farthest ever view of the universe. It can be useful as an example for multi-scale detection.
Notes
This image was downloaded from HubbleSite.
The image was captured by NASA and may be freely used in the public domain.
skimage.data.
immunohistochemistry
()[source]¶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.
skimage.data.
imread
(fname, as_grey=False, plugin=None, flatten=None, **plugin_args)[source]¶Load an image from file.
Parameters: | fname : string
as_grey : bool
plugin : str
|
---|---|
Returns: | img_array : ndarray
|
Other Parameters: | |
plugin_args : keywords
|
skimage.data.
lena
(*args, **kwargs)[source]¶Deprecated function. Use skimage.data.astronaut
instead.
Colour “Lena” image.
This image has been removed from scikit-image due to copyright concerns.
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.
skimage.data.
rocket
()[source]¶Launch photo of DSCOVR on Falcon 9 by SpaceX.
This is the launch photo of Falcon 9 carrying DSCOVR lifted off from SpaceX’s Launch Complex 40 at Cape Canaveral Air Force Station, FL.
Notes
This image was downloaded from SpaceX Photos.
The image was captured by SpaceX and released in the public domain.
skimage.data.
text
()[source]¶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.
skimage.data.
use_plugin
(name, kind=None)[source]¶Set the default plugin for a specified operation. The plugin will be loaded if it hasn’t been already.
Parameters: | name : str
kind : {‘imsave’, ‘imread’, ‘imshow’, ‘imread_collection’, ‘imshow_collection’}, optional
|
---|
See also
available_plugins
Examples
To use Matplotlib as the default image reader, you would write:
>>> from skimage import io
>>> io.use_plugin('matplotlib', 'imread')
To see a list of available plugins run io.available_plugins
. Note that
this lists plugins that are defined, but the full list may not be usable
if your system does not have the required libraries installed.
deprecated
¶skimage.data.
deprecated
(alt_func=None, behavior='warn')[source]¶Bases: object
Decorator to mark deprecated functions with warning.
Adapted from <http://wiki.python.org/moin/PythonDecoratorLibrary>.
Parameters: | alt_func : str
behavior : {‘warn’, ‘raise’}
|
---|