interpret the following C#.NET code related with RGB

2 ビュー (過去 30 日間)
ravindra bagale
ravindra bagale 2012 年 9 月 22 日
this code is for skin color segmentation in C#.NET, please tell me what is difference bet R & r
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;

回答 (1 件)

Walter Roberson
Walter Roberson 2012 年 9 月 22 日
"r", "g", and "b" are relative color values. I do not remember the proper technical term. The effect is to correct for illumination.

カテゴリ

Help Center および File Exchange.NET Methods in MATLAB についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by