use Fortran order for g and p in _denoise_chambolle_nd to avoid a performance regression

This commit is contained in:
Gregory R. Lee
2015-12-23 12:08:28 -05:00
committed by Gregory R. Lee
parent 4bc4f0a169
commit 4a8a2189f2
+1 -1
View File
@@ -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