mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-02 12:41:06 +08:00
Add note on assumed data range.
This commit is contained in:
1 parent
a93e5f9e6c
commit
04f01ffce4
1 file changed
+4
@@ -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]_.
|
||||
|
||||
|
||||
Reference in new issue
Block a user