diff --git a/skimage/data/__init__.py b/skimage/data/__init__.py index 9d1f691b..845d3f05 100644 --- a/skimage/data/__init__.py +++ b/skimage/data/__init__.py @@ -1,4 +1,8 @@ -"""Convenience functions to load sample data. +"""Standard test images. + +For more images, see + + - http://sipi.usc.edu/database/database.php """ @@ -23,7 +27,7 @@ def load(f): return imread(_os.path.join(data_dir, f)) def camera(): - """Gray "camera" image, often used for segmentation + """Gray-level "camera" image, often used for segmentation and denoising examples. """ @@ -32,18 +36,33 @@ def camera(): def 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. + """ return load("lena.png") def 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. + """ - return load("chessboard_RGB.png") + return load("chessboard_GRAY_U8.png") def 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 @@ -53,4 +72,4 @@ def coins(): No known copyright restrictions. """ - return load("coins.jpg") + return load("coins.png") diff --git a/skimage/data/coins.jpg b/skimage/data/coins.jpg deleted file mode 100644 index 511776f8..00000000 Binary files a/skimage/data/coins.jpg and /dev/null differ diff --git a/skimage/data/coins.png b/skimage/data/coins.png new file mode 100644 index 00000000..f0bebd64 Binary files /dev/null and b/skimage/data/coins.png differ