Add "page.png" and use for threshold example.

This commit is contained in:
Tony S Yu
2012-05-03 12:11:33 -04:00
parent cb9f030eb1
commit 942dd52316
3 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -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
+9
View File
@@ -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")
Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB