From f5c627493ebda4dc47ec3c96d61b4995c7f526ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Thu, 18 Sep 2014 20:52:55 -0400 Subject: [PATCH] Extend description of clipping behavior --- skimage/transform/_geometric.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/skimage/transform/_geometric.py b/skimage/transform/_geometric.py index 0264adf0..5fe2cbf0 100644 --- a/skimage/transform/_geometric.py +++ b/skimage/transform/_geometric.py @@ -1050,9 +1050,10 @@ def warp(image, inverse_map=None, map_args={}, output_shape=None, order=1, Used in conjunction with mode 'constant', the value outside the image boundaries. clip : bool, optional - Whether to clip the output to the float range of ``[0, 1]``, - since higher order interpolation may produce values outside the - given input range. + Whether to clip the output to the float range of ``[0, 1]``, or + ``[-1, 1]`` for input images with negative values. This is enabled by + default, since higher order interpolation may produce values outside + the given input range. Notes -----