InputArray _points1;
Mat points1 = _points1.getMat()
2. Mat -> cvMat*
Mat H(2,2, CV_64F);
CvMat* matH =cvCreateMat(H.rows,H.cols,CV_64FC1);//CV_64FC1代表不同格式,通道cvZero(matH);for(int i =0; i < H.rows;++i){for(int j =0; j < H.cols;++j){cvmSet(matH,i,j,H.at<double>(i,j));cvmSet(matH,i,j,H.at<double>(i,j));}}