Skip to content

Commit 1bba750

Browse files
committed
Fix build with OpenCV 5.0
1 parent f243dcc commit 1bba750

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Tracker/ldes/ldes_tracker.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,12 @@ void LDESTracker::getSubWindow(const cv::Mat& image, const char* type)
7979
}
8080
//cv::imshow("rot_patch", patchL);
8181
cv::resize(patchL, patchL, cv::Size(scale_sz0, scale_sz0), cv::INTER_LINEAR);
82+
83+
#if (CV_VERSION_MAJOR < 5)
8284
cv::logPolar(patchL, patchL, cv::Point2f(0.5f*patchL.cols, 0.5f*patchL.rows), mag, cv::INTER_LINEAR);
85+
#else
86+
cv::warpPolar(patchL, patchL, patchL.size(), cv::Point2f(0.5f * patchL.cols, 0.5f * patchL.rows), mag, cv::INTER_LINEAR);
87+
#endif
8388
}
8489
else
8590
assert(0);

0 commit comments

Comments
 (0)