>Mat a = cv::Mat(2,2,CV_32S,1);
output: [1,1;
1,1]
>Mat a = cv::Mat(2,2,CV_32SC3,1);
output: [1,0,0,1,0,0;
1,0,0,1,0,0]
>Mat a = cv::Mat(2,2,CV_32S,Scalar(0));
output: [0,0;
0,0]
>Mat a = cv::Mat(2,2,CV_32S,0);
output: [;
]
>Mat a = Mat(2,2,CV_32SC3,Scalar(0));
output: [0,0,0,0,0,0;
0,0,0,0,0,0]
>Mat a = Mat(2,2,CV_32SC3,Scalar(0,1,2));
output: [0,1,2,0,1,2;
0,1,2,0,1,2]
>Mat a = Mat(2,2,CV_32SC3,Scalar(0,1));
output: [0,1,0,0,1,0;
0,1,0,0,1,0]
时间: 2024-10-26 23:43:26