From f84cce32382abdfb447a56531f86e225583fba08 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Wed, 26 Mar 2014 08:48:10 -0400 Subject: [PATCH] Convert incoming novice images to ubyte --- skimage/novice/_novice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/novice/_novice.py b/skimage/novice/_novice.py index 6f0cb5de..553da070 100644 --- a/skimage/novice/_novice.py +++ b/skimage/novice/_novice.py @@ -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