Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I dont understand the 3,3 part. Is the element 3,3 not direclty in the matrix?

no, it isn't.

for a Mat(3,4,CV_32FC3) the last valid element is at (2,3), we count from 0 to N-1 in c++ ..

also, to access an element of a Mat filled with Vec3b, you have to use:

Vec3b & v = mat34.at<Vec3b>(2,3);
v[0] = .2f;