mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-09 01:35:42 +08:00
FIX: Remove unnecessary .transpose introduced in PR #984
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user