Remove unnecessary functions.

This commit is contained in:
Tony S Yu
2013-07-02 23:46:49 -05:00
parent 2cf9466e9e
commit c881cf32e6
2 changed files with 2 additions and 18 deletions
+1 -1
View File
@@ -71,4 +71,4 @@ False
"""
from . import colors
from .novice import Picture, open, new, copy
from .novice import Picture, open
+1 -17
View File
@@ -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.