Convert incoming novice images to ubyte

This commit is contained in:
Michael Hansen
2014-03-26 08:48:10 -04:00
parent dc798e27f1
commit f84cce3238
+1 -1
View File
@@ -254,7 +254,7 @@ class Picture(object):
path = os.path.abspath(path)
self._path = path
with file_or_url_context(path) as context:
self.array = io.imread(context)
self.array = img_as_ubyte(io.imread(context))
self._format = imghdr.what(context)
elif array is not None:
self.array = array