From c4affd4078f7327e92089cc358948c997ce93ac8 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Mon, 26 Sep 2011 21:42:37 -0700 Subject: [PATCH] BUG: Always return contiguous array from colour conversion. --- scikits/image/color/colorconv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scikits/image/color/colorconv.py b/scikits/image/color/colorconv.py index 92c9a0cc..59b2baaf 100644 --- a/scikits/image/color/colorconv.py +++ b/scikits/image/color/colorconv.py @@ -307,7 +307,7 @@ def _convert(matrix, arr): out.shape = oldshape out = np.swapaxes(out, 2, 0) - return out + return np.ascontiguousarray(out) def xyz2rgb(xyz):