mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-12 05:29:11 +08:00
use Fortran order for g and p in _denoise_chambolle_nd to avoid a performance regression
This commit is contained in:
committed by
Gregory R. Lee
parent
4bc4f0a169
commit
4a8a2189f2
@@ -147,7 +147,7 @@ def _denoise_tv_chambolle_nd(im, weight=0.2, eps=2.e-4, n_iter_max=200):
|
||||
"""
|
||||
|
||||
ndim = im.ndim
|
||||
p = np.zeros(im.shape + (im.ndim, ), dtype=im.dtype)
|
||||
p = np.zeros(im.shape + (im.ndim, ), dtype=im.dtype, order='F')
|
||||
g = np.zeros_like(p)
|
||||
d = np.zeros_like(im)
|
||||
i = 0
|
||||
|
||||
Reference in New Issue
Block a user