创建一个如图所示的3 X 4 X 6 三维矩阵
#include <iostream>
#include <opencv2/opencv.hpp>
#include <opencv2/highgui.hpp>
using namespace std;
using namespace cv;
int main(int argc, const char * argv[]) {
// insert code here...
int sz[] = { 3, 4, 6}; //倒着存放,对应三维立体图像的高、宽、长
Mat Img = Mat(3,sz, CV_16SC4, Scalar::all(0));
cout<<"三维图像的维度:"<<Img.dims<<endl;
cout<<"三维图像的通道数:"<<Img.channels()<<endl;
cout<<"三维图像的长:"<<6<<endl;
cout<<"三维图像的宽:"<<Img.size().width<<endl;
cout<<"三维图像的高:"<<