Distinguish red color from white is HSV or similar color space? -


red color has h=0 in hsv color space. white color has h=0, s=0, v=1. i.e. h(red)=h(white).

so, if comparing colors hue, how calculate "likelihood" coefficient take account white color not red (or white color hues).

in hsv color space s channel represents color saturation. s==0 means color shade of gray (regardless of h, higher v is, brighter is). larger s value is, less grayish gets. want @ v value, since if v==0 you'll have black pixel regardless of h & s. when want compare 2 colors should use 3 channels, may wait them differently don't want omit of them.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -