Skip to content

Commit

Permalink
add retina image in data
Browse files Browse the repository at this point in the history
  • Loading branch information
François Boulogne committed Jul 12, 2015
1 parent 08e8b44 commit 7b743bf
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
17 changes: 16 additions & 1 deletion skimage/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
'coins',
'moon',
'page',
'retina',
'horse',
'clock',
'immunohistochemistry',
Expand Down Expand Up @@ -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 <https://commons.wikimedia.org/wiki/File:Fundus_photograph_of_normal_left_eye.jpg>`.
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 <http://openclipart.org/detail/158377/horse-by-marauder>`
`openclipart <http://openclipart.org/detail/158377/horse-by-marauder>`.
Released into public domain and drawn and uploaded by Andreas Preuss
(marauder).
Expand Down
Binary file added skimage/data/retina.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions skimage/data/tests/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7b743bf

Please sign in to comment.