diff --git a/modules/videostab/src/precomp.hpp b/modules/videostab/src/precomp.hpp index eb322d128e..bdf1e495ff 100644 --- a/modules/videostab/src/precomp.hpp +++ b/modules/videostab/src/precomp.hpp @@ -62,7 +62,7 @@ inline float intensity(const cv::Point3_ &bgr) return 0.3f*bgr.x + 0.59f*bgr.y + 0.11f*bgr.z; } -template inline T& at(int index, const T *items, int size) +template inline T& at(int index, T *items, int size) { return items[cv::borderInterpolate(index, size, cv::BORDER_WRAP)]; }