First time here? Check out the FAQ!
answered 2019-04-12 09:03:07 -0600
see here:
cvtColor(image, gray, COLOR_BGR2GRAY);
probably laps[i].at<Vec3b>(x,y) must be laps[i].at<uchar>(x,y)
laps[i].at<Vec3b>(x,y)
laps[i].at<uchar>(x,y)