rgb转化为hsv的C++程序代码#include"stdafx.h"#includevoidmain(floatR,floatG,floatB,float&H,float&S,float&V){//r,g,bvaluesarefrom0to1//h=[0,360],s=[0,1],v=[0,1]//ifs==0,thenh=-1(undefined)floatmin,max,delta,tmp;tmp=R