mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-27 11:27:08 +08:00
Add "page.png" and use for threshold example.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 |
Reference in New Issue
Block a user