diff --git a/skimage/data/__init__.py b/skimage/data/__init__.py index a544179b..2fc77b48 100644 --- a/skimage/data/__init__.py +++ b/skimage/data/__init__.py @@ -143,3 +143,17 @@ def immunohistochemistry(): """ return load("ihc.jpg") + + +def 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). + + """ + return load("chelsea.jpg") diff --git a/skimage/data/chelsea.jpg b/skimage/data/chelsea.jpg new file mode 100644 index 00000000..7692c1f5 Binary files /dev/null and b/skimage/data/chelsea.jpg differ diff --git a/skimage/data/tests/test_data.py b/skimage/data/tests/test_data.py index f660c69c..94fe3a5e 100644 --- a/skimage/data/tests/test_data.py +++ b/skimage/data/tests/test_data.py @@ -34,11 +34,16 @@ def test_page(): data.page() -def test_page(): +def test_clock(): """ Test that "clock" image can be loaded. """ data.clock() +def test_chelsea(): + """ Test that "chelsea" image can be loaded. """ + data.chelsea() + + if __name__ == "__main__": from numpy.testing import run_module_suite run_module_suite()