the program is doing nothing but scaning an image vertically and loading 
col_pos,row_start_position and end position.now i got all the column now i need 
to select the middle most coloumn (of 10just taken as threshold value) of 
neighborhood couloumn and mark it.i searched lot really but found nothing till 
now.the if statement is not working.
i tried with adjascent_differenc() but it s not worked for me.plz 
suggest.................



________________________________
From: Tyler Littlefield <[email protected]>
To: [email protected]
Sent: Sunday, April 26, 2009 1:33:28 AM
Subject: Re: [c-prog] noobs question on list stl........................





um. look at the documentation for lists. I have no idea what that code is 
supposed to do, but I believe the list has a count or similar property

Thanks,
Tyler Littlefield
Web: tysdomain.com
email: ty...@tysdomain. com
My programs don't have bugs, they're called randomly added features.

----- Original Message ----- 
From: Snit Roy 
To: c-p...@yahoogroups. com 
Sent: Saturday, April 25, 2009 1:53 PM
Subject: [c-prog] noobs question on list stl......... ......... ......

i just want to count the neighbourhood of it->col_pos value and count them.how 
can i do it???i know its very easy stuff for u.but help me.......... ...

count=0;
for(UList::const_ iterator it=l.begin() ,;it!=l.end( );it++)
{
if(it->col_pos= =(it++)-> col_pos)count+ +;
else if(count>=10) {
t=((it->col_ pos-count) +it->col_ pos)/2;
for(k=it->row_ pos_start; k<it->row_ pos_end;k+ +)
img->imageData[ k*step1+t] =0;
count=0;
}
}

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]





      

[Non-text portions of this message have been removed]

Reply via email to