opencv – 为什么我们把RGB转换成HSV

我有一个图像,我想检测一个蓝色的rectange.我的老师告诉我:

将其转换为HSV颜色模型
>定义一个阈值保持,使其成为一个二进制图像与我们想要检测的颜色

那么为什么我们这样做呢?为什么我们不直接打开rgb图像?
谢谢你的回答

解决方法

根据 http://en.wikipedia.org/wiki/HSL_and_HSV#Use_in_image_analysis

Because the R,G,and B components of an object’s color in a digital image are all correlated with the amount of light hitting the object,and therefore with each other,image descriptions in terms of those components make object discrimination difficult. Descriptions in terms of hue/lightness/chroma or hue/lightness/saturation are often more relevant.

还有一些很好的信息here

相关文章

Css3如何实现鼠标移上变长特效?(图文+视频)
css3怎么实现鼠标悬停图片时缓慢变大效果?(图文+视频)
jquery如何实现点击网页回到顶部效果?(图文+视频)
css3边框阴影效果怎么做?(图文+视频)
css怎么实现圆角边框和圆形效果?(图文+视频教程)
Css3如何实现旋转移动动画特效