RGB image, which gets converted to HSV.
Pre-allocated range, where HSV image will be copied. Default argument is an empty slice, where new data is allocated and returned. If given slice is not of corresponding shape(range.shape[0], range.shape[1], 3), it is discarded and allocated anew.
Returns HSV verion of the given RGB image.
Note: Input and pre-allocated slices' strides must be identical.
Convert RGB image to HSV color format.
If HSV is represented as floating point, H is represented as 0-360 (degrees), S and V are 0.0-1.0. If is integral, S, and V are 0-100.
Depending on the RGB (input) type, values are treated in the algorithm to be ranged as 0-255 for ubyte, 0-65535 for ushort, and 0-1 for floating point types.