From f0d586a32f5b902c66b9c8907a5039fde9538597 Mon Sep 17 00:00:00 2001 From: Juan Nunez-Iglesias Date: Mon, 20 May 2013 16:43:20 +1000 Subject: [PATCH] Revert change to is_rgb --- skimage/color/colorconv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/color/colorconv.py b/skimage/color/colorconv.py index 5225f7ea..a73f5f19 100644 --- a/skimage/color/colorconv.py +++ b/skimage/color/colorconv.py @@ -90,7 +90,7 @@ def is_rgb(image): Input image. """ - return (image.ndim in (3, 4) and image.shape[-1] in (3, 4)) + return (image.ndim == 3 and image.shape[2] in (3, 4)) @deprecated()