mirror of
https://github.com/wassname/scikit-image.git
synced 2026-09-12 12:50:49 +08:00
COSMIT pep8
This commit is contained in:
@@ -11,6 +11,7 @@ import os as _os
|
||||
from ..io import imread
|
||||
from skimage import data_dir
|
||||
|
||||
|
||||
def load(f):
|
||||
"""Load an image file located in the data directory.
|
||||
|
||||
@@ -26,6 +27,7 @@ def load(f):
|
||||
"""
|
||||
return imread(_os.path.join(data_dir, f))
|
||||
|
||||
|
||||
def camera():
|
||||
"""Gray-level "camera" image, often used for segmentation
|
||||
and denoising examples.
|
||||
@@ -33,6 +35,7 @@ def camera():
|
||||
"""
|
||||
return load("camera.png")
|
||||
|
||||
|
||||
def lena():
|
||||
"""Colour "Lena" image.
|
||||
|
||||
@@ -44,6 +47,7 @@ def lena():
|
||||
"""
|
||||
return load("lena.png")
|
||||
|
||||
|
||||
def text():
|
||||
""" Gray-level "text" image used for corner detection.
|
||||
|
||||
@@ -68,6 +72,7 @@ def checkerboard():
|
||||
"""
|
||||
return load("chessboard_GRAY.png")
|
||||
|
||||
|
||||
def coins():
|
||||
"""Greek coins from Pompeii.
|
||||
|
||||
@@ -88,6 +93,7 @@ def coins():
|
||||
"""
|
||||
return load("coins.png")
|
||||
|
||||
|
||||
def moon():
|
||||
"""Surface of the moon.
|
||||
|
||||
@@ -97,6 +103,7 @@ def moon():
|
||||
"""
|
||||
return load("moon.png")
|
||||
|
||||
|
||||
def page():
|
||||
"""Scanned page.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user