int step = tempimage->widthStep; uchar * data = (uchar *)tempimage->imageData; if( (x+y*step+1+step)<(width+height*step) ){ if( int(data[x+y*step+1+step])==0 ) count++; }
data[]
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)