opencv Mat 多通道 数据读取或赋值

来源:互联网 发布:ai软件怎么使用方法 编辑:程序博客网 时间:2024/06/13 23:24
 Mat n = Mat::zeros( 2, 3, CV_32FC3 );
 
int i=0;
int j=0;
 
n.at<Vec3f>(i,j)[0] = 1;
n.at<Vec3f>(i,j)[1] = 2;
n.at<Vec3f>(i,j)[2] = 3;
0 0
原创粉丝点击