行列与坐标系对应关系
行rows:Y (height)
列cols:X (width)
其中OpenCV用的是cols(列数)和rows(行数)来表示图片的宽高
Mat frame;
cout<<"图片宽width为:"<<frame.cols<<endl;
cout<<"图片高height为:"<<frame.rows<<endl;
行列与坐标系对应关系
行rows:Y (height)
列cols:X (width)
其中OpenCV用的是cols(列数)和rows(行数)来表示图片的宽高
Mat frame;
cout<<"图片宽width为:"<<frame.cols<<endl;
cout<<"图片高height为:"<<frame.rows<<endl;