mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Merge branch 4.x
This commit is contained in:
@@ -3925,5 +3925,17 @@ TEST_P(Core_MaskTypeTest, MeanStdDev)
|
||||
|
||||
INSTANTIATE_TEST_CASE_P(/**/, Core_MaskTypeTest, MaskType::all());
|
||||
|
||||
// Still fails in 5.x: https://github.com/opencv/opencv/issues/28557
|
||||
TEST(Core_Arithm, DISABLED_mul_overflow_28557)
|
||||
{
|
||||
uint16_t data[] = {5000, 60000, 5000, 60000, 5000, 60000};
|
||||
cv::Mat m(1, 6, CV_16U, data);
|
||||
cv::Mat res = m.mul(m);
|
||||
|
||||
for (int i = 0; i < 6; i++)
|
||||
{
|
||||
EXPECT_EQ(65535, res.at<uint16_t>(0, i));
|
||||
}
|
||||
}
|
||||
|
||||
}} // namespace
|
||||
|
||||
Reference in New Issue
Block a user