colour.RGB_to_HSV#
- colour.RGB_to_HSV(RGB: ArrayLike) NDArrayFloat [source]#
Convert from RGB colourspace to HSV colourspace.
- Parameters:
RGB (ArrayLike) – RGB colourspace array.
- Returns:
HSV array.
- Return type:
Notes
Domain
Scale - Reference
Scale - 1
RGB
[0, 1]
[0, 1]
Range
Scale - Reference
Scale - 1
HSV
[0, 1]
[0, 1]
References
[EasyRGBh], [Smi78], [Wikipedia03g]
Examples
>>> RGB = np.array([0.45620519, 0.03081071, 0.04091952]) >>> RGB_to_HSV(RGB) array([ 0.9960394..., 0.9324630..., 0.4562051...])