a value of type “const cv::Point2f *” cannot be used to initialize an entity of type cv::Point2f *
void GetFlow::drawflow(const cv::Mat& flowRes){
cv::Point2f* ptrRow=flowRes.ptr<cv::Point2f>(j);//错误 const不能初始为raw指针,这样ptrRow会发生改变,就违背了const的定义
}
来源:CSDN
作者:半路出家的猿人
链接:https://blog.csdn.net/weixin_42184622/article/details/104061546