微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

原文地址:https://www.jb51.cc/css/214394.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。