1 | initial version |
The simplest way I know is:
int bytes = Mat.total() * Mat.elemSize();
The Mat.total returns rows x cols and Mat.elemSize() returns channels x sizeof(type)
2 | No.2 Revision |
The simplest way I know is:
int bytes = Mat.total() * Mat.elemSize();
The Mat.total Mat.total() returns rows x cols and Mat.elemSize() returns channels x sizeof(type)