mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 06:26:29 +08:00
Fixes an issue with valgrind and sobelxy
This commit is contained in:
parent
f8ac46ba07
commit
caf438c63b
@ -507,8 +507,8 @@ PERF_TEST_P_(SobelXYPerfTest, TestPerformance)
|
||||
cv::GCompileArgs compile_args;
|
||||
std::tie(cmpF, type, kernSize, sz, dtype, order, compile_args) = GetParam();
|
||||
|
||||
cv::Mat out_mat_ocv2 = cv::Mat(sz, dtype);
|
||||
cv::Mat out_mat_gapi2 = cv::Mat(sz, dtype);
|
||||
cv::Mat out_mat_ocv2;
|
||||
cv::Mat out_mat_gapi2;
|
||||
|
||||
initMatsRandN(type, sz, dtype, false);
|
||||
|
||||
|
@ -361,9 +361,11 @@ TEST_P(SobelXYTest, AccuracyTest)
|
||||
cv::Size sz;
|
||||
cv::GCompileArgs compile_args;
|
||||
std::tie(cmpF, type, kernSize, sz, dtype, order, border_type, border_val, compile_args) = GetParam();
|
||||
|
||||
cv::Mat out_mat_ocv2;
|
||||
cv::Mat out_mat_gapi2;
|
||||
|
||||
initMatsRandN(type, sz, dtype);
|
||||
cv::Mat out_mat_ocv2 = cv::Mat(sz, dtype);
|
||||
cv::Mat out_mat_gapi2 = cv::Mat(sz, dtype);
|
||||
|
||||
// G-API code //////////////////////////////////////////////////////////////
|
||||
cv::GMat in;
|
||||
|
Loading…
Reference in New Issue
Block a user