mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-27 18:25:32 +08:00
MAINT: Remove deprecated Lena
This commit is contained in:
@@ -26,7 +26,6 @@ __all__ = ['load',
|
||||
'horse',
|
||||
'hubble_deep_field',
|
||||
'immunohistochemistry',
|
||||
'lena',
|
||||
'logo',
|
||||
'moon',
|
||||
'page',
|
||||
@@ -62,22 +61,6 @@ def camera():
|
||||
return load("camera.png")
|
||||
|
||||
|
||||
@deprecated('skimage.data.astronaut')
|
||||
def lena():
|
||||
"""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.
|
||||
|
||||
"""
|
||||
raise RuntimeError("This image has been removed due to copyright concerns.")
|
||||
|
||||
|
||||
def astronaut():
|
||||
"""Colour image of the astronaut Eileen Collins.
|
||||
|
||||
|
||||
@@ -3,11 +3,6 @@ import skimage.data as data
|
||||
from numpy.testing import assert_equal, assert_almost_equal, assert_raises
|
||||
|
||||
|
||||
def test_lena_removed():
|
||||
""" Test that "Lena" has been removed """
|
||||
assert_raises(RuntimeError, data.lena)
|
||||
|
||||
|
||||
def test_astronaut():
|
||||
""" Test that "astronaut" image can be loaded. """
|
||||
astronaut = data.astronaut()
|
||||
|
||||
Reference in New Issue
Block a user