diff --git a/skimage/data/__init__.py b/skimage/data/__init__.py index 1711185cfa4..f7958345b81 100644 --- a/skimage/data/__init__.py +++ b/skimage/data/__init__.py @@ -20,6 +20,7 @@ 'coins', 'moon', 'page', + 'retina', 'horse', 'clock', 'immunohistochemistry', @@ -152,11 +153,25 @@ def page(): return load("page.png") +def retina(): + """Human retina. + + This image of a retina is useful for demonstrations requiring circulat + images. This image was downloaded from + `wikimedia `. + + This file is made available under the Creative Commons CC0 1.0 Universal + Public Domain Dedication. + + """ + return load("retina.jpg") + + def horse(): """Black and white silhouette of a horse. This image was downloaded from - `openclipart ` + `openclipart `. Released into public domain and drawn and uploaded by Andreas Preuss (marauder). diff --git a/skimage/data/retina.jpg b/skimage/data/retina.jpg new file mode 100644 index 00000000000..f7a8a15333e Binary files /dev/null and b/skimage/data/retina.jpg differ diff --git a/skimage/data/tests/test_data.py b/skimage/data/tests/test_data.py index 38e4543ab98..7dc0863e7a7 100644 --- a/skimage/data/tests/test_data.py +++ b/skimage/data/tests/test_data.py @@ -36,6 +36,11 @@ def test_moon(): data.moon() +def test_retina(): + """ Test that "retina" image can be loaded. """ + data.retina() + + def test_page(): """ Test that "page" image can be loaded. """ data.page()