if(v<95)
cout<<"黑"<<endl;
if(v>120&&s<0.25)
cout<<"白"<<endl;
if(v>=95&&v<=120&&s<0.25)
cout<<"灰"<<endl;
if( (h>=270||h<30)&&s>=0.25 )
cout<<"红"<<endl;
if( (h>=30&&h<135)&&s>=0.25 )
cout<<"黄"<<endl;
if( (h>=135&&h<270)&&s>=0.25 )
cout<<"蓝"<<endl;
【Computer vision】HSV与常见颜色的对应关系
最新推荐文章于 2022-06-18 16:24:13 发布