From 3d3351b9faaee80b9c848171e6933cecde069343 Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Thu, 7 May 2015 17:34:05 -0700 Subject: [PATCH] Fix failing test --- skimage/io/_io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/io/_io.py b/skimage/io/_io.py index f8305aaf..8dbc3600 100644 --- a/skimage/io/_io.py +++ b/skimage/io/_io.py @@ -59,7 +59,7 @@ def imread(fname, as_grey=False, plugin=None, flatten=None, if img.ndim > 2: if img.shape[-1] not in (3, 4) and img.shape[-3] in (3, 4): img = np.swapaxes(img, -1, -3) - img = np.swapaxes(img, -1, -2) + img = np.swapaxes(img, -2, -3) if as_grey: img = rgb2grey(img)