Merge pull request #1001 from JDWarner/rw_transpose

FIX: Remove unnecessary .transpose introduced in PR #984
This commit is contained in:
Juan Nunez-Iglesias
2014-05-08 14:15:44 +10:00
@@ -389,7 +389,7 @@ def random_walker(data, labels, beta=130, mode='bf', tol=1.e-3, copy=True,
dims = data[..., 0].shape # To reshape final labeled result
data = img_as_float(data)
if data.ndim == 3: # 2D multispectral, needs singleton in 3rd axis
data = data[:, :, np.newaxis, :].transpose((0, 1, 3, 2))
data = data[:, :, np.newaxis, :]
# Spacing kwarg checks
if spacing is None: