Skip to content

Commit 640d77b

Browse files
committed
let the performance tests of WarpPerspective pass
* avoid misuse of vzeroupper on Visual Studio 2013 Update 5 * add ifdef to avoid unattended optimization
1 parent 1393fd9 commit 640d77b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/imgproc/src/imgwarp.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2793,6 +2793,11 @@ class WarpPerspectiveInvoker :
27932793
ParallelLoopBody(), src(_src), dst(_dst), M(_M), interpolation(_interpolation),
27942794
borderType(_borderType), borderValue(_borderValue)
27952795
{
2796+
#if defined(_MSC_VER) && _MSC_VER == 1800 /* MSVS 2013 */ && CV_AVX
2797+
// details: https://github.com/opencv/opencv/issues/11026
2798+
borderValue.val[2] = _borderValue.val[2];
2799+
borderValue.val[3] = _borderValue.val[3];
2800+
#endif
27962801
}
27972802

27982803
virtual void operator() (const Range& range) const

0 commit comments

Comments
 (0)