From 663092aca0e5ad59aeb211bc27d266cc559772c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Sun, 30 Jun 2013 13:02:45 +0200 Subject: [PATCH] Improve indentation --- skimage/filter/rank/percentile.py | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/skimage/filter/rank/percentile.py b/skimage/filter/rank/percentile.py index 56c67983..f302074c 100644 --- a/skimage/filter/rank/percentile.py +++ b/skimage/filter/rank/percentile.py @@ -100,10 +100,9 @@ def percentile_autolevel(image, selem, out=None, mask=None, shift_x=False, """ - return _apply( - percentile8_cy.autolevel, percentile16_cy.autolevel, - image, selem, out=out, mask=mask, shift_x=shift_x, - shift_y=shift_y, p0=p0, p1=p1) + return _apply(percentile8_cy.autolevel, percentile16_cy.autolevel, + image, selem, out=out, mask=mask, shift_x=shift_x, + shift_y=shift_y, p0=p0, p1=p1) def percentile_gradient(image, selem, out=None, mask=None, shift_x=False, @@ -221,9 +220,8 @@ def percentile_mean_subtraction(image, selem, out=None, mask=None, shift_y=shift_y, p0=p0, p1=p1) -def percentile_morph_contr_enh( - image, selem, out=None, mask=None, shift_x=False, - shift_y=False, p0=.0, p1=1.): +def percentile_morph_contr_enh(image, selem, out=None, mask=None, + shift_x=False, shift_y=False, p0=.0, p1=1.): """Return greyscale local morph_contr_enh of an image. morph_contr_enh is computed on the given structuring element. Only levels @@ -371,7 +369,6 @@ def percentile_threshold(image, selem, out=None, mask=None, shift_x=False, """ - return _apply( - percentile8_cy.threshold, percentile16_cy.threshold, - image, selem, out=out, mask=mask, shift_x=shift_x, - shift_y=shift_y, p0=p0, p1=0.) + return _apply(percentile8_cy.threshold, percentile16_cy.threshold, + image, selem, out=out, mask=mask, shift_x=shift_x, + shift_y=shift_y, p0=p0, p1=0.)