Ask Your Question

Revision history [back]

click to hide/show revision 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