From 04f01ffce4994452809cd58276ccf7ba3173217a Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Fri, 23 Oct 2009 15:06:27 +0200 Subject: [PATCH] Add note on assumed data range. --- scikits/image/color/colorconv.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scikits/image/color/colorconv.py b/scikits/image/color/colorconv.py index d0ac2fbf..d7c5f4d2 100644 --- a/scikits/image/color/colorconv.py +++ b/scikits/image/color/colorconv.py @@ -133,6 +133,8 @@ def rgb2hsv(rgb): Notes ----- + The conversion assumes an input data range of [0, 1] for all color components. + Conversion between RGB and HSV color spaces results in some loss of precision, due to integer arithmetic and rounding [1]_. @@ -205,6 +207,8 @@ def hsv2rgb(hsv): Notes ----- + The conversion assumes an input data range of [0, 1] for all color components. + Conversion between RGB and HSV color spaces results in some loss of precision, due to integer arithmetic and rounding [1]_.