跳转到内容

rgbtohsv

vector  rgbtohsv(vector rgb)

vector  rgbtohsv(float r, float g, float b)

将RGB色彩空间转换为HSV色彩空间。返回一个表示HSV色彩的向量。色相(Hue)的取值范围为0到1。