Click here to Skip to main content
15,891,423 members
Home / Discussions / Algorithms
   

Algorithms

 
QuestionSpace complexity Pin
kirancgi22-Aug-09 6:45
kirancgi22-Aug-09 6:45 
AnswerRe: Space complexity Pin
kabirbdboy22-Aug-09 20:43
kabirbdboy22-Aug-09 20:43 
QuestionSkin color detection help me Pin
kabirbdboy19-Aug-09 6:56
kabirbdboy19-Aug-09 6:56 
AnswerRe: Skin color detection help me Pin
Tim Craig19-Aug-09 13:58
Tim Craig19-Aug-09 13:58 
GeneralRe: Skin color detection help me Pin
kabirbdboy19-Aug-09 14:03
kabirbdboy19-Aug-09 14:03 
GeneralRe: Skin color detection help me Pin
Tim Craig19-Aug-09 20:43
Tim Craig19-Aug-09 20:43 
GeneralRe: Skin color detection help me Pin
Tim Craig21-Aug-09 14:28
Tim Craig21-Aug-09 14:28 
GeneralRe: Skin color detection help me Pin
kabirbdboy22-Aug-09 19:34
kabirbdboy22-Aug-09 19:34 
if(bmpdata[i][j].H<=19&&bmpdata[i][j].S>=48)
bmpdata[i][j].H+=0;
else bmpdata[i][j].H=bmpdata[i][j].S=bmpdata[i][j].V=0;

By the above part,i think,identify the background color.if the condition is satisfy then,
it does not perform nothing(bmpdata[i][j].H+=0), otherwise background set by zero(bmpdata[i][j].H=bmpdata[i][j].S=bmpdata[i][j].V=0)

In addition,the ouput is,only show the skin color and background color show black.


but the below part are confuse me.Confused | :confused:
for (i=1;i<img->height-1;i++)
for (j=1;j<img->width-1;j++)
{
if(bmpdata[i][j].H!=0)
if(bmpdata[i][j-1].H==0||bmpdata[i][j+1].H==0||
bmpdata[i+1][j].H==0||bmpdata[i-1][j].H==0
){
bmpdata1[i][j].H=0;
bmpdata1[i][j].S=0;
bmpdata1[i][j].V=0;
}
GeneralRe: Skin color detection help me Pin
Tim Craig22-Aug-09 21:27
Tim Craig22-Aug-09 21:27 
GeneralRe: Skin color detection help me Pin
kabirbdboy23-Aug-09 4:04
kabirbdboy23-Aug-09 4:04 
GeneralRe: Skin color detection help me Pin
Tim Craig23-Aug-09 7:57
Tim Craig23-Aug-09 7:57 
AnswerRe: Skin color detection help me Pin
arunkamaraj20-Jan-10 19:27
arunkamaraj20-Jan-10 19:27 
QuestionMD5CryptoServiceProvider's ComputeHash doesn't match (x86 vs x64)? Pin
francoisdotnet18-Aug-09 6:13
francoisdotnet18-Aug-09 6:13 
GeneralRe: <object>.GetHashCode doesn't match (x86 vs x64)? [modified]</object> Pin
francoisdotnet18-Aug-09 21:22
francoisdotnet18-Aug-09 21:22 
GeneralRe: .GetHashCode doesn't match (x86 vs x64)? Pin
supercat919-Aug-09 6:44
supercat919-Aug-09 6:44 
GeneralRe: .GetHashCode doesn't match (x86 vs x64)? Pin
francoisdotnet19-Aug-09 10:46
francoisdotnet19-Aug-09 10:46 
GeneralRe: .GetHashCode doesn't match (x86 vs x64)? Pin
supercat919-Aug-09 14:34
supercat919-Aug-09 14:34 
GeneralRe: .GetHashCode doesn't match (x86 vs x64)? Pin
francoisdotnet19-Aug-09 20:43
francoisdotnet19-Aug-09 20:43 
AnswerRe: MD5CryptoServiceProvider's ComputeHash doesn't match (x86 vs x64)? Pin
Luc Pattyn20-Aug-09 0:49
sitebuilderLuc Pattyn20-Aug-09 0:49 
QuestionVariable Depth For Loop to create a number sequence... Pin
Aaron @ Think Software17-Aug-09 14:46
professionalAaron @ Think Software17-Aug-09 14:46 
Answer[CrossPost] Variable Depth For Loop to create a number sequence... Pin
Scott Dorman17-Aug-09 15:35
professionalScott Dorman17-Aug-09 15:35 
AnswerRe: Variable Depth For Loop to create a number sequence... Pin
Alan Balkany18-Aug-09 9:44
Alan Balkany18-Aug-09 9:44 
Questiontree recursive traversing . Pin
devboycpp15-Aug-09 5:18
devboycpp15-Aug-09 5:18 
AnswerRe: tree recursive traversing . Pin
Moreno Airoldi15-Aug-09 7:28
Moreno Airoldi15-Aug-09 7:28 
QuestionRegarding time complexity Pin
kirancgi14-Aug-09 1:04
kirancgi14-Aug-09 1:04 

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.