CV_32FC2:代表的是32位浮点型,2通道~
// we can access the element like this :
Mat m(Size(3,3), CV_32FC2 );
Vec2f& elem = m.at<Vec2f>( row , col );// or m.at<Vec2f>( Point(col,row) );//直接访问两个通道
elem[0]=1212.0f;//两个通道各自的值。
elem[1]=326.0f;//两个通道各自的值~。
float c1 = m.at<Vec2f>( row , col )[0];// or m.at<Vec2f>( Point(col,row) );
float c2 = m.at<Vec2f>( row , col )[1];
m.at<Vec2f>( row, col )[0]=1986.0f;
m.at<Vec2f>( row, col )[1]=326.0f;
cv2.imshow() 可以用来显示numpy类型的图片(也就是python的格式),但是cv.Imageshow()却不能显示numpy格式的图片。