mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-04 13:00:57 +08:00
FIX: roll back incorrect testing change of gradient order
This commit is contained in:
1 parent
f25ca3a835
commit
927ba2cd8e
1 file changed
+1
-1
@@ -101,7 +101,7 @@ def _compute_gradients_3d(data, spacing):
|
||||
gr_deep = np.abs(data[:, :, :-1] - data[:, :, 1:]).ravel() / spacing[2]
|
||||
gr_right = np.abs(data[:, :-1] - data[:, 1:]).ravel() / spacing[1]
|
||||
gr_down = np.abs(data[:-1] - data[1:]).ravel() / spacing[0]
|
||||
return np.r_[gr_down, gr_right, gr_deep]
|
||||
return np.r_[gr_deep, gr_right, gr_down]
|
||||
|
||||
|
||||
def _make_laplacian_sparse(edges, weights):
|
||||
|
||||
Reference in new issue
Block a user