Convert values from linear RGB to HSV colorspace.
rgb (array_like) – 1-, 2-, 3-D vector of RGB coordinates to convert. The last dimension should be length-3 in all cases, specifying a single coordinate.
HSV values with the same shape as the input.
ndarray