From 637a568ae4725db2c4ac89e7b69bd1e63618ce14 Mon Sep 17 00:00:00 2001 From: Tony S Yu Date: Tue, 31 May 2011 15:46:02 -0400 Subject: [PATCH] Fix order of keyword arguments to _tv_denoise_2d. tv_denoise passes keyword arguments `eps` and `weight` as positional arguments, but the order in _tv_denoise_2d was switched. --- scikits/image/filter/tv_denoise.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scikits/image/filter/tv_denoise.py b/scikits/image/filter/tv_denoise.py index da00586a..8114837c 100644 --- a/scikits/image/filter/tv_denoise.py +++ b/scikits/image/filter/tv_denoise.py @@ -92,7 +92,7 @@ def _tv_denoise_3d(im, eps=2.e-4, weight=100, keep_type=False, n_iter_max=200): else: return out -def _tv_denoise_2d(im, weight=50, eps=2.e-4, keep_type=False, n_iter_max=200): +def _tv_denoise_2d(im, eps=2.e-4, weight=50, keep_type=False, n_iter_max=200): """ Perform total-variation denoising