I couldn't find such function (i.e. RGB_to_HSV()
) in Scipy
or Matplotlib's
documentations, and Google doesn't show pointers, except ActiveState
recipe which demonstrates rgb2hsv
function, though not usable on Numpy
array as is.
Does someone know of a shortcut?
Edit: Sorry, just found matplotlib.colors.rgb_to_hsv()
which is exactly what I was looking for. Should I delete this question?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…