int main()
{
int i = 8; //i是个变量
Mat C = cv::Mat::zeros(cv::Size(i, 2), CV_8UC1);
C.data[0] = 1;
C.data[1] = 3;
C.data[14] = 6;
cout << C << endl;
system("pause");
return 0;
}
c++简单矩阵赋值方法:
最新推荐文章于 2024-09-14 11:51:04 发布