1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

core(ipp): skip huge input in flip()

- IPP/SSE4.2 works well
This commit is contained in:
Alexander Alekhin
2019-10-14 18:10:32 +03:00
parent dd4f591d54
commit 6a7d1c15d3
3 changed files with 22 additions and 1 deletions
+13
View File
@@ -2035,4 +2035,17 @@ TEST(Core_Eigen, eigen2cv_check_Mat_type)
}
#endif // HAVE_EIGEN
TEST(Mat, regression_12943) // memory usage: ~4.5 Gb
{
applyTestTag(CV_TEST_TAG_MEMORY_6GB);
const int width = 0x8000;
const int height = 0x10001;
cv::Mat src(height, width, CV_8UC1, Scalar::all(128));
cv::Mat dst;
cv::flip(src, dst, 0);
}
}} // namespace