Fix error for opencv 3.4.9+ over IplImage (#1949) (#1963)

This commit is contained in:
jeffeDurand 2020-01-07 21:12:30 -05:00 committed by Davis E. King
parent e4998c13b3
commit 54a9a5bbf3
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ namespace dlib
// 2.4.9.1 CV_VERSION_MAJOR==4 and CV_VERSION_EPOCH==2. However, CV_MAJOR_VERSION has always
// (seemingly) held the actual major version number, so we use that to test for the OpenCV major
// version.
#if CV_MAJOR_VERSION > 3
#if CV_MAJOR_VERSION > 3 || (CV_MAJOR_VERSION == 3 && CV_SUBMINOR_VERSION >= 9)
IplImage temp = cvIplImage(img);
#else
IplImage temp = img;