我有一个图像,我想检测一个蓝色的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