Mat 和CvMat类型相互转换-opencv3.4

1. CvMat -> Mat :   参见opencv3.4原始代码

        CV_IMPL void cvConvertPointsHomogeneous( const CvMat* _src, CvMat* _dst )

        {

            cv::Mat src = cv::cvarrToMat(_src), dst = cv::cvarrToMat(_dst);

            ....................................................................................

        }

2.Mat -> CvMat:  参见opencv3.4原始代码

        Mat opoints;

         CvMat c_objectPoints = cvMat(opoints)

你可能感兴趣的:(opencv,opencv,计算机视觉,人工智能)