diff --git a/doc/examples/plot_threshold_adaptive.py b/doc/examples/plot_threshold_adaptive.py index c3e20224..e1e3cbee 100644 --- a/doc/examples/plot_threshold_adaptive.py +++ b/doc/examples/plot_threshold_adaptive.py @@ -21,7 +21,7 @@ from skimage import data from skimage.filter import threshold_otsu, threshold_adaptive -image = data.text() +image = data.page() global_thresh = threshold_otsu(image) binary_global = image > global_thresh diff --git a/skimage/data/__init__.py b/skimage/data/__init__.py index cb3a5b71..c4467678 100644 --- a/skimage/data/__init__.py +++ b/skimage/data/__init__.py @@ -96,3 +96,12 @@ def moon(): """ return load("moon.png") + +def page(): + """Scanned page. + + This image of printed text is useful for demonstrations requiring uneven + background illumination. + + """ + return load("page.png") diff --git a/skimage/data/page.png b/skimage/data/page.png new file mode 100644 index 00000000..6c9554ea Binary files /dev/null and b/skimage/data/page.png differ