1 | initial version |
you have to use the actual type, not a symbolic integer constant :
objp.at<float>(y,x); // for a single float channel image (CV_32FC1)
objp.at<Vec3b>(y,x); // for 3, uchar channels (CV_8UC3, the most common format here)
please have another look at the tutorials