this code is for skin color segmentation in C#.NET,please tell me what is difference bet R & r
what tells the values of f_upper and f_lower to us?
color = bm.GetPixel(i, j);
r = Convert.ToDouble(color.R) / Convert.ToDouble(color.R + color.G + color.B);
g = Convert.ToDouble(color.G) / Convert.ToDouble(color.R + color.G + color.B);
f_upper = -1.3767 * r * r + 1.0743 * r + 0.1452;
f_lower = -0.776 * r * r + 0.5601 * r + 0.1766;
ris a variable declared previously and is of type double (if the code isn’t wrong it have to be declared in that way). WhileRis a property of the Color struct, which indicates the color Red.For more info on RGB color model look here, while for Color struct look here.
More specifically
ris normalized value between 0 and 1 – % of R(Red color) in the color.f_upper and f_lower is not clear for me