toHSV
toHSV refers to the transformation that converts color data from the RGB color space to the HSV color space. It is commonly used in image processing and computer vision for color-based segmentation, filtering, and tracking, because HSV separates color information (hue) from lightness or intensity (value). The term may appear as a function or method name in libraries, or as a description of a general conversion process.
Input and output: A toHSV operation can be applied to a single color triple (R, G, B)
Algorithm: Let max = max(R, G, B), min = min(R, G, B), and delta = max − min. V is
Representation and notes: Different libraries adopt different ranges. Some return H in [0,179], S and V in