最終更新:2020-04-09 (木) 17:30:09 (46d)  

OpenCV 4/変更点
Top / OpenCV 4 / 変更点

メモ

  • Most of the C API has been excluded. In particular, instead of cv::cvtColor(src, dst, CV_RGB2GRAY) one should use cv::cvtColor(src, dst, cv::COLOR_RGB2GRAY); instead of cv::VideoCapture cap(0); cap.set(CV_CAP_PROP_WIDTH, 640); one should use cv::VideoCapture cap(0); cap.set(cv::CAP_PROP_WIDTH, 640); etc.
  • Also, the classical C data structures, such as CvMat, IplImage, CvMemStorage? etc., as well as the corresponding functions, such as cvCreateMat(), cvThreshold() etc., are mostly excluded from API and will be completely excluded in further OpenCV 4.x updates. Please, replace them with the corresponding C++ structures and functions, like cv::Mat, std::vector, cv::threshold() etc.

参考