How to access data from a cv::Mat
I am having an Mat structure which size is 382 x 510 x 32
. How can I access the data from it?
From what I have read on the internet it should be something like this :
unsigned char *input = (unsigned char*)(img.data);
Anyhow, my code is something like this :
const int mySizes[3]={382,510,32};
cv::Mat f(3,mySizes,CV_64F);
Can you help me to go through the position of my 3D array?
EDIT 1:
Here is a link to the same question that I asked on stackoverflow.com : http://stackoverflow.com/questions/17305231/how-to-access-data-from-cvmat