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
2 | No.2 Revision |
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