Click here to Skip to main content
15,919,749 members
Home / Discussions / C#
   

C#

 
GeneralRe: sending values between forms Pin
rmedo19-Feb-06 3:29
rmedo19-Feb-06 3:29 
QuestionDetect Edges Pin
haytham_mohammad19-Feb-06 1:48
haytham_mohammad19-Feb-06 1:48 
AnswerRe: Detect Edges Pin
Guffa19-Feb-06 2:07
Guffa19-Feb-06 2:07 
GeneralRe: Detect Edges Pin
haytham_mohammad19-Feb-06 5:27
haytham_mohammad19-Feb-06 5:27 
GeneralRe: Detect Edges Pin
Guffa19-Feb-06 6:16
Guffa19-Feb-06 6:16 
AnswerRe: Detect Edges Pin
Christian Graus19-Feb-06 8:26
protectorChristian Graus19-Feb-06 8:26 
AnswerRe: Detect Edges Pin
A.A.19-Feb-06 21:10
A.A.19-Feb-06 21:10 
GeneralRe: Detect Edges Pin
haytham_mohammad20-Feb-06 5:50
haytham_mohammad20-Feb-06 5:50 
first i would like to thank u about ur help and i want to tell u that i changed the algorithm to that code

public static void DetectSkin(Bitmap original, ref Bitmap modified)<br />
		{<br />
			Graphics g = Graphics.FromImage(original);<br />
			ArrayList points = new ArrayList();<br />
			for(Int32 x = 0; x < original.Width; x++)<br />
			{<br />
				for(Int32 y = 0; y < original.Height; y++)<br />
				{<br />
<br />
					<br />
					Color c = modified.GetPixel(x, y);<br />
					<br />
					double I   = (Math.Log(c.R) + Math.Log(c.B) + Math.Log(c.G)) / 3;<br />
					double Rg  = Math.Log(c.R) - Math.Log(c.G);<br />
					double By  = Math.Log(c.B) - (Math.Log(c.G) + Math.Log(c.R)) / 2;<br />
					double hue = Math.Atan2(Rg, By) * (180 / Math.PI);<br />
					<br />
<br />
<br />
					<br />
					if (I <= 5 && (hue >= 4 && hue <= 255))<br />
					{<br />
						points.Add(new Point(x, y));<br />
					} <br />
					else<br />
					{<br />
						modified.SetPixel(x, y, Color.Black);<br />
					}<br />
<br />
					<br />
				}<br />
			}<br />
		}



but the output was not good (i.e the modified picture has black regions from the light)
do u have a solution to prevent this regions but plz i don't want the solution be in the environment i want the solution in code ...if u know any article regarding this problem plz tell me
thanks to u in advance

haitham
Questioncontrol container design time problem Pin
bahaa_sa519-Feb-06 0:24
bahaa_sa519-Feb-06 0:24 
Questionchange a user's group or account type Pin
am2h18-Feb-06 23:36
am2h18-Feb-06 23:36 
QuestionwseAbout "WebBrowser" control Pin
zhouyinhui18-Feb-06 23:28
zhouyinhui18-Feb-06 23:28 
QuestionGetting progress of a Method Pin
emran83418-Feb-06 21:00
emran83418-Feb-06 21:00 
AnswerRe: Getting progress of a Method Pin
Stanciu Vlad18-Feb-06 22:07
Stanciu Vlad18-Feb-06 22:07 
QuestionPropery Grid Pin
deepscyberpulse18-Feb-06 18:56
deepscyberpulse18-Feb-06 18:56 
QuestionForm Count Pin
deepscyberpulse18-Feb-06 18:54
deepscyberpulse18-Feb-06 18:54 
QuestionMemory Reading Pin
Expert Coming18-Feb-06 17:55
Expert Coming18-Feb-06 17:55 
AnswerRe: Memory Reading Pin
Sean8918-Feb-06 18:19
Sean8918-Feb-06 18:19 
QuestionLink label transparency... Pin
Kasic Slobodan18-Feb-06 16:27
Kasic Slobodan18-Feb-06 16:27 
AnswerRe: Link label transparency... Pin
Joshua Quick18-Feb-06 17:16
Joshua Quick18-Feb-06 17:16 
GeneralRe: Link label transparency... Pin
Kasic Slobodan19-Feb-06 3:43
Kasic Slobodan19-Feb-06 3:43 
GeneralRe: Link label transparency... Pin
Joshua Quick19-Feb-06 10:43
Joshua Quick19-Feb-06 10:43 
GeneralRe: Link label transparency... Pin
Kasic Slobodan19-Feb-06 14:01
Kasic Slobodan19-Feb-06 14:01 
GeneralRe: Link label transparency... Pin
mav.northwind19-Feb-06 20:08
mav.northwind19-Feb-06 20:08 
GeneralRe: Link label transparency... Pin
Kasic Slobodan20-Feb-06 4:53
Kasic Slobodan20-Feb-06 4:53 
QuestionGetType() fails, but why Pin
User 665818-Feb-06 14:01
User 665818-Feb-06 14:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.