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的定义
}
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的定义
}