mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-29 16:00:12 +08:00
Remove unnecessary functions.
This commit is contained in:
@@ -71,4 +71,4 @@ False
|
||||
"""
|
||||
|
||||
from . import colors
|
||||
from .novice import Picture, open, new, copy
|
||||
from .novice import Picture, open
|
||||
|
||||
@@ -8,25 +8,9 @@ from skimage.transform import resize
|
||||
|
||||
|
||||
def open(path):
|
||||
"""
|
||||
Creates a new Picture object from the given image path
|
||||
"""
|
||||
"""Return Picture object from the given image path."""
|
||||
return Picture(path=os.path.abspath(path))
|
||||
|
||||
def new(size, color=None):
|
||||
"""
|
||||
Create a new RGB picture of the given size, initialized to the
|
||||
given color or to black if none is provided.
|
||||
"""
|
||||
return Picture(size=size, color=color)
|
||||
|
||||
def copy(image):
|
||||
"""
|
||||
Creates a Picture using the supplied image data
|
||||
(e.g., skimage.data.elephant()).
|
||||
"""
|
||||
return Picture(image=image)
|
||||
|
||||
|
||||
class Pixel(object):
|
||||
"""A single pixel in a Picture.
|
||||
|
||||
Reference in New Issue
Block a user