Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV Mat explained

I am reading through how the image data is stored in the matrices format, this explains it very beautifully how matrices determine each pixel.

So I would like to know in the context of OpenCV when we store the image in the MAT format then how can we see the value of the image that is presented in the MAT format.

Like if I see the value that is being stored int the Mat object it is something like this : Mat [ 286*195*CV_8UC3, isCont=true, isSubmat=false, nativeObj=0x7f9aa26914f0, dataAddr=0x11c85d020 ] So if possible can anyone explain how this data is representing the image and where are the pixel values that is used to form the matrices while representing the image.

click to hide/show revision 2
retagged

updated 2017-06-29 01:52:27 -0600

berak gravatar image

OpenCV Mat explained

I am reading through how the image data is stored in the matrices format, this explains it very beautifully how matrices determine each pixel.

So I would like to know in the context of OpenCV when we store the image in the MAT format then how can we see the value of the image that is presented in the MAT format.

Like if I see the value that is being stored int the Mat object it is something like this : Mat [ 286*195*CV_8UC3, isCont=true, isSubmat=false, nativeObj=0x7f9aa26914f0, dataAddr=0x11c85d020 ] So if possible can anyone explain how this data is representing the image and where are the pixel values that is used to form the matrices while representing the image.