I\'m trying to learn how to use openCV\'s new c++ interface.
How do I access elements of a multi channel matrix. for example:
Mat myMat(size(3, 3), C
You can access the underlying data array directly:
Mat myMat(size(3, 3), CV_32FC2); myMat.ptr(y)[2*x]; // first channel myMat.ptr(y)[2*x+1]; // second channel