colour.RGB_to_HSV

colour.RGB_to_HSV(RGB)[source]

Converts from RGB colourspace to HSV colourspace.

Parameters

RGB (array_like) – RGB colourspace array.

Returns

HSV array.

Return type

ndarray

Notes

Domain

Scale - Reference

Scale - 1

RGB

[0, 1]

[0, 1]

Range

Scale - Reference

Scale - 1

HSV

[0, 1]

[0, 1]

References

[Eash], [Smi78], [Wik03a]

Examples

>>> RGB = np.array([0.45620519, 0.03081071, 0.04091952])
>>> RGB_to_HSV(RGB)  
array([ 0.9960394...,  0.9324630...,  0.4562051...])