mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Merge pull request #20664 from anna-khakimova:ak/resize_simd
Fluid: SIMD for Resize Linear 8UC3 * SIMD for fluid::Resize 8U3C * Rework horizontal pass + add 8U4C case * Reproduce stackoverflow test * StackOverflow test * SSE42 impl * SSE42 impl improvement * GAPI:SSE42 simd opt for Resize 8UC3. Final version * Fix tests * Conditional compilation fix * Applied comments * Applied comments. Step2 * Applied comments. Step2
This commit is contained in:
@@ -353,7 +353,9 @@ TEST_P(GAPI_Streaming, SmokeTest_ConstInput_GMat)
|
||||
// With constant inputs, the stream is endless so
|
||||
// the blocking pull() should never return `false`.
|
||||
EXPECT_TRUE(ccomp.pull(cv::gout(out_mat_gapi)));
|
||||
EXPECT_EQ(0, cvtest::norm(out_mat_gapi, out_mat_ocv, NORM_INF));
|
||||
// Fluid's and OpenCV's Resizes aren't bit exact.
|
||||
// So 1% is here because it is max difference between them.
|
||||
EXPECT_TRUE(AbsSimilarPoints(0, 1).to_compare_f()(out_mat_gapi, out_mat_ocv));
|
||||
}
|
||||
|
||||
EXPECT_TRUE(ccomp.running());
|
||||
@@ -405,7 +407,9 @@ TEST_P(GAPI_Streaming, SmokeTest_VideoInput_GMat)
|
||||
frames++;
|
||||
cv::Mat out_mat_ocv;
|
||||
opencv_ref(in_mat_gapi, out_mat_ocv);
|
||||
EXPECT_EQ(0, cvtest::norm(out_mat_gapi, out_mat_ocv, NORM_INF));
|
||||
// Fluid's and OpenCV's Resizes aren't bit exact.
|
||||
// So 1% is here because it is max difference between them.
|
||||
EXPECT_TRUE(AbsSimilarPoints(0, 1).to_compare_f()(out_mat_gapi, out_mat_ocv));
|
||||
}
|
||||
EXPECT_LT(0u, frames);
|
||||
EXPECT_FALSE(ccomp.running());
|
||||
|
||||
Reference in New Issue
Block a user