Add note on assumed data range.

This commit is contained in:
Ralf Gommers
2009-10-23 15:06:27 +02:00
parent a93e5f9e6c
commit 04f01ffce4
+4
View File
@@ -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]_.