(a,b,c)を肌色とする。(x,y,z)が肌色であるかを調べるには、
(ax + by + cz) / √((a^2 + b^2 + c^2)(x^2 + x^2 + x^2))
の値が、例えば0.9以上などする。

(a,b,c)=(x,y,z)ならば1となる。色が近いほど1に近づく。