void CFeatureSet::CannyDetector(IplImage * grayImg,IplImage * mask,
vector& out_points){
IplImage * edges = cvCreateImage(cvGetSize(grayImg), IPL_DEPTH_8U, 1);
cvCanny(grayImg,edges,50,200,3);
int x,y,index;
for (y = 0 ; y < grayImg->height ; y++){
for (x = 0 ; x < grayImg->width ; x++){
index = x + (y * grayImg->widthStep);
if ((int)(edges->imageData[index]) != 0){
Point2f p;
p.x = x;
p.y = y;
out_points.push_back(p);
}
}
}
}
// Bugs Caused by code syntax tool and vectors