参考https://blog.csdn.net/wanggao_1990/article/details/53264753
#include <iostream>
#include <opencv2/opencv.hpp>
#include <unordered_map>
using namespace std;
using namespace cv;
int main(int argc,char** argv)
{
// 1
Mat mat = (Mat_<float>(3,2)<<1,2,3,4,5,6);
cout<<mat<<endl;
// 2
Mat A = mat.rowRange(0,3).colRange(0,1);
cout<<A<<endl;
// 3
Mat B(1,2,CV_32FC1);
B.at<float>(0,0) = 1;
B.at<float>(0,1) = 2;
cout<<B<<endl;
}