本文介绍了HSV色彩空间和CvInRangeS函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
cvInRangeS(imgHSV, cvScalar(15, 234, 120), cvScalar(21, 234, 120), imgThreshed);
我想知道cvScalar函数中的每个参数代表什么.我认为这将是HSV,但它似乎并未达到所需颜色的阈值.有人可以更清楚地解释参数吗?
I am wondering what each parameter in the cvScalar function represents. I thought it would be HSV but it doesnt seem to be thresholding the desired color. Could someone explain the parameters a bit clearer?
推荐答案
意思是
H-色相,S-饱和度,V-值
H - Hue, S - Saturation, V - Value
在这里了解一下其中的每一个:
take a look in here for understanding each one of those:
http://en.wikipedia.org/wiki/HSL_and_HSV
颜色主要在色相组件中定义.这里有关于HSV空间阈值的很好的教程:
the color is mainly defined in the Hue component. There is a good tutorial about thresholding in HSV space in here:
http://aishack.in/tutorials/thresholding/
这篇关于HSV色彩空间和CvInRangeS函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!