Mat
About
Using Mat objects.
Constructing
Refer to the page on Mat.
Introspecting
Data Size
Make sure you take into account the number of channels.
int size = mymat.total() * mymat.elemSize();
Using Mat objects.
Refer to the page on Mat.
Data Size
Make sure you take into account the number of channels.
int size = mymat.total() * mymat.elemSize();