From aadc45cd5b42f5d15b6fb041197246a77bf2dd7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Tue, 25 Dec 2012 11:27:08 +0100 Subject: [PATCH] Fix bugs caused by renaming functions --- skimage/filter/_denoise.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/skimage/filter/_denoise.py b/skimage/filter/_denoise.py index 315efc05..07f3c58f 100644 --- a/skimage/filter/_denoise.py +++ b/skimage/filter/_denoise.py @@ -242,15 +242,15 @@ def denoise_tv_chambolle(im, weight=50, eps=2.e-4, n_iter_max=200, im = img_as_float(im) if im.ndim == 2: - out = _denoise_tv_2d(im, weight, eps, n_iter_max) + out = _denoise_tv_chambolle_2d(im, weight, eps, n_iter_max) elif im.ndim == 3: if multichannel: out = np.zeros_like(im) for c in range(im.shape[2]): - out[..., c] = _denoise_tv_2d(im[..., c], weight, eps, + out[..., c] = _denoise_tv_chambolle_2d(im[..., c], weight, eps, n_iter_max) else: - out = _denoise_tv_3d(im, weight, eps, n_iter_max) + out = _denoise_tv_chambolle_3d(im, weight, eps, n_iter_max) else: raise ValueError('only 2-d and 3-d images may be denoised with this ' 'function')