Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Mat element access

I read this article, but I can't find how to access Mat element like this

img[y][x]=100;

is it possible? And another question is how can I don't omit type of Mat, but check types on compilation time.

instead of

img.at<uchar>(i,j)

something like this

img[i][j]

Mat element access

I read this article, but I can't find how to access Mat element like this

img[y][x]=100;

is it possible? And another question is how can I don't omit type of Mat, but check types on compilation time.

instead of

img.at<uchar>(i,j)

something like this

img[i][j]