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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user