Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can build directly N-dimensional matrices. For a 3D matrix:

int sizes[]={W,H,D};  //width, height, depth: known integers
Mat block(3,sizes,CV_32U);

More information here: http://docs.opencv.org/3.1.0/d3/d63/classcv_1_1Mat.html#gsc.tab=0

You can build directly N-dimensional matrices. For a 3D matrix:

int sizes[]={W,H,D};  //width, height, depth: known integers
Mat block(3,sizes,CV_32U);

More information here: http://docs.opencv.org/3.1.0/d3/d63/classcv_1_1Mat.html#gsc.tab=0http://docs.opencv.org/3.1.0/d3/d63/classcv_1_1Mat.html